• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getpost_ifset函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getpost_ifset函数的典型用法代码示例。如果您正苦于以下问题:PHP getpost_ifset函数的具体用法?PHP getpost_ifset怎么用?PHP getpost_ifset使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getpost_ifset函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: dirname

<?php

/* $Id: call-comp.php,v 1.6 2005/04/24 18:12:25 julianjm Exp $ */
include_once dirname(__FILE__) . "/lib/defines.php";
include_once dirname(__FILE__) . "/lib/Class.Table.php";
getpost_ifset(array('current_page', 'fromstatsday_sday', 'fromstatsmonth_sday', 'days_compare', 'min_call', 'posted', 'dsttype', 'sourcetype', 'clidtype', 'channel', 'resulttype', 'stitle', 'atmenu', 'current_page', 'order', 'sens', 'dst', 'src', 'clid', 'userfieldtype', 'userfield', 'accountcodetype', 'accountcode'));
if (!isset($current_page) || $current_page == "") {
    $current_page = 0;
}
// this variable specifie the debug type (0 => nothing, 1 => sql result, 2 => boucle checking, 3 other value checking)
$FG_DEBUG = 0;
// The variable FG_TABLE_NAME define the table name to use
$FG_TABLE_NAME = DB_TABLENAME;
// THIS VARIABLE DEFINE THE COLOR OF THE HEAD TABLE
$FG_TABLE_HEAD_COLOR = "#D1D9E7";
$FG_TABLE_EXTERN_COLOR = "#7F99CC";
//#CC0033 (Rouge)
$FG_TABLE_INTERN_COLOR = "#EDF3FF";
//#FFEAFF (Rose)
// THIS VARIABLE DEFINE THE COLOR OF THE HEAD TABLE
$FG_TABLE_ALTERNATE_ROW_COLOR[] = "#FFFFFF";
$FG_TABLE_ALTERNATE_ROW_COLOR[] = "#F2F8FF";
//$link = DbConnect();
$DBHandle = DbConnect();
// The variable Var_col would define the col that we want show in your table
// First Name of the column in the html page, second name of the field
$FG_TABLE_COL = array();
/*******
Calldate Clid Src Dst Dcontext Channel Dstchannel Lastapp Lastdata Duration Billsec Disposition Amaflags Accountcode Uniqueid Serverid
*******/
$FG_TABLE_COL[] = array("Calldate", "calldate", "18%", "center", "SORT", "19");
开发者ID:shinichi85,项目名称:voiperopen,代码行数:31,代码来源:call-comp.php


示例2: Header

 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
**/
include '../lib/agent.defines.php';
include '../lib/agent.module.access.php';
include '../lib/agent.smarty.php';
include '../lib/support/classes/ticket.php';
include '../lib/support/classes/comment.php';
include '../lib/epayment/includes/general.php';
if (!has_rights(ACX_SUPPORT)) {
    Header("HTTP/1.0 401 Unauthorized");
    Header("Location: PP_error.php?c=accessdenied");
    die;
}
getpost_ifset(array('result', 'id', 'action', 'status', 'comment', 'idc'));
if ($result == "success") {
    $message = gettext("Ticket updated successfully");
}
if (isset($id)) {
    $ticketID = $id;
} else {
    exit(gettext("Ticket ID not found"));
}
if (tep_not_null($action)) {
    switch ($action) {
        case 'change':
            $DBHandle = DbConnect();
            $instance_sub_table = new Table("cc_ticket", "*");
            $instance_sub_table->Update_table($DBHandle, "status = '" . $status . "'", "id = '" . $id . "'");
            $ticket = new Ticket($ticketID);
开发者ID:saydulk,项目名称:a2billing,代码行数:31,代码来源:A2B_ticket_view.php


示例3: elseif

} elseif (!isset($_SESSION["ui_language"])) {
    if (!isset($_COOKIE["ui_language"])) {
        $_SESSION["ui_language"] = 'english';
    } else {
        $_SESSION["ui_language"] = $_COOKIE["ui_language"];
    }
}
define("LANGUAGE", $_SESSION["ui_language"]);
define("BINDTEXTDOMAIN", '../../common/admin_ui_locale');
require "languageSettings.php";
SetLocalLanguage();
// Open menu
if (!empty($section)) {
    $_SESSION["menu_section"] = $section;
}
getpost_ifset(array('cssname'));
if (isset($cssname) && $cssname != "") {
    $_SESSION["stylefile"] = $cssname;
}
if (isset($cssname) && $cssname != "") {
    if ($_SESSION["stylefile"] != $cssname) {
        foreach (glob("./templates_c/*.*") as $filename) {
            unlink($filename);
        }
    }
    $_SESSION["stylefile"] = $cssname;
}
if (!isset($_SESSION["stylefile"]) || $_SESSION["stylefile"] == '') {
    $_SESSION["stylefile"] = 'default';
}
//Images Path
开发者ID:hellbound,项目名称:a2billing-mod,代码行数:31,代码来源:admin.defines.php


示例4: getpost_ifset

		"COST A",
		"TIME FOR A",
		"ENTRANCE CHARGE B",
		"COST B",
		"TIME FOR B",
		"ENTRANCE CHARGE C",
		"COST C",
		"TIME FOR C",
		"ANNOUNCE TIME CORRECTION"
	);
};

getpost_ifset($update_fields);

if (ADVANCED_MODE) {
	getpost_ifset($charges_abc);
};

/***********************************************************************************/

$HD_Form->setDBHandler(DbConnect());
$HD_Form->init();

// CHECK IF REQUEST OF BATCH UPDATE
if ($batchupdate == 1 && is_array($check)) {

	check_demo_mode();

	$HD_Form->prepare_list_subselection('list');

	// Array ( [upd_simultaccess] => on [upd_currency] => on )
开发者ID:nixonch,项目名称:a2billing,代码行数:31,代码来源:A2B_entity_def_ratecard__vt.php


示例5: Header

 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
**/
include '../lib/admin.defines.php';
include '../lib/admin.module.access.php';
include '../lib/Form/Class.FormHandler.inc.php';
include './form_data/FG_var_card_seria.inc';
include '../lib/admin.smarty.php';
if (!has_rights(ACX_CUSTOMER)) {
    Header("HTTP/1.0 401 Unauthorized");
    Header("Location: PP_error.php?c=accessdenied");
    die;
}
getpost_ifset(array('popup_select', 'popup_formname', 'popup_fieldname'));
$HD_Form->setDBHandler(DbConnect());
$HD_Form->init();
if ($id != "" || !is_null($id)) {
    $HD_Form->FG_EDITION_CLAUSE = str_replace("%id", "{$id}", $HD_Form->FG_EDITION_CLAUSE);
}
if (!isset($form_action)) {
    $form_action = "list";
}
//ask-add
if (!isset($action)) {
    $action = $form_action;
}
$list = $HD_Form->perform_action($form_action);
// #### HEADER SECTION
$smarty->display('main.tpl');
开发者ID:saydulk,项目名称:a2billing,代码行数:31,代码来源:A2B_entity_card_seria.php


示例6: Header

 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
**/
include '../lib/admin.defines.php';
include '../lib/admin.module.access.php';
include '../lib/Form/Class.FormHandler.inc.php';
include './form_data/FG_var_card.inc';
include '../lib/admin.smarty.php';
if (!has_rights(ACX_CUSTOMER)) {
    Header("HTTP/1.0 401 Unauthorized");
    Header("Location: PP_error.php?c=accessdenied");
    die;
}
getpost_ifset(array('nb_to_create', 'creditlimit', 'cardnum', 'addcredit', 'choose_tariff', 'gen_id', 'cardnum', 'choose_simultaccess', 'choose_currency', 'choose_typepaid', 'creditlimit', 'enableexpire', 'expirationdate', 'expiredays', 'runservice', 'sip', 'iax', 'cardnumberlenght_list', 'tag', 'id_group', 'discount', 'id_seria', 'id_didgroup', 'vat', 'id_country'));
$HD_Form->FG_FILTER_SEARCH_FORM = false;
$HD_Form->FG_EDITION = false;
$HD_Form->FG_DELETION = false;
$HD_Form->FG_OTHER_BUTTON1 = false;
$HD_Form->FG_OTHER_BUTTON2 = false;
$HD_Form->FG_FILTER_APPLY = false;
$HD_Form->FG_LIST_ADDING_BUTTON1 = false;
$HD_Form->FG_LIST_ADDING_BUTTON2 = false;
$HD_Form->setDBHandler(DbConnect());
$nb_error = 0;
$msg_error = '';
$group_error = false;
$tariff_error = false;
$credit_error = false;
$number_error = false;
开发者ID:saydulk,项目名称:a2billing,代码行数:31,代码来源:A2B_entity_card_multi.php


示例7: getpost_ifset

 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
**/
include './lib/customer.defines.php';
include './lib/customer.module.access.php';
include './lib/Form/Class.FormHandler.inc.php';
include './lib/epayment/includes/general.php';
include './lib/epayment/includes/configure.php';
include './lib/epayment/includes/html_output.php';
$popup_select = 1;
include './lib/customer.smarty.php';
//include("./lib/epayment/includes/PP_header.php");
getpost_ifset(array('errcode'));
// #### HEADER SECTION
$smarty->display('main.tpl');
?>

<br>
<br>
<table width=80% align=center class="infoBox">
<tr height="15">
    <td colspan=2 class="infoBoxHeading">&nbsp;<?php 
echo gettext("Message");
?>
</td>
</tr>
<tr>
    <td width=50%>&nbsp;</td>
开发者ID:saydulk,项目名称:a2billing,代码行数:31,代码来源:checkout_success.php


示例8: getpost_ifset

        &resulttitle : tible that will show up above the rates array : can set to &nbsp; to not display anything
        &lcr : (0 or 1) to enable or disable the LCR, by default 0

 ****************************************************************************/
include 'lib/admin.defines.php';
// The wrapper variables for security
$security_key = API_SECURITY_KEY;
// The name of the log file
$logfile = API_LOGFILE;
// recipient email to send the alarm
$email_alarm = EMAIL_ADMIN;
$FG_DEBUG = 0;
$caching_query = 1800;
// caching for 30 minutes
getpost_ifset(array('key', 'tariffgroupid', 'ratecardid', 'css_url', 'nb_display_lines', 'filter', 'field_to_display', 'column_name', 'field_type', 'browse_letter', 'prefix_select', 'page_url', 'resulttitle', 'current_page', 'order', 'sens', 'choose_currency', 'choose_country', 'letter', 'searchpre', 'currency_select', 'merge_form', 'fullhtmlpage', 'lcr'));
$ip_remote = getenv('REMOTE_ADDR');
$mail_content = "[" . date("Y/m/d G:i:s", mktime()) . "] " . "Request asked from:{$ip_remote} with key:{$key} \n";
// CHECK KEY
if ($FG_DEBUG > 0) {
    echo "<br> md5(" . md5($security_key) . ") !== {$key}";
}
if ((!isset($_SESSION["access_display"]) || !$_SESSION["access_display"]) && (md5($security_key) !== $key || strlen($security_key) == 0)) {
    a2b_mail($email_alarm, "ALARM : RATE CARD API - CODE_ERROR 2", $mail_content);
    if ($FG_DEBUG > 0) {
        echo "[" . date("Y/m/d G:i:s", mktime()) . "] " . "[{$productid}] - CODE_ERROR 2" . "\n";
    }
    echo "400 Bad Request";
    $_SESSION["access_display"] = 0;
    exit;
} else {
开发者ID:pearlvoip,项目名称:a2billing,代码行数:30,代码来源:display_ratecard.php


示例9: getpost_ifset

 *
 *
**/
/*
Result :
    Send the Customer's Rates using the LCR/LCD Logic

Parameters :
    activation_code : Concatenation of Customer's Account code + '_' + Customer's password
    html : to display with <pre> tag

Usage :
    http://localhost/customer/webservice/Get_Rates.php?activation_code=XXXXXXXXXXX
*/
include '../lib/customer.defines.php';
getpost_ifset(array('activation_code', 'html'));
if ($activation_code) {
    $activation_code = trim($activation_code);
}
$rates = Service_Get_Rates($activation_code);
if (isset($html)) {
    echo "<pre>";
}
echo $rates[0];
if (isset($html)) {
    echo "</pre>";
}
/*
 *		Function for the Service Callback : it will call a phonenumber and redirect it into the BCB application
 */
function Service_Get_Rates($activation_code)
开发者ID:saydulk,项目名称:a2billing,代码行数:31,代码来源:get_rates.php


示例10: Header

 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
**/
include './lib/customer.defines.php';
include './lib/customer.module.access.php';
include './lib/Form/Class.FormHandler.inc.php';
include './form_data/FG_var_ticket.inc';
include './lib/customer.smarty.php';
if (!has_rights(ACX_SUPPORT)) {
    Header("HTTP/1.0 401 Unauthorized");
    Header("Location: PP_error.php?c=accessdenied");
    die;
}
getpost_ifset(array('title', 'description', 'priority', 'component'));
$HD_Form->setDBHandler(DbConnect());
$HD_Form->init();
// ADD TICKET
if ((strlen($description) > 0 || strlen($title) > 0) && is_numeric($priority) && is_numeric($component)) {
    $fields = "creator,title, description, id_component, priority, viewed_cust";
    $ticket_table = new Table('cc_ticket', $fields);
    $values = "'" . $_SESSION["card_id"] . "', '" . $title . "', '" . $description . "', '" . $component . "', '" . $priority . "' ,'0'";
    $id_ticket = $ticket_table->Add_table($HD_Form->DBHandle, $values, null, null, "id");
    NotificationsDAO::AddNotification("ticket_added_cust", Notification::$LOW, Notification::$CUST, $_SESSION['card_id'], Notification::$LINK_TICKET_CUST, $id_ticket);
    $table_card = new Table("cc_card", "firstname, lastname, language, email");
    $card_clause = "id = " . $_SESSION["card_id"];
    $result = $table_card->Get_list($HD_Form->DBHandle, $card_clause);
    $owner = $_SESSION["pr_login"] . " (" . $result[0]['firstname'] . " " . $result[0]['lastname'] . ")";
    try {
        $mail = new Mail(Mail::$TYPE_TICKET_NEW, null, $result[0]['language']);
开发者ID:pearlvoip,项目名称:a2billing,代码行数:31,代码来源:A2B_support.php


示例11: include

 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * 
**/


$disable_load_conf = true;

include ("../lib/agent.defines.php");
include ("../lib/agent.smarty.php");

getpost_ifset(array (
	'error'
));

$smarty -> assign("error", $error);
$smarty -> display('index.tpl');


开发者ID:nixonch,项目名称:a2billing,代码行数:28,代码来源:index.php


示例12: Header

 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
**/
include '../lib/admin.defines.php';
include '../lib/admin.module.access.php';
include '../lib/admin.smarty.php';
if (!has_rights(ACX_PACKAGEOFFER)) {
    Header("HTTP/1.0 401 Unauthorized");
    Header("Location: PP_error.php?c=accessdenied");
    die;
}
getpost_ifset(array('id', 'addrate', 'delallrate', 'addbatchrate', 'delrate', 'id_trunk', 'id_tariffplan', 'tag', 'prefix', 'destination', 'rbDestination', 'rbPrefix'));
if (empty($id)) {
    Header("Location: A2B_entity_package.php?atmenu=package&section=12");
}
$table_pack = new Table("cc_package_offer ", "*");
$pack_clauses = "id = {$id}";
$result_pack = $table_pack->Get_list(DbConnect(), $pack_clauses);
if (!is_array($result_pack) || sizeof($result_pack) != 1) {
    Header("Location: A2B_entity_package.php?atmenu=package&section=12");
}
if (isset($addbatchrate) && $addbatchrate) {
    $DBHandle = DbConnect();
    $rates_clauses = "";
    $table_rates = new Table("cc_ratecard", " DISTINCT COUNT(destination)");
    if (isset($id_trunk)) {
        $rates_clauses = " id_trunk = '{$id_trunk}'";
开发者ID:saydulk,项目名称:a2billing,代码行数:31,代码来源:A2B_package_manage_rates.php


示例13: Header

 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * 
**/
include "lib/customer.defines.php";
include "lib/customer.module.access.php";
include "lib/customer.smarty.php";
if (!has_rights(ACX_CALL_HISTORY)) {
    Header("HTTP/1.0 401 Unauthorized");
    Header("Location: PP_error.php?c=accessdenied");
    die;
}
getpost_ifset(array('posted', 'Period', 'frommonth', 'fromstatsmonth', 'tomonth', 'tostatsmonth', 'fromday', 'fromstatsday_sday', 'fromstatsmonth_sday', 'today', 'tostatsday_sday', 'tostatsmonth_sday', 'phonenumbertype', 'sourcetype', 'clidtype', 'channel', 'resulttype', 'stitle', 'atmenu', 'current_page', 'order', 'sens', 'phonenumber', 'src', 'clid', 'choose_currency', 'terminatecauseid', 'choose_calltype', 'download', 'file'));
if ($download == "file" && $file && $ACXSEERECORDING) {
    if (strpos($file, '/') !== false) {
        exit;
    }
    $value_de = base64_decode($file);
    $dl_full = MONITOR_PATH . "/" . $value_de;
    $dl_name = $value_de;
    if (!file_exists($dl_full)) {
        echo gettext("ERROR: Cannot download file " . $dl_full . ", it does not exist.<br>");
        exit;
    }
    header("Content-Type: application/octet-stream");
    header("Content-Disposition: attachment; filename={$dl_name}");
    header("Content-Length: " . filesize($dl_full));
    header("Accept-Ranges: bytes");
开发者ID:hellbound,项目名称:a2billing-mod,代码行数:31,代码来源:call-history.php


示例14: getpost_ifset

 * @copyright   Copyright (C) 2004-2014 - Star2billing S.L.
 * @author      Belaid Arezqui <[email protected]>
 * @license     http://www.fsf.org/licensing/licenses/agpl-3.0.html
 * @package     A2Billing
 *
 * Software License Agreement (GNU Affero General Public License)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
**/
$disable_load_conf = true;
include 'lib/customer.defines.php';
include 'lib/customer.module.access.php';
include 'lib/customer.smarty.php';
getpost_ifset(array('error', 'password', 'username'));
$smarty->assign("error", $error);
$smarty->assign("username", $username);
$smarty->assign("password", $password);
$smarty->display('index.tpl');
开发者ID:pearlvoip,项目名称:a2billing,代码行数:31,代码来源:index.php


示例15: DbConnect

$DBHandle = DbConnect();
// The variable Var_col would define the col that we want show in your table
// First Name of the column in the html page, second name of the field
$FG_TABLE_COL = array();
$FG_TABLE_DEFAULT_ORDER = "starttime";
$FG_TABLE_DEFAULT_SENS = "DESC";
$FG_COL_QUERY_GRAPH = 'starttime, sessiontime';
if ($FG_DEBUG == 3) {
    echo "<br>Table : {$FG_TABLE_NAME}  \t- \tCol_query : {$FG_COL_QUERY_GRAPH}";
}
$instance_table_graph = new Table($FG_TABLE_NAME, $FG_COL_QUERY_GRAPH);
if (is_null($order) || is_null($sens)) {
    $order = $FG_TABLE_DEFAULT_ORDER;
    $sens = $FG_TABLE_DEFAULT_SENS;
}
getpost_ifset(array('before', 'after'));
$SQLcmd = '';
if ($before) {
    if (strpos($SQLcmd, 'WHERE') > 0) {
        $SQLcmd = "{$SQLcmd} AND ";
    } else {
        $SQLcmd = "{$SQLcmd} WHERE ";
    }
    $SQLcmd = "{$SQLcmd} starttime <'" . $before . "'";
}
if ($after) {
    if (strpos($SQLcmd, 'WHERE') > 0) {
        $SQLcmd = "{$SQLcmd} AND ";
    } else {
        $SQLcmd = "{$SQLcmd} WHERE ";
    }
开发者ID:saydulk,项目名称:a2billing,代码行数:31,代码来源:graph_hourdetail.php


示例16: getpost_ifset

 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
**/
include '../lib/agent.defines.php';
include '../lib/agent.module.access.php';
include '../lib/regular_express.inc';
include '../lib/phpagi/phpagi-asmanager.php';
include '../lib/agent.smarty.php';
$FG_DEBUG = 0;
getpost_ifset(array('action', 'atmenu'));
if (!has_rights(ACX_CUSTOMER)) {
    Header("HTTP/1.0 401 Unauthorized");
    Header("Location: PP_error.php?c=accessdenied");
    die;
}
$DBHandle = DbConnect();
if ($action == "reload") {
    $as = new AGI_AsteriskManager();
    // && CONNECTING  connect($server=NULL, $username=NULL, $secret=NULL)
    $res = $as->connect(MANAGER_HOST, MANAGER_USERNAME, MANAGER_SECRET);
    if ($res) {
        if ($atmenu == "sipfriend") {
            $res = $as->Command('sip reload');
        } else {
            $res = $as->Command('iax2 reload');
开发者ID:pearlvoip,项目名称:a2billing,代码行数:31,代码来源:CC_generate_friend_file.php


示例17: Header

if (!has_rights(ACX_CUSTOMER)) {
    Header("HTTP/1.0 401 Unauthorized");
    Header("Location: PP_error.php?c=accessdenied");
    die;
}
if ($form_action == "add_sip" || $atmenu == "sip" || $form_action == "add_iax" || $atmenu == "iax") {
    if (!has_rights(ACX_VOIPCONF)) {
        Header("HTTP/1.0 401 Unauthorized");
        Header("Location: PP_error.php?c=accessdenied");
        die;
    }
}
$HD_Form->setDBHandler(DbConnect());
$HD_Form->init();
/********************************* ADD SIP / IAX FRIEND ***********************************/
getpost_ifset(array("id_cc_card", "cardnumber", "useralias"));
if (isset($id_cc_card) && is_numeric($id_cc_card) != "" && ($form_action == "add_sip" || $form_action == "add_iax")) {
    $HD_Form->FG_GO_LINK_AFTER_ACTION = "A2B_entity_card.php?atmenu=card&stitle=Customers_Card&id=";
    if ($form_action == "add_sip") {
        $friend_param_update = " sip_buddy='1' ";
        if (!USE_REALTIME) {
            $key = "sip_changed";
        }
    } else {
        $friend_param_update = " iax_buddy='1' ";
        if (!USE_REALTIME) {
            $key = "iax_changed";
        }
    }
    if (!USE_REALTIME) {
        $who = Notification::$AGENT;
开发者ID:pearlvoip,项目名称:a2billing,代码行数:31,代码来源:A2B_entity_friend.php


示例18: Header

<?php

include "../lib/defines.php";
include "../lib/module.access.php";
include "../lib/Form/Class.FormHandler.inc.php";
include "./form_data/FG_var_list_invoice.inc";
include "../lib/smarty.php";
include "../lib/A2B_invoice.php";
if (!has_rights(ACX_BILLING)) {
    Header("HTTP/1.0 401 Unauthorized");
    Header("Location: PP_error.php?c=accessdenied");
    die;
}
// TODO: ajouter le menu custom template
getpost_ifset(array('tocustomer', 'forcustomer', 'customer', 'rangeradio', 'sendemail', 'billcalls', 'billcharges', 'enableminimalamount', 'customtemplate', 'choose_currency', 'minimalamount'));
$HD_Form->setDBHandler(DbConnect());
$nowdate = date('Y-m-d H:i:s');
$verbose_level = 0;
$groupcard = 100;
$instance_table = new Table();
$currencies_list = get_currencies($HD_Form->DBHandle);
// Set Default Values
if ($rangeradio == "") {
    $billcalls = true;
    $billcharges = true;
    $choose_currency = '';
}
// Count how many cards to bill
if ($rangeradio == "one") {
    $tocustomer = $forcustomer = $customer;
}
开发者ID:sayemk,项目名称:a2billing,代码行数:31,代码来源:A2B_entity_invoices2_bill.php


示例19: session_destroy

 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
**/
include '../lib/admin.defines.php';
session_destroy();
getpost_ifset(array('err_type', 'c'));
if (!isset($err_type)) {
    $err_type = 0;
}
//Error Type == 0 Mean Critical Error dont need to show left menu.
//Error Type == 1 Mean User generated error.and it will show menu to him too.
include '../lib/admin.smarty.php';
if ($err_type == 0) {
    $smarty->display('header.tpl');
} else {
    include '../lib/admin.module.access.php';
    $smarty->display('main.tpl');
}
if (!isset($c)) {
    $c = "0";
}
开发者ID:pearlvoip,项目名称:a2billing,代码行数:31,代码来源:PP_error.php


示例20: include

include ("../lib/admin.defines.php");
include ("../lib/admin.module.access.php");
include ("../lib/Form/Class.FormHandler.inc.php");
include ("./form_data/FG_var_phonenumber.inc");
include ("../lib/admin.smarty.php");

if (!has_rights(ACX_PREDICTIVE_DIALER)) {
	Header("HTTP/1.0 401 Unauthorized");
	Header("Location: PP_error.php?c=accessdenied");
	die();
}

getpost_ifset(array (
	'action',
	'campaign',
	'check', 'type', 'mode', 'batchupdate',
	'upd_id_phonebook', 'upd_number', 'upd_name', 'upd_amount', 'upd_status'
));

if (!empty ($action) && !empty ($campaign) && is_numeric($campaign) && ($action == "run" || $action == "hold" || $action == "stop")) {
	$DBHandle = DbConnect();
	$status = 0;
	if ($action == "stop")
		$status = 2;
	elseif ($action == "hold") 
		$status = 1;
	
	$table = new Table();
	$table->SQLExec($DBHandle, "UPDATE cc_campaign_phonestatus SET status = $status WHERE id_phonenumber =$id AND id_campaign = $campaign ");
	
	Header("Location: A2B_entity_phonenumber.php?form_action=ask-edit&id=$id");
开发者ID:nixonch,项目名称:a2billing,代码行数:31,代码来源:A2B_entity_phonenumber.php



注:本文中的getpost_ifset函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getpost_variable函数代码示例发布时间:2022-05-15
下一篇:
PHP getpost函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap