function section_security() { $page = CurrentPageName(); if (CACHE_SESSION_GET(__FUNCTION__, __FILE__, 120)) { return; } $users = new usersMenus(); $superuser = Paragraphe("superuser-64.png", "{account}", "{accounts_text}", "javascript:Loadjs('artica.settings.php?js=yes&func-AccountsInterface=yes');"); $RootPasswordChangedTXT = Paragraphe('cop-lock-64.png', "{root_password_not_changed}", "{root_password_not_changed_text}", "javascript:Loadjs('system.root.pwd.php')", "{root_password_not_changed_text}"); if ($users->SAMBA_INSTALLED) { $RootPasswordSamba = Paragraphe('members-priv-64.png', "{domain_admin}", "{domain_admin_text}", "javascript:Loadjs('samba.index.php?script=yes&behavior-admin=yes')", "{domain_admin_text}"); } else { $RootPasswordSamba = Paragraphe('members-priv-64-grey.png', "{domain_admin}", "{domain_admin_text}", "", "{domain_admin_text}"); } $systemusers = Paragraphe('member-64.png', "{system_users}", "{system_users_informations}", "javascript:Loadjs('system.users.php')", "{system_users_informations}"); $firewall = Paragraphe('folder-64-fw.png', "{firewall_behavior}", "{firewall_behavior_text}", "javascript:Loadjs('iptables.config.php')", "{firewall_behavior_text}"); $tr[] = $superuser; $tr[] = $RootPasswordChangedTXT; $tr[] = $RootPasswordSamba; $tr[] = $systemusers; $tr[] = $firewall; $tr[] = kaspersky(); $tr[] = statkaspersky(); $tr[] = clamav(); $tr[] = icon_troubleshoot(); $tr[] = certificate(); $tr[] = icon_externalports(); $tr[] = incremental_backup(); $tables = CompileTr2($tr); $t = time(); $html = "\n<table style='width:100%'>\n<tr>\n\t<td valign='top'><div id='{$t}'></div></td>\n\t<td valign='top'>{$tables}</td>\n</tr>\n</table>\n\n<script>\n\tLoadAjax('{$t}','{$page}?function=section_computer_header',true);\n</script>\n"; $tpl = new templates(); CACHE_SESSION_SET(__FUNCTION__, __FILE__, $tpl->_ENGINE_parse_body($html)); }
function main_page(){ if(isset($_SESSION["$key_cache"])){return $_SESSION["$key_cache"];} $clamav=clamav(); $kaspersky=kaspersky(); $fetchmail=fetchmail(); $samba1=samba_domain(); $system_links=icon_system(); $samab=samba_links(); $applis=applis(); $K=statkaspersky(); $sysinfos=sysinfos(); $cert=certificate(); $ar_perf=atica_perf(); $apt=apt(); $sock=new sockets(); $backup=incremental_backup(); $firstsettings=FirstWizard(); $wizard_postmaster=postmaster(); $Postfix_links=Postfix_links(); $button_messaging=button_messaging(); $users=new usersMenus(); $icon_events=icon_events(); $nic_settings=nic_settings(); $icon_memory=icon_memory(); $icon_view_queue=icon_view_queue(); $icon_amavis=icon_amavisdnew(); $icon_openvpn=icon_openvpn(); $icon_adduser=icon_adduser(); $scancomputers=scancomputers(); $icon_harddrive=icon_harddrive(); $postfix_events=postfix_events(); $postfix_reports=postfix_reports(); $icon_troubleshoot=icon_troubleshoot(); $icon_update_clamav=icon_update_clamav(); $dmidecode=dmidecode(); $external_ports=icon_externalports(); $icon_update_artica=icon_update_artica(); $icon_update_spamassassin_blacklist=icon_update_spamassassin_blacklist(); $sharenfs=sharenfs(); $clientnfs=clientnfs(); $wizard_kasperAPPSMTP=wizard_kaspersky_appliance_smtp(); $wizard_backup=wizard_backup(); if(!$users->POSTFIX_INSTALLED){$button_messaging=null;} if($users->KASPERSKY_SMTP_APPLIANCE){ $clamav=null; $icon_amavis=null; $icon_update_spamassassin_blacklist=null; } if($_COOKIE["configure_your-server-tab"]==null){$_COOKIE["configure_your-server-tab"]="section_system";} $form_display["section_system"]="none"; $form_display["section_apps"]="none"; $form_display["section_security"]="none"; $form_display["section_wizard"]="none"; $form_display["section_messaging"]="none"; $form_display[$_COOKIE["configure_your-server-tab"]]="block"; $form_system=" <div id='section_system' style='display:{$form_display["section_system"]};width:100%;height:300px;overflow:auto'> <table style='width:100%'> <tr> <td valign='top' width=1%> $sysinfos$ar_perf$icon_events$icon_openvpn$scancomputers$sharenfs$clientnfs </td> <td valign='top'> $system_links$nic_settings$icon_memory$icon_harddrive$dmidecode$icon_adduser</td> </tr> </table> </div> "; $form_apps=" <div id='section_apps' style='display:{$form_display["section_apps"]}'> <table style='width:100%'> <tr> <td valign='top' width=1%> $applis$apt </td> <td valign='top' width=1%>$icon_update_clamav$icon_update_spamassassin_blacklist$icon_update_artica</td> </tr> </table> </div> "; $form_security=" <div id='section_security' style='display:{$form_display["section_security"]}'> <table style='width:100%'> <tr> <td valign='top' width=1%> $kaspersky$K$clamav$icon_troubleshoot </td> <td valign='top' width=1%> $cert$external_ports$backup </td> </tr> </table> </div> "; $form_wizard=" <div id='section_wizard' style='display:{$form_display["section_wizard"]}'> <table style='width:100%'> <tr> <td valign='top' width=1%> $wizard_kasperAPPSMTP$firstsettings$wizard_postmaster$icon_adduser </td> <td valign='top' width=1%> $wizard_backup$samab$samba1 </td> </tr> </table> </div> "; $section_messaging="<div id='section_messaging' style='display:{$form_display["section_messaging"]}'> <table style='width:100%'> <tr> <td valign='top' width=1%> $Postfix_links </td> <td valign='top' width=1%> $icon_view_queue$icon_amavis$postfix_events$postfix_reports </td> </tr> </table> </div> "; $buttons=button_system().button_apps().button_security().button_wizard().$button_messaging; $buttons=RoundedLightWhite($buttons); $html=" <table style='width:100%;style='margin:-2px;'> <tr> <td valign='top' style='background-color:#005446;padding:3px;'> $buttons </td> <td valign='top' style='padding:3px;'><div style='width:510px'>".RoundedLightWhite($form_system.$form_apps.$form_security.$form_wizard.$section_messaging)."</div> </td> </tr> </table> "; $_SESSION["$key_cache"]=$html; return $html; }
function section_security() { $tr[] = kaspersky(); $tr[] = statkaspersky(); $tr[] = clamav(); $tr[] = icon_troubleshoot(); $tr[] = certificate(); $tr[] = icon_externalports(); $tr[] = incremental_backup(); $tables[] = "<table style='width:100%' class=form><tr>"; $t = 0; while (list($key, $line) = each($tr)) { $line = trim($line); if ($line == null) { continue; } $t = $t + 1; $tables[] = "<td valign='top'>{$line}</td>"; if ($t == 2) { $t = 0; $tables[] = "</tr><tr>"; } } if ($t < 2) { for ($i = 0; $i <= $t; $i++) { $tables[] = "<td valign='top'> </td>"; } } $links = @implode("\n", $tables); $heads = section_computer_header(); $html = "\n<table style='width:100%'>\n<tr>\n\t<td valign='top'>{$heads}</td>\n\t<td valign='top'>{$links}</td>\n</tr>\n</table>\n"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
print ipLookup($domain); } if ($a == "madwireSystem") { print check_madwire_ip($domain); } if ($a == "bcStyles") { print check_bc_styles($domain); } if ($a == "dnsA") { print "<pre>" . diga($domain) . "</pre>"; } if ($a == "whois") { print "<pre>" . whois($domain) . "</pre>"; } if ($a == "dnsMX") { print "<pre>" . digmx($domain) . "</pre>"; } if ($a == "ipWhois") { print "<pre>" . ipWhois($domain) . "</pre>"; } if ($a == "cert") { print "<pre>" . certificate($domain) . "</pre>"; } if ($a == "ipgeo") { print "<pre>" . ipgeo($domain) . "</pre>"; } } else { include 'views/_header.php'; include 'views/home.php'; include 'views/_footer.php'; }
function certificateDispatch($op) { if (isset($_POST['undo'])) { $op = 'certificate'; } if (isset($_POST['undo_report'])) { $op = 'report_certificate'; } if (isset($_POST['certificate_course_selection'])) { $op = 'view_report_certificate'; } if (isset($_POST['certificate_course_selection_back'])) { $op = 'report_certificate'; } switch ($op) { case "certificate": certificate(); break; case "addcertificate": editcertificate(); break; case "modcertificate": editcertificate(true); break; case "savecertificate": savecertificate(); break; case "delcertificate": delcertificate(); break; case "elemcertificate": list_element_certificate(); break; case "report_certificate": report_certificate(); break; case "view_report_certificate": view_report_certificate(); break; case "del_report_certificate": del_report_certificate(); break; case "del_gen_certificate": del_gen_certificate(); break; case "send_certificate": send_certificate(); break; case "print_certificate": print_certificate(); break; case "preview": preview(); break; } }
exit; } if (isset($_GET["gen-certif-js"])) { gen_certif_js(); exit; } if (isset($_GET["gen-certif-popup"])) { gen_certif_popup(); exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["certificate"])) { certificate(); exit; } if (isset($_GET["parameters"])) { parameters_main(); exit; } if (isset($_GET["popup-settings"])) { parameters_main(); exit; } if (isset($_POST["EnableSSLBump"])) { parameters_enable_save(); exit; } if (isset($_POST["EnableSquidSSLCRTD"])) {
include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.ssl.certificate.inc'); if(posix_getuid()==0){die();} $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["gen-certif-js"])){gen_certif_js();exit;} if(isset($_GET["gen-certif-popup"])){gen_certif_popup();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["certificate"])){certificate();exit;} if(isset($_GET["parameters"])){parameters_main();exit;} if(isset($_GET["popup-settings"])){parameters_main();exit;} if(isset($_POST["EnableSSLBump"])){parameters_enable_save();exit;} if(isset($_POST["EnableSquidSSLCRTD"])){parameters_certificate_save();exit;} if(isset($_GET["whitelist"])){whitelist_popup();exit;} if(isset($_GET["whitelist-list"])){whitelist_list();exit;} if(isset($_GET["website_ssl_wl"])){whitelist_add();exit;} if(isset($_GET["website_ssl_eble"])){whitelist_enabled();exit;} if(isset($_GET["website_ssl_del"])){whitelist_del();exit;} if(isset($_POST["AllowSquidSSLDropBox"])){AllowSquidSSLDropBox();exit;} if(isset($_POST["AllowSquidSSLSkype"])){AllowSquidSSLSkype();exit;} if(isset($_GET["add-params"])){parameters_main();exit;} if(isset($_GET["help"])){help();exit;}