//if (@$_GET["phpinfo"]) {phpinfo();die;} //if (@$_GET["gdinfo"]) {echo "
";print_r(gd_info());phpinfo();die;}
if(1==2 //mettere 1==1 per mettere il sito offline
and !stristr($_SERVER['SERVER_ADDR'],'192.168')
and $_SERVER['REMOTE_ADDR'] != gethostbyname('demo.tnx.it')
and $_SERVER['REMOTE_ADDR'] != gethostbyname('demo2.tnx.it')
and $_SERVER['REMOTE_ADDR'] != gethostbyname('web.tnx.it')) { ?>
Sito temporaneamente offline per manutenzione
Site temporarily offline for maintenance
} else {
//reset contatori cecca, chiamato da indi core
function post_configuration_function() {
//web service per ricevere le stats di sveltina
if ($_GET["ssws"]) {
if ($_GET["zero"] == "zero") {
if ($_SERVER["REMOTE_ADDR"] == "192.168.0.105") {
$sql = "update achievo.sveltina_stats set keys_typed_day = 0, mouse_pixels_day = 0, mouse_clicks_day = 0";
db_q($sql);
}
if (is_tnx() || $_SERVER["REMOTE_ADDR"] == "2001:41d0:d:50d::557") {
$sql = "update sveltina_stats set keys_typed_day = 0, mouse_pixels_day = 0, mouse_clicks_day = 0";
db_q($sql);
}
die;
}
if (is_tnx() || $_SERVER["REMOTE_ADDR"] == "192.168.0.115") {
$m = stripslashes($_GET["m"]);
$m = json_decode($m, true);
$sql = "update sveltina_stats set
keys_typed_day = " . addslashes($m["ktd"]) . "
, keys_typed = " . addslashes($m["kt"]) . "
, mouse_pixels_day = " . addslashes($m["mpd"]) . "
, mouse_pixels = " . addslashes($m["mp"]) . "
, mouse_clicks_day = " . addslashes($m["mcd"]) . "
, mouse_clicks = " . addslashes($m["mc"]) . "
where pk = 0";
//echo $sql;
db_q($sql);
}
die;
}
}
$dir = dirname(__FILE__);
$dir = "SITI/".substr($dir, strrpos($dir, "/")+1)."/";
if(!@$_GET['forzaCortesia'] && in_array($_SERVER["HTTP_HOST"], array("hap.tnx.it", "hap.rbx1.tnx.it", "hap.gra1.tnx.it", "web.gra1.tnx.it", "web.rbx1.tnx.it", "demo.tnx.it", "www.tnx.it", "www.tnx.it:808", "tnx.it", "www.tnx.it:81" , "indi.tnx.dyndns.org", "indi.tnx.it", "indi2.tnx.it", "webnew.tnx.it", "php70.demo.tnx.it", "web2.tnx.it", "indi7.tnx.it"))){
$CONFIGURAZIONE = "indi.php";
}
else {
//pagina cortesia sempre in http
if(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'){
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
die;
}
$CONFIGURAZIONE = "indi_cortesia.php";
}
include("../../index1.1.php");
}
?>