if ($typeid) { $back_link .= '&action=' . $action; } } include template('homepage-' . $action, 'mobile'); break; case 'honor': isset($_MENU[$action]) or dheader($HURL); $table = $DT_PRE . 'honor'; $head_name = $_MENU[$action]; $head_title = $head_name . $DT['seo_delimiter'] . $head_title; if ($itemid) { $item = $db->get_one("SELECT * FROM {$table} WHERE itemid={$itemid}"); $item && $item['status'] > 2 && $item['username'] == $username or mobile_msg($L['msg_not_exist']); extract($item); $content = video5($item['content']); $image = str_replace('.thumb.' . file_ext($thumb), '', $thumb); $db->query("UPDATE {$table} SET hits=hits+1 WHERE itemid={$itemid}", 'UNBUFFERED'); $date = timetodate($addtime, 3); $back_link = $HURL . '&action=' . $action; $head_title = $title . $DT['seo_delimiter'] . $head_title; } else { $condition = "username='******' AND status=3"; $r = $db->get_one("SELECT COUNT(*) AS num FROM {$table} WHERE {$condition}", 'CACHE'); $items = $r['num']; $pages = mobile_pages($items, $page, $pagesize); $lists = array(); if ($items) { $result = $db->query("SELECT * FROM {$table} WHERE {$condition} ORDER BY addtime DESC LIMIT {$offset},{$pagesize}"); while ($r = $db->fetch_array($result)) { $lists[] = $r;
*/ defined('IN_DESTOON') or exit('Access Denied'); if ($itemid) { $item = $db->get_one("SELECT * FROM {$table} WHERE itemid={$itemid}"); $item && $item['status'] > 2 or mobile_msg($L['msg_not_exist']); extract($item); $CAT = get_cat($catid); if (!check_group($_groupid, $MOD['group_show']) || !check_group($_groupid, $CAT['group_show'])) { mobile_msg($L['msg_no_right']); } $member = array(); $fee = get_fee($item['fee'], $MOD['fee_view']); include 'contact.inc.php'; $content_table = content_table($moduleid, $itemid, $MOD['split'], $table_data); $t = $db->get_one("SELECT content FROM {$content_table} WHERE itemid={$itemid}"); $content = video5($t['content']); $editdate = timetodate($edittime, 5); $left = $minamount ? $minamount - $orders : 1 - $orders; $purchase = $process < 2 && $username && $username != $_username ? 1 : 0; $update = ''; include DT_ROOT . '/include/update.inc.php'; $head_title = $title . $DT['seo_delimiter'] . $MOD['name'] . $DT['seo_delimiter'] . $head_title; $head_name = $CAT['catname']; $back_link = 'javascript:Dback(\'' . mobileurl($moduleid, $catid) . '\', \'' . $DT_REF . '\', \'share|comment|purchase\');'; $foot = ''; } else { if ($kw) { check_group($_groupid, $MOD['group_search']) or mobile_msg($L['msg_no_search']); } else { if ($catid) { $CAT or mobile_msg($L['msg_not_cate']);
<?php /* [Destoon B2B System] Copyright (c) 2008-2015 www.destoon.com This is NOT a freeware, use is subject to license.txt */ require 'common.inc.php'; $table = $DT_PRE . 'webpage'; if ($itemid) { $item = $db->get_one("SELECT * FROM {$table} WHERE itemid={$itemid}"); $item && $item['item'] == 1 or mobile_msg($L['msg_not_exist']); $_item = $item['item']; unset($item['item']); extract($item); $content = video5($content); $editdate = timetodate($edittime, 5); $db->query("UPDATE {$table} SET hits=hits+1 WHERE itemid={$itemid}"); $head_name = $title; $back_link = 'about.php'; $foot = ''; $head_title = $title . $DT['seo_delimiter'] . $L['about_title'] . $DT['seo_delimiter'] . $head_title; } else { $lists = array(); $result = $db->query("SELECT * FROM {$table} WHERE item=1 ORDER BY listorder DESC,itemid DESC LIMIT 50"); while ($r = $db->fetch_array($result)) { $lists[] = $r; } $db->free_result($result); $head_name = $L['about_title']; $back_link = 'more.php'; $foot = 'more';