<?php

include_once 'ressources/class.templates.inc';
$GLOBALS["LOGS_PATH"] = "/usr/share/artica-postfix/ressources/logs/squid.cache.center.empty.txt";
$GLOBALS["PROGRESS_FILE"] = "/usr/share/artica-postfix/ressources/logs/squid.cache.center.empty.progress";
$GLOBALS["YAHOOWIN"] = "YahooWin5";
if (isset($_GET["logs-starter"])) {
    logs_starter();
    exit;
}
if (isset($_GET["step1"])) {
    popup();
    exit;
}
if (isset($_POST["restore-path"])) {
    restorefrom();
    exit;
}
if (isset($_POST["restore-logs"])) {
    LogsDetails();
    exit;
}
if (isset($_GET["ShowProgress-js"])) {
    ShowProgress_js();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    header("content-type: application/x-javascript");
Example #2
0
	include_once('ressources/class.mysql.inc');	
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.cyrus.inc');
	include_once('ressources/class.cron.inc');
	
	$users=new usersMenus();
	if(!$users->AsPostfixAdministrator){
		$tpl=new templates();
		$error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
		echo "alert('$error')";
		die();
	}
	
	if(isset($_GET["logs-starter"])){logs_starter();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_POST["restore-path"])){restorefrom();exit;}
	if(isset($_POST["restore-logs"])){restorelogs();exit;}
	if(isset($_GET["ShowProgress-js"])){ShowProgress_js();exit;}
	
popup();


function ShowProgress_js(){
	$t=$_GET["t"];
	$tt=time();
	$page=CurrentPageName();
	$tpl=new templates();
	$titleAdd=null;
	$please_wait=$tpl->javascript_parse_text("{please_wait}");
	$sock=new sockets();
	$ISRunAR=unserialize(base64_decode($sock->getFrameWork("zarafa.php?restore-process-array=yes")));