<?php

/*
// +--------------------------------------------------------------------------+
// | Project:    TBDevYSE - TBDev Yuna Scatari Edition                        |
// +--------------------------------------------------------------------------+
// | This file is part of TBDevYSE. TBDevYSE is based on TBDev,               |
// | originally by RedBeard of TorrentBits, extensively modified by           |
// | Gartenzwerg.                                                             |
// |                                                                          |
// | TBDevYSE 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.                                      |
// |                                                                          |
// | TBDevYSE 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 TBDevYSE; if not, write to the Free Software Foundation,      |
// | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA            |
// +--------------------------------------------------------------------------+
// |                                               Do not remove above lines! |
// +--------------------------------------------------------------------------+
*/

# IMPORTANT: Do not edit below unless you know what you are doing!
if(!defined('IN_TRACKER') && !defined('IN_ANNOUNCE'))
  die("Hacking attempt!");

if (!function_exists("htmlspecialchars_uni")) {
	function htmlspecialchars_uni($message) {
		$message = preg_replace("#&(?!\#[0-9]+;)#si", "&amp;", $message); // Fix & but allow unicode
		$message = str_replace("<","&lt;",$message);
		$message = str_replace(">","&gt;",$message);
		$message = str_replace("\"","&quot;",$message);
		$message = str_replace("  ", "&nbsp;&nbsp;", $message);
		return $message;
	}
}

// Константы
define ('TIMENOW', time());

$url = explode('/', htmlspecialchars_uni($_SERVER['PHP_SELF']));  
array_pop($url);
$DEFAULTBASEURL = (($_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://").htmlspecialchars_uni($_SERVER['HTTP_HOST']).implode('/', $url);
$BASEURL = $DEFAULTBASEURL;

$announce_urls = array();

if (basename($_SERVER['SCRIPT_FILENAME'])=="download.php" || basename($_SERVER['SCRIPT_FILENAME'])=="details.php"){
$announce_urls[] = "$DEFAULTBASEURL/announce.php";
/// локальный ретрекер
$announce_urls[] = "http://retracker.local/announce";
}

//$announce_urls[] = "http://tracker.openbittorrent.com:80/announce";

$announce_urls[] = "http://tracker.publicbt.com:80/announce";
//$announce_urls[] = "http://announce.freeexchange.ru:2710/announce";
//$announce_urls[] = "http://announce.opensharing.ru:2710/announce";

//$announce_urls[] = "udp://tracker.publicbt.com:80/announce";


//$announce_urls[] = "http://bigtorrent.org:2710/announce";
//$announce_urls[] = "http://tr1.kinozal.tv/announce.php?passkey=74e76ef68365aa56f7899461d59a7907";

//if (basename($_SERVER['SCRIPT_FILENAME'])=="parser_org.ua.php")

//$announce_urls[] = "http://bt.firebit.org:2710/announce";
$announce_urls[] = "http://bt.rutor.org:2710/announce";
//$announce_urls[] = "http://tracker.torrentbay.to:6969/announce";
//$announce_urls[] = "http://tracker.torrentbox.com:2710/announce";
//$announce_urls[] = "http://tracker.anime-miako.to:6969/announce";
//$announce_urls[] = "http://tracker.torrent.to:2710/announce";
//$announce_urls[] = "http://rt.beeretracker.net/announce.php";
//$announce_urls[] = "http://ix3.rutracker.net/ann?uk=w5OiLN0kEB";
$announce_urls[] = "http://announce.torrentsmd.com:6969/announce.php?passkey=5e5be76d37b099ad5f6fbe3fdb3c7e1d";


/*
http://freetorrents.org.ua:2710/announce
http://bt.rutor.org:2710/announce
http://denis.stalker.h3q.com:6969/announce
http://announce.opensharing.org:2710/announce
http://rt.beeretracker.net/announce.php
http://tracker.prq.to/announce
http://tracker.openbittorrent.com/announce
http://tracker.ilibr.org:80/announce
http://tracker.publicbt.com:80/announce
http://tracker.openbittorrent.com:80/announce
http://the.illusionist.tracker.prq.to:80/announce
http://bt1.the9.com:6969/announce
http://tv.tracker.prq.to/announce
http://tracker.torrent.to:2710/announce
http://tracker.openbittorrent.com/announce
http://tracker.openbittorrent.com:80/announce
http://tracker.publicbt.com:80/announce
http://tracker.ilibr.org:6969/announce
http://exodus.desync.com:6969/announce
http://trackertdt.com/announce.php
http://tracker.mightynova.com:4315/announce
http://tracker.torrentbay.to:6969/announce
http://opentracker.fr333dom.com:6666/announce
http://tracker.mightynova.com/announce
http://sombarato.org:6969/announce
http://movie-seedbox.info:6969/announce
http://retracker.local/announce
*/

// SECURITY
define ('на хуй это', 'default'); // Заполните эту переменную любым мусором, сиволом эдак 32 - нужно для соли кукисов
// После смены этих двух параметров всем пользователям надо будет ввести логин пароль
define ('COOKIE_UID', 'uid'); // Имя куки для userid
define ('COOKIE_PASSHASH', 'pass'); // Имя куки для пароля

// DEFINE TRACKER GROUPS
define ("UC_USER", 0);
define ("UC_POWER_USER", 1);
define ("UC_VIP", 2);
define ("UC_UPLOADER", 3);
define ("UC_MODERATOR", 4);
define ("UC_ADMINISTRATOR", 5);
define ("UC_SYSOP", 6);

?>