Esempio n. 1
0
function switch_script()
{
    switch ($_GET["script"]) {
        case "winzip":
            popup_script();
            break;
        default:
            break;
    }
}
Esempio n. 2
0
function switch_script()
{
    switch ($_GET["script"]) {
        case "quarantine":
            popup_script();
            break;
        default:
            break;
    }
}
Esempio n. 3
0
function switch_script()
{
    $users = new usersMenus();
    if ($users->AsArticaAdministrator == true or $users->AsPostfixAdministrator or $user->AsSquidAdministrator) {
    } else {
        exit;
    }
    switch ($_GET["script"]) {
        case "yes":
            popup_script();
            break;
        default:
            break;
    }
}
Esempio n. 4
0
session_start();
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.user.inc';
include_once 'ressources/class.cron.inc';
if (isset($_GET["uid"]) && !isset($_GET["userid"])) {
    $_GET["userid"] = $_GET["uid"];
}
if (!permissions()) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["script"])) {
    popup_script();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["remote_imap_server"])) {
    add_account();
    exit;
}
if (isset($_GET["imapsynclist"])) {
    imapsynclist();
    exit;
}
if (isset($_GET["imapSyncDelete"])) {
Esempio n. 5
0
session_start();
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.user.inc');
	include_once('ressources/class.cron.inc');

	
	
	if((isset($_GET["uid"])) && (!isset($_GET["userid"]))){$_GET["userid"]=$_GET["uid"];}
	
	if(!permissions()){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	if(isset($_GET["script"])){popup_script();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["remote_imap_server"])){add_account();exit;}
	if(isset($_GET["imapsynclist"])){imapsynclist();exit;}
	if(isset($_GET["imapSyncDelete"])){imapSyncDelete();exit;}
	if(isset($_GET["AddForm"])){add_popup();exit;}
	if(isset($_GET["events"])){events();exit;}
	if(isset($_GET["schedule"])){schedule();exit;}
	if(isset($_GET["imapsync_save_schedule"])){schedule_save();exit;}
	if(isset($_GET["imapRun"])){imapRun();exit;}
	if(isset($_GET["imapStop"])){imapStop();exit;}
	if(isset($_GET["toolbox"])){toolbox();exit;}
	if(isset($_GET["imapsync-folders"])){folders_sync_form();exit;}
	if(isset($_GET["folder-to-sync"])){folders_sync_add();exit;}
	if(isset($_GET["folder-to-sync-del"])){folders_sync_del();exit;}
	if(isset($_GET["imapsync-adv"])){adv_options_form();exit;}
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	
	if(isset($_GET["popup-script"])){popup();exit;}
	if(isset($_GET["popup-tabs"])){popup_tabs();exit;}
	
	
	if(isset($_GET["popup-add-proxy"])){popup_add_proxy();exit;}
	if(isset($_GET["proxy_addr"])){popup_add_proxy_save();exit;}
	if(isset($_GET["proxylist"])){popup_add_proxy_list();exit;}
	if(isset($_GET["del_proxy_addr"])){popup_del_proxy_list();exit;}
	if(isset($_GET["view"])){popup_script();exit;}
	if(isset($_GET["popup-view-script"])){popup_script();exit;}
	
	if(isset($_GET["final_proxy_addr"])){popup_add_final_proxy_save();exit;}
	if(isset($_GET["popup-final-proxy"])){popup_add_final_proxy();exit;}
	if(isset($_GET["del_proxy_final_addr"])){popup_del_final_proxy_list();exit;}
	
	
	if(isset($_GET["localHostOrDomainIs"])){popup_localHostOrDomainIs();exit;}
	if(isset($_GET["localHostOrDomainIs-add"])){popup_localHostOrDomainIs_add();exit;}
	if(isset($_GET["localHostOrDomainIs-list"])){popup_localHostOrDomainIs_list();exit;}
	if(isset($_GET["localHostOrDomainIs-del"])){popup_localHostOrDomainIs_del();exit;}
	
	if(isset($_GET["isInNet"])){popup_isInNet();exit;}
	if(isset($_GET["isInNet-add"])){popup_isInNet_add();exit;}
	if(isset($_GET["isInNet-list"])){popup_isInNet_list();exit;}
	if(isset($_GET["isInNet-del"])){popup_isInNet_del();exit;}