| $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; }
/** |--------------------------------------------------------------------------| | 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");
//==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()); $added = sqlesc(time());
* @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 */
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"]; $fname = unesc($f["name"]);
/** * 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// $giveinvites = $paypal_config['invites'];
**/ 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; }
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) { global $lang;
/** * 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']; }
* 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 !'); } if ($INSTALLER09['captcha_on']) {