Пример #1
0
|   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.   |
|--------------------------------------------------------------------------|
|   Project Leaders: Mindless,putyn.                                       |
|--------------------------------------------------------------------------|
_   _   _   _   _     _   _   _   _   _   _     _   _   _   _
/ \ / \ / \ / \ / \   / \ / \ / \ / \ / \ / \   / \ / \ / \ / \
( U | - | 2 | 3 | 2 )-( S | o | u | r | c | e )-( C | o | d | e )
\_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/
*/
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 . 'function_ircbot.php';
//== Updated casino.php by Bigjoos
dbconn(false);
loggedinorreturn();
$lang = array_merge(load_language('global'), load_language('casino'));
//== Config
$amnt = $nobits = $abcdefgh = 0;
$dummy = '';
$player = UC_USER;
$mb_basic = 1024 * 1024;
$max_download_user = $mb_basic * 1024 * 1024;
//= 255 Gb
$max_download_global = $mb_basic * $mb_basic * 1;
//== 10.0 Tb
$required_ratio = 0.5;
//== Min ratio
$user_everytimewin_mb = $mb_basic * 20;
//== Means users that wins under 70 mb get a cheat_value of 0 -> win every time
$cheat_value = 8;
Пример #2
0
<?php

require "include/bittorrent.php";
dbconn();
require_once get_langfile_path();
loggedinorreturn(true);
stdhead($lang_staff['head_staff']);
$Cache->new_page('staff_page', 900, true);
if (!$Cache->get_page()) {
    $Cache->add_whole_row();
    begin_main_frame();
    $secs = 900;
    $dt = TIMENOW - $secs;
    $onlineimg = "<img class=\"button_online\" src=\"pic/trans.gif\" alt=\"online\" title=\"" . $lang_staff['title_online'] . "\" />";
    $offlineimg = "<img class=\"button_offline\" src=\"pic/trans.gif\" alt=\"offline\" title=\"" . $lang_staff['title_offline'] . "\" />";
    $sendpmimg = "<img class=\"button_pm\" src=\"pic/trans.gif\" alt=\"pm\" />";
    //--------------------- FIRST LINE SUPPORT SECTION ---------------------------//
    unset($ppl);
    $res = sql_query("SELECT * FROM users WHERE users.support='yes' AND users.status='confirmed' ORDER BY users.username") or sqlerr();
    while ($arr = mysql_fetch_assoc($res)) {
        $countryrow = get_country_row($arr['country']);
        $ppl .= "<tr><td class=embedded>" . get_username($arr['id']) . "</td><td class=embedded><img width=24 height=15 src=\"pic/flag/" . $countryrow[flagpic] . "\" title=\"" . $countryrow['name'] . "\" style=\"padding-bottom:1px;\"></td>\n <td class=embedded> " . ($arr['showonline'] == 'yes' ? strtotime($arr['last_access']) > $dt ? $onlineimg : $offlineimg : $lang_staff['text_hidden_by_staff']) . "</td>" . "<td class=embedded><a href=sendmessage.php?receiver=" . $arr['id'] . " title=\"" . $lang_staff['title_send_pm'] . "\">" . $sendpmimg . "</a></td>" . "<td class=embedded>" . $arr['supportlang'] . "</td>" . "<td class=embedded>" . $arr['supportfor'] . "</td></tr>\n";
    }
    begin_frame($lang_staff['text_firstline_support'] . "<font class=small> - [<a class=altlink href=contactstaff.php><b>" . $lang_staff['text_apply_for_it'] . "</b></a>]</font>");
    echo $lang_staff['text_firstline_support_note'];
    ?>
<br /><br />
<table width=100% cellspacing=0 align=center>
	<tr>
		<td class=embedded><b><?php 
    echo $lang_staff['text_username'];