本文整理汇总了PHP中Status函数的典型用法代码示例。如果您正苦于以下问题:PHP Status函数的具体用法?PHP Status怎么用?PHP Status使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Status函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: start
function start()
{
$users = new usersMenus();
$tpl = new templates();
if (!$users->AsPostfixAdministrator) {
$error = $tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
echo "<H3>{$error}<H3>";
die;
}
$pourc = 0;
$table = Status(0);
$color = "#5DD13D";
$html = "<H1>{APP_AMAVISD_NEW}</H1>\n\t<p class=caption>{APPLY_SETTINGS_AMAVIS}</p>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td width=1%><span id='waitamavis'><img src='img/wait.gif'></span>\n\t\t</td>\n\t\t<td width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<div style='width:100%;background-color:white;padding-left:0px;border:1px solid {$color}'>\n\t\t\t\t\t<div id='progression_amavis'>\n\t\t\t\t\t\t<div style='width:{$pourc}%;text-align:center;color:white;padding-top:3px;padding-bottom:3px;background-color:{$color}'>\n\t\t\t\t\t\t\t<strong style='color:#BCF3D6;font-size:12px;font-weight:bold'>{$pourc}%</strong></center>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t\t</tr>\n\t\t\t</table>\t\t\n\t\t</td>\n\t</tr>\n\t</table>\n\t<br>\n\t" . RoundedLightWhite("<div id='amavistextlogs' style='width:99%;height:120px;overflow:auto'></div>") . "";
echo $tpl->_ENGINE_parse_body($html, "amavis.index.php");
}
示例2: corrupt
function corrupt()
{
$users = new usersMenus();
$tpl = new templates();
if (privs()) {
$error = $tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
echo "<H3>{$error}<H3>";
die;
}
$users = new usersMenus();
$corrupt = $users->POSTFIX_QUEUE["corrupt"];
$tpl = new templates();
$title = $tpl->_ENGINE_parse_body("{APP_POSTFIX}");
$warning = $tpl->_ENGINE_parse_body("{$corrupt} {corrupt} mails\\n {corrupt_queue_confirm}", "postfix.index.php");
$pourc = 0;
$table = Status(0);
$color = "#5DD13D";
$html = "<H1>{APP_POSTFIX}: {$corrupt} {corrupt} eMail(s)</H1>\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td width=1%><span id='wait'><img src='img/wait.gif'></span>\n\t\t</td>\n\t\t<td width=99%>\n\t\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<div style='width:100%;background-color:white;padding-left:0px;border:1px solid {$color}'>\n\t\t\t\t\t<div id='progression_postfix'>\n\t\t\t\t\t\t<div style='width:{$pourc}%;text-align:center;color:white;padding-top:3px;padding-bottom:3px;background-color:{$color}'>\n\t\t\t\t\t\t\t<strong style='color:#BCF3D6;font-size:12px;font-weight:bold'>{$pourc}%</strong></center>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t\t</tr>\n\t\t\t</table>\t\t\n\t\t</td>\n\t</tr>\n\t</table>\n\t<br>\n\t" . RoundedLightWhite("<div id='textlogs' style='width:99%;height:120px;overflow:auto'></div>") . "";
echo $tpl->_ENGINE_parse_body($html, "postfix.index.php");
}
示例3: main_switch
exit;
}
if (isset($_GET["main"])) {
main_switch();
exit;
}
if (isset($_GET["script"])) {
main_switch_scripts();
exit;
}
if (isset($_GET["save"])) {
save();
exit;
}
if (isset($_GET["status"])) {
Status();
exit;
}
if (isset($_GET["DelCompon"])) {
DelCompon();
exit;
}
if (isset($_POST["AddCompon"])) {
AddCompon();
exit;
}
if (isset($_GET["popup"])) {
popup();
exit;
}
if (isset($_GET["UpdateRetransloatorNow"])) {
示例4: ExportStatus
function ExportStatus()
{
if (!is_file("ressources/logs/export.status.conf")) {
return null;
}
$ini = new Bs_IniHandler("ressources/logs/export.status.conf");
echo Status($ini->get('STATUS', 'progress'), $ini->get('STATUS', 'text'));
}
示例5: usersMenus
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.artica.inc';
include_once 'ressources/class.kav4proxy.inc';
$usersmenus = new usersMenus();
if (!$usersmenus->SQUID_INSTALLED && !$usersmenus->KAV4PROXY_INSTALLED && !$usersmenus->AsSquidAdministrator) {
echo header('location:users.index.php');
exit;
}
if (isset($_POST['upload'])) {
main_license_LicenceUploaded();
exit;
}
if (isset($_GET["Status"])) {
echo Status();
exit;
}
if (isset($_GET["main"])) {
switchTab();
exit;
}
if (isset($_GET["SaveConfStandard"])) {
SaveConfStandard();
exit;
}
if (isset($_GET["kav4proxy_addnewgroup"])) {
main_rules_add();
exit;
}
if (isset($_GET["LoadGroup"])) {
示例6: restore_status
function restore_status()
{
if (!is_file("ressources/logs/exec.dar.find.restore.ini")) {
echo Status(10, "{waiting}...");
return null;
}
$ini = new Bs_IniHandler("ressources/logs/exec.dar.find.restore.ini");
echo Status($ini->get('STATUS', 'progress'), $ini->get('STATUS', 'text'));
}
示例7: Clean
$ticket = $DB->GetRow("SELECT * FROM tickets WHERE id='" . Clean($_GET['ticket'], 1) . "'");
?>
<h1>Ticket #<?php
echo $ticket['id'];
?>
</h1>
<table class="ticketsys_newticket">
<tr>
<td class="fieldname" width="70px">Customer:</td>
<td><?php
echo UserInfo($ticket['customer'], 'firstname') . ' ' . UserInfo($ticket['customer'], 'lastname');
?>
</td>
<td class="fieldname" width="50px">Status:</td>
<td><?php
echo Status($ticket['status']);
?>
</td>
</tr>
<td class="fieldname">Opened:</td>
<td><?php
echo date("m-d-Y", $ticket['date']);
?>
</td>
<td class="fieldname">Agent:</td>
<td><?php
if ($ticket['assignedto']) {
echo $ticket['assignedto'];
} else {
echo 'Unassigned';
}
示例8: popup
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.main_cf.inc';
include_once 'ressources/class.main_cf_filtering.inc';
include_once 'ressources/class.milter.greylist.inc';
include_once 'ressources/class.policyd-weight.inc';
if (isset($_GET["popup"])) {
popup();
exit;
}
if (isset($_GET["EnableBlockUsersTroughInternet"])) {
save();
exit;
}
if (isset($_GET["Status"])) {
echo Status($_GET["Status"]);
exit;
}
if (isset($_GET["ApplyAmavis"])) {
compile_amavis();
exit;
}
if (isset($_GET["compile_kavmilter"])) {
compile_kavmilter();
exit;
}
if (isset($_GET["compile_kasmilter"])) {
compile_kasmilter();
exit;
}
if (isset($_GET["compile_postfix_save"])) {
示例9:
if(isset($_GET["ComputersAllowDHCPLeases"])){ComputersAllowDHCPLeasesSave();exit;}
if(isset($_GET["ComputersAllowNmap"])){ComputersAllowNmapSave();exit;}
if(isset($_GET["browse-computers"])){index();exit;}
if(isset($_GET["browse-networks"])){networks();exit;}
if(isset($_GET["browse-networks-add"])){networks_add();exit;}
if(isset($_GET["network-scanner-execute"])){network_scanner_execute();exit;}
if(isset($_GET["computer-refresh"])){echo computer_list();exit;}
if(isset($_GET["calc-cdir-ip"])){echo network_calc();exit;}
if(isset($_GET["calc-cdir-ip-add"])){echo networks_add_save();exit;}
if(isset($_GET["NetworkDelete"])){networks_del();exit;}
if(isset($_GET["DeleteAllcomputers"])){computers_delete();exit;}
if(isset($_GET["Status"])){Status();exit;}
if(isset($_GET["view-scan-logs"])){events();exit;}
if(isset($_GET["NetWorksDisable"])){networks_disable();exit;}
if(isset($_GET["NetWorksEnable"])){networks_enable();exit;}
if(isset($_GET["artica-import-popup"])){artica_import_popup();exit;}
if(isset($_GET["artica-import-delete"])){artica_import_delete();exit;}
if(isset($_GET["artica-importlist-popup"])){artica_importlist_popup();exit;}
if(isset($_GET["artica_ip_addr"])){artica_import_save();exit;}
if(isset($_POST["popup_import_list"])){artica_importlist_perform();exit;}
if(isset($_GET["selection-computers"])){selection_popup();exit;}
if(isset($_GET["selection-list"])){selection_list();exit;}
示例10: Sessions
function Sessions()
{
$check = array();
$check['status'] = Status();
$check['user'] = User();
$check['moderator'] = Moderator();
$check['admin'] = Admin();
$check['session'] = $_SESSION;
return $check;
}