// Enviroment Runtime ////////////////////////////////////////////////////////////////////////////// // error level error_reporting(E_ERROR | E_PARSE); //error_reporting(E_ALL & ~E_WARNING); //error_reporting(E_ALL | E_STRICT | E_DEPRECATED); // ignore disconnects ignore_user_abort(true); // load tracker core require './tracker.mysql.php'; // Verify Request ////////////////////////////////////////////////////////////////////////////////// // tracker statistics if (isset($_GET['stats'])) { // open database peertracker::open(); // display stats peertracker::stats(); // close database peertracker::close(); // exit immediately exit; } // strip auto-escaped data if (get_magic_quotes_gpc()) { $_GET['info_hash'] = stripslashes($_GET['info_hash']); } // 20-bytes - info_hash // sha-1 hash of torrent being tracked if (!isset($_GET['info_hash']) || strlen($_GET['info_hash']) != 20) { // full scrape disabled if (!$_SERVER['tracker']['full_scrape']) { exit;