Пример #1
0
 /**
  * @brief getInstance
  */
 function &getInstance()
 {
     static $instance = null;
     if (!$instance) {
         $browserType = mobileXE::getBrowserType();
         if (!$browserType) {
             return;
         }
         $class_file = sprintf('%saddons/mobile/classes/%s.class.php', _XE_PATH_, $browserType);
         require_once $class_file;
         // Download mobile language settings (cookies, not willing to come up when you click create cache file ...- is initialized ..)
         $this->lang = FileHandler::readFile('./files/cache/addons/mobile/setLangType/personal_settings/' . md5(trim($_SERVER['HTTP_USER_AGENT']) . trim($_SERVER['HTTP_PHONE_NUMBER']) . trim($_SERVER['HTTP_HTTP_PHONE_NUMBER'])) . '.php');
         if ($this->lang) {
             $lang_supported = Context::get('lang_supported');
             $this->lang = str_replace(array('<?php /**', '**/ ?>'), array('', ''), $this->lang);
             if (isset($lang_supported[$this->lang])) {
                 Context::setLangType($this->lang);
             }
         }
         Context::loadLang(_XE_PATH_ . 'addons/mobile/lang');
         $instance = new wap();
         $mobilePage = (int) Context::get('mpage');
         if (!$mobilePage) {
             $mobilePage = 1;
         }
         $instance->setMobilePage($mobilePage);
     }
     return $instance;
 }
Пример #2
0
 /**
  * @brief getInstance
  **/
 function &getInstance()
 {
     static $instance = null;
     if (!$instance) {
         $browserType = mobileXE::getBrowserType();
         if (!$browserType) {
             return;
         }
         $class_file = sprintf('%saddons/mobile/classes/%s.class.php', _XE_PATH_, $browserType);
         require_once $class_file;
         // 모바일 언어설정 로드(쿠키가 안되어 생각해낸 방법...-캐시파일 재생성을 클릭하면 초기화된다..)
         $this->lang = FileHandler::readFile('./files/cache/addons/mobile/setLangType/personal_settings/' . md5(trim($_SERVER['HTTP_USER_AGENT']) . trim($_SERVER['HTTP_PHONE_NUMBER']) . trim($_SERVER['HTTP_HTTP_PHONE_NUMBER'])) . '.php');
         if ($this->lang) {
             $lang_supported = Context::get('lang_supported');
             $this->lang = str_replace(array('<?php /**', '**/ ?>'), array('', ''), $this->lang);
             if (isset($lang_supported[$this->lang])) {
                 Context::setLangType($this->lang);
             }
         }
         Context::loadLang(_XE_PATH_ . 'addons/mobile/lang');
         $instance = new wap();
         $mobilePage = (int) Context::get('mpage');
         if (!$mobilePage) {
             $mobilePage = 1;
         }
         $instance->setMobilePage($mobilePage);
     }
     return $instance;
 }
Пример #3
0
<?php

/**
 * wap搜索列表文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	wap
 */
require_once 'config/config.inc.php';
require_once "class/wap.class.php";
$objWebInit = new wap();
foreach ($arrGMeta as $k => $v) {
    if (in_array($k, array('useradmin', 'uploadfile', 'templates', 'plug-in', 'html', 'data', 'config', 'compile', 'cache', substr(__WEBADMIN_ROOT, 1), 'install'))) {
        continue;
    }
    if (in_array($k, array('wap', 'user', 'logs', 'ads', 'links', 'emaillist', 'phonelist', 'mcenter', 'archives', 'keywords', 'rss', 'sitemap', 'guest'))) {
        //$arrModuleDirs[$k]['id'] = $v;
        //$arrModuleDirs[$k]['state'] = 2;
        continue;
    }
    if ($v['cache'] != 1) {
        continue;
    }
    if (!empty($v)) {
        $arrModuleDirs[$k]['id'] = $k;
        $arrModuleDirs[$k]['cache'] = $v['cache'];
        $arrModuleDirs[$k]['name'] = $v['name'];
    }
Пример #4
0
<?php

/**
 * 商用物业搜索列表文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	wap
 */
require_once 'config/config.inc.php';
require_once "class/wap.class.php";
$objWebInit = new wap();
//翻页参数
$objWebInit->arrGPage = $arrGPage;
if (empty($_GET['page'])) {
    $intPage = 1;
} else {
    $intPage = intval($_GET['page']);
}
$arrWhere = array();
$arrLink = array();
$arrWhere[] = "pass='******'";
if (empty($_GET['mod'])) {
    include_once 'include/title.php';
    include_once 'include/head.php';
    $myText = new HAW_text($arrGWeb['name'] . '欢迎您!');
    $objHaw->add_text($myText);
    include_once 'include/foot.php';
    exit;
Пример #5
0
<?php

/**
 * 商用物业搜索列表文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	wap
 */
require_once 'config/config.inc.php';
require_once "class/wap.class.php";
$objWebInit = new wap();
if (empty($_GET['page'])) {
    $intPage = 1;
} else {
    $intPage = intval($_GET['page']);
}
$arrWhere = array();
$arrLink = array();
$arrWhere[] = "pass='******'";
foreach ($arrGMeta as $k => $v) {
    if (in_array($k, array('useradmin', 'uploadfile', 'templates', 'plug-in', 'html', 'data', 'config', 'compile', 'cache', substr(__WEBADMIN_ROOT, 1), 'install'))) {
        continue;
    }
    if (in_array($k, array('wap', 'user', 'logs', 'ads', 'links', 'emaillist', 'phonelist', 'mcenter', 'archives', 'keywords', 'rss', 'sitemap', 'guest'))) {
        //$arrModuleDirs[$k]['id'] = $v;
        //$arrModuleDirs[$k]['state'] = 2;
        continue;
    }
Пример #6
0
<?php

/**
 * wap列表文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	wap
 */
require_once 'config/config.inc.php';
require_once "class/wap.class.php";
$objWebInit = new wap();
if (empty($_GET['page'])) {
    $intPage = 1;
} else {
    $intPage = intval($_GET['page']);
}
if (empty($_GET['cpage'])) {
    $intCPage = 1;
} else {
    $intCPage = intval($_GET['cpage']);
}
if (!empty($_GET['mod'])) {
    $strModuleID = strval($_GET['mod']);
    include_once '../' . $strModuleID . '/config/var.inc.php';
    $objWebInit->setDBG($arrGPdoDB);
    $objWebInit->db();
    $arrLink[] = 'mod=' . $strModuleID;
} else {