本文整理汇总了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 . "");
}
}
示例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 . "");
}
示例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";
}
}
}
示例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();
}
示例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";
}
示例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";
}
}
示例7: page_output
function page_output()
{
$this->mode = @security_script_input('/^[0-9]*$/', $_GET["mode"]);
if (!$this->mode) {
$this->mode = 1;
}
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
示例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);
}