📄 p_money.php
字号:
<?php
include'include/begin.php';
include'include/p_begin.php';
$tpl_html = 'p_money';
if (!$username) {
echoerror(62);
}
is_numeric($_GET['id'])?$id = $_GET['id']: echoerror(0);
$p_result = mysql_query("select * from {$db_prefix}title where cid='$id'", $myconn);
if ($sub = mysql_fetch_array($p_result)) {
echoerror(0);
} else {
$p_result = mysql_query("select * from {$db_prefix}posts where id='$id'", $myconn);
$post = mysql_fetch_array($p_result);
$p_result = mysql_query("select * from {$db_prefix}title where cid='$post[tid]'", $myconn);
$sub = mysql_fetch_array($p_result);
$fid = $sub["fid"];
if ($sub["updown"] == 2 || $sub["updown"] == 3 || $sub["updown"] == 5 || $sub["updown"] == 6) {
$bbsmessagefix = 1;
}
forumpurview();
include language();
$pagename_m = $_pagename[42];
include'include/main.php';
if ($sub['money'] == 0) {
echoerror(134);
}
if ($username != $sub['author']) {
echoerror(132);
}
if ($username == $post['author']) {
echoerror(133);
}
}
if (isset($_GET['post'])) {
$money = !is_numeric($_POST['money']) || $_POST['money'] < 10?10 : round($_POST['money']);
$money > $sub['money']?$money = $sub['money']: null;
$pmpost = "$time\t$username\t27|" . $post["review"];
ka($pmpost, 100);
mysql_query("update {$db_prefix}posts set review='$pmpost' where id='$id'", $myconn);
mysql_query("update {$db_prefix}title set money=money-'$money' where cid='$post[tid]'", $myconn);
mysql_query("update {$db_prefix}members set a=a+'$money' where username='$post[author]'", $myconn);
$pmauthor = "[url=read.php?tid=$id]" . $_p_affair[0] . "[/url]:" . $_p_affair[27] . ',' . $abc[0] . ' +' . $money . '(by ' . $username . ');';
message($post['author'], $pmauthor);
echoioy(41);
}
$author = $post['author'];
include_once'./cache/template/m_' . $style_id . '_' . $tpl_html . '.php';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -