本文整理汇总了PHP中bark函数的典型用法代码示例。如果您正苦于以下问题:PHP bark函数的具体用法?PHP bark怎么用?PHP bark使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bark函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dict_check
function dict_check($d, $s)
{
global $lang_takeupload;
if ($d["type"] != "dictionary") {
bark($lang_takeupload['std_not_a_dictionary']);
}
$a = explode(":", $s);
$dd = $d["value"];
$ret = array();
foreach ($a as $k) {
unset($t);
if (preg_match('/^(.*)\\((.*)\\)$/', $k, $m)) {
$k = $m[1];
$t = $m[2];
}
if (!isset($dd[$k])) {
bark($lang_takeupload['std_dictionary_is_missing_key']);
}
if (isset($t)) {
if ($dd[$k]["type"] != $t) {
bark($lang_takeupload['std_invalid_entry_in_dictionary']);
}
$ret[] = $dd[$k]["value"];
} else {
$ret[] = $dd[$k];
}
}
return $ret;
}
示例2: addbookmark
function addbookmark($torrentid)
{
global $CURUSER;
if (get_row_count("bookmarks", "WHERE userid={$CURUSER['id']} AND torrentid = {$torrentid}") > 0) {
bark("Torrent already bookmarked");
}
mysql_query("INSERT INTO bookmarks (userid, torrentid) VALUES ({$CURUSER['id']}, {$torrentid})") or sqlerr(__FILE__, __LINE__);
}
示例3: invite
function invite($email)
{
global $CURUSER;
global $SITENAME;
global $BASEURL;
global $SITEEMAIL;
global $lang_takeinvite;
$id = $CURUSER[id];
$email = unesc(htmlspecialchars(trim($email)));
$email = safe_email($email);
if (!$email) {
bark($lang_takeinvite['std_must_enter_email']);
}
if (!check_email($email)) {
bark($lang_takeinvite['std_invalid_email_address']);
}
if (EmailBanned($email)) {
bark($lang_takeinvite['std_email_address_banned']);
}
if (!EmailAllowed($email)) {
bark($lang_takeinvite['std_wrong_email_address_domains'] . allowedemails());
}
$body = "\n你好,\n\n我邀请你加入 {$SITENAME}, 这是一个拥有丰富资源的非开放社区. \n如果你有兴趣加入我们请阅读规则并确认邀请.最后,确保维持一个良好的分享率 \n分享允许的资源.\n\n欢迎到来! :)\n";
$body = str_replace("<br />", "<br />", nl2br(trim(strip_tags($body))));
if (!$body) {
bark($lang_takeinvite['std_must_enter_personal_message']);
}
// check if email addy is already in use
$a = @mysql_fetch_row(@sql_query("select count(*) from users where email=" . sqlesc($email))) or die(mysql_error());
if ($a[0] != 0) {
bark($lang_takeinvite['std_email_address'] . htmlspecialchars($email) . $lang_takeinvite['std_is_in_use']);
}
$b = @mysql_fetch_row(@sql_query("select count(*) from invites where invitee=" . sqlesc($email))) or die(mysql_error());
if ($b[0] != 0) {
bark($lang_takeinvite['std_invitation_already_sent_to'] . htmlspecialchars($email) . $lang_takeinvite['std_await_user_registeration']);
}
$ret = sql_query("SELECT username FROM users WHERE id = " . sqlesc($id)) or sqlerr();
$arr = mysql_fetch_assoc($ret);
$hash = md5(mt_rand(1, 10000) . $CURUSER['username'] . TIMENOW . $CURUSER['passhash']);
$title = $SITENAME . $lang_takeinvite['mail_tilte'];
$message = <<<EOD
{$lang_takeinvite['mail_one']}{$arr[username]}{$lang_takeinvite['mail_two']}
<b><a href="http://{$BASEURL}/signup.php?type=invite&invitenumber={$hash}" target="_blank">{$lang_takeinvite['mail_here']}</a></b><br />
http://{$BASEURL}/signup.php?type=invite&invitenumber={$hash}
<br />{$lang_takeinvite['mail_three']}{$invite_timeout}{$lang_takeinvite['mail_four']}{$arr[username]}{$lang_takeinvite['mail_five']}<br />
{$body}
<br /><br />{$lang_takeinvite['mail_six']}
EOD;
sent_mail($email, $SITENAME, $SITEEMAIL, change_email_encode(get_langfolder_cookie(), $title), change_email_encode(get_langfolder_cookie(), $message), "invitesignup", false, false, '', get_email_encode(get_langfolder_cookie()));
//this email is sent only when someone give out an invitation
sql_query("INSERT INTO invites (inviter, invitee, hash, time_invited) VALUES ('" . mysql_real_escape_string($id) . "', '" . mysql_real_escape_string($email) . "', '" . mysql_real_escape_string($hash) . "', " . sqlesc(date("Y-m-d H:i:s")) . ")");
}
示例4: TTorrentFile
function TTorrentFile($fname, $size)
{
$this->dict = new TDict($fname, $size);
if ($this->dict->ErrorMsg != '') {
bark($dict->ErrorMsg);
}
$this->_tmpname = $fname;
$info = new TDict('', $this->dict->check("info"));
list($dname, $plen, $pieces) = $info->check("name(string):piece length(integer):pieces(string)");
$this->downloadName = $dname;
if (strlen($pieces) % 20 != 0) {
die("invalid pieces");
}
$this->filelist = array();
$totallen = $info->get("length", "integer");
if (isset($totallen)) {
$this->filelist[] = array('filename' => $dname, 'size' => $totallen);
$this->type = "single";
$this->totalSize = $totallen;
$this->numFiles = 1;
} else {
$this->multiList = new TFileList($info->get("files", "list"));
$this->type = "multi";
$this->filelist = $this->multiList->filelist;
$this->totalSize = $this->multiList->totalSize;
$this->numFiles = $this->multiList->count;
}
// change announce url to local
$this->dict->hashSetter("['value']['announce']", bdec(benc_str(DEFAULTBASEURL . "/announce.php")));
// add private tracker flag
$this->dict->hashSetter('[\'value\'][\'info\'][\'value\'][\'private\']', bdec('i1e'));
// add link for bitcomet users
$this->dict->hashSetter('[\'value\'][\'info\'][\'value\'][\'source\']', bdec(benc_str("[" . DEFAULTBASEURL . "] " . SITENAME)));
$this->dict->unsetHash('[\'value\'][\'announce-list\']');
// remove multi-tracker capability
$this->dict->unsetHash('[\'value\'][\'nodes\']');
// remove cached peers (Bitcomet & Azareus)
$this->dict->unsetHash('[\'value\'][\'info\'][\'value\'][\'crc32\']');
// remove crc32
$this->dict->unsetHash('[\'value\'][\'info\'][\'value\'][\'ed2k\']');
// remove ed2k
$this->dict->unsetHash('[\'value\'][\'info\'][\'value\'][\'md5sum\']');
// remove md5sum
$this->dict->unsetHash('[\'value\'][\'info\'][\'value\'][\'sha1\']');
// remove sha1
$this->dict->unsetHash('[\'value\'][\'info\'][\'value\'][\'tiger\']');
// remove tiger
$this->dict->unsetHash('[\'value\'][\'azureus_properties\']');
// remove azureus properties
// double up on the becoding solves the occassional misgenerated infohash
$this->dict->doubleUp();
}
示例5: dict_check
public static function dict_check($d, $s)
{
if ($d["type"] != "dictionary") {
bark("not a dictionary");
}
$a = explode(":", $s);
$dd = $d["value"];
$ret = array();
foreach ($a as $k) {
unset($t);
if (preg_match('/^(.*)\\((.*)\\)$/', $k, $m)) {
$k = $m[1];
$t = $m[2];
}
if (!isset($dd[$k])) {
bark("dictionary is missing key(s)");
}
if (isset($t)) {
if ($dd[$k]["type"] != $t) {
bark("invalid entry in dictionary");
}
$ret[] = $dd[$k]["value"];
} else {
$ret[] = $dd[$k];
}
}
return $ret;
}
示例6: elseif
$r = $_POST["r"];
$reason = $_POST["reason"];
if ($rt == 1) {
$reasonstr = "Мертвый: 0 раздающих, 0 качающих = 0 пиров";
} elseif ($rt == 2) {
$reasonstr = "Двойник" . ($reason[0] ? ": " . trim($reason[0]) : "!");
} elseif ($rt == 3) {
$reasonstr = "Nuked" . ($reason[1] ? ": " . trim($reason[1]) : "!");
} elseif ($rt == 4) {
if (!$reason[2]) {
bark("Вы не написали пукт правил, которые этот торрент нарушил.");
}
$reasonstr = "Нарушение правил: " . trim($reason[2]);
} else {
if (!$reason[3]) {
bark("Вы не написали причину, почему удаляете торрент.");
}
$reasonstr = trim($reason[3]);
}
deletetorrent($id);
write_log("Торрент {$id} ({$row['name']}) был удален пользователем {$CURUSER['username']} (" . htmlspecialchars_uni($reasonstr) . ")\n", "F25B61", "torrent");
stdhead("Торрент удален!");
if (isset($_POST["returnto"])) {
$ret = "<a href=\"" . htmlspecialchars_uni($_POST["returnto"]) . "\">Назад</a>";
} else {
$ret = "<a href=\"{$DEFAULTBASEURL}/\">На главную</a>";
}
?>
<h2>Торрент удален!</h2>
<p><?php
echo $ret;
示例7: db_conn
| =============================================
| Room Status details page
+------------------------------------------------
**/
require_once "server_config/config.php";
require_once "function/header_footer.php";
require_once "function/mysql_interface.php";
$HTMLOUT = "";
//fetch roomID from
$room_id = 0;
$room_id = 0 + $_GET["room_id"];
if ($room_id != 0) {
db_conn();
//Fetch Room details from database..
$r = @sql_query("SELECT * FROM rooms WHERE room_id={$room_id}");
$room = mysql_fetch_assoc($r) or bark("Invalid Room ID");
//fetch details
$roomName = $room["room_name"];
$roomAddress = $room["room_address"];
$noOfSeats = $room["no_of_seats"];
$roomType = $room["type"];
$seat_conf_btn = "<span class='btn'><a href='seat_config/index.php?room_id={$room_id}'><font color=#FFFFFF>Seat Config for room {$room_id}</font></a></span>";
//Don't know whether this will work or not.
$seat_conf_with_design = "<span class='btn'><a href='seat_config_link.php?action=index?room_id={$room_id}'><font color=#FFFFFF>Seat Config for room {$room_id} (Nicer version)</font></a></span>";
//More info about the rooms:: (Name, Type, Address)
$HTMLOUT .= begin_block("r_info", $caption_t = "Room Information", $per = 98, $tdcls = "colhead5", $img = "<img src='{$TK3GRE['pic_base_url']}info.png' style=' height:28px;' alt='' title='' />", $title = 'Room Information');
$HTMLOUT .= "<table class='stats' border='1' cellspacing='0' cellpadding='5' align='center'>\n\t<tr><td class='rowhead' style='font-family:Trebuchet MS' title='Room Name'>Room Name</td><td align='center'>{$roomName}</td></tr>\n <tr><td class='rowhead' style='font-family:Trebuchet MS' title='Room Type'>Room Type</td><td align='center'>{$roomType}</td></tr>\n <tr><td class='rowhead' style='font-family:Trebuchet MS' title='Room Address'>Room Address <img src='{$TK3GRE['pic_base_url']}address.png' width='25' height='25' alt=''></td><td align='center'>{$roomAddress}</td></tr>\n\t<tr><td class='rowhead' style='font-family:Trebuchet MS' title='Seat Config'>Seat Config</td><td align='center'>{$seat_conf_btn}</td></tr>\n\t</table>";
$HTMLOUT .= end_block();
$HTMLOUT .= "<br />";
//fetch seat details...
$seats = @sql_query("SELECT * FROM seats WHERE room_id={$room_id} ORDER BY seat_id ASC");
示例8: get_langfile_path
require_once get_langfile_path();
loggedinorreturn();
parked();
function bark($msg)
{
global $lang_userdetails;
stdhead();
stdmsg($lang_userdetails['std_error'], $msg);
stdfoot();
exit;
}
$id = 0 + $_GET["id"];
int_check($id, true);
if ($id != $CURUSER['id']) {
$r = sql_query("SELECT * FROM users WHERE id=" . sqlesc($id)) or sqlerr(__FILE__, __LINE__);
$user = mysql_fetch_array($r) or bark($lang_userdetails['std_no_such_user']);
} else {
$user = $CURUSER;
}
if ($user["status"] == "pending") {
stderr($lang_userdetails['std_sorry'], $lang_userdetails['std_user_not_confirmed']);
}
if ($user[added] == "0000-00-00 00:00:00") {
$joindate = $lang_userdetails['text_not_available'];
} else {
$joindate = $user[added] . " (" . gettime($user["added"], true, false, true) . ")";
}
$lastseen = $user["last_access"];
if ($lastseen == "0000-00-00 00:00:00") {
$lastseen = $lang_userdetails['text_not_available'];
} else {
示例9: dbconn
<?php
require_once "include/bittorrent.php";
dbconn();
require_once get_langfile_path();
loggedinorreturn();
function bark($msg)
{
stdhead();
stdmsg($lang_takeflush['std_failed'], $msg);
stdfoot();
exit;
}
$id = 0 + $_GET['id'];
int_check($id, true);
if (get_user_class() >= UC_MODERATOR || $CURUSER[id] == "{$id}") {
$deadtime = deadtime();
//$deadtime2 = deadtime();
//$deadtime = time()-600
//sql_query("DELETE FROM peers WHERE ((last_action< FROM_UNIXTIME($deadtime) AND seeder = 'no)' or (last_action<FROM_UNIXTIME($deadtime2) AND seeder = 'yes')) and userid = " . sqlesc($id));
sql_query("DELETE FROM peers WHERE last_action < FROM_UNIXTIME({$deadtime}) AND userid=" . sqlesc($id));
$effected = mysql_affected_rows();
stderr($lang_takeflush['std_success'], "{$effected} " . $lang_takeflush['std_ghost_torrents_cleaned']);
} else {
bark($lang_takeflush['std_cannot_flush_others']);
}
示例10: mksecret
$secret = mksecret();
$wantpasshash = md5($secret . $wantpassword . $secret);
$editsecret = $verification == 'admin' ? '' : $secret;
$invite_count = (int) $invite_count;
$wantusername = sqlesc($wantusername);
$wantpasshash = sqlesc($wantpasshash);
$secret = sqlesc($secret);
$editsecret = sqlesc($editsecret);
$send_email = $email;
$email = sqlesc($email);
$country = sqlesc($country);
$gender = sqlesc($gender);
$sitelangid = sqlesc(get_langid_from_langcookie());
$res_check_user = sql_query("SELECT * FROM users WHERE username = " . $wantusername);
if (mysql_num_rows($res_check_user) == 1) {
bark($lang_takesignup['std_username_exists']);
}
//$email="";
$ret = sql_query("INSERT INTO users (username, passhash, secret, editsecret, email, country, gender, status, class, invites, " . ($type == 'invite' ? "invited_by," : "") . " added, last_access, lang, stylesheet" . ($showschool == 'yes' ? ", school" : "") . ", uploaded) VALUES (" . $wantusername . "," . $wantpasshash . "," . $secret . "," . $editsecret . "," . $email . "," . $country . "," . $gender . ", 'confirmed', " . $defaultclass_class . "," . $invite_count . ", " . ($type == 'invite' ? "'{$inviter}'," : "") . " '" . date("Y-m-d H:i:s") . "' , " . " '" . date("Y-m-d H:i:s") . "' , " . $sitelangid . "," . $defcss . ($showschool == 'yes' ? "," . $school : "") . "," . ($iniupload_main > 0 ? $iniupload_main : 0) . ")") or sqlerr(__FILE__, __LINE__);
$id = mysql_insert_id();
$dt = sqlesc(date("Y-m-d H:i:s"));
$subject = sqlesc($lang_takesignup['msg_subject'] . $SITENAME . "!");
$msg = sqlesc($lang_takesignup['msg_congratulations'] . htmlspecialchars($wantusername) . $lang_takesignup['msg_you_are_a_member']);
sql_query("INSERT INTO messages (sender, receiver, subject, added, msg) VALUES(0, {$id}, {$subject}, {$dt}, {$msg})") or sqlerr(__FILE__, __LINE__);
//write_log("User account $id ($wantusername) was created");
$res = sql_query("SELECT passhash, secret, editsecret, status FROM users WHERE id = " . sqlesc($id)) or sqlerr(__FILE__, __LINE__);
$row = mysql_fetch_assoc($res);
$psecret = md5($row['secret']);
$ip = getip();
$usern = htmlspecialchars($wantusername);
$title = $SITENAME . $lang_takesignup['mail_title'];
示例11: Somebody
$msg = "[color=red]Security alert[/color]\n Account: ID=" . $row['id'] . " Somebody (probably you, " . $username . " !) tried to login but failed!" . "\nTheir [b]Ip Address [/b] was : " . $ip . "\n If this wasn't you please report this event to a {$INSTALLER09['site_name']} staff member\n - Thank you.\n";
$sql = "INSERT INTO messages (sender, receiver, msg, subject, added) VALUES('System', '{$to}', " . sqlesc($msg) . ", " . sqlesc($subject) . ", {$added});";
$res = sql_query($sql) or sqlerr(__FILE__, __LINE__);
stderr("Login failed !", "<b>Error</b>: Username or password entry incorrect <br />Have you forgotten your password? <a href='{$INSTALLER09['baseurl']}/resetpw.php'><b>Recover</b></a> your password !");
bark();
}
////Start IP logger ////
$ip = sqlesc(getip());
$added = sqlesc(time());
$userid = sqlesc($row["id"]);
$res = mysql_query("SELECT * FROM ips WHERE ip ={$ip} AND userid ={$userid}") or die(mysql_error());
if (mysql_num_rows($res) == 0) {
sql_query("INSERT INTO ips (userid, ip, lastlogin, type) VALUES ({$userid}, {$ip} , {$added}, 'Login')") or die(mysql_error());
} else {
sql_query("UPDATE ips SET lastlogin = {$added} where ip={$ip} AND userid = {$userid}") or sqlerr(__FILE__, __LINE__);
}
//// End Ip logger /////
if ($row['enabled'] == 'no') {
bark($lang['tlogin_disabled']);
}
$passh = md5($row["passhash"] . $_SERVER["REMOTE_ADDR"]);
logincookie($row["id"], $passh);
if (isset($_POST['use_ssl']) && $_POST['use_ssl'] == 1 && !isset($_SERVER['HTTPS'])) {
$INSTALLER09['baseurl'] = str_replace('http', 'https', $INSTALLER09['baseurl']);
}
if (isset($_POST['perm_ssl']) && $_POST['perm_ssl'] == 1) {
mysql_query('UPDATE users SET ssluse = 2 WHERE id = ' . $row['id']) or sqlerr(__FILE__, __LINE__);
}
$ip = sqlesc(getip());
sql_query("DELETE FROM failedlogins WHERE ip = {$ip}");
header("Location: {$INSTALLER09['baseurl']}/index.php");
示例12: stderr
if (!preg_match("/^http:\\/\\/[^\\s'\"<>]+\\.(jpg|gif|png)\$/i", $picture)) {
stderr($lang_offers['std_error'], $lang_offers['std_wrong_image_format']);
}
$pic = "[img]" . $picture . "[/img]\n";
}
$descr = "{$pic}";
$descr .= unesc($_POST["body"]);
if (!$name) {
bark($lang_offers['std_must_enter_name']);
}
if (!$descr) {
bark($lang_offers['std_must_enter_description']);
}
$cat = 0 + $_POST["category"];
if (!is_valid_id($cat)) {
bark($lang_offers['std_must_select_category']);
}
$name = sqlesc($name);
$descr = sqlesc($descr);
$cat = sqlesc($cat);
sql_query("UPDATE offers SET category={$cat}, name={$name}, descr={$descr} where id=" . sqlesc($id));
//header("Refresh: 0; url=offers.php?id=$id&off_details=1");
}
//======end take offer edit
//=== offer votes list
if ($_GET["offer_vote"]) {
$offer_vote = 0 + $_GET["offer_vote"];
if ($offer_vote != '1') {
stderr($lang_offers['std_error'], $lang_offers['std_smell_rat']);
}
$offerid = 0 + htmlspecialchars($_GET[id]);
示例13: bark
}
$catid = 0 + $type;
if (!is_valid_id($catid)) {
bark($lang_takeedit['std_missing_form_data']);
}
if (!$name || !$descr) {
bark($lang_takeedit['std_missing_form_data']);
}
$newcatmode = get_single_value("categories", "mode", "WHERE id=" . sqlesc($catid));
if ($enablespecial == 'yes' && get_user_class() >= $movetorrent_class) {
$allowmove = true;
} else {
$allowmove = false;
}
if ($oldcatmode != $newcatmode && !$allowmove) {
bark($lang_takeedit['std_cannot_move_torrent']);
}
$updateset[] = "anonymous = '" . ($_POST["anonymous"] ? "yes" : "no") . "'";
$updateset[] = "name = " . sqlesc($name);
$updateset[] = "descr = " . sqlesc($descr);
$updateset[] = "url = " . sqlesc($url);
$updateset[] = "douban_url = " . sqlesc($douban_url);
$updateset[] = "small_descr = " . sqlesc($_POST["small_descr"]);
//$updateset[] = "ori_descr = " . sqlesc($descr);
$updateset[] = "category = " . sqlesc($catid);
$updateset[] = "source = " . sqlesc(0 + $_POST["source_sel"]);
$updateset[] = "medium = " . sqlesc(0 + $_POST["medium_sel"]);
$updateset[] = "codec = " . sqlesc(0 + $_POST["codec_sel"]);
$updateset[] = "standard = " . sqlesc(0 + $_POST["standard_sel"]);
$updateset[] = "processing = " . sqlesc(0 + $_POST["processing_sel"]);
$updateset[] = "team = " . sqlesc(0 + $_POST["team_sel"]);
示例14: stdfoot
stdfoot();
exit;
}
if (!mkglobal("id")) {
bark($lang_fastdelete['std_missing_form_data']);
}
$id = 0 + $id;
int_check($id);
$sure = $_GET["sure"];
$res = sql_query("SELECT name,owner,seeders,anonymous FROM torrents WHERE id = {$id}");
$row = mysql_fetch_array($res);
if (!$row) {
die;
}
if (get_user_class() < $torrentmanage_class) {
bark($lang_fastdelete['text_no_permission']);
}
if (!$sure) {
stderr($lang_fastdelete['std_delete_torrent'], $lang_fastdelete['std_delete_torrent_note'] . "<a class=altlink href=fastdelete.php?id={$id}&sure=1>" . $lang_fastdelete['std_here_if_sure'], false);
}
deletetorrent($id);
KPS("-", $uploadtorrent_bonus, $row["owner"]);
if ($row['anonymous'] == 'yes' && $CURUSER["id"] == $row["owner"]) {
write_log("Torrent {$id} ({$row['name']}) was deleted by its anonymous uploader", 'normal');
} else {
write_log("Torrent {$id} ({$row['name']}) was deleted by {$CURUSER['username']}", 'normal');
}
//Send pm to torrent uploader
if ($CURUSER["id"] != $row["owner"]) {
$dt = sqlesc(date("Y-m-d H:i:s"));
$subject = sqlesc($lang_fastdelete_target[get_user_lang($row["owner"])]['msg_torrent_deleted']);
示例15: bark
$rating = 0 + $rating;
if ($rating <= 0 || $rating > 5) {
bark("{$lang['rate_invalid']}");
}
$res = mysql_query("SELECT owner FROM torrents WHERE id = {$id}");
$row = mysql_fetch_assoc($res);
if (!$row) {
bark("{$lang['rate_torrent_not_found']}");
}
//if ($row["owner"] == $CURUSER["id"])
// bark("{$lang['rate_not_vote_own_torrent']}");
$time_now = time();
$res = mysql_query("INSERT INTO ratings (torrent, user, rating, added) VALUES ({$id}, " . $CURUSER["id"] . ", {$rating}, {$time_now})");
if (!$res) {
if (mysql_errno() == 1062) {
bark("{$lang['rate_already_voted']}");
} else {
bark(mysql_error());
}
}
mysql_query("UPDATE torrents SET numratings = numratings + 1, ratingsum = ratingsum + {$rating} WHERE id = {$id}");
// 09 Seeding Bonus by Bigjoos // start
// modded by cybernet2u
// support - http://bit.ly/8jd6WH
// http://xList.ro/
// http://tbdev.xlist.ro/
//===add karma
mysql_query("UPDATE users SET seedbonus = seedbonus+5.0 WHERE id = " . sqlesc($userid) . "") or sqlerr(__FILE__, __LINE__);
//===end
// 09 Seeding Bonus by Bigjoos // end
header("Refresh: 0; url=details.php?id={$id}&rated=1");