本文整理汇总了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();