Example #1
0
 _   _   _   _   _     _   _   _   _   _   _     _   _   _   _
/ \ / \ / \ / \ / \   / \ / \ / \ / \ / \ / \   / \ / \ / \ / \
( U | - | 2 | 3 | 2 )-( S | o | u | r | c | e )-( C | o | d | e )
\_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/
*/
require_once __DIR__ . 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 . 'comment_functions.php';
dbconn(false);
loggedinorreturn();
$lang = array_merge(load_language('global'), load_language('comment'), load_language('capprove'));
if ($CURUSER['suspended'] == 'yes') {
    stderr("Sorry", "Your account is suspended");
}
flood_limit('comments');
$action = isset($_GET['action']) ? htmlsafechars($_GET['action']) : 0;
//$vaction = array('add','delete','edit','approve','disapprove','vieworiginal','');
//$action = (isset($_POST['action']) && in_array($_POST['action'],$vaction) ? htmlsafechars($_POST['action']) : (isset($_GET['action']) && in_array($_GET['action'],$vaction) ? htmlsafechars($_GET['action']) : ''));
$stdhead = array('css' => array('bbcode', 'forums', 'style', 'style2'));
$stdfoot = array('js' => array('shout', 'check_selected'));
/** comment stuffs by pdq **/
$locale = 'torrent';
$locale_link = 'details';
$extra_link = '';
$sql_1 = 'name, owner, comments, anonymous FROM torrents';
// , anonymous
$name = 'name';
$table_type = $locale . 's';
$_GET['type'] = isset($_GET['type']) ? $_GET['type'] : (isset($_POST['locale']) ? $_POST['locale'] : '');
if (isset($_GET['type'])) {
Example #2
0
 *   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 . '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 "---";
        }
    }