}
}
if(strstr(getenv('HTTP_HOST'), 'sendomail.it'))
{
if(getenv('HTTPS') != 'on')
{?>
}
}
// setting cookies for latest tb viewed
if($tb && $action == "view")
{
$valuecookielastvtb = time()."|".str_rot13($tb);
setcookie ("_ltstbvwd_".str_rot13($dbCMS)."|".str_rot13($tb), $valuecookielastvtb, time()+259200, "/");
}
### checking ip
###################### checking ip and country
$whereiam = "AnthericaCMS - ".getenv('REQUEST_URI');
require_once("../common/filtercountriesips.inc");
##############################################
require_once("../actv/inf.html");
if ($idanthe == '' or $dbCMS == '')
{
$required_login = 'true';
Header("Location: ../index.html");
}
if ($logoff == 'true')
{
setcookie ("dbCMS", "", 0, "/");
setcookie ("cln", "", 0, "/");
setcookie ("idanthe", "", 0, "/");
$dbCMS = "";
$cln = "";
$idanthe = "";
require "../common/login.inc";
}
if($action == 'view')
{
setcookie ("urlBckFromEdit", urlencode("http://".getenv('HTTP_HOST').getenv('REQUEST_URI')), 0, "/");
}
###########DEALS WITH IMAGE RESIZING for BANNERS starts
if (isset($banner_type) && $banner_type > 0)
{
global $_IMAGEWIDTH;
$_IMAGEWIDTH = $banner_type;
}
elseif (isset($banner_type_other) && $banner_type_other > 0)
{
global $_IMAGEWIDTH;
$_IMAGEWIDTH = $banner_type_other;
}
if (isset($allowgif) and $allowgif == 1)
{
global $_ALLOWGIF;
$_ALLOWGIF = 1;
}
###########DEALS WITH IMAGE RESIZING for BANNERS ends
if($_GET['dbCMS'])
{
setcookie ("dbCMS", $_GET['dbCMS'], 0, "/");
$dbCMS = $_GET['dbCMS'];
}
if (!$backAdmin)
{
setcookie ("backAdmin", $cln, 0, "/");
$backAdmin = $cln;
}
require "../common/configall.inc";
require "/home/server/systems/sys_functions/system_functions.inc";
require "../common/authenticateUser.inc";
require "../common/authenticateDatabase.inc";
require "$system_functions_path/system_utilities.inc";
### SANITIZING ##############################
$id = intval($id);
$relid = intval($relid);
$db = mysql_real_escape_string($db);
$tb = mysql_real_escape_string($tb);
#############################################
if($vcms == 2)
{
// send alert
$final_messaggio = "CMS V2.0 selezionato su \"".getenv("HTTP_HOST")."\" (".getenv("SERVER_ADDR").").\r\n\r\n";
$final_messaggio .= "Company: ".$USR['company']."\r\n";
$final_messaggio .= "User: ".$USR[name]." ".$USR[surname]." - ".$USR[email]."\r\n\r\n";
$final_messaggio .= "User IP: ".$_SERVER['REMOTE_ADDR']."\r\n";
$final_messaggio .= "Locate: http://anthericacloud.it/ip/checkip.html?ip=".$_SERVER['REMOTE_ADDR']."\r\n\r\n";
$final_messaggio .= "User agent: ".getenv('HTTP_USER_AGENT')."\r\n";
$final_messaggio .= "Date & time: ".date("d.m.Y, G:i.s", time())."\r\n\r\n";
$intestazioni = "From: AnthericaCMS