function bark($msg)
{
    stdhead();
    stdmsg("Thanks failed!", $msg);
    stdfoot();
    exit;
}
Beispiel #2
0
function bark($msg)
{
    stdhead();
    stdmsg("提示信息", $msg);
    stdfoot();
    exit;
}
Beispiel #3
0
function bark($msg)
{
    stdhead();
    stdmsg("Update Has Failed !", $msg);
    stdfoot();
    exit;
}
Beispiel #4
0
function bark($msg)
{
    stdhead();
    stdmsg("Ошибка", $msg);
    stdfoot();
    die;
}
Beispiel #5
0
function bark($msg)
{
    stdhead();
    stdmsg($lang_takeinvite['head_invitation_failed'], $msg);
    stdfoot();
    exit;
}
function bark($msg)
{
    stdhead("Error");
    stdmsg("Error", $msg);
    stdfoot();
    exit;
}
Beispiel #7
0
function bark($msg)
{
    stdhead();
    stdmsg("Delete failed!", $msg);
    stdfoot();
    exit;
}
function bark($msg)
{
    stdhead();
    stdmsg("Signup failed!", $msg);
    stdfoot();
    exit;
}
Beispiel #9
0
function bark($msg)
{
    stdhead();
    stdmsg("Failed", $msg);
    stdfoot();
    exit;
}
function bark($msg)
{
    stdhead();
    stdmsg("Download failed!", $msg);
    stdfoot();
    exit;
}
Beispiel #11
0
function iUsers($iname, $ipass, $imail)
{
    global $admin_file, $CURUSER;
    if ($_SERVER["REQUEST_METHOD"] == "POST") {
        list($iclass) = mysql_fetch_row(sql_query('SELECT class FROM users WHERE username = '******'Администратор ' . $CURUSER['username'] . ' пробовал изменить учетные данные пользователя ' . $iname . ' классом выше!', 'red', 'error');
        } else {
            $updateset = array();
            if (!empty($ipass)) {
                $secret = mksecret();
                $hash = md5($secret . $ipass . $secret);
                $updateset[] = "secret = " . sqlesc($secret);
                $updateset[] = "passhash = " . sqlesc($hash);
            }
            if (!empty($imail) && validemail($imail)) {
                $updateset[] = "email = " . sqlesc($imail);
            }
            if (count($updateset)) {
                $res = sql_query("UPDATE users SET " . implode(", ", $updateset) . " WHERE username = "******"Ошибка", "Смена пароля завершилась неудачей! Возможно указано несуществующее имя пользователя.", "error");
            } else {
                stdmsg("Изменения пользователя прошло успешно", "Имя пользователя: " . $iname . (!empty($hash) ? "<br />Новый пароль: " . $ipass : "") . (!empty($imail) ? "<br />Новая почта: " . $imail : ""));
            }
        }
    } else {
        echo "<form method=\"post\" action=\"" . $admin_file . ".php?op=iUsers\">" . "<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\">" . "<tr><td class=\"colhead\" colspan=\"2\">Смена пароля</td></tr>" . "<tr>" . "<td><b>Пользователь</b></td>" . "<td><input name=\"iname\" type=\"text\"></td>" . "</tr>" . "<tr>" . "<td><b>Новый пароль</b></td>" . "<td><input name=\"ipass\" type=\"password\"></td>" . "</tr>" . "<tr>" . "<td><b>Новая почта</b></td>" . "<td><input name=\"imail\" type=\"text\"></td>" . "</tr>" . "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" name=\"isub\" value=\"Сделать\"></td></tr>" . "</table>" . "<input type=\"hidden\" name=\"op\" value=\"iUsers\" />" . "</form>";
    }
}
Beispiel #12
0
function bark($msg)
{
    stdhead();
    stdmsg($tracker_lang['error'], $msg);
    stdfoot();
    exit;
}
Beispiel #13
0
function bark($msg)
{
    stdhead();
    stdmsg($lang_takeflush['std_failed'], $msg);
    stdfoot();
    exit;
}
Beispiel #14
0
function bark($msg)
{
    stdhead();
    stdmsg("Ошибка!", $msg);
    stdfoot();
    exit;
}
Beispiel #15
0
function bark($msg)
{
    global $lang_takesignup;
    stdhead();
    stdmsg($lang_takesignup['std_signup_failed'], $msg);
    stdfoot();
    exit;
}
Beispiel #16
0
function bark($msg)
{
    global $lang_offers;
    stdhead($lang_offers['head_offer_error']);
    stdmsg($lang_offers['std_error'], $msg);
    stdfoot();
    exit;
}
Beispiel #17
0
function bark($msg)
{
    global $lang_userdetails;
    stdhead();
    stdmsg($lang_userdetails['std_error'], $msg);
    stdfoot();
    exit;
}
Beispiel #18
0
function bark($msg)
{
    global $lang_recover;
    stdhead();
    stdmsg($lang_recover['std_recover_failed'], $msg);
    stdfoot();
    exit;
}
Beispiel #19
0
function bark($msg, $error = true)
{
    global $tracker_lang;
    stdhead($error ? $tracker_lang['error'] : $tracker_lang['torrent'] . " " . $tracker_lang['bookmarked']);
    stdmsg($error ? $tracker_lang['error'] : $tracker_lang['success'], $msg, $error ? 'error' : 'success');
    stdfoot();
    exit;
}
Beispiel #20
0
function bark($msg)
{
    global $lang_checkuser;
    stdhead();
    stdmsg($lang_checkuser['std_error'], $msg);
    stdfoot();
    exit;
}
Beispiel #21
0
function bark($msg)
{
    global $tracker_lang;
    stdhead();
    stdmsg($tracker_lang['error'], $msg, 'error');
    stdfoot();
    exit;
}
function stderr($heading, $text)
{
    $htmlout = stdhead();
    $htmlout .= stdmsg($heading, $text);
    $htmlout .= stdfoot();
    print $htmlout;
    exit;
}
Beispiel #23
0
function bark($msg)
{
    global $lang_confirm_resend;
    stdhead();
    stdmsg($lang_confirm_resend['resend_confirmation_email_failed'], $msg);
    stdfoot();
    exit;
}
Beispiel #24
0
function bark($msg)
{
    global $lang_fastdelete;
    stdhead();
    stdmsg($lang_fastdelete['std_delete_failed'], $msg);
    stdfoot();
    exit;
}
Beispiel #25
0
function bark($msg)
{
    //stdhead();
    global $lang_usercp;
    stdmsg($lang_usercp['std_sorry'], $msg);
    //stdfoot();
    exit;
}
Beispiel #26
0
function bark($title, $msg)
{
    global $lang_userdetails;
    stdhead();
    stdmsg($title, $msg);
    stdfoot();
    exit;
}
Beispiel #27
0
    exit;
}
switch ($do) {
    case "disabled":
        $query = "SELECT id,username, class, downloaded, uploaded, IF(downloaded>0, round((uploaded/downloaded),2), '---') as ratio, disable_reason, added, last_access FROM users WHERE enabled='no' ORDER BY last_access DESC ";
        $title = "Disabled users";
        $link = "<a href=\"staffpanel.php?tool=warn&amp;action=warn&amp;?do=warned\">warned users</a>";
        break;
    case "warned":
        $query = "SELECT id, username, class, downloaded, uploaded, IF(downloaded>0, round((uploaded/downloaded),2), '---') as ratio, warn_reason, warned, added, last_access FROM users WHERE warned>='1' ORDER BY last_access DESC, warned DESC ";
        $title = "Warned users";
        $link = "<a href=\"staffpanel.php?tool=warn&amp;action=warn&amp;do=disabled\">disabled users</a>";
        break;
}
$g = sql_query($query) or print mysql_error();
$count = mysql_num_rows($g);
$HTMLOUT .= begin_main_frame();
$HTMLOUT .= begin_frame($title . "&nbsp;[<font class=\"small\">total - " . $count . " user" . ($count > 1 ? "s" : "") . "</font>] - " . $link);
if ($count == 0) {
    $HTMLOUT .= stdmsg("hey", "There is no " . strtolower($title));
} else {
    $HTMLOUT .= "<form action='staffpanel.php?tool=warn&amp;action=warn' method='post'>\r\n\t\t<table width='600' cellpadding='3' cellspacing='2' style='border-collapse:separate;' align='center'>\r\n\t\t<tr>    \t\r\n\t\t\t<td class='colhead' align='left' width='100%' >User</td>\r\n\t\t\t<td class='colhead' align='center' nowrap='nowrap'>Ratio</td>\r\n\t\t\t<td class='colhead' align='center' nowrap='nowrap'>Class</td>\r\n\t\t\t<td class='colhead' align='center' nowrap='nowrap'>Last access</td>\r\n\t\t\t<td class='colhead' align='center' nowrap='nowrap'>Joined</td>\r\n\t\t\t<td class='colhead' align='center' nowrap='nowrap'><input type='checkbox' name='checkall' /></td>\r\n\t\t</tr>";
    while ($a = mysql_fetch_assoc($g)) {
        $tip = $do == "warned" ? "Warned for : " . $a["warn_reason"] . "<br />" . " Warned till " . get_date($a["warned"], 'DATE', 1) . " - " . mkprettytime($a['warned'] - time()) : "Disabled for " . $a["disable_reason"];
        $HTMLOUT .= "<tr>\r\n\t\t\t\t  <td align='left' width='100%'><a href='userdetails.php?id={$a["id"]}' onmouseover=\"Tip('({$tip})')\" onmouseout=\"UnTip()\">{$a["username"]}</a></td>\r\n\t\t\t\t  <td align='left' nowrap='nowrap'>{$a["ratio"]}<br /><font class='small'><b>D: </b>" . mksize($a["downloaded"]) . "&nbsp;<b>U:</b> " . mksize($a["uploaded"]) . "</font></td>\r\n\t\t\t\t  <td align='center' nowrap='nowrap'>" . get_user_class_name($a["class"]) . "</td>\r\n\t\t\t\t  <td align='center' nowrap='nowrap'>" . get_date($a["last_access"], 'LONG', 0, 1) . "</td>\r\n\t\t\t\t  <td align='center' nowrap='nowrap'>" . get_date($a["added"], 'DATE', 1) . "</td>\r\n\t\t\t\t  <td align='center' nowrap='nowrap'><input type='checkbox' name='users[]' value='{$a["id"]}' /></td>\r\n\t\t\t\t</tr>";
    }
    $HTMLOUT .= "<tr>\r\n\t\t\t<td colspan='6' class='colhead' align='center'>\r\n\t\t\t\t<select name='action'>\r\n\t\t\t\t\t<option value='unwarn'>Unwarn</option>\r\n\t\t\t\t\t<option value='disable'>Disable</option>\r\n\t\t\t\t\t<option value='delete'>Delete</option>\r\n\t\t\t\t</select>\r\n\t\t\t\t&raquo;\r\n\t\t\t\t<input type='submit' value='Apply' />\r\n\t\t\t\t<input type='hidden' value='" . htmlspecialchars($_SERVER["REQUEST_URI"]) . "' name='ref' />\r\n\t\t\t</td>\r\n\t\t\t</tr>\r\n\t\t\t</table>\r\n\t\t\t</form>";
}
$HTMLOUT .= end_frame();
$HTMLOUT .= end_main_frame();
echo stdhead($title) . $HTMLOUT . stdfoot($stdfoot);
Beispiel #28
0
getpage();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_POWER_USER) {
    stdhead();
    stdmsg("Sorry...", "You must be a Power User or above to play Blackjack.");
    stdfoot();
    exit;
}
if ($CURUSER["blackjackban"] == 'yes') {
    stdhead();
    stdmsg("Sorry...", "You are Banned from playing Blackjack.  (See site staff for the reason why !");
    stdfoot();
    exit;
}
// Bet size - 100 MB
$mb = 100 * 1024 * 1024;
$now = sqlesc(get_date_time());
// Pull the user's statisctics
$r = sql_query("SELECT bjwins, bjlosses FROM users WHERE id={$CURUSER['id']}");
$a = mysql_fetch_array($r);
$tot_wins = $a[bjwins];
$tot_losses = $a[bjlosses];
$tot_games = $tot_wins + $tot_losses;
// If this gets through there is an error somewhere!
$win_perc = "<a href=\"/sendmessage.php?receiver=1\">Error!</a>";
// Calculate user's win percentage
Beispiel #29
0
function bark($msg)
{
    stdmsg("Signup Failed! (See Below)", $msg, false);
    exit;
}
 $HTMLOUT .= begin_frame();
 $s = isset($_GET["s"]) ? htmlsafechars($_GET["s"]) : "";
 $w = isset($_GET["w"]) ? htmlsafechars($_GET["w"]) : "";
 if ($s && $w == "name") {
     $where = "WHERE s.name LIKE " . sqlesc("%" . $s . "%");
 } elseif ($s && $w == "imdb") {
     $where = "WHERE s.imdb LIKE " . sqlesc("%" . $s . "%");
 } elseif ($s && $w == "comment") {
     $where = "WHERE s.comment LIKE " . sqlesc("%" . $s . "%");
 } else {
     $where = "";
 }
 $link = $s && $w ? "s={$s}&amp;w={$w}&amp;" : "";
 $count = get_row_count("subtitles AS s", "{$where}");
 if ($count == 0 && !$s && !$w) {
     stdmsg("", "There is no subtitle, go <a href=\"subtitles.php?mode=upload\">here</a> and start uploading.", false);
 }
 $perpage = 5;
 $pager = pager($perpage, $count, "subtitles.php?" . $link);
 $res = sql_query("SELECT s.id, s.name,s.lang, s.imdb,s.fps,s.poster,s.cds,s.hits,s.added,s.owner,s.comment, u.username FROM subtitles AS s LEFT JOIN users AS u ON s.owner=u.id {$where} ORDER BY s.added DESC {$pager['limit']}") or sqlerr(__FILE__, __LINE__);
 $HTMLOUT .= "<table width='700' cellpadding='5' cellspacing='0' border='0' align='center' style='font-weight:bold'>\n<tr><td style='border:none' valign='middle'>\n<fieldset style='text-align:center; border:#0066CC solid 1px; background-color:#999999'>\n<legend style='text-align:center; border:#0066CC solid 1px ; background-color:#999999;font-size:13px;'><b>Search</b></legend>\n<form action='subtitles.php' method='get'>\n<input size='50' value='" . $s . "' name='s' type='text' />\n<select name='w'>\n<option value='name' " . ($w == "name" ? "selected='selected'" : "") . ">Name</option>\n<option value='imdb' " . ($w == "imdb" ? "selected='selected'" : "") . ">IMDb</option>\n<option value='comment' " . ($w == "comment" ? "selected='selected'" : "") . ">Comments</option>\n</select>\n<input type='submit' value='Search' />&nbsp;<input type='button' onclick=\"window.location.href='subtitles.php?mode=upload'\" value='Upload' />\n</form></fieldset></td></tr>";
 if ($s) {
     $HTMLOUT .= "<tr><td style='border:none;'>Search result for <i>'{$s}'</i><br />" . (mysqli_num_rows($res) == 0 ? "Nothing found! Try again with a refined search string." : "") . "</td></tr>";
 }
 $HTMLOUT .= "\n</table>\n<br />";
 if (mysqli_num_rows($res) > 0) {
     if ($count > $perpage) {
         $HTMLOUT .= "<div align=\"left\" style=\"padding:5px\">{$pager['pagertop']}</div>";
     }
     $HTMLOUT .= "<table width='700' cellpadding='5' cellspacing='0' border='1' align='center' style='font-weight:bold'>\n<tr><td class='colhead' align='center'>Lang</td>\n<td class='colhead' align='left' style='width:80%'>Name</td>\n<td class='colhead' align='center'>IMDb</td>\n<td class='colhead' align='center'>Added</td>\n<td class='colhead' align='center'>Hits</td>\n<td class='colhead' align='center'>FPS</td>\n<td class='colhead' align='center'>CD#</td>";
     while ($arr = mysqli_fetch_assoc($res)) {