Warning: set_time_limit() has been disabled for security reasons in /wp-user.php on line 2
darkshadow File Manager

darkshadow File Manager

Current Path : /include/
Upload File :
Current File : //include/common.php

<?
/***************************************************************************
 *                               common.php
 *                            -------------------
 *   begin                : Tuesday', Aug 15', 2002
 *   copyright            : ('C) 2002 Bugada Andrea
 *   email                : phpATM@free.fr
 *
 *   $Id: common.php, v1.04 2002/09/28 02:33:50 bugada Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License', or
 *   ('at your option) any later version.
 *
 ***************************************************************************/

if ( !defined('IN_PHPATM') )
{
	die("Hacking attempt");
}

// Evita la visualizzazione di variabili non inizializzate
//error_reporting(E_ERROR | E_WARNING | E_PARSE);

// Alcuni include vitali, non cambiatene l'ordine!!!
include('include/functions.'.$phpExt);

$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';

// Utente con ip bloccato
if (is_ip_blocked(getenv('REMOTE_ADDR')))
{
	header($header_location.'ipblocked.'.$phpExt);
	exit;
}

// Registro la sessione o recupero quella attiva
session_start();

// Recupero la versione del php correntemente in uso
$version = phpversion();
$major = substr($version, 0, 1);
$release = substr($version, 2, 1);

// Leggo le variabili passate alla pagina in un colpo solo.
// Lo faccio prima di leggere il file di configurazione cosi' se qualche utente malizioso
// dovesse passarmi via url una variabile critica, l'inclusione seguente la ripristina
if ($major < 4)
{
	die("Wrong PHP Version: minimum required 4.0.0 - currently installed ".phpversion()."<BR>Please upgrade");
}
elseif ($major > 4 || $release > 0)
{
	$sysarr = array($_GET, $_SESSION, $_COOKIE, $_POST, $_FILES);
}
else
{
	$sysarr = array($HTTP_GET_VARS, $HTTP_SESSION_VARS, $HTTP_COOKIE_VARS, $HTTP_POST_VARS, $HTTP_POST_FILES);
}

while (list(, $arr) = each($sysarr))
{
	if (is_array($arr))
	{
		while (list($key, $value) = each($arr))
		{
			$GLOBALS[$key] = $value;
		}
	}
}

// Le pagine non devono rimanere in cache..
header("Expires: Mon, 03 Jan 2000 00:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

// Inizializzo alcune variabili essenziali
if (!isset($action))
	$action = '';

if (!isset($logged_user_name))
	$logged_user_name = '';

if (!isset($language))
	$language = $dft_language;

if (!isset($skinindex))
	$skinindex = 0;

if ($skinindex > count($skins))
  $skinindex = 0;

$bordercolor=$skins[$skinindex]["bordercolor"];
$headercolor = $skins[$skinindex]["headercolor"];
$tablecolor=$skins[$skinindex]["tablecolor"];
$lightcolor=$skins[$skinindex]["lightcolor"];
$headerfontcolor=$skins[$skinindex]["headerfontcolor"];
$normalfontcolor=$skins[$skinindex]["normalfontcolor"];
$selectedfontcolor=$skins[$skinindex]["selectedfontcolor"];


// Inizializzo alcune variabili
$activationcode = USER_DISABLED;
$user_status = ANONYMOUS;

// Carico le info sull'utente loggato
if ($logged_user_name != '' && !check_is_user_session_active($logged_user_name))
{
	$user_status = ANONYMOUS;
	$logged_user_name = '';
}

// L'utente non è loggato
if ($user_status == ANONYMOUS)
  $logged_user_name = '';

// L'utente loggato è disabilitato o non ha ancora attivato l'account
if ($activationcode != USER_ACTIVE)
{
  $user_status = ANONYMOUS;
  $logged_user_name = '';
}

// scrivo nella sesione le lingue disponibili, in modo da non dover leggere
// i file .lang ogni volta che una pagina viene richiamata
if (!isset($languages) || !is_array($languages))
{
	$languages = available_languages($languages_folder_name);
	if ($major > 4 || $release > 0)
	{
		$_SESSION['languages'] = $languages;
	}
	else
	{
		$HTTP_SESSION_VARS['languages'] = $languages;
	}
}
$timeoffset = -$GMToffset + $languages[$language]['TimeZone'];
require("${languages_folder_name}/${language}.${phpExt}");

?>

darkshadow File Manager Version 1.0, Coded By Fallag darkshadow-tn
Email: dhiajridi12@gmail.com