| 12345678910111213141516171819 |
- <?php
- !defined('IN_MYMPS') && exit('FORBIDDEN');
- require_once MYMPS_DATA . '/config.db.php';
- require_once MYMPS_INC . '/db.class.php';
- $ip = '';
- $ip = GetIP();
- $report_type = isset($report_type) ? intval($report_type) : '';
- if (0 < mymps_count('info_report', 'WHERE infoid = \'' . $infoid . '\' AND ip = \'' . $ip . '\' AND pubtime > \'' . mktime(0, 0, 0) . '\'')) {
- echo '<center style="color:red; font-weight:bold">操作失败,该信息您已经举报过了!</font>';
- exit();
- }
- $db->query('INSERT INTO `' . $db_mymps . 'info_report` (report_type,content,infoid,infotitle,ip,pubtime)VALUES(\'' . $report_type . '\',\'' . $content . '\',\'' . $infoid . '\',\'' . $infotitle . '\',\'' . $ip . '\',\'' . $timestamp . '\')');
- echo '<div style="margin:10px 15px"><font style="color:red; font-size:12px"><h1>感谢您的举报 :)</h1><br />● 在' . $mymps_global[SiteName] . ',每天有数千条违规信息通过用户举报被删除。<br /><br />● 如果你是不小心点错了举报按钮,别担心。只有当一个信息收到一定数量的举报时才会被删除。</font></div>';
- ?>
|