/** * 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";
} //==End if (!mkglobal('username:password:captchaSelection:submitme')) { die('Something went wrong'); } if ($submitme != 'X') { stderr('Ha Ha', 'You Missed, You plonker !'); } session_start(); if (empty($captchaSelection) || $_SESSION['simpleCaptchaAnswer'] != $captchaSelection) { header('Location: login.php'); exit; } dbconn(); $lang = array_merge(load_language('global'), load_language('takelogin')); $newpage = new page_verify(); $newpage->check('takelogin'); function bark($text = 'Username or password incorrect') { global $lang; @fclose(@fopen('' . $INSTALLER09['dictbreaker'] . '/' . sha1($_SERVER['REMOTE_ADDR']), 'w')); stderr($lang['tlogin_failed'], $text); } failedloginscheck(); $res = sql_query("SELECT id, passhash, secret, enabled FROM users WHERE username = "******" AND status = 'confirmed'"); $row = mysql_fetch_assoc($res); if (!$row) { bark(); } if (!$row) { $ip = sqlesc(getip());
* Licence Info: GPL * 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>"; }
/** |--------------------------------------------------------------------------| | https://github.com/Bigjoos/ | |--------------------------------------------------------------------------| | Licence Info: GPL | |--------------------------------------------------------------------------| | Copyright (C) 2010 U-232 V5 | |--------------------------------------------------------------------------| | A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon. | |--------------------------------------------------------------------------| | Project Leaders: Mindless, Autotron, whocares, Swizzles. | |--------------------------------------------------------------------------| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ ( U | - | 2 | 3 | 2 )-( S | o | u | r | c | e )-( C | o | d | e ) \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ */ // Achievements mod by MelvinMeow require_once __DIR__ . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php'; require_once CLASS_DIR . 'page_verify.php'; require_once INCL_DIR . 'user_functions.php'; dbconn(); loggedinorreturn(); $newpage = new page_verify(); $newpage->check('takecounts'); $res = sql_query("SELECT COUNT(*) FROM topics WHERE user_id=" . sqlesc($CURUSER['id'])) or sqlerr(__FILE__, __LINE__); $arr3 = mysqli_fetch_row($res); $forumtopics = $arr3['0']; sql_query("UPDATE usersachiev SET forumtopics=" . sqlesc($forumtopics) . " WHERE id=" . sqlesc($CURUSER['id'])) or sqlerr(__FILE__, __LINE__); header("Location: {$INSTALLER09['baseurl']}/index.php");
/** who is modding by pdq **/ 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']);
* 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 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 " {$days} days, {$hours} hrs, {$mins} minutes"; } function snatchtable($res) { global $INSTALLER09, $lang;
* 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 . 'password_functions.php'; require_once INCL_DIR . 'function_bemail.php'; require_once CLASS_DIR . 'page_verify.php'; dbconn(); global $CURUSER; if (!$CURUSER) { get_template(); } $lang = array_merge(load_language('global'), load_language('takesignup')); $newpage = new page_verify(); $newpage->check('tkIs'); $res = sql_query("SELECT COUNT(id) FROM users") or sqlerr(__FILE__, __LINE__); $arr = mysqli_fetch_row($res); if ($arr[0] >= $INSTALLER09['inviteusers']) { stderr($lang['stderr_errorhead'], sprintf($lang['stderr_ulimit'], $INSTALLER09['inviteusers'])); } if (!$INSTALLER09['openreg_invites']) { stderr('Sorry', 'Invite Signups are closed presently'); } if (!mkglobal('wantusername:wantpassword:passagain:email:invite' . ($INSTALLER09['captcha_on'] ? ":captchaSelection:" : ":") . 'submitme:passhint:hintanswer')) { stderr("Oops", "Missing form data - You must fill all fields"); } if ($submitme != 'X') { stderr('Ha Ha', 'You Missed, You plonker !'); }
* 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'> File: <input type='file' name='file1' size='50' /><br /><br /> NFO:<input type='file' name='nfo1' size='50' /><br /><br /> Type:<select name='type1'>\n<option value='0'>(choose type)</option>{$s}</select> Anonymous upload:<input type='checkbox' name='uplver1' value='yes' /> 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'> File: <input type='file' name='file2' size='50' /><br /><br /> NFO:<input type='file' name='nfo2' size='50' /><br /><br /> Type:<select name='type2'>\n<option value='0'>(choose type)</option>{$s}</select> Anonymous upload:<input type='checkbox' name='uplver2' value='yes' /> 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'> File: <input type='file' name='file3' size='50' /><br /><br /> NFO:<input type='file' name='nfo3' size='50' /><br /><br /> Type:<select name='type3'>\n<option value='0'>(choose type)</option>{$s}</select> Anonymous upload:<input type='checkbox' name='uplver3' value='yes' /> 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'> File: <input type='file' name='file4' size='50' /><br /><br /> NFO:<input type='file' name='nfo4' size='50' /><br /><br /> Type:<select name='type4'>\n<option value='0'>(choose type)</option>{$s}</select> Anonymous upload:<input type='checkbox' name='uplver4' value='yes' /> 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'> File: <input type='file' name='file5' size='50' /><br /><br /> NFO:<input type='file' name='nfo5' size='50' /><br /><br /> Type:<select name='type5'>\n<option value='0'>(choose type)</option>{$s}</select> Anonymous upload:<input type='checkbox' name='uplver5' value='yes' /> 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();
/** * 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 CLASS_DIR . 'page_verify.php'; dbconn(false); loggedinorreturn(); $newpage = new page_verify(); $newpage->check('paysys'); //== change this \0/ $HTMLOUT = $curuser_cache = $user_cache = $stats_cache = $user_stats_cache = ''; //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']; } //GB TO GIVE PER £// $givegb = $paypal_config['gb'] * 1024 * 1024 * 1024; //$givegb = 1*1024*1024; //1GB per £1 donated //TIME TO GIVE PER £5// $givetime = $paypal_config['weeks'] * 604800; //$givetime = 0.5*108000; //108000 = 30 days //set for 15 days per £5 donated //INVITES TO GIVE PER £5//
* 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 . 'page_verify.php'; if ($_SERVER["REQUEST_METHOD"] != "POST") { stderr("Error", "Method"); } dbconn(); loggedinorreturn(); if ($CURUSER["sendpmpos"] == 0 || $CURUSER["sendpmpos"] > 1) { stderr($lang['takemessage_sorry'], $lang['takemessage_no_auth']); } $lang = array_merge(load_language('global'), load_language('takemessage')); flood_limit('messages'); $newpage = new page_verify(); $newpage->check('tkmg'); function ratios($up, $down) { global $lang; if ($down > 0) { $ratio = number_format($up / $down, 3); return "<font color='" . get_ratio_color($ratio) . "'>{$ratio}</font>"; } else { if ($up > 0) { return $lang['takemessage_inf']; } else { return "---"; } } return;
| $URL$ | $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'>";
dbconn(); global $CURUSER; if (!$CURUSER) { get_template(); } $ip = getip(); 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>'); } $res = sql_query("SELECT COUNT(id) FROM users") or sqlerr(__FILE__, __LINE__); $arr = mysqli_fetch_row($res); if ($arr[0] >= $INSTALLER09['maxusers']) { stderr($lang['takesignup_error'], $lang['takesignup_limit']); } $lang = array_merge(load_language('global'), load_language('takesignup')); $newpage = new page_verify(); $newpage->check('tesu'); if (!mkglobal('wantusername:wantpassword:passagain:email' . ($INSTALLER09['captcha_on'] ? ":captchaSelection:" : ":") . 'submitme:passhint:hintanswer:country')) { stderr($lang['takesignup_user_error'], $lang['takesignup_form_data']); } if ($submitme != 'X') { stderr('Ha Ha', 'You Missed, You plonker !'); } if ($INSTALLER09['captcha_on']) { if (empty($captchaSelection) || $_SESSION['simpleCaptchaAnswer'] != $captchaSelection) { header('Location: signup.php'); exit; } } function validusername($username) {
<?php /** * https://09source.kicks-ass.net:8443/svn/installer09/ * Licence Info: GPL * 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(false); loggedinorreturn(); $lang = array_merge(load_language('global'), load_language('modtask')); $newpage = new page_verify(); $newpage->check('mdk1@@9'); function write_info($text) { $text = sqlesc($text); $added = sqlesc(time()); sql_query("INSERT INTO infolog (added, txt) VALUES({$added}, {$text})") or sqlerr(__FILE__, __LINE__); } function resize_image($in) { $out = array('img_width' => $in['cur_width'], 'img_height' => $in['cur_height']); if ($in['cur_width'] > $in['max_width']) { $out['img_width'] = $in['max_width']; $out['img_height'] = ceil($in['cur_height'] * ($in['max_width'] * 100 / $in['cur_width']) / 100); $in['cur_height'] = $out['img_height']; $in['cur_width'] = $out['img_width'];
/** * 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']));
| $Date$ 010810 | $Revision$ 2.0 | $Author$ Bigjoos | $URL$ | $takeeditcp | +------------------------------------------------ */ 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'; require_once INCL_DIR . 'password_functions.php'; dbconn(); loggedinorreturn(); $lang = array_merge(load_language('global'), load_language('takeeditcp')); $newpage = new page_verify(); $newpage->check('tkepe'); function resize_image($in) { $out = array('img_width' => $in['cur_width'], 'img_height' => $in['cur_height']); if ($in['cur_width'] > $in['max_width']) { $out['img_width'] = $in['max_width']; $out['img_height'] = ceil($in['cur_height'] * ($in['max_width'] * 100 / $in['cur_width']) / 100); $in['cur_height'] = $out['img_height']; $in['cur_width'] = $out['img_width']; } if ($in['cur_height'] > $in['max_height']) { $out['img_height'] = $in['max_height']; $out['img_width'] = ceil($in['cur_width'] * ($in['max_height'] * 100 / $in['cur_height']) / 100); } return $out;
/** * @Credits Retro-Neptune-Bigjoos * @Project TBDev.net 09 takeedit.php * @Category Addon Mods * @Date Monday, Aug 2, 2010 */ 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'; require_once INCL_DIR . 'function_memcache.php'; define('MIN_CLASS', UC_STAFF); define('NFO_SIZE', 65535); dbconn(); loggedinorreturn(); $lang = array_merge(load_language('global'), load_language('takeedit')); $newpage = new page_verify(); $newpage->check('teit'); $torrent_cache = $torrent_txt_cache = ''; $possible_extensions = array('nfo', 'txt'); if (!mkglobal('id:name:descr:type')) { die('Id,descr,name or type missing'); } $id = isset($_POST['id']) ? (int) $_POST['id'] : 0; if (!is_valid_id($id)) { stderr($lang['takedit_failed'], $lang['takedit_no_data']); } /** * * @Function valid_torrent_name * @Notes only safe characters are allowed.. * @Begin
if (!$CURUSER) { 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()
require_once CLASS_DIR . 'class.bencdec.php'; require_once INCL_DIR . 'function_ircbot.php'; require_once INCL_DIR . 'function_memcache.php'; dbconn(); loggedinorreturn(); ini_set('upload_max_filesize', $INSTALLER09['max_torrent_size']); ini_set('memory_limit', '64M'); //smth putyn //print_r($_POST); //print_r($_GET); //exit(); $auth_key = array('2d257f64005d740db092a6b91170ab5f'); $gotkey = isset($_POST['key']) && strlen($_POST['key']) == 32 && in_array($_POST['key'], $auth_key) ? true : false; $lang = array_merge(load_language('global'), load_language('takeupload')); if (!$gotkey) { $newpage = new page_verify(); $newpage->check('taud'); } if ($CURUSER['class'] < UC_UPLOADER or $CURUSER["uploadpos"] == 0 || $CURUSER["uploadpos"] > 1 || $CURUSER['suspended'] == 'yes') { header("Location: {$INSTALLER09['baseurl']}/upload.php"); exit; } foreach (explode(":", "descr:type:name") as $v) { if (!isset($_POST[$v])) { stderr($lang['takeupload_failed'], $lang['takeupload_no_formdata']); } } if (!isset($_FILES["file"])) { stderr($lang['takeupload_failed'], $lang['takeupload_no_formdata']); } $f = $_FILES["file"];
/** * 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__);
/** * 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"); }