wenn ich das einbaue dann kann mich nicht mehr einloggen , geht immer wieder auf die login.php .
der anfabg sieht bei mir mit einbau ao aus:
PHP-Code:
<?php
/*
// +--------------------------------------------------------------------------+
// | Project: NVTracker - NetVision BitTorrent Tracker |
// +--------------------------------------------------------------------------+
// | This file is part of NVTracker. NVTracker is based on BTSource, |
// | originally by RedBeard of TorrentBits, extensively modified by |
// | Gartenzwerg. |
// | |
// | NVTracker 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. |
// | |
// | NVTracker is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with NVTracker; if not, write to the Free Software Foundation, |
// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +--------------------------------------------------------------------------+
// | Obige Zeilen dürfen nicht entfernt werden! Do not remove above lines! |
// +--------------------------------------------------------------------------+
*/
function validate_var($val)
{
if(isset($val))
{
if(is_numeric($val))
{
if(is_float($val)) return floatval($val);
elseif(is_int($val)) return intval($val);
else return;
}
elseif(is_bool($val))
{
if($val == 1 || $val === true) return true;
elseif($val == 0 || $val === false) return false;
else return;
}
elseif(is_string($val)) return htmlspecialchars($val);
elseif(is_null($val)) return null;
else return $val;
}
else return;
}
function secure_vars()
{
if(isset($_POST))
{
foreach ($_POST as $var => $val)
{
$_POST[$var] = validate_var($val);
}
}
if(isset($_GET))
{
foreach ($_GET as $var => $val)
{
$_GET[$var] = validate_var($val);
}
}
if(isset($_ENV))
{
foreach ($_ENV as $var => $val)
{
$_ENV[$var] = validate_var($val);
}
}
if(isset($_COOKIE))
{
foreach ($_COOKIE as $var => $val)
{
$_COOKIE[$var] = validate_var($val);
}
}
}
secure_vars();
function local_user()
{
global $HTTP_SERVER_VARS;
return $HTTP_SERVER_VARS["SERVER_ADDR"] == $HTTP_SERVER_VARS["REMOTE_ADDR"];
}
$agent = $_SERVER['HTTP_USER_AGENT'];
if(preg_match("/Chrome/i",$agent))
{
?>
<script type="text/javascript">
message="Du benutzt den Google Chrome von Google! Dieser ist auf dieser Seite wegen hohen Sicherheitsmängeln und Informations-Sammelwut gesperrt. Wir empfehlen den Browser Firefox zum Surfen!!!";
alert(unescape(message));
window.location.href='http://xxxxxxxxxxxxxxxxxx';
</script>
<?
header("Location: http://www.google.de"); // falls Javascript deaktiviert ärgern wir mal ihn ein bisschen und leiten ihn auf seinen Ursprung zurück
}
if (!file_exists("include/secrets.php") || !file_exists("include/config.php"))
die("<html><head><title>FEHLER</title></head><body><p>Der Tracker wurde noch nicht konfiguriert.</p>
<p><a href=\"inst/install.php\">Zum Installationsscript</a></p>
</body></html>");
require_once("include/secrets.php");
require_once("include/config.php");
require_once("include/cleanup.php");
require_once("include/shoutcast.php");
require_once('include/ctracker.php');
require_once('include/sicherheits.php');
$maxloginattempts = 4;