Exemplo n.º 1
0
 * https://github.com/Bigjoos/
 * Licence Info: GPL
 * Copyright (C) 2010 U-232 v.3
 * A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
 * Project Leaders: Mindless, putyn.
 *
 */
// Achievements mod by MelvinMeow
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php';
require_once INCL_DIR . 'user_functions.php';
require_once INCL_DIR . 'pager_functions.php';
require_once CLASS_DIR . 'page_verify.php';
dbconn();
loggedinorreturn();
$newpage = new page_verify();
$newpage->create('takecounts');
$lang = array_merge(load_language('global'));
$HTMLOUT = "";
$id = (int) $_GET["id"];
if (!is_valid_id($id)) {
    stderr("Error", "It appears that you have entered an invalid id.");
}
$res = sql_query("SELECT users.id, users.username, usersachiev.achpoints, usersachiev.spentpoints FROM users LEFT JOIN usersachiev ON users.id = usersachiev.id WHERE users.id = " . sqlesc($id)) or sqlerr(__FILE__, __LINE__);
$arr = mysqli_fetch_assoc($res);
if (!$arr) {
    stderr("Error", "It appears that there is no user with that id.");
}
$achpoints = (int) $arr['achpoints'];
$spentpoints = (int) $arr['spentpoints'];
$res = sql_query("SELECT COUNT(*) FROM achievements WHERE userid =" . sqlesc($id)) or sqlerr(__FILE__, __LINE__);
$row = mysqli_fetch_row($res);
Exemplo n.º 2
0
    get_template();
}
if (isset($CURUSER)) {
    header("Location: {$INSTALLER09['baseurl']}/index.php");
    exit;
}
ini_set('session.use_trans_sid', '0');
$stdfoot = array('js' => array('check', 'jquery.pstrength-min.1.2', 'jquery.simpleCaptcha-0.2'));
if (!$INSTALLER09['openreg']) {
    stderr('Sorry', 'Invite only - Signups are closed presently if you have an invite code click <a href="' . $INSTALLER09['baseurl'] . '/invite_signup.php"><b> Here</b></a>');
}
$HTMLOUT = $year = $month = $day = $gender = '';
$HTMLOUT .= "\n    <script type='text/javascript'>\n    /*<![CDATA[*/\n    \$(function() {\n    \$('.password').pstrength();\n    });\n    /*]]>*/\n    </script>";
$lang = array_merge(load_language('global'), load_language('signup'));
$newpage = new page_verify();
$newpage->create('tesu');
if (get_row_count('users') >= $INSTALLER09['maxusers']) {
    stderr($lang['stderr_errorhead'], sprintf($lang['stderr_ulimit'], $INSTALLER09['maxusers']));
}
//==timezone select
$offset = (string) $INSTALLER09['time_offset'];
$time_select = "<select name='user_timezone'>";
foreach ($TZ as $off => $words) {
    if (preg_match("/^time_(-?[\\d\\.]+)\$/", $off, $match)) {
        $time_select .= $match[1] == $offset ? "<option value='{$match[1]}' selected='selected'>{$words}</option>\n" : "<option value='{$match[1]}'>{$words}</option>\n";
    }
}
$time_select .= "</select>";
//==country by pdq
function countries()
{
Exemplo n.º 3
0
 **/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php';
require_once INCL_DIR . 'user_functions.php';
require_once INCL_DIR . 'bbcode_functions.php';
require_once INCL_DIR . 'html_functions.php';
require_once CLASS_DIR . 'page_verify.php';
require_once INCL_DIR . 'function_onlinetime.php';
dbconn(false);
loggedinorreturn();
error_reporting(0);
$lang = array_merge(load_language('global'), load_language('userdetails'));
if (function_exists('parked')) {
    parked();
}
$newpage = new page_verify();
$newpage->create('mdk1@@9');
$stdfoot = array('js' => array('popup', 'java_klappe'));
function calctime($val)
{
    $days = intval($val / 86400);
    $val -= $days * 86400;
    $hours = intval($val / 3600);
    $val -= $hours * 3600;
    $mins = intval($val / 60);
    $secs = $val - $mins * 60;
    return "&nbsp;{$days} days, {$hours} hrs, {$mins} minutes";
}
function snatchtable($res)
{
    global $INSTALLER09, $lang;
    $htmlout = '';
Exemplo n.º 4
0
 *   Copyright (C) 2010 Installer09 v.2
 *   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
 *   Project Leaders: Mindless,putyn,kidvision.
 **/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php';
require_once INCL_DIR . 'user_functions.php';
require_once CLASS_DIR . 'page_verify.php';
dbconn();
global $CURUSER;
if (!$CURUSER) {
    get_template();
}
ini_set('session.use_trans_sid', '0');
$lang = array_merge(load_language('global'), load_language('login'));
$newpage = new page_verify();
$newpage->create('takelogin');
//== 09 failed logins
function left()
{
    global $INSTALLER09;
    $total = 0;
    $ip = sqlesc(getip());
    $fail = sql_query("SELECT SUM(attempts) FROM failedlogins WHERE ip={$ip}") or sqlerr(__FILE__, __LINE__);
    list($total) = mysql_fetch_row($fail);
    $left = $INSTALLER09['failedlogins'] - $total;
    if ($left <= 2) {
        $left = "<font color='red' size='4'>" . $left . "</font>";
    } else {
        $left = "<font color='green' size='4'>" . $left . "</font>";
    }
    return $left;
Exemplo n.º 5
0
 *   http://btdev.net:1337/svn/test/Installer09_Beta
 *   Licence Info: GPL
 *   Copyright (C) 2010 BTDev Installer v.1
 *   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
 *   Project Leaders: Mindless,putyn.
 **/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php';
require_once INCL_DIR . 'user_functions.php';
require_once CACHE_DIR . 'timezones.php';
require_once INCL_DIR . 'page_verify.php';
dbconn();
get_template();
$stdfoot = array('js' => array('check', 'jquery.pstrength-min.1.2'));
$lang = array_merge(load_language('global'), load_language('signup'));
$newpage = new page_verify();
$newpage->create('tkIs');
$res = sql_query("SELECT COUNT(*) FROM users") or sqlerr(__FILE__, __LINE__);
$arr = mysql_fetch_row($res);
if ($arr[0] >= $TBDEV['maxusers']) {
    stderr("Sorry", "The current user account limit (" . number_format($TBDEV['maxusers']) . ") has been reached. Inactive accounts are pruned all the time, please check back again later...");
}
if (!$TBDEV['openreg']) {
    stderr('Sorry', 'Invite only - Signups are closed presently');
}
// TIMEZONE STUFF
$offset = (string) $TBDEV['time_offset'];
$time_select = "<select name='user_timezone'>";
foreach ($TZ as $off => $words) {
    if (preg_match("/^time_(-?[\\d\\.]+)\$/", $off, $match)) {
        $time_select .= $match[1] == $offset ? "<option value='{$match[1]}' selected='selected'>{$words}</option>\n" : "<option value='{$match[1]}'>{$words}</option>\n";
    }
Exemplo n.º 6
0
if (isset($_GET['unedit']) && $_GET['unedit'] == 1 && $CURUSER['class'] >= UC_STAFF) {
    $returl = "details.php?id={$id}";
    if (isset($_POST["returnto"])) {
        $returl .= "&returnto=" . urlencode($_POST["returnto"]);
    }
    header("Refresh: 1; url={$returl}");
    $mc1->delete_value('editedby_' . $id);
    exit;
}
dbconn();
loggedinorreturn();
$lang = array_merge(load_language('global'), load_language('edit'));
$stdfoot = array('js' => array('shout', 'FormManager'));
$stdhead = array('css' => array('style2', 'bbcode', 'shout'));
$newpage = new page_verify();
$newpage->create('teit');
$res = sql_query("SELECT * FROM torrents WHERE id = " . sqlesc($id));
$row = mysqli_fetch_assoc($res);
if (!$row) {
    stderr($lang['edit_user_error'], $lang['edit_no_torrent']);
}
if (!isset($CURUSER) || $CURUSER["id"] != $row["owner"] && $CURUSER["class"] < UC_STAFF) {
    stderr($lang['edit_user_error'], sprintf($lang['edit_no_permission'], urlencode($_SERVER['REQUEST_URI'])));
}
$HTMLOUT = $mod_cache_name = '';
$HTMLOUT = "<script type='text/javascript'>\n    window.onload = function() {\n    setupDependencies('edit'); //name of form(s). Seperate each with a comma (ie: 'weboptions', 'myotherform' )\n    };\n    </script>";
if ($CURUSER['class'] >= UC_STAFF) {
    if (($mod_cache_name = $mc1->get_value('editedby_' . $id)) === false) {
        $mod_cache_name = $CURUSER['username'];
        $mc1->add_value('editedby_' . $id, $mod_cache_name, $INSTALLER09['expires']['ismoddin']);
    }
Exemplo n.º 7
0
 *   https://github.com/Bigjoos/
 *   Licence Info: GPL
 *   Copyright (C) 2010 U-232 v.3
 *   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
 *   Project Leaders: Mindless, putyn.
 *
 */
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php';
require_once INCL_DIR . 'user_functions.php';
require_once INCL_DIR . 'html_functions.php';
require_once INCL_DIR . 'bbcode_functions.php';
require_once CLASS_DIR . 'page_verify.php';
dbconn(false);
loggedinorreturn();
$lang = array_merge(load_language('global'), load_language('upload'));
if (function_exists('parked')) {
    parked();
}
$newpage = new page_verify();
$newpage->create('tamud');
$HTMLOUT = '';
if ($CURUSER['class'] < UC_UPLOADER or $CURUSER["uploadpos"] == 0 || $CURUSER["uploadpos"] > 1 || $CURUSER['suspended'] == 'yes') {
    stderr($lang['upload_sorry'], $lang['upload_no_auth']);
}
$s = '';
$cats = genrelist();
foreach ($cats as $row) {
    $s .= "<option value='{$row["id"]}'>" . htmlspecialchars($row["name"]) . "</option>\n";
}
$HTMLOUT .= "<div align='center'>\r\n<form enctype='multipart/form-data' action='takemultiupload.php' method='post'>\r\n<input type='hidden' name='MAX_FILE_SIZE' value='{$INSTALLER09['max_torrent_size']}' />\r\n<p>{$lang['upload_announce_url']}<b><input type=\"text\" size=\"38\" readonly=\"readonly\" value=\"{$INSTALLER09['announce_urls'][0]}\" onclick=\"select()\" /></b></p>\r\n<p><strong><font color='#FF0000'>Remember : You must add an NFO for all the torrents AND redownload all 5 .torrent file's!</font></strong></p>\r\n<table class='table'  cellspacing='0' cellpadding='5'>\r\n<tr><td class='heading' valign='top' align='right'>Torrent#1</td><td valign='top' align='left'>&nbsp;&nbsp;&nbsp;File: <input type='file' name='file1' size='50' /><br /><br />&nbsp;&nbsp;&nbsp;NFO:<input type='file' name='nfo1' size='50' /><br /><br />&nbsp;&nbsp;Type:<select name='type1'>\n<option value='0'>(choose type)</option>{$s}</select>&nbsp;&nbsp;Anonymous upload:<input type='checkbox' name='uplver1' value='yes' />&nbsp;&nbsp;Vip torrent:<input type='checkbox' name='vip1' value='1' /></td></tr>\r\n<tr><td class='heading' valign='top' align='right'>Torrent#2</td><td valign='top' align='left'>&nbsp;&nbsp;&nbsp;File: <input type='file' name='file2' size='50' /><br /><br />&nbsp;&nbsp;&nbsp;NFO:<input type='file' name='nfo2' size='50' /><br /><br />&nbsp;&nbsp;Type:<select name='type2'>\n<option value='0'>(choose type)</option>{$s}</select>&nbsp;&nbsp;Anonymous upload:<input type='checkbox' name='uplver2' value='yes' />&nbsp;&nbsp;Vip torrent:<input type='checkbox' name='vip2' value='1' /></td></tr>\r\n<tr><td class='heading' valign='top' align='right'>Torrent#3</td><td valign='top' align='left'>&nbsp;&nbsp;&nbsp;File: <input type='file' name='file3' size='50' /><br /><br />&nbsp;&nbsp;&nbsp;NFO:<input type='file' name='nfo3' size='50' /><br /><br />&nbsp;&nbsp;Type:<select name='type3'>\n<option value='0'>(choose type)</option>{$s}</select>&nbsp;&nbsp;Anonymous upload:<input type='checkbox' name='uplver3' value='yes' />&nbsp;&nbsp;Vip torrent:<input type='checkbox' name='vip3' value='1' /></td></tr>\r\n<tr><td class='heading' valign='top' align='right'>Torrent#4</td><td valign='top' align='left'>&nbsp;&nbsp;&nbsp;File: <input type='file' name='file4' size='50' /><br /><br />&nbsp;&nbsp;&nbsp;NFO:<input type='file' name='nfo4' size='50' /><br /><br />&nbsp;&nbsp;Type:<select name='type4'>\n<option value='0'>(choose type)</option>{$s}</select>&nbsp;&nbsp;Anonymous upload:<input type='checkbox' name='uplver4' value='yes' />&nbsp;&nbsp;Vip torrent:<input type='checkbox' name='vip4' value='1' /></td></tr>\r\n<tr><td class='heading' valign='top' align='right'>Torrent#3</td><td valign='top' align='left'>&nbsp;&nbsp;&nbsp;File: <input type='file' name='file5' size='50' /><br /><br />&nbsp;&nbsp;&nbsp;NFO:<input type='file' name='nfo5' size='50' /><br /><br />&nbsp;&nbsp;Type:<select name='type5'>\n<option value='0'>(choose type)</option>{$s}</select>&nbsp;&nbsp;Anonymous upload:<input type='checkbox' name='uplver5' value='yes' />&nbsp;&nbsp;Vip torrent:<input type='checkbox' name='vip5' value='1' /></td></tr>\r\n<tr>\r\n<td class='rowhead' style='padding: 3px'><b>Settings</b></td>\r\n<td>These settings will apply to all above torrents.\r\n<br />Please note: Torrent names are taken from their .torrent filenames. \r\n<br />Use descriptive names in .torrent files.\r\n<br /> \r\n<br />If you forget to specify a torrent category type in any of the above it will use the one from below.\r\n<br />\r\n<br />\r\n<select name='alltype'>\r\n<option value='0'>(choose type)</option>{$s}</select>\r\n<input type='checkbox' name='custom' />Custom message\r\n<br /> \r\n<textarea name='description'  rows='6' cols='60'>See NFO</textarea>\r\n</td>\r\n</tr>\r\n<tr>\r\n<td align='center' colspan='2'>\r\n<input type='submit' class='btn' value='Do it!' /></td></tr>\r\n</table>\r\n</form></div>";
echo stdhead("Multi-Upload") . $HTMLOUT . stdfoot();
Exemplo n.º 8
0
|   $usercp
|   
+------------------------------------------------
*/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php';
require_once INCL_DIR . 'user_functions.php';
require_once INCL_DIR . 'html_functions.php';
require_once INCL_DIR . 'bbcode_functions.php';
require_once CLASS_DIR . 'page_verify.php';
require_once CACHE_DIR . 'timezones.php';
dbconn(false);
loggedinorreturn();
$stdfoot = array('js' => array('keyboard'));
$lang = array_merge(load_language('global'), load_language('usercp'));
$newpage = new page_verify();
$newpage->create('tkepe');
$HTMLOUT = $stylesheets = '';
$templates = sql_query("SELECT id, name FROM stylesheets ORDER BY id");
while ($templ = mysql_fetch_assoc($templates)) {
    if (file_exists("templates/{$templ['id']}/template.php")) {
        $stylesheets .= "<option value='{$templ['id']}'" . ($templ['id'] == $CURUSER['stylesheet'] ? " selected='selected'" : "") . ">{$templ['name']}</option>";
    }
}
$countries = "<option value='0'>---- {$lang['usercp_none']} ----</option>\n";
$ct_r = sql_query("SELECT id,name FROM countries ORDER BY name") or sqlerr(__FILE__, __LINE__);
while ($ct_a = mysql_fetch_assoc($ct_r)) {
    $countries .= "<option value='{$ct_a['id']}'" . ($CURUSER["country"] == $ct_a['id'] ? " selected='selected'" : "") . ">{$ct_a['name']}</option>\n";
}
$offset = $CURUSER['time_offset'] != "" ? (string) $CURUSER['time_offset'] : (string) $INSTALLER09['time_offset'];
$time_select = "<select name='user_timezone'>";
foreach ($TZ as $off => $words) {
Exemplo n.º 9
0
/**
 *   http://btdev.net:1337/svn/test/Installer09_Beta
 *   Licence Info: GPL
 *   Copyright (C) 2010 BTDev Installer v.1
 *   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
 *   Project Leaders: Mindless,putyn.
 **/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php';
require_once INCL_DIR . 'user_functions.php';
require_once INCL_DIR . 'bbcode_functions.php';
require_once INCL_DIR . 'page_verify.php';
dbconn(false);
loggedinorreturn();
$lang = array_merge(load_language('global'), load_language('sendmessage'));
$newpage = new page_verify();
$newpage->create('tkmg');
$stdfoot = array('js' => array('shout'));
flood_limit('messages');
parked();
if ($CURUSER["sendpmpos"] == 0 || $CURUSER["sendpmpos"] > 1) {
    stderr($lang['sendmessage_sorry'], $lang['sendmessage_no_auth']);
}
// Standard Administrative PM Replies
$pm_std_reply[1] = sprintf($lang['sendmessage_std_reply1'], $TBDEV['baseurl']);
$pm_std_reply[2] = "{$lang['sendmessage_std_reply2']}";
// Standard Administrative PMs
$pm_template[1] = array($lang['sendmessage_template1_sub'], sprintf($lang['sendmessage_template1_body'], $TBDEV['site_name']));
$pm_template[2] = array($lang['sendmessage_template2_sub'], sprintf($lang['sendmessage_template2_body'], $TBDEV['baseurl']));
// Standard Administrative MMs
$mm_template[1] = array($lang['sendmessage_mm_template1_sub'], sprintf($lang['sendmessage_mm_template1_body'], $TBDEV['site_name']));
$mm_template[2] = array($lang['sendmessage_mm_template2_sub'], $lang['sendmessage_mm_template2_body']);
Exemplo n.º 10
0
 *   https://github.com/Bigjoos/
 *   Licence Info: GPL
 *   Copyright (C) 2010 U-232 v.3
 *   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
 *   Project Leaders: Mindless, putyn.
 *
 */
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php';
require_once INCL_DIR . 'user_functions.php';
require_once INCL_DIR . 'bbcode_functions.php';
require_once INCL_DIR . 'html_functions.php';
require_once CLASS_DIR . 'page_verify.php';
dbconn(false);
loggedinorreturn();
$newpage = new page_verify();
$newpage->create('paysys');
//== change this \0/
$lang = array_merge(load_language('global'));
$HTMLOUT = $amount = "";
$HTMLOUT .= begin_main_frame();
//get the config from db
$pconf = sql_query('SELECT name, value FROM paypal_config') or sqlerr(__FILE__, __LINE__);
while ($ac = mysqli_fetch_assoc($pconf)) {
    $paypal_config[$ac['name']] = $ac['value'];
}
$email = $paypal_config['email'];
$enable = $paypal_config['enable'];
if ($paypal_config['enable'] != 1) {
    stderr("Sorry", "Donations not accepted at the moment");
}
$nick = $CURUSER ? $CURUSER["username"] : "******" . rand(1000, 9999);