| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- !defined('IN_MYMPS') && exit('FORBIDDEN');
- if (empty($id)) {
- exit('<center style=\'margin:20px; text-align:left; line-height:23px; color:#585858; font-size:12px\'>无效的分类信息主题!</center>');
- }
- require_once MYMPS_DATA . '/config.db.php';
- require_once MYMPS_INC . '/db.class.php';
- require_once MYMPS_DATA . '/info.level.inc.php';
- require_once MYMPS_INC . '/member.class.php';
- $log = $member_log->chk_in();
- if ($ac == 'actionupgrade') {
- define('MEMBERDIR', MYMPS_ROOT . '/member');
- $where = ' WHERE userid = \'' . $s_uid . '\'';
- $id = intval($id);
- $catid = intval($catid);
- $upgrade_time = intval($upgrade_time);
- $upgrade_type = trim($upgrade_type);
- $iftop = intval($iftop);
- $iflisttop = intval($iflisttop);
- $ifindextop = intval($ifindextop);
- $money_own = $db->getOne('SELECT money_own FROM `' . $db_mymps . 'member` WHERE userid = \'' . $s_uid . '\'');
- include MYMPS_ROOT . '/member/include/inc_info.php';
- }
- else {
- $row = $db->getRow('SELECT title,ismember,userid,catid,upgrade_type,upgrade_type_index,upgrade_type_list FROM `' . $db_mymps . 'information` WHERE id = \'' . $id . '\' AND info_level != 0');
- if (!$row) {
- echo '<center style=\'margin:25px; text-align:left; line-height:28px; color:#585858; font-size:14px;font-family:microsoft yahei;\'>置顶失败,该信息不存在或者未通过审核!</center>';
- }
- else {
- if ($row['ismember'] == 1 && $log && $s_uid == $row['userid']) {
- $money = $member_log->get_info();
- $money = $money['money_own'];
- $catid = $row['catid'];
- include MYMPS_ROOT . '/template/box/' . $part . '.html';
- }
- else {
- if ($row['ismember'] == 1 && $log && $s_uid != $row['userid']) {
- echo '<center style=\'margin:25px; text-align:left; line-height:28px; color:#585858; font-size:14px;font-family:microsoft yahei;\'>置顶失败,该信息主题不是您发布的!</center>';
- }
- else {
- if ($row['ismember'] == 1 && !$log) {
- @include MYMPS_DATA . '/caches/authcodesettings.php';
- $authcodesettings = $data;
- $data = NULL;
- $catid = $row['catid'];
- include MYMPS_ROOT . '/template/box/login.html';
- $authcodesettings = NULL;
- }
- else if ($row['ismember'] != 1) {
- echo '<center style=\'margin:25px; text-align:left; line-height:28px; color:#585858; font-size:14px;font-family:microsoft yahei;\'>置顶失败,游客发布的信息不能进行置顶操作!</center>';
- }
- }
- }
- }
- }
- $row = $log = $action = NULL;
- ?>
|