예제 #1
0
	include_once('ressources/class.main_cf.inc');
	include_once('ressources/class.system.network.inc');
	include_once('ressources/class.mysql.inc');
	include_once('ressources/class.cron.inc');
	include_once('ressources/class.backup.inc');

$user=new usersMenus();
	if($user->AsSystemAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["show_backuped_folders"])){FOLDERS_BACKUPED();exit;}
	if(isset($_GET["ExecBackupTemporaryPath"])){BACKUP_OPTIONS_SAVE();exit;}
	if(isset($_GET["BACKUP_TASKS_LISTS"])){tasks_list();exit;}
	if(isset($_GET["show_tasks"])){show_tasks();exit;}
	if(isset($_GET["BACKUP_TASK_RUN"])){BACKUP_TASK_RUN();exit;}
	if(isset($_GET["backup-sources"])){BACKUP_SOURCES();exit;}
	if(isset($_GET["DeleteBackupSource"])){BACKUP_SOURCES_DELETE();exit;}
	if(isset($_GET["DeleteBackupTask"])){BACKUP_TASK_DELETE();exit;}
	if(isset($_GET["adv-options"])){BACKUP_OPTIONS();exit;}
	if(isset($_GET["backup-tests"])){BACKUP_TASK_TEST();exit;}
	if(isset($_GET["backup_stop_imap"])){BACKUP_SOURCES_SAVE_OPTIONS();exit;}
	if(isset($_GET["FOLDER_BACKUP"])){FOLDER_BACKUP_JS();exit;}
	if(isset($_GET["FOLDER_BACKUP_POPUP"])){FOLDER_BACKUP_POPUP();exit;}
	if(isset($_GET["BACKUP_FOLDER_ENABLE"])){BACKUP_FOLDER_ENABLE();exit;}
	if(isset($_GET["FOLDER_BACKUP_DELETE"])){FOLDERS_BACKUPED_DELETE();exit;}
	if(isset($_GET["TASK_EVENTS_DETAILS"])){TASK_EVENTS_DETAILS();exit;}
예제 #2
0
include_once 'ressources/class.mysql.inc';
include_once 'ressources/class.cron.inc';
include_once 'ressources/class.backup.inc';
$user = new usersMenus();
if ($user->AsSystemAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["show_backuped_folders"])) {
    FOLDERS_BACKUPED();
    exit;
}
if (isset($_GET["ExecBackupTemporaryPath"])) {
    BACKUP_OPTIONS_SAVE();
    exit;
}
if (isset($_GET["BACKUP_TASKS_LISTS"])) {
    tasks_list();
    exit;
}
if (isset($_GET["show_tasks"])) {
    show_tasks();
    exit;
}
if (isset($_GET["BACKUP_TASK_RUN"])) {