本文整理汇总了PHP中getpost_ifset函数的典型用法代码示例。如果您正苦于以下问题:PHP getpost_ifset函数的具体用法?PHP getpost_ifset怎么用?PHP getpost_ifset使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getpost_ifset函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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");
示例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);
示例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
示例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 )
示例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');
示例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;
示例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"> <?php
echo gettext("Message");
?>
</td>
</tr>
<tr>
<td width=50%> </td>
示例8: getpost_ifset
&resulttitle : tible that will show up above the rates array : can set to 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 {
示例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)
示例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']);
示例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');
示例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§ion=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§ion=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}'";
示例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");
示例14: getpost_ifset
* @copyright Copyright (C) 2004-2014 - Star2billing S.L.
* @author Belaid Arezqui <areski@gmail.com>
* @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');
示例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 ";
}