case 'faq': require "{$THIS_BASEPATH}/faq.php"; $tpl->set("main_content", set_block($language["MNU_FAQ"], "center", $faqtpl->fetch(load_template("faq.tpl")))); $tpl->set("main_title", $btit_settings["name"] . " .::. " . "Index->F.A.Q."); break; /*End mod by losmi faq - mod*/ /*End mod by losmi faq - mod*/ case 'moder': require "{$THIS_BASEPATH}/moder.php"; $tpl->set("main_content", set_block($language["MODERATE_TORRENT"], "center", $torrenttpl->fetch(load_template("admin.moder.tpl")))); $tpl->set("main_title", $btit_settings["name"] . " .::. " . "Index->Torrent->Moderate"); break; case 'index': case '': default: $tpl->set("main_content", center_menu()); break; } // controll if client can handle gzip if ($GZIP_ENABLED) { if (stristr($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip") && extension_loaded('zlib') && ini_get("zlib.output_compression") == 0) { if (ini_get('output_handler') != 'ob_gzhandler') { ob_start("ob_gzhandler"); $gzip = 'enabled'; } else { ob_start(); $gzip = 'enabled'; } } else { ob_start(); $gzip = 'disabled';
<?php /* * BtiTracker v1.5.0 is a php tracker system for BitTorrent, easy to setup and configure. * This tracker is a frontend for DeHackEd's tracker, aka phpBTTracker (now heavely modified). * Updated and Maintained by Yupy. * Copyright (C) 2004-2014 Btiteam.org */ if (file_exists("install.me")) { if (dirname($_SERVER["PHP_SELF"]) == "/" || dirname($_SERVER["PHP_SELF"]) == "\\") { header("Location: http://" . $_SERVER["HTTP_HOST"] . "/install/"); } else { header("Location: http://" . $_SERVER["HTTP_HOST"] . dirname($_SERVER["PHP_SELF"]) . "/install/"); } exit; } require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'functions.php'; require_once INCL_PATH . 'blocks.php'; dbconn(true); if (user::$current["id"] == 1) { if ($_SERVER["REQUEST_URI"] == '/' || '/index.php') { redirect('login.php'); } else { if ($_SERVER["REQUEST_URI"] == '/login.php') { redirect('login.php'); } } } standardheader('Index', true, 0); center_menu(); stdfoot();