Beispiel #1
0
function popup()
{
    $users = new usersMenus();
    $tpl = new templates();
    if (!$users->AsMailBoxAdministrator) {
        $error = $tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
        echo "<H3>{$error}<H3>";
        die;
    }
    $pourc = 0;
    $table = Status(0);
    $color = "#5DD13D";
    $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td width=1%><div id='wait_image_mbx'><img src='img/wait.gif'></div>\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_mbx_compile'>\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='MBX_textlogs' style='width:99%;height:320px;overflow:auto'></div>") . "";
    echo $tpl->_ENGINE_parse_body($html);
}
Beispiel #2
0
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");
}
Beispiel #3
0
function popup()
{
    $users = new usersMenus();
    $tpl = new templates();
    $page = CurrentPageName();
    if (!$users->AsPostfixAdministrator) {
        $error = $tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
        echo "<H3>{$error}<H3>";
        die;
    }
    $pourc = 0;
    $table = Status(0);
    $color = "#5DD13D";
    $html = "\n\t<div class=explain>{APPLY_SETTINGS_POSTFIX}</div>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td width=1%><div id='wait_image'><img src='img/wait.gif'></div>\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_compile'>\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<div id='textlogs' style='width:99%;height:120px;overflow:auto'></div>\n\t\n\t<script>\n\tfunction StartCompilePostfix(){\n\t\tsetTimeout('ApplyAmavis()',1000);\n\t}\n\n\tfunction finish(){\n\t\tChangeStatus(100);\n\t\tdocument.getElementById('wait_image').innerHTML='&nbsp;';\n\t\tdocument.getElementById('wait_image').innerHTML='&nbsp;';\n\t\tif(document.getElementById('admin_perso_tabs')){RefreshTab('admin_perso_tabs');}\n\t\tif(document.getElementById('main_config_postfix')){RefreshTab('main_config_postfix');}\n\t\tYahooWinHide();\n\t\t\n\t\t\n\t}\n\t\n\tfunction ApplyAmavis(){\n\t\tChangeStatus(10);\n\t\tLoadAjaxSilent('textlogs','{$page}?ApplyAmavis=yes');\n\t\t}\n\t\t\n\n\t\t\n\tvar x_ChangeStatus= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tdocument.getElementById('progression_postfix_compile').innerHTML=tempvalue;\n\t}\t\t\n\t\t\n\t\t\n\tfunction ChangeStatus(number){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('Status',number);\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_ChangeStatus);\t\n\t}\n\n\t\n\tStartCompilePostfix();\n\t</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html, "postfix.index.php");
}
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");
}
    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"])) {
Beispiel #6
0
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'));
}
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"])) {
Beispiel #8
0
function popup_logs()
{
    $pourc = 0;
    $table = Status(0);
    $color = "#5DD13D";
    $html = "\n\n<table style='width:100%'>\n<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_samba'>\n\t\t\t\t\t\t{$table}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</td>\n</tr>\n<tr>\n<td>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='top' width=1%><div id='smbwait'><img src='img/wait-clock.gif'></div></td>\n\t\t<td valign='top'>\n\t\t<div id='popup-logs' style='width:100%;background-color:white;border:1px solid #CCCCCC;height:300px;overflow:auto;padding:4px'>{SID_CHANGE_PROCESS}</div></td>\n\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t</td>\n</tr>\n</table>\n";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, "samba.index.php");
}
Beispiel #9
0
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'));
}
Beispiel #10
0
    $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';
    }
Beispiel #11
0
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"])) {
Beispiel #12
0
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;}
Beispiel #13
0
function Sessions()
{
    $check = array();
    $check['status'] = Status();
    $check['user'] = User();
    $check['moderator'] = Moderator();
    $check['admin'] = Admin();
    $check['session'] = $_SESSION;
    return $check;
}