$favordata = $db->query("select * from user where id={$temp}")->fetch(); $money = intval($favordata['money']) + $final[$i]; $db->exec("update user set money={$money} where id={$temp}"); $db->exec("insert into inform values(NULL,'{$favordata['username']}您好!\n您曾经回复的议题<a link=" . '"article"' . " id={$thisarticle['id']}>{$thisarticle['title']}</a>已经结题!\n根据自动分配,您此次共获得{$final[$i]}个赏金!谢谢您的参与!',{$temp},now())"); $data[$i] = array("name" => $favordata['username'], "money" => $final[$i]); } $db->exec("update board_admin set cate=2 where id={$_POST['id']}"); $data = json_encode($data); $db->exec("insert into end_info values({$_POST['id']},'{$data}',now())"); echo $data; return; break; } } $articleid = $_GET['articleid']; \SECURE\sql_secure($articleid); $sqline = $db->query("select * from board_admin where id={$articleid}")->fetch(); $result = $db->query("select name from all_board_info where link='{$sqline['board']}'")->fetch(); $check = intval($sqline['checks']) + 1; $db->exec("update board_admin set `checks`={$check} where id={$articleid}"); \SECURE\kill_html($sqline['title']); \SECURE\kill_html($sqline['labels']); \SECURE\kill_html($sqline['content']); \SECURE\_format($sqline['content']); $article_cate = intval($sqline['cate']); // 0 文章,作者重要; 1 提问或议题,作者不重要 $webcontent = new template(); $webcontent->set_title("极端讨论区"); $webcontent->set_subtitle('Welcome to a place of pure boredness.'); $webcontent->helloword(); $webcontent->add_rely("default.css");
<?php include_once './template.php'; include_once './sqllink.php'; include_once 'secure.php'; $boardid = $_GET['boardid']; \SECURE\sql_secure($boardid); $webcontent = new template(); $webcontent->set_title("极端讨论区"); $webcontent->set_subtitle('Welcome to a place of pure boredness.'); $webcontent->helloword(); $webcontent->add_rely("default.css"); $webcontent->add_rely("userinfo.js"); $webcontent->add_rely("animation.js"); $sqline = $db->query("select * from all_board_info where link='{$boardid}'")->fetch(); $webcontent->add_data('<div class="datadiv"><div leftnavi><span top-dec></span><div navi-top-bar>' . $sqline['name'] . ' - 主题列表</div></div><div class="data">'); $webcontent->add_data('本版标签 '); foreach (split(",", $sqline['labels']) as $value) { $webcontent->add_data('<a class="label" link="label" name=' . $value . '>' . $value . '</a>'); } $webcontent->add_data('<br>'); if (isset($_SESSION['userid'])) { $webcontent->add_data('<a link="write" name=' . $boardid . ' cate=0>' . 发表文章 . '</a> '); $webcontent->add_data('| <a link="write" name=' . $boardid . ' cate=1>' . 发表议题 . '</a> '); } if ($_SESSION['rank'] >= 8) { $webcontent->add_data('| <a id="setboard">管理板块</a> '); } $sqline = $db->query("select count(*) from board_admin where board='{$boardid}'")->fetch(); $total = intval($sqline[0]); $offset = isset($_GET['page']) ? intval($_GET['page']) * 10 : 0;
<?php include_once './sqllink.php'; include_once './template.php'; include_once './secure.php'; $userid = $_GET['userid']; if (isset($_SESSION['userid']) && !isset($_GET['userid'])) { $userid = $_SESSION['userid']; } $webcontent = new template(); \SECURE\sql_secure($userid); $webcontent->set_title('极端讨论区'); $webcontent->set_subtitle('Welcome to a place of pure boredness.'); $webcontent->helloword(); $webcontent->add_rely("default.css"); $webcontent->add_rely("animation.js"); $webcontent->add_rely("interact.js"); $webcontent->add_rely("usera.js"); if ($_POST['func'] == "addlisten") { if (!isset($_SESSION['userid'])) { echo 2; return; } if ($_SESSION['userid'] == intval($_POST['subject'])) { echo 3; return; } $relation = $db->query("select count(*) from relation where subject={$_POST['subject']} and object={$_SESSION['userid']}")->fetch(); if (intval($relation[0]) == 1) { echo 1; return;