當前位置: 首頁>>代碼示例>>PHP>>正文


PHP security_script_input函數代碼示例

本文整理匯總了PHP中security_script_input函數的典型用法代碼示例。如果您正苦於以下問題:PHP security_script_input函數的具體用法?PHP security_script_input怎麽用?PHP security_script_input使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了security_script_input函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: page_output

 function page_output()
 {
     $this->obj_customer = new customer_services();
     // fetch variables
     $this->obj_customer->id = @security_script_input('/^[0-9]*$/', $_GET["id_customer"]);
     $this->obj_customer->id_service_customer = @security_script_input('/^[0-9]*$/', $_GET["id_service_customer"]);
     $this->id_service_period = @security_script_input('/^[0-9]*$/', $_GET["id_service_period"]);
     // load service data
     $this->obj_customer->load_data_service();
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Return to Customer Services Page", "page=customers/services.php&id=" . $this->obj_customer->id . "");
     $this->obj_menu_nav->add_item("Service Details", "page=customers/service-edit.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "");
     $this->obj_menu_nav->add_item("Service History", "page=customers/service-history.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "", TRUE);
     if (in_array($this->obj_customer->obj_service->data["typeid_string"], array("phone_single", "phone_tollfree", "phone_trunk"))) {
         $this->obj_menu_nav->add_item("CDR Override", "page=customers/service-cdr-override.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "");
     }
     if ($this->obj_customer->obj_service->data["typeid_string"] == "phone_trunk") {
         $this->obj_menu_nav->add_item("DDI Configuration", "page=customers/service-ddi.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "");
     }
     if ($this->obj_customer->obj_service->data["typeid_string"] == "data_traffic") {
         $this->obj_menu_nav->add_item("IPv4 Addresses", "page=customers/service-ipv4.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "");
     }
     if (user_permissions_get("customers_write")) {
         $this->obj_menu_nav->add_item("Service Delete", "page=customers/service-delete.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "");
     }
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:27,代碼來源:service-history-cdr.php

示例2: page_output

 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     $this->journalid = @security_script_input('/^[0-9]*$/', $_GET["journalid"]);
     $this->action = @security_script_input('/^[a-z]*$/', $_GET["action"]);
     $this->type = @security_script_input('/^[a-z]*$/', $_GET["type"]);
     // create customer object
     $this->obj_customer = new customer();
     $this->obj_customer->id = $this->id;
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Customer's Details", "page=customers/view.php&id=" . $this->id . "");
     if (sql_get_singlevalue("SELECT value FROM config WHERE name='MODULE_CUSTOMER_PORTAL' LIMIT 1") == "enabled") {
         $this->obj_menu_nav->add_item("Portal Options", "page=customers/portal.php&id=" . $this->id . "");
     }
     $this->obj_menu_nav->add_item("Customer's Journal", "page=customers/journal.php&id=" . $this->id . "", TRUE);
     $this->obj_menu_nav->add_item("Customer's Attributes", "page=customers/attributes.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Orders", "page=customers/orders.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Invoices", "page=customers/invoices.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Credit", "page=customers/credit.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Services", "page=customers/services.php&id=" . $this->id . "");
     if ($this->obj_customer->verify_reseller() == 1) {
         $this->obj_menu_nav->add_item("Reseller's Customers", "page=customers/reseller.php&id_customer=" . $this->obj_customer->id . "");
     }
     $this->obj_menu_nav->add_item("Delete Customer", "page=customers/delete.php&id=" . $this->id . "");
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:27,代碼來源:journal-edit.php

示例3: page_output

 function page_output()
 {
     // javascript: AJAX call to load product information
     $this->requires["javascript"][] = "include/accounts/javascript/invoice-items-edit.js";
     // customer object
     $this->obj_customer = new customer_orders();
     // fetch variables
     $this->obj_customer->id = @security_script_input('/^[0-9]*$/', $_GET["id_customer"]);
     $this->obj_customer->id_order = @security_script_input('/^[0-9]*$/', $_GET["id_order"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     if ($this->obj_customer->id_order) {
         // load order details
         $this->obj_customer->load_data();
         $this->obj_customer->load_data_order();
         // Nav Menu
         $this->obj_menu_nav->add_item("Return to Customer Orders Page", "page=customers/orders.php&id_customer=" . $this->obj_customer->id . "");
         $this->obj_menu_nav->add_item("Order Details", "page=customers/orders-view.php&id_customer=" . $this->obj_customer->id . "&id_order=" . $this->obj_customer->id_order . "", TRUE);
     } else {
         // Nav Menu
         $this->obj_menu_nav->add_item("Return to Customer Orders Page", "page=customers/orders.php&id_customer=" . $this->obj_customer->id . "");
         $this->obj_menu_nav->add_item("New Order", "page=customers/orders-view.php&id_customer=" . $this->obj_customer->id . "&id_order=" . $this->obj_customer->id_order . "", TRUE);
         // define some defaults
         if (empty($this->obj_customer->data_orders["type"])) {
             $this->obj_customer->data_orders["type"] = "product";
         }
     }
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:28,代碼來源:orders-view.php

示例4: execute

 function execute()
 {
     // filter pattern
     $filter = NULL;
     $filter["fieldname"] = "domain_name";
     $filter["type"] = "input";
     $filter["sql"] = "domain_name LIKE '%value%'";
     $filter["defaultvalue"] = security_script_input("/^[A-Za-z0-9\\.\\-]*\$/", $_GET["domain_name"]);
     // establish a new table object
     $this->obj_table = new table();
     $this->obj_table->language = $_SESSION["user"]["lang"];
     $this->obj_table->tablename = "name_servers";
     // define all the columns and structure
     $this->obj_table->add_column("standard", "domain_name", "domain_name");
     $this->obj_table->add_column("standard", "domain_serial", "soa_serial");
     $this->obj_table->add_column("standard", "domain_description", "domain_description");
     // defaults
     $this->obj_table->columns = array("domain_name", "domain_serial", "domain_description");
     // TODO: we should stop querying directly and use the domains class logic, this would also provide support for multiple backends.
     // use seporate zone database
     //$this->obj_table->sql_obj->session_init("mysql", $GLOBALS["config"]["ZONE_DB_HOST"], $GLOBALS["config"]["ZONE_DB_NAME"], $GLOBALS["config"]["ZONE_DB_USERNAME"], $GLOBALS["config"]["ZONE_DB_PASSWORD"]);
     // fetch all the domains
     $this->obj_table->sql_obj->prepare_sql_settable("dns_domains");
     $this->obj_table->sql_obj->prepare_sql_addfield("id", "");
     $this->obj_table->add_filter($filter);
     $this->obj_table->sql_obj->prepare_sql_addorderby("REVERSE(domain_name) LIKE 'apra%'");
     $this->obj_table->sql_obj->prepare_sql_addorderby("domain_description");
     $this->obj_table->sql_obj->prepare_sql_addorderby("domain_name");
     // load data
     $this->obj_table->generate_sql();
     $this->obj_table->load_data_sql();
 }
開發者ID:claybbs,項目名稱:namedmanager,代碼行數:32,代碼來源:domains-ajax.php

示例5: page_output

 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // create customer object
     $this->obj_customer = new customer();
     $this->obj_customer->id = $this->id;
     // define the navigation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Customer's Details", "page=customers/view.php&id=" . $this->id . "", TRUE);
     if (sql_get_singlevalue("SELECT value FROM config WHERE name='MODULE_CUSTOMER_PORTAL' LIMIT 1") == "enabled") {
         $this->obj_menu_nav->add_item("Portal Options", "page=customers/portal.php&id=" . $this->id . "");
     }
     $this->obj_menu_nav->add_item("Customer's Journal", "page=customers/journal.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Attributes", "page=customers/attributes.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Orders", "page=customers/orders.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Invoices", "page=customers/invoices.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Credit", "page=customers/credit.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Services", "page=customers/services.php&id=" . $this->id . "");
     if ($this->obj_customer->verify_reseller() == 1) {
         $this->obj_menu_nav->add_item("Reseller's Customers", "page=customers/reseller.php&id_customer=" . $this->obj_customer->id . "");
     }
     if (user_permissions_get("customers_write")) {
         $this->obj_menu_nav->add_item("Delete Customer", "page=customers/delete.php&id=" . $this->id . "");
     }
     // required pages
     $this->requires["javascript"][] = "include/customers/javascript/addedit_customers.js";
     $this->requires["javascript"][] = "include/customers/javascript/addedit_customer_contacts.js";
     $this->requires["css"][] = "include/customers/css/addedit_customer.css";
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:30,代碼來源:view.php

示例6: page_output

 function page_output()
 {
     // includes
     $this->requires["javascript"][] = "include/javascript/services.js";
     // load rate table
     $this->obj_rate_table = new cdr_rate_table();
     // fetch variables
     $this->obj_rate_table->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Rate Table Details", "page=services/cdr-rates-view.php&id=" . $this->obj_rate_table->id . "");
     $this->obj_menu_nav->add_item("Rate Table Items", "page=services/cdr-rates-items.php&id=" . $this->obj_rate_table->id . "", TRUE);
     if (user_permissions_get("services_write")) {
         $this->obj_menu_nav->add_item("Import Rates", "page=services/cdr-rates-import.php&id=" . $this->obj_rate_table->id . "");
         $this->obj_menu_nav->add_item("Delete Rate Table", "page=services/cdr-rates-delete.php&id=" . $this->obj_rate_table->id . "");
     }
     // fetch the operational mode
     if (isset($_GET["table_display_options"])) {
         if ($_GET["filter_search_summarise"] == "on") {
             $this->mode = "group";
         } else {
             $this->mode = "full";
         }
     } elseif (isset($_SESSION["form"]["cdr_rate_table_items"]["filters"]["filter_search_summarise"])) {
         if (empty($_SESSION["form"]["cdr_rate_table_items"]["filters"]["filter_search_summarise"])) {
             $this->mode = "full";
         } else {
             $this->mode = "group";
         }
     } else {
         $this->mode = "group";
     }
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:33,代碼來源:cdr-rates-items.php

示例7: page_output

 function page_output()
 {
     $this->mode = @security_script_input('/^[0-9]*$/', $_GET["mode"]);
     if (!$this->mode) {
         $this->mode = 1;
     }
 }
開發者ID:claybbs,項目名稱:namedmanager,代碼行數:7,代碼來源:import.php

示例8: page_output

 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Transaction Details", "page=accounts/gl/view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Transaction", "page=accounts/gl/delete.php&id=" . $this->id . "", TRUE);
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:9,代碼來源:delete.php

示例9: page_output

 function page_output()
 {
     $this->obj_traffic_type = new traffic_types();
     // fetch variables
     $this->obj_traffic_type->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Traffic Type Details", "page=services/traffic-types-view.php&id=" . $this->obj_traffic_type->id . "");
     $this->obj_menu_nav->add_item("Delete Traffic Type", "page=services/traffic-types-delete.php&id=" . $this->obj_traffic_type->id . "", TRUE);
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:10,代碼來源:traffic-types-delete.php

示例10: page_output

 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Support Ticket Details", "page=support/view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Support Ticket Journal", "page=support/journal.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Support Ticket", "page=support/delete.php&id=" . $this->id . "", TRUE);
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:10,代碼來源:delete.php

示例11: execute

 function execute()
 {
     $customer_id = @security_script_input('/^[0-9]*$/', $_GET["customerid"]);
     $this->obj_form_invoice = new invoice_form_details();
     $this->obj_form_invoice->type = "ar";
     $this->obj_form_invoice->invoiceid = 0;
     $this->obj_form_invoice->customer_id = $customer_id;
     $this->obj_form_invoice->processpage = "accounts/ar/invoice-edit-process.php";
     $this->obj_form_invoice->execute();
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:10,代碼來源:invoice-add.php

示例12: page_output

 function page_output()
 {
     $this->obj_customer = new customer_services();
     // fetch variables
     $this->obj_customer->id = @security_script_input('/^[0-9]*$/', $_GET["id_customer"]);
     $this->obj_customer->id_service_customer = @security_script_input('/^[0-9]*$/', $_GET["id_service_customer"]);
     $this->id_service_period = @security_script_input('/^[0-9]*$/', $_GET["id_service_period"]);
     // load service data
     $this->obj_customer->load_data_service();
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:10,代碼來源:service-history-cdr-export.php

示例13: execute

 function execute()
 {
     $customer_id = @security_script_input('/^[0-9]*$/', $_GET["customerid"]);
     $this->obj_form_credit = new credit_form_details();
     $this->obj_form_credit->type = "ar_credit";
     $this->obj_form_credit->credit_id = 0;
     $this->obj_form_credit->customer_id = $customer_id;
     $this->obj_form_credit->processpage = "accounts/ar/credit-edit-process.php";
     $this->obj_form_credit->execute();
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:10,代碼來源:credit-add.php

示例14: page_output

 function page_output()
 {
     // fetch variables
     $this->id = security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("User's Details", "page=user/user-view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("User's Permissions", "page=user/user-permissions.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete User", "page=user/user-delete.php&id=" . $this->id . "", TRUE);
 }
開發者ID:kissingwolf,項目名稱:namedmanager,代碼行數:10,代碼來源:user-delete.php

示例15: page_output

 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Employee's Details", "page=hr/staff-view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Timesheet", "page=hr/staff-timebooked.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Employee's Journal", "page=hr/staff-journal.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Employee", "page=hr/staff-delete.php&id=" . $this->id . "", TRUE);
 }
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:11,代碼來源:staff-delete.php


注:本文中的security_script_input函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。