Пример #1
0
    exit;
}
if (isset($_GET["install-status"])) {
    install_status();
    exit;
}
if (isset($_GET["is31"])) {
    is31();
    exit;
}
if (isset($_GET["current"])) {
    page();
    exit;
}
if (isset($_GET["stables"])) {
    stables();
    exit;
}
tabs();
function is31()
{
    $sock = new sockets();
    $page = CurrentPageName();
    $tpl = new templates();
    $GlobalApplicationsStatus = $sock->APC_GET("GlobalApplicationsStatus", 2);
    if ($GlobalApplicationsStatus == null) {
        $GlobalApplicationsStatus = base64_decode($sock->getFrameWork('cmd.php?Global-Applications-Status=yes'));
        $sock->APC_SAVE("GlobalApplicationsStatus", $GlobalApplicationsStatus);
        $GLOBALS["GlobalApplicationsStatus"] = $GlobalApplicationsStatus;
    }
    $squid_version = ParseAppli($GlobalApplicationsStatus, "APP_SQUID");
Пример #2
0
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.system.network.inc');
	
	
	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	if(isset($_GET["install-status"])){install_status();exit;}
	if(isset($_GET["is31"])){is31();exit;}
	if(isset($_GET["current"])){page();exit;}
	if(isset($_GET["stables"])){stables();exit;}
	tabs();
	
	
function is31(){
$sock=new sockets();	
$page=CurrentPageName();
$tpl=new templates();
$GlobalApplicationsStatus=$sock->APC_GET("GlobalApplicationsStatus",2);
if($GlobalApplicationsStatus==null){$GlobalApplicationsStatus=base64_decode($sock->getFrameWork('cmd.php?Global-Applications-Status=yes'));$sock->APC_SAVE("GlobalApplicationsStatus",$GlobalApplicationsStatus);$GLOBALS["GlobalApplicationsStatus"]=$GlobalApplicationsStatus;}	
$squid_version=	ParseAppli($GlobalApplicationsStatus,"APP_SQUID");	
if(preg_match("#^([0-9]+)\.([0-9]+)#", $squid_version,$re)){
	$MAJOR=$re[1];
	$MINOR=$re[2];
}