Exemplo n.º 1
0
<?php

/*
	[Destoon B2B System] Copyright (c) 2008-2015 www.destoon.com
	This is NOT a freeware, use is subject to license.txt
*/
defined('IN_DESTOON') or exit('Access Denied');
if ($DT_BOT) {
    return;
}
if ($page == 1) {
    if ($DT['cache_hits']) {
        cache_hits($moduleid, $itemid);
    } else {
        $update .= ',hits=hits+1';
    }
}
if ($update) {
    $db->query("UPDATE LOW_PRIORITY {$table} SET " . substr($update, 1) . " WHERE itemid={$itemid}", 'UNBUFFERED');
}
Exemplo n.º 2
0
$could_contact = check_group($_groupid, $MOD['group_contact']);
if ($username == $_username || $domain) {
    $could_contact = true;
}
$HSPATH = DT_STATIC . $MODULE[4]['moduledir'] . '/skin/' . $skin . '/';
if (!$banner) {
    $banner = is_file(DT_ROOT . '/' . $MODULE[4]['moduledir'] . '/skin/' . $skin . '/banner.jpg') ? $HSPATH . 'banner.jpg' : '';
}
$background = isset($HOME['background']) ? $HOME['background'] : '';
$bgcolor = isset($HOME['bgcolor']) ? $HOME['bgcolor'] : '';
$logo = isset($HOME['logo']) ? $HOME['logo'] : '';
$video = isset($HOME['video']) ? $HOME['video'] : '';
$css = isset($HOME['css']) ? $HOME['css'] : '';
$announce = isset($HOME['announce']) ? $HOME['announce'] : '';
$map = isset($HOME['map']) ? $HOME['map'] : '';
$stats = isset($HOME['stats']) ? $HOME['stats'] : '';
$kf = isset($HOME['kf']) ? $HOME['kf'] : '';
$album_js = 0;
$head_title = $MENU[$menuid]['name'];
$seo_keywords = isset($HOME['seo_keywords']) ? $HOME['seo_keywords'] : '';
$seo_description = isset($HOME['seo_description']) ? $HOME['seo_description'] : '';
$head_keywords = strip_tags($seo_keywords ? $seo_keywords : $COM['company'] . ',' . str_replace('|', ',', $COM['business']));
$head_description = strip_tags($seo_description ? $seo_description : $COM['introduce']);
if (!$DT_BOT) {
    if ($DT['cache_hits']) {
        cache_hits($moduleid, $userid);
    } else {
        $db->query("UPDATE LOW_PRIORITY {$table} SET hits=hits+1 WHERE userid={$userid}", 'UNBUFFERED');
    }
}
include DT_ROOT . '/module/company/' . $file . '.inc.php';
Exemplo n.º 3
0
            }
        }
        $r = $db->get_one("SELECT COUNT(*) AS num FROM {$table} WHERE {$condition}", 'CACHE');
        $pages = mobile_pages($r['num'], $page, $pagesize);
        $lists = array();
        $result = $db->query("SELECT * FROM {$table} WHERE {$condition} ORDER BY edittime DESC LIMIT {$offset},{$pagesize}");
        while ($r = $db->fetch_array($result)) {
            $r['linkurl'] = mobileurl($moduleid, 0, $r['itemid']);
            $r['date'] = timetodate($r['edittime'], 5);
            $lists[] = $r;
        }
        include template('homepage-channel', 'mobile');
    }
    if (!$DT_BOT) {
        if ($DT['cache_hits']) {
            cache_hits(4, $userid);
        } else {
            $db->query("UPDATE LOW_PRIORITY {$DT_PRE}company SET hits=hits+1 WHERE userid={$userid}", 'UNBUFFERED');
        }
    }
} 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']);
            if (!check_group($_groupid, $MOD['group_list']) || !check_group($_groupid, $CAT['group_list'])) {
                mobile_msg($L['msg_no_right']);
            }
        } else {
            check_group($_groupid, $MOD['group_index']) or mobile_msg($L['msg_no_right']);