本文整理匯總了PHP中main_switch函數的典型用法代碼示例。如果您正苦於以下問題:PHP main_switch函數的具體用法?PHP main_switch怎麽用?PHP main_switch使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了main_switch函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: usersMenus
<?php
include_once('ressources/class.templates.inc');
include_once('ressources/class.ldap.inc');
include_once('ressources/class.users.menus.inc');
$usersmenus=new usersMenus();
if($usersmenus->AsArticaAdministrator==true){}else{header('location:users.index.php');exit;}
if(isset($_GET["tab"])){main_switch();exit;}
if(isset($_GET["ajaxmenu"])){echo popup();exit;}
if(isset($_GET["js"])){main_ajax();exit;}
if(isset($_GET["AdressBookPopup"])){echo AdressBookPopup();exit;}
if(isset($_GET["EnableRemoteAddressBook"])){AdressBookPopup_save();exit;}
page();
function page(){
$page=CurrentPageName();
$usersmenus=new usersMenus();
if($usersmenus->AsArticaAdministrator==true){}else{header('location:users.index.php');exit;}
$sys=new systeminfos();
$distri=$sys->ditribution_name;
$html="
<div class=caption>Distribution: <strong>$distri</strong> Kernel: $sys->kernel_version LIBC: $sys->libc_version</div>
<table style='width:600px' align=center>
<tr>
<td width=1% valign='top'>
<table>
<tr>
示例2: usersMenus
<?php
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.postfix-multi.inc';
include_once 'ressources/class.kas-filter.inc';
$users = new usersMenus();
$tpl = new templates();
if (!$users->AsOrgPostfixAdministrator) {
echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');");
die;
}
if (isset($_GET["main"])) {
main_switch();
exit;
}
if (isset($_GET["popup"])) {
main_tabs();
exit;
}
if (isset($_GET["ACTION_SPAM_MODE"])) {
SAVE();
exit;
}
if (isset($_GET["OPT_FILTRATION_ON"])) {
SAVE();
exit;
}
if (isset($_GET["OPT_SPAM_RATE_LIMIT"])) {
SAVE();
示例3: tabs
if(isset($_GET["MainParams-js"])){MainParams_js();exit;}
if(isset($_GET["MainParams-tab"])){MainParams_tab();exit;}
if(isset($_GET["MainParams-popup"])){MainParams_popup();exit;}
if(isset($_GET["port-js"])){port_js();exit;}
if(isset($_GET["port-tab"])){port_tab();exit;}
if(isset($_GET["port-popup"])){port_popup();exit;}
if(isset($_GET["delete-virtual-js"])){delete_virtual_js();exit;}
if(isset($_POST["delete-virtual-perform"])){delete_virtual_perform();exit;}
if(isset($_GET["ports-list"])){main_switch_ports();exit;}
if(isset($_GET["switch-ports-table"])){main_switch();exit;}
if(isset($_POST["ipaddr"])){port_save();exit;}
if(isset($_POST["Uninstall"])){Uninstall();exit;}
if(isset($_POST["VirtualSwitchEnabled"])){VirtualSwitchEnabled();exit;}
tabs();
function main_switch_status(){
$switch=$_GET["eth"];
$tpl=new templates();
$sock=new sockets();
$datas=$sock->getFrameWork("vde.php?switch-main-status=$switch");
$ini=new Bs_IniHandler();