代码拉取完成,页面将自动刷新
<?php
require_once("include/bittorrent.php");
dbconn();
loggedinorreturn();
if ($_GET['id'])
stderr("派对结束了!", "这一招不管用了,你需要点击按钮!");
$userid = 0 + $CURUSER["id"];
$torrentid = 0 + $_POST["id"];
$arr = mysql_fetch_array(sql_query("SELECT owner FROM torrents where id = $torrentid"));
if (!$arr)
stderr("错误", "不存在的种子");
$torrentowner = $arr['owner'];
$trows = mysql_num_rows(sql_query("SELECT id FROM thanks WHERE torrentid = $torrentid AND userid = $userid"));
if ($trows != 0)
stderr("错误", "已经感谢过了!");
if (isset($userid) && isset($torrentid)) {
$res = sql_query("INSERT INTO thanks (torrentid, userid) VALUES ($torrentid, $userid)");
KPS("+", $saythanks_bonus, $CURUSER['id']); //User gets bonus for saying thanks
KPS("+", $receivethanks_bonus, $torrentowner); //Thanks receiver get bonus
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。