function bark($msg)
{
    stdhead();
    stdmsg("Thanks failed!", $msg);
    stdfoot();
    exit;
}
Example #2
0
function bark($msg)
{
    stdhead();
    stdmsg("提示信息", $msg);
    stdfoot();
    exit;
}
Example #3
0
 function reqmenu($selected = "viewrequest")
 {
     global $title;
     stdhead($title);
     begin_main_frame();
     end_main_frame();
 }
Example #4
0
function bark($msg)
{
    stdhead();
    stdmsg("Ошибка", $msg);
    stdfoot();
    die;
}
Example #5
0
function bark($msg)
{
    stdhead();
    stdmsg("Update Has Failed !", $msg);
    stdfoot();
    exit;
}
Example #6
0
function bark($msg)
{
    stdhead();
    stdmsg("Failed", $msg);
    stdfoot();
    exit;
}
Example #7
0
function bark($msg)
{
    stdhead();
    stdmsg("Delete failed!", $msg);
    stdfoot();
    exit;
}
Example #8
0
function bark($msg)
{
    stdhead();
    stdmsg($tracker_lang['error'], $msg);
    stdfoot();
    exit;
}
Example #9
0
function bark($msg)
{
    stdhead();
    stdmsg($lang_takeflush['std_failed'], $msg);
    stdfoot();
    exit;
}
function bark($msg)
{
    stdhead("Error");
    stdmsg("Error", $msg);
    stdfoot();
    exit;
}
Example #11
0
function bark($msg)
{
    stdhead();
    stdmsg($lang_takeinvite['head_invitation_failed'], $msg);
    stdfoot();
    exit;
}
Example #12
0
function std_view()
{
    global $READPOST_EXPIRY, $CURUSER, $forum_pic_url;
    $forums_res = mysql_query("SELECT * FROM forums ORDER BY sort, name") or sqlerr(__FILE__, __LINE__);
    stdhead("Forums");
    $htmlout = "<h1>Forums</h1>\n";
    $htmlout .= "<div style='width:80%'><p align=right><span class='btn'><a href='forums.php?action=search'>Search</a></span>&nbsp;<span class='btn'><a href='forums.php?action=viewunread'>View unread</a></span>&nbsp;<span class='btn'><a href='forums.php?action=catchup'>Catch up</a></span></p></div>";
    $htmlout .= "<table border=1 cellspacing=0 cellpadding=5 width='80%'>\n";
    $htmlout .= "<tr><td class=colhead align=left>Forum</td><td class=colhead align=right>Topics</td>" . "<td class=colhead align=right>Posts</td>" . "<td class=colhead align=left>Last post</td></tr>\n";
    while ($forums_arr = mysql_fetch_assoc($forums_res)) {
        if (get_user_class() < $forums_arr["minclassread"]) {
            continue;
        }
        $forumid = $forums_arr["id"];
        $forumname = htmlspecialchars($forums_arr["name"]);
        $forumdescription = htmlspecialchars($forums_arr["description"]);
        $topiccount = number_format($forums_arr["topiccount"]);
        $postcount = number_format($forums_arr["postcount"]);
        $lastpostid = get_forum_last_post($forumid);
        // Get last post info
        $post_res = mysql_query("SELECT p.added, p.topicid, p.userid, u.username, t.subject\r\n\t\t\t\t\t\t\tFROM posts p\r\n\t\t\t\t\t\t\tLEFT JOIN users u ON p.userid = u.id\r\n\t\t\t\t\t\t\tLEFT JOIN topics t ON p.topicid = t.id\r\n\t\t\t\t\t\t\tWHERE p.id = {$lastpostid}") or sqlerr(__FILE__, __LINE__);
        if (mysql_num_rows($post_res) == 1) {
            $post_arr = mysql_fetch_assoc($post_res) or die("Bad forum last_post");
            $lastposterid = $post_arr["userid"];
            $lastpostdate = get_date($post_arr["added"], '');
            $lasttopicid = $post_arr["topicid"];
            //$user_res = mysql_query("SELECT username FROM users WHERE id=$lastposterid") or sqlerr(__FILE__, __LINE__);
            //$user_arr = mysql_fetch_assoc($user_res);
            $lastposter = htmlspecialchars($post_arr['username']);
            //$topic_res = mysql_query("SELECT subject FROM topics WHERE id=$lasttopicid") or sqlerr(__FILE__, __LINE__);
            //$topic_arr = mysql_fetch_assoc($topic_res);
            $lasttopic = htmlspecialchars($post_arr['subject']);
            $lastpost = "<nobr>{$lastpostdate}<br>" . "by <a href=userdetails.php?id={$lastposterid}><b>{$lastposter}</b></a><br>" . "in <a href=?action=viewtopic&topicid={$lasttopicid}&amp;page=p{$lastpostid}#{$lastpostid}><b>{$lasttopic}</b></a></nobr>";
            $r = mysql_query("SELECT lastpostread FROM readposts WHERE userid={$CURUSER['id']} AND topicid={$lasttopicid}") or sqlerr(__FILE__, __LINE__);
            $a = mysql_fetch_row($r);
            //..rp..
            $npostcheck = $post_arr['added'] > time() - $READPOST_EXPIRY ? !$a or $lastpostid > $a[0] : 0;
            /* if ($a && $a[0] >= $lastpostid)
            	$img = "unlocked";
            	else
            	$img = "unlockednew";
            	*/
            if ($npostcheck) {
                $img = "unlockednew";
            } else {
                $img = "unlocked";
            }
            // ..rp..
        } else {
            $lastpost = "N/A";
            $img = "unlocked";
        }
        $htmlout .= "<tr><td align=left><table border=0 cellspacing=0 cellpadding=0><tr><td class=embedded style='padding-right: 5px'>" . "<img src=\"{$forum_pic_url}{$img}.gif\"></td>" . "<td class=embedded><a href=?action=viewforum&forumid={$forumid}><b>{$forumname}</b></a><br>\n" . "{$forumdescription}</td></tr></table></td><td align=right>{$topiccount}</td>" . "</td><td align=right>{$postcount}</td>" . "<td align=left>{$lastpost}</td></tr>\n";
    }
    $htmlout .= "</table>\n<br />\n";
    $htmlout .= "<div style='width:80%'><p align=right><span class='btn'><a href='forums.php?action=search'>Search</a></span>&nbsp;<span class='btn'><a href='forums.php?action=viewunread'>View unread</a></span>&nbsp;<span class='btn'><a href='forums.php?action=catchup'>Catch up</a></span></p></div>";
    echo $htmlout;
    stdfoot();
    exit;
}
Example #13
0
function bark($msg)
{
    stdhead();
    stdmsg("Ошибка!", $msg);
    stdfoot();
    exit;
}
function bark($msg)
{
    stdhead();
    stdmsg("Signup failed!", $msg);
    stdfoot();
    exit;
}
Example #15
0
function bark($msg)
{
    stdhead();
    stdmsg("Download failed!", $msg);
    stdfoot();
    exit;
}
Example #16
0
function bark($msg)
{
    global $lang_takesignup;
    stdhead();
    stdmsg($lang_takesignup['std_signup_failed'], $msg);
    stdfoot();
    exit;
}
Example #17
0
function bark($msg)
{
    global $lang_offers;
    stdhead($lang_offers['head_offer_error']);
    stdmsg($lang_offers['std_error'], $msg);
    stdfoot();
    exit;
}
Example #18
0
function bark($msg)
{
    global $lang_fastdelete;
    stdhead();
    stdmsg($lang_fastdelete['std_delete_failed'], $msg);
    stdfoot();
    exit;
}
Example #19
0
function bark($msg)
{
    global $lang_userdetails;
    stdhead();
    stdmsg($lang_userdetails['std_error'], $msg);
    stdfoot();
    exit;
}
Example #20
0
function bark($msg)
{
    global $lang_recover;
    stdhead();
    stdmsg($lang_recover['std_recover_failed'], $msg);
    stdfoot();
    exit;
}
Example #21
0
function bark($msg)
{
    global $tracker_lang;
    stdhead();
    stdmsg($tracker_lang['error'], $msg, 'error');
    stdfoot();
    exit;
}
Example #22
0
function bark($msg)
{
    global $lang_checkuser;
    stdhead();
    stdmsg($lang_checkuser['std_error'], $msg);
    stdfoot();
    exit;
}
Example #23
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;
}
function stderr($heading, $text)
{
    $htmlout = stdhead();
    $htmlout .= stdmsg($heading, $text);
    $htmlout .= stdfoot();
    print $htmlout;
    exit;
}
Example #25
0
function bark($title, $msg)
{
    global $lang_userdetails;
    stdhead();
    stdmsg($title, $msg);
    stdfoot();
    exit;
}
Example #26
0
function bark($msg)
{
    global $lang_confirm_resend;
    stdhead();
    stdmsg($lang_confirm_resend['resend_confirmation_email_failed'], $msg);
    stdfoot();
    exit;
}
Example #27
0
function showerror($heading = "Error", $text, $sort = "Error")
{
    stdhead("{$sort}: {$heading}");
    begin_frame("<font class='error'>{$sort}: {$heading}</font>");
    echo $text;
    end_frame();
    stdfoot();
    die;
}
Example #28
0
function newerr($heading = '', $text = '', $die = true, $div = 'error', $htmlstrip = false)
{
    $htmlout = '';
    $htmlout .= newmsg($heading, $text, $div, $htmlstrip);
    echo stdhead() . $htmlout . stdfoot();
    if ($die) {
        die;
    }
}
        $real_chance = $cheat_value + 5;
    } else {
        $real_chance = 6;
    }
    $HTMLOUT .= tr($lang['casino_your_chance'], "1 : " . $real_chance, 1);
    $HTMLOUT .= tr($lang['casino_you_can_win'], $win_amount_on_number . " * stake", 1);
    $HTMLOUT .= tr($lang['casino_bet_on_a_number'], "<input type=\"submit\" value=\"{$lang['casino_do_it']}!\" />", 1);
    $HTMLOUT .= "</table></form><br />";
    //== User stats table
    $HTMLOUT .= "<table cellspacing='0' width='650' cellpadding='3'>";
    $HTMLOUT .= "<tr><td align=\"center\" class=\"colhead\" colspan=\"3\">{$CURUSER['username']}'s {$lang['casino_details']}</td></tr>\n            <tr><td align='center'>\n            <h1>User @ {$INSTALLER09['site_name']} {$lang['casino_stdhead']}</h1>\n            <table class='message' cellspacing='0' cellpadding='5'>";
    $HTMLOUT .= tr($lang['casino_you_can_win'], mksize($max_download_user), 1);
    $HTMLOUT .= tr($lang['casino_won'], mksize($user_win), 1);
    $HTMLOUT .= tr($lang['casino_lost'], mksize($user_lost), 1);
    $HTMLOUT .= tr($lang['casino_ratio'], $casino_ratio_user, 1);
    $HTMLOUT .= tr($lang['casino_deposit_on_p2p'], mksize($user_deposit + $nobits));
    $HTMLOUT .= "</table>\n            </td><td align='center'>\n            <h1>{$lang['casino_global_stats']}</h1>\n            <table class='message' cellspacing='0' cellpadding='5'>";
    $HTMLOUT .= tr($lang['casino_users_can_win'], mksize($max_download_global), 1);
    $HTMLOUT .= tr($lang['casino_won'], mksize($global_win), 1);
    $HTMLOUT .= tr($lang['casino_lost'], mksize($global_lost), 1);
    $HTMLOUT .= tr($lang['casino_ratio'], $casino_ratio_global, 1);
    $HTMLOUT .= tr($lang['casino_deposit'], mksize($global_deposit));
    $HTMLOUT .= "</table>";
    $HTMLOUT .= "</td><td align='center'>\n            <h1>{$lang['casino_user_stats']}</h1>\n            <table class='message' cellspacing='0' cellpadding='5'>";
    $HTMLOUT .= tr($lang['casino_uploaded'], mksize($User['uploaded'] - $nobits));
    $HTMLOUT .= tr($lang['casino_downloaded'], mksize($User['downloaded']));
    $HTMLOUT .= tr($lang['casino_ratio'], $ratio);
    $HTMLOUT .= "</table></td></tr></table>";
}
echo stdhead("{$INSTALLER09['site_name']} {$lang['casino_stdhead']}") . $HTMLOUT . stdfoot();
Example #30
0
        echo $THEME;
        ?>
/theme.css" />
<script type="text/javascript" src="<?php 
        echo $site_config['SITEURL'];
        ?>
/backend/java_klappe.js"></script>
</head>
<body class="shoutbox_body">
<?php 
        echo '<div class="shoutbox_contain"><table border="0" style="width: 99%; table-layout:fixed">';
    } else {
        if ($site_config["MEMBERSONLY"]) {
            loggedinonly();
        }
        stdhead();
        begin_frame(T_("SHOUTBOX_HISTORY"));
        echo '<div class="shoutbox_history">';
        $query = 'SELECT COUNT(*) FROM shoutbox';
        $result = SQL_Query_exec($query);
        $row = mysql_fetch_row($result);
        echo '<div align="center">Pages: ';
        $pages = round($row[0] / 100) + 1;
        $i = 1;
        while ($pages > 0) {
            echo "<a href='" . $site_config['SITEURL'] . "/shoutbox.php?history=1&amp;page=" . $i . "'>[" . $i . "]</a>&nbsp;";
            $i++;
            $pages--;
        }
        echo '</div><br /><table border="0" style="width: 99%; table-layout:fixed">';
    }