store.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. <?php
  2. function get_store_location($homeurl = '', $storename = '', $curlocate = '')
  3. {
  4. global $mymps_global;
  5. $raquo = $mymps_global['cfg_raquo'];
  6. $location = ' <a href="' . $homeurl . '" target="_blank" title=' . $storename . '>' . $storename . '</a> ' . $raquo . ' ' . $curlocate;
  7. return $location;
  8. }
  9. function store_setParam($param1, $rewrite = 'active', $pre = 'store-', $htmlpath = '')
  10. {
  11. if ($rewrite == 'rewrite') {
  12. $param = $pre;
  13. foreach ($param1 as $key) {
  14. ${$key} = &$GLOBALS[$key];
  15. $param .= $key != 'uid' ? $key . '-' . ${$key} . '-' : '';
  16. }
  17. $param = str_replace('part-', '', $param);
  18. }
  19. else if ($rewrite == 'active') {
  20. foreach ($param1 as $key) {
  21. ${$key} = &$GLOBALS[$key];
  22. $param .= ${$key} ? urlencode($key) . '=' . ${$key} . '&' : '';
  23. }
  24. }
  25. return $param;
  26. }
  27. function store_page2($rewrite = 'active', $ext = '.html')
  28. {
  29. global $rows_num;
  30. global $page;
  31. global $pages_num;
  32. global $per_page;
  33. global $rows_offset;
  34. global $param;
  35. global $per_screen;
  36. $font_size = '10pt';
  37. $mid = ceil(($per_screen + 1) / 2);
  38. $nav = '';
  39. if ($page <= $mid) {
  40. $begin = 1;
  41. }
  42. else if ($pages_num - $mid < $page) {
  43. $begin = $pages_num - $per_screen + 1;
  44. }
  45. else {
  46. $begin = $page - $mid + 1;
  47. }
  48. $begin = $begin < 0 ? 1 : $begin;
  49. if ($rewrite == 'active') {
  50. $nav .= '<span>共' . $rows_num . '记录</span> ';
  51. if (1 < $page) {
  52. $nav .= '<a href=\'?' . $param . 'page=' . ($page - 1) . '\' title=\'第' . ($page - 1) . '页\'>上一页</a>';
  53. }
  54. if ($begin != 1) {
  55. $nav .= '<a href=\'?' . $param . '\' title=\'第1页\'>1 ...</a>';
  56. }
  57. $end = $pages_num < $begin + $per_screen ? $pages_num + 1 : $begin + $per_screen;
  58. for ($i = $begin; $i < $end; $i++) {
  59. if (!empty($i)) {
  60. $nav .= $page != $i ? '<a href=\'?' . $param . ('page=' . $i . '\' title=\'第' . $i . '页\'>' . $i . '</a> ') : ' <span class=current>' . $i . '</span> ';
  61. }
  62. }
  63. if ($end != $pages_num + 1) {
  64. $nav .= '<a href=\'?' . $param . ('page=' . $pages_num . '\' title=\'第' . $pages_num . '页\'>... ' . $pages_num . '</a>');
  65. }
  66. if ($page < $pages_num) {
  67. $nav .= '<a href=\'?' . $param . 'page=' . ($page + 1) . '\' title=\'第' . ($page + 1) . '页\'>下一页</a>';
  68. }
  69. }
  70. else if ($rewrite == 'rewrite') {
  71. $nav .= '<span>共' . $rows_num . '记录</span> ';
  72. if (1 < $page) {
  73. $nav .= '<a href=\'/' . $param . 'page-' . ($page - 1) . '.html\' title=\'第' . ($page - 1) . '页\'>上一页</a>';
  74. }
  75. if ($begin != 1) {
  76. $nav .= '<a href=\'/' . $param . 'page-1.html\' title=\'第1页\'>1 ...</a>';
  77. }
  78. $end = $pages_num < $begin + $per_screen ? $pages_num + 1 : $begin + $per_screen;
  79. for ($i = $begin; $i < $end; $i++) {
  80. if (!empty($i)) {
  81. $nav .= $page != $i ? '<a href=\'/' . $param . ('page-' . $i . '.html\' title=\'第' . $i . '页\'>' . $i . '</a> ') : ' <span class=current>' . $i . '</span> ';
  82. }
  83. }
  84. if ($end != $pages_num + 1) {
  85. $nav .= '<a href=\'/' . $param . ('page-' . $pages_num . '.html\' title=\'第' . $pages_num . '页\'>... ' . $pages_num . '</a>');
  86. }
  87. if ($page < $pages_num) {
  88. $nav .= '<a href=\'/' . $param . 'page-' . ($page + 1) . '.html\' title=\'第' . ($page + 1) . '页\'>下一页</a>';
  89. }
  90. }
  91. return $nav;
  92. }
  93. define('IN_SMT', true);
  94. define('IN_MYMPS', true);
  95. define('CURSCRIPT', 'store');
  96. require_once dirname(__FILE__) . '/include/global.php';
  97. require_once MYMPS_DATA . '/config.php';
  98. require_once MYMPS_DATA . '/config.db.php';
  99. require_once MYMPS_INC . '/db.class.php';
  100. ifsiteopen();
  101. $part = isset($part) ? trim($part) : 'index';
  102. $user = isset($user) ? checkhtml($user) : '';
  103. $uid = isset($uid) ? intval($uid) : '';
  104. $id = isset($id) ? intval($id) : '';
  105. $typeid = isset($typeid) ? intval($typeid) : '';
  106. $action = isset($action) ? trim($action) : '';
  107. $Uid = isset($Uid) ? trim($Uid) : '';
  108. $seo = get_seoset();
  109. $rewrite = $seo['seo_force_store'];
  110. if ($rewrite != 'active') {
  111. $mayimobile = get_mobile_settings();
  112. $mayimobile['mobiledomain'] = $mayimobile['mobiledomain'] ? $mayimobile['mobiledomain'] : $mymps_global['SiteUrl'] . '/m';
  113. $mayimobile['mobileuri'] = $mayimobile['mobiledomain'] . ($_SERVER['HTTP_X_ORIGINAL_URL'] ? $_SERVER['HTTP_X_ORIGINAL_URL'] : $_SERVER['REQUEST_URI']);
  114. if ($ifmobile) {
  115. write_msg('', $mayimobile['mobileuri']);
  116. exit();
  117. }
  118. }
  119. if ($Uid && $rewrite == 'rewrite') {
  120. $detail = explode('-', $Uid);
  121. $part = $detail[0];
  122. if ($detail[1]) {
  123. for ($i = 1; $i < count($detail); $i++) {
  124. $_GET[$detail[$i]] = ${$detail[$i]} = str_replace(array('#@#', '#!#'), array('-', '/'), $detail[++$i]);
  125. }
  126. extract($_GET);
  127. }
  128. $CAtid = $detail = NULL;
  129. }
  130. in_array($part, array('index', 'comment')) && require_once MYMPS_INC . '/member.class.php';
  131. if ($action != 'dopost') {
  132. if (empty($user) && empty($uid)) {
  133. write_msg('您指定的商铺不存在或者未通过审核!', $mymps_global[SiteUrl] . '/corporation.php');
  134. }
  135. else {
  136. if (empty($uid) && $user) {
  137. $uid = $db->getOne('SELECT id FROM `' . $db_mymps . 'member` WHERE userid =\'' . $user . '\'');
  138. }
  139. }
  140. $where = 'WHERE a.id = \'' . $uid . '\' AND status = \'1\' AND if_corp = \'1\'';
  141. $store = $db->getRow('SELECT a.* FROM `' . $db_mymps . 'member` AS a ' . $where);
  142. if (!$store || empty($uid)) {
  143. write_msg('您指定的机构不存在或者未通过审核!', $mymps_global[SiteUrl] . '/corporation.php');
  144. }
  145. if (!$store['template'] || !in_array($store['template'], array('blue', 'green', 'orange', 'purple', 'pink'))) {
  146. $store['template'] = 'blue';
  147. }
  148. $allow_param = array('about', 'info', 'document', 'album', 'contactus', 'comment', 'index', 'goods');
  149. if (!$part || !in_array($part, $allow_param)) {
  150. $part = 'index';
  151. }
  152. foreach ($allow_param as $allow) {
  153. $uri[$allow] = Rewrite('store', array('uid' => $uid, 'part' => $allow));
  154. }
  155. $store['good_comment'] = $db->getOne('SELECT COUNT(a.id) FROM `' . $db_mymps . 'member_comment` AS a WHERE a.userid = \'' . $store['userid'] . '\' AND enjoy IN(\'2\',\'3\') ');
  156. $store['soso_comment'] = $db->getOne('SELECT COUNT(a.id) FROM `' . $db_mymps . 'member_comment` AS a WHERE a.userid = \'' . $store['userid'] . '\' AND enjoy = \'1\' ');
  157. $store['bad_comment'] = $db->getOne('SELECT COUNT(a.id) FROM `' . $db_mymps . 'member_comment` AS a WHERE a.userid = \'' . $store['userid'] . '\' AND enjoy = \'0\' ');
  158. $uri['good_comment'] = Rewrite('store', array('uid' => $uid, 'part' => 'comment', 'type' => 'good', 'page' => 1));
  159. $uri['soso_comment'] = Rewrite('store', array('uid' => $uid, 'part' => 'comment', 'type' => 'soso', 'page' => 1));
  160. $uri['bad_comment'] = Rewrite('store', array('uid' => $uid, 'part' => 'comment', 'type' => 'bad', 'page' => 1));
  161. $store['all_comment'] = $store['good_comment'] + $store['soso_comment'] + $store['bad_comment'];
  162. $store['good_comment_per'] = empty($store['all_comment']) ? 0 : ceil($store['good_comment'] * 100 / $store['all_comment']);
  163. $store['soso_comment_per'] = empty($store['all_comment']) ? 0 : ceil($store['soso_comment'] * 100 / $store['all_comment']);
  164. $store['bad_comment_per'] = empty($store['all_comment']) ? 0 : ceil($store['bad_comment'] * 100 / $store['all_comment']);
  165. $store['tname'] = $store['tname'] ? $store['tname'] : $store['userid'];
  166. $store['prelogo'] = $store['prelogo'] ? $store['prelogo'] : '/images/nophoto.jpg';
  167. $store['logo'] = $store['logo'] ? $store['logo'] : '/images/nophoto.jpg';
  168. $store['contact'] = get_member_group($store['levelid']);
  169. $store['levelname'] = $db->getOne('SELECT levelname FROM `' . $db_mymps . 'member_level` WHERE id = \'' . $store['levelid'] . '\'');
  170. if ($store['contact']['member_contact'] == 0) {
  171. $store['cname'] = $mymps_global['SiteTeacher'];
  172. $store['tel'] = $mymps_global['SiteTel'];
  173. $store['qq'] = $mymps_global['SiteQQ'];
  174. $store['email'] = $mymps_global['SiteEmail'];
  175. }
  176. if ($part == 'about') {
  177. }
  178. else if ($part == 'info') {
  179. $where = ' WHERE userid = \'' . $store['userid'] . '\' AND info_level > \'0\'';
  180. $sql = 'SELECT a.* FROM ' . $db_mymps . 'information AS a ' . $where . ' ORDER BY a.id DESC';
  181. $rows_num = $db->getOne('SELECT COUNT(a.id) FROM `' . $db_mymps . 'information` AS a ' . $where);
  182. $param = store_setParam(array('uid', 'part'), $seo['seo_force_store'], 'store-' . $store[id] . '/');
  183. $list = array();
  184. $page1 = page1($sql, 15);
  185. foreach ($page1 as $k => $row) {
  186. $arr['id'] = $row['id'];
  187. $arr['uri'] = Rewrite('info', array('dir_typename' => $row['dir_typename'], 'id' => $row['id'], 'cityid' => $row['cityid']));
  188. $arr['title'] = SpHtml2Text($row['title']);
  189. $arr['begintime'] = $row['begintime'];
  190. $arr['catname'] = $row['catname'];
  191. $arr['img_path'] = $row['img_path'];
  192. $arr['hit'] = $row['hit'];
  193. $info[] = $arr;
  194. }
  195. $pageview = store_page2($seo['seo_force_store']);
  196. }
  197. else if ($part == 'contactus') {
  198. $store['location'] = get_store_location($uri['index'], $store['tname'], '联系方式');
  199. }
  200. else if ($part == 'goods') {
  201. $where = ' WHERE userid = \'' . $store['userid'] . '\' AND onsale = \'1\'';
  202. $sql = 'SELECT a.* FROM ' . $db_mymps . 'goods AS a ' . $where . ' ORDER BY a.goodsid DESC';
  203. $rows_num = $db->getOne('SELECT COUNT(a.goodsid) FROM `' . $db_mymps . 'goods` AS a ' . $where);
  204. $param = store_setParam(array('uid', 'part'), $seo['seo_force_store'], 'store-' . $store[id] . '/');
  205. $list = array();
  206. $page1 = page1($sql, 15);
  207. foreach ($page1 as $k => $row) {
  208. $arr['goodsid'] = $row['goodsid'];
  209. $arr['uri'] = Rewrite('goods', array('id' => $row['goodsid']));
  210. $arr['goodsname'] = SpHtml2Text($row['goodsname']);
  211. $arr['oldprice'] = $row['oldprice'];
  212. $arr['nowprice'] = $row['nowprice'];
  213. $arr['picture'] = $row['picture'];
  214. $goods[] = $arr;
  215. }
  216. $pageview = store_page2($seo['seo_force_store']);
  217. }
  218. else if ($part == 'document') {
  219. if (!$id && $typeid) {
  220. $docutype = get_member_docutype();
  221. $where = ' WHERE a.userid = \'' . $store['userid'] . '\' AND a.typeid = \'' . $typeid . '\'';
  222. $sql = 'SELECT a.*,b.id AS uid FROM ' . $db_mymps . 'member_docu AS a LEFT JOIN `' . $db_mymps . 'member` AS b ON a.userid = b.userid ' . $where . ' ORDER BY a.id DESC';
  223. $rows_num = $db->getOne('SELECT COUNT(a.id) FROM `' . $db_mymps . 'member_docu` AS a ' . $where);
  224. $param = store_setParam(array('uid', 'part', 'typeid'), $seo['seo_force_store'], 'store-' . $store[id] . '/');
  225. $list = array();
  226. $page1 = page1($sql, 15);
  227. foreach ($page1 as $k => $row) {
  228. $arr['id'] = $row['id'];
  229. $arr['userid'] = $row['userid'];
  230. $arr['tname'] = $row['tname'];
  231. $arr['typeid'] = $row['typeid'];
  232. $arr['title'] = $row['title'];
  233. $arr['pubtime'] = $row['pubtime'];
  234. $arr['imgpath'] = $row['imgpath'];
  235. $arr['hit'] = $row['hit'];
  236. $arr['pre_imgpath'] = $row['pre_imgpath'];
  237. $arr['uri'] = Rewrite('store', array('uid' => $row['uid'], 'id' => $row['id'], 'part' => 'document'));
  238. $docu[] = $arr;
  239. }
  240. $pageview = store_page2($seo['seo_force_store']);
  241. $typename = $docutype[$typeid]['typename'];
  242. }
  243. else {
  244. if ($id && !$typeid) {
  245. if (!($docu = $db->getRow('SELECT a.* FROM `' . $db_mymps . 'member_docu` AS a WHERE a.userid = \'' . $store['userid'] . '\' AND a.id = \'' . $id . '\''))) {
  246. exit('您所指定的空间文档不存在');
  247. }
  248. else {
  249. $db->query('UPDATE `' . $db_mymps . 'member_docu` SET hit = hit + 1 WHERE id = \'' . $id . '\'');
  250. $docutype = get_member_docutype();
  251. $typename = $docutype[$docu['typeid']]['typename'];
  252. }
  253. }
  254. else {
  255. exit('Access Denied!');
  256. }
  257. }
  258. }
  259. else if ($part == 'album') {
  260. if (!$seo) {
  261. $seo = get_seoset();
  262. }
  263. $param = store_setParam(array('uid', 'part'), $seo['seo_force_store'], 'store-' . $store[id] . '/');
  264. $where = ' WHERE a.userid = \'' . $store['userid'] . '\'';
  265. $rows_num = $db->getOne('SELECT COUNT(a.id) FROM `' . $db_mymps . 'member_album` AS a ' . $where);
  266. $album = page1('SELECT a.* FROM `' . $db_mymps . 'member_album` AS a ' . $where . ' ORDER BY a.id desc', 15);
  267. $pageview = store_page2($seo['seo_force_store']);
  268. $seo = NULL;
  269. }
  270. else if ($part == 'comment') {
  271. if (!$seo) {
  272. $seo = get_seoset();
  273. }
  274. $param = store_setParam(array('uid', 'part', 'type'), $seo['seo_force_store'], 'store-' . $store[id] . '/');
  275. $where = ' WHERE a.userid = \'' . $store['userid'] . '\'';
  276. if ($type == 'good') {
  277. $where .= ' AND a.enjoy IN(2,3)';
  278. $rows_num = $store['good_comment'];
  279. }
  280. else if ($type == 'soso') {
  281. $where .= ' AND a.enjoy = \'1\'';
  282. $rows_num = $store['soso_comment'];
  283. }
  284. else if ($type == 'bad') {
  285. $where .= ' AND a.enjoy = \'0\'';
  286. $rows_num = $store['bad_comment'];
  287. }
  288. else {
  289. $rows_num = $store['all_comment'];
  290. }
  291. $page = empty($page) ? 1 : intval($page);
  292. $comment = array();
  293. $result = page1('SELECT a.* FROM `' . $db_mymps . 'member_comment` AS a ' . $where . ' AND a.commentlevel = \'1\' order by id DESC', 15);
  294. foreach ($result as $k => $row) {
  295. $arr['id'] = $row['id'];
  296. $arr['quality'] = intval($row['quality']);
  297. $arr['service'] = intval($row['service']);
  298. $arr['environment'] = intval($row['environment']);
  299. $arr['price'] = intval($row['price']);
  300. $arr['enjoy'] = intval($row['enjoy']);
  301. $arr['reply'] = de_textarea_post_change($row['reply']);
  302. $arr['retime'] = GetTime($row['retime']);
  303. $arr['enjoy'] = $row['enjoy'] == 0 ? 'cha' : ($row['enjoy'] == 1 ? 'zhong' : 'hao');
  304. $arr['content'] = $row['content'];
  305. $arr['fromuser'] = $row['fromuser'] ? $row['fromuser'] : '匿名网友';
  306. $arr['useruri'] = $row['fromuser'] ? Rewrite('space', array('user' => $row['fromuser'])) : '#';
  307. $arr['pubtime'] = GetTime($row['pubtime']);
  308. $arr['face'] = $row['face'] ? $row['face'] : $mymps_global['SiteUrl'] . '/images/noavatar_small.gif';
  309. $comment[] = $arr;
  310. }
  311. $pageview = store_page2($seo['seo_force_store']);
  312. require_once MYMPS_INC . '/member.class.php';
  313. $commentsettings = get_commentsettings();
  314. $store['commentsettings'] = $commentsettings[CURSCRIPT];
  315. $commentsettings = NULL;
  316. if ($iflogin = $member_log->chk_in()) {
  317. $store['loginlimit'] = $s_uid . '<a href="' . $mymps_global[SiteUrl] . '/' . $mymps_global[cfg_member_logfile] . '?mod=out&url=' . urlencode(GetUrl()) . '">[退出]</a>';
  318. }
  319. else {
  320. if ($store['commentsettings'] == 2) {
  321. $store['loginlimit'] = '<span class="left">用户名:<input name="loginuser" class="login_test" type="text" /> 密码:<input name="loginpwd" class="login_test" type="password" />';
  322. }
  323. $store['loginlimit'] .= '验证码:<input name="checkcode" class="login_test" style="width:50px" type="text" /></span><span class="left"> <img src="' . $mymps_global['SiteUrl'] . '/' . $mymps_global['cfg_authcodefile'] . '" alt="看不清,请点击刷新" align="absmiddle" class="authcode" onClick="this.src=this.src+\'?\'"/></span>';
  324. }
  325. $store['location'] = get_store_location($uri['index'], $store['tname'], '留言点评');
  326. }
  327. else if ($part == 'index') {
  328. $album = $db->getAll('SELECT a.* FROM `' . $db_mymps . 'member_album` AS a WHERE a.userid=\'' . $store['userid'] . '\' ORDER BY a.id DESC LIMIT 0,15');
  329. $where = ' WHERE a.userid = \'' . $store['userid'] . '\'';
  330. $store['location'] = get_store_location($uri['index'], $store['tname'], '机构首页');
  331. $goods = mymps_get_goods(8, 1, '', '', $store['userid']);
  332. }
  333. globalassign();
  334. include mymps_tpl($part);
  335. }
  336. else {
  337. define('IN_AJAX', true);
  338. $part = $part ? trim($part) : '';
  339. $commentsettings = get_commentsettings();
  340. $store['commentsettings'] = $commentsettings[CURSCRIPT];
  341. $commentsettings = NULL;
  342. if ($part == 'comment') {
  343. $userid = $user ? mhtmlspecialchars($user) : '';
  344. if (empty($userid)) {
  345. write_msg('您还没有指定点评的对象!');
  346. }
  347. if (empty($content)) {
  348. write_msg('请填写点评内容!');
  349. }
  350. $result = verify_badwords_filter($mymps_global['cfg_if_comment_verify'], '', $content);
  351. $content = textarea_post_change($result['content']);
  352. $commentlevel = $result['level'];
  353. $price = $price != '' ? intval($price) : '';
  354. $enjoy = $enjoy ? intval($enjoy) : '';
  355. if ($iflogin = $member_log->chk_in()) {
  356. $fromuser = $s_uid;
  357. }
  358. else {
  359. if (!($randcode = mymps_chk_randcode($checkcode))) {
  360. write_msg('验证码输入错误,请返回重新输入');
  361. exit();
  362. }
  363. if ($store['commentsettings'] == 1) {
  364. $fromuser = '';
  365. }
  366. else if ($store['commentsettings'] == 2) {
  367. $loginuser = $loginuser ? mhtmlspecialchars($loginuser) : '';
  368. $loginpwd = $loginpwd ? mhtmlspecialchars($loginpwd) : '';
  369. if (empty($loginuser)) {
  370. write_msg('请填写你的用户帐号!');
  371. }
  372. if (empty($loginpwd)) {
  373. write_msg('请填写你的用户密码!');
  374. }
  375. $loginpwd = md5($loginpwd);
  376. if (!($res = $db->getOne('SELECT id FROM `' . $db_mymps . 'member` WHERE userid = \'' . $loginuser . '\' AND userpwd = \'' . $loginpwd . '\''))) {
  377. unset($res);
  378. write_msg('你的帐号或密码输入错误,或不存在该用户!');
  379. }
  380. else {
  381. $fromuser = $loginuser;
  382. $member_log->in($loginuser, $loginpwd, '', 'noredirect');
  383. }
  384. }
  385. }
  386. $avgprice = $avgprice ? mhtmlspecialchars($avgprice) : '';
  387. $face = $db->getOne('SELECT prelogo FROM `' . $db_mymps . 'member` WHERE userid = \'' . $fromuser . '\'');
  388. $face = $face ? $face : '';
  389. $db->query('INSERT INTO `' . $db_mymps . 'member_comment` (id,userid,fromuser,content,commentlevel,quality,service,environment,price,avgprice,enjoy,pubtime,face) VALUES (\'\',\'' . $userid . '\',\'' . $fromuser . '\',\'' . $content . '\',\'' . $commentlevel . '\',\'' . $quality . '\',\'' . $service . '\',\'' . $environment . '\',\'' . $price . '\',\'' . $avgprice . '\',\'' . $enjoy . '\',\'' . $timestamp . '\',\'' . $face . '\')');
  390. $uid = $db->getOne('SELECT id FROM `' . $db_mymps . 'member` WHERE userid = \'' . $user . '\'');
  391. if ($commentlevel == '0') {
  392. write_msg('您发表的评论包含敏感关键字,管理员审核通过后显示!', 'store.php?uid=' . $uid . '&part=comment');
  393. }
  394. else {
  395. write_msg('成功发表一则点评', 'store.php?uid=' . $uid . '&part=comment');
  396. }
  397. }
  398. }
  399. is_object($db) && $db->Close();
  400. ?>