Example #1
0
 function advertisement()
 {
     $conf = base_setup_config::deploy_info();
     $pagedata['product_key'] = $conf['product_key'];
     $pagedata['cross_call_url'] = base64_encode(url::route('shopadmin', array('ctl' => 'dashboard', 'act' => 'cross_call', 'app' => 'desktop')));
     return view::make('desktop/advertisement.html', $pagedata);
 }
Example #2
0
 public function active_top_html()
 {
     /** 获取证书,企业号的验证 **/
     $active_url = url::route('shopadmin', ['app' => 'entermembercenter', 'ctl' => 'register']);
     $pagedata['active_url'] = $active_url;
     return view::make('entermembercenter/desktop_active_top.html', $pagedata)->render();
 }
Example #3
0
 public function index()
 {
     //默认读取一下themes文件夹,获取文件夹内已有模板@lujy
     kernel::single('site_theme_install')->check_install($this->platform);
     $default_theme = kernel::single('site_theme_base')->get_default($this->platform);
     $themeInfo = app::get('site')->model('themes')->getList('*', array('theme' => $default_theme));
     $pagedata['site_url'] = url::route('topc');
     $preview = 'preview.jpg';
     if ($themeInfo) {
         $pagedata['current_theme'] = $themeInfo[0];
         /** 获取当前模版的信息 **/
         $pagedata['current']['is_themme_bk'] = kernel::single('site_theme_file')->is_themme_bk($themeInfo[0]['theme'], 'theme_bak.xml');
         $preview_prefix = kernel::single('site_theme_file')->preview_prefix($themeInfo[0]['theme']);
         $pagedata['preview_prefix'] = $preview_prefix;
         $src = kernel::single('site_theme_file')->get_src($themeInfo[0]['theme'], $preview);
         $pagedata['current_theme_preview_img'] = $src;
         //设置编辑默认页面
         $defaultIndexFile = kernel::single('site_theme_tmpl')->get_default('index', $default_theme);
         $nodefaultindex = $this->app->model('themes_tmpl')->getList('tmpl_path', array('theme' => $default_theme, 'tmpl_type' => 'index'));
         $pagedata['current']['default_index_file'] = $defaultIndexFile ? $defaultIndexFile : $nodefaultindex[0]['tmpl_path'];
     }
     /** 获取所有已安装的模版 **/
     $all_themes = app::get('site')->model('themes')->getList('*', array('is_used' => 0, 'platform' => $this->platform));
     foreach ($all_themes as $k => $arr_theme) {
         $all_themes[$k]['is_themme_bk'] = kernel::single('site_theme_file')->is_themme_bk($arr_theme['theme'], 'theme_bak.xml');
         $preview_prefix = kernel::single('site_theme_file')->preview_prefix($arr_theme['theme']);
         $src = kernel::single('site_theme_file')->get_src($arr_theme['theme'], $preview);
         $all_themes[$k]['preview'] = $src;
         $all_themes[$k]['preview_prefix'] = $preview_prefix;
     }
     $pagedata['all_themes'] = $all_themes;
     $pagedata['platform'] = $this->platform;
     return $this->page('site/admin/theme/manage/index.html', $pagedata);
 }
Example #4
0
 public function editor()
 {
     $theme = input::get('theme');
     $file = input::get('file');
     $urlType = input::get('platform');
     header('Content-Type: text/html; charset=utf-8');
     $this->path[] = array('text' => app::get('site')->_('模板可视化编辑'));
     $pagedata['views'] = kernel::single('site_theme_base')->get_view($theme);
     $pagedata['widgetsLib'] = kernel::single('site_theme_widget')->get_libs($theme);
     $pagedata['list'] = kernel::single('site_theme_tmpl')->get_edit_list($theme);
     $pagedata['types'] = kernel::single('site_theme_tmpl')->get_name($this->platform);
     $pagedata['theme'] = $theme;
     $pagedata['view'] = $file;
     $pagedata['viewname'] = kernel::single('site_theme_tmpl')->get_list_name($this->platform, $file);
     $pagedata['shopadmin'] = url::route('shopadmin');
     $pagedata['site_url'] = url::route('topc');
     $pagedata['pagehead_active'] = 'preview';
     $pagedata['save_url'] = url::route('shopadmin', ['app' => 'site', 'ctl' => 'admin_theme_widget', 'act' => 'do_preview']);
     // $pagedata['preview_url'] = url::route('topc');
     if ($urlType == 'pc') {
         $pagedata['preview_url'] = url::route('topc');
     }
     if ($urlType == 'wap') {
         $pagedata['preview_url'] = url::route('topm');
     }
     //设置编辑默认页面
     $defaultIndexFile = kernel::single('site_theme_tmpl')->get_default('index', $theme);
     $nodefaultindex = $this->app->model('themes_tmpl')->getList('tmpl_path', array('theme' => $theme, 'tmpl_type' => 'index'));
     $pagedata['current']['default_index_file'] = $defaultIndexFile ? $defaultIndexFile : $nodefaultindex[0]['tmpl_path'];
     $pagedata['platform'] = $this->platform;
     return $this->singlepage('site/admin/theme/widget/editor.html', $pagedata);
 }
Example #5
0
 public function getJsonUrl()
 {
     $apiJson = $this->format();
     foreach ($apiJson as $key => $value) {
         $url[$key] = url::route('api/api.json', ['api' => $key]);
     }
     return $url;
 }
Example #6
0
 public function column_edit(&$colList, $list)
 {
     foreach ($list as $k => $row) {
         $url = url::route('shopadmin', ['app' => 'syspromotion', 'act' => 'editActivity', 'ctl' => 'admin_activity', 'finder_id' => $_GET['_finder']['finder_id'], 'id' => $row['activity_id']]);
         $target = '_blank';
         $title = '编辑';
         $colList[$k] = '<a href="' . $url . '" target="' . $target . '">' . $title . '</a>';
     }
 }
Example #7
0
 function clean_data()
 {
     kernel::single('base_cleandata')->clean();
     //退出登录
     $this->begin('javascript:Cookie.dispose("basicloginform_password");Cookie.dispose("basicloginform_autologin");location="' . url::route('shopadmin') . '"');
     $this->user->login();
     $this->user->logout();
     pamAccount::logout();
     kernel::single('base_session')->destory();
     $this->end('true', app::get('desktop')->_('已成功退出系统,正在转向...'));
 }
Example #8
0
 /**
  * @brief 保存入驻申请信息
  *
  * @return
  */
 public function saveApply()
 {
     try {
         $url = url::route('topshop.home');
         $post = input::get();
         $this->__checkpost($post);
         $result = app::get('topshop')->rpcCall('shop.create.enterapply', $post);
         $msg = app::get('topshop')->_('申请入驻成功');
         return $this->splash('success', $url, $msg, true);
     } catch (\LogicException $e) {
         return $this->splash('error', null, $e->getMessage(), true);
     }
 }
Example #9
0
 public function column_edit(&$colList, $list)
 {
     $registerData = app::get('syspromotion')->model('activity');
     foreach ($list as $k => $row) {
         $url = url::route('shopadmin', ['app' => 'syspromotion', 'act' => 'index', 'ctl' => 'admin_activity_register', 'finder_id' => $_GET['_finder']['finder_id'], 'id' => $row['id'], 'finderview' => 'detail_basic', 'action' => 'detail', 'singlepage' => 'true']);
         $data = $registerData->getRow('activity_id', array('activity_id' => $row['activity_id'], 'release_time|sthan' => time()));
         if ($data) {
             $colList[$k] = '无法审核';
         } elseif ($row['verify_status'] == 'pending') {
             $colList[$k] = '<a href="' . $url . '" target="_blank" title="审核">审核</a>';
         }
         if ($row['verify_status'] == 'agree') {
             $colList[$k] = '审核通过';
         }
         if ($row['verify_status'] == 'refuse') {
             $colList[$k] = '审核驳回';
         }
     }
 }
Example #10
0
 public function __construct(&$app)
 {
     $setting['界面操作'][] = array('title' => '刷新主区域', 'type' => 'refresh', 'params' => array('control' => array('ctrl' => 'true'), 'keyword' => 'R'));
     $setting['界面操作'][] = array('title' => '关闭对话框或列表明细', 'type' => 'close', 'params' => array('keyword' => 'F', 'control' => array('ctrl' => 'true')));
     $setting['界面操作'][] = array('title' => '列表中下个条目明细', 'type' => 'detail', 'arg' => 'getNext', 'params' => array('keyword' => 'H'));
     $setting['界面操作'][] = array('title' => '列表中上个条目明细', 'type' => 'detail', 'arg' => 'getPrevious', 'params' => array('keyword' => 'L'));
     $setting['界面操作'][] = array('title' => '列表中下个条目明细中上个Tab', 'type' => 'tabs', 'arg' => 'getNext', 'params' => array('keyword' => 'J'));
     $setting['界面操作'][] = array('title' => '列表中上个条目明细中上个Tab', 'type' => 'tabs', 'arg' => 'getPrevious', 'params' => array('keyword' => 'K'));
     $setting['界面操作'][] = array('title' => '隐藏左侧导航栏', 'type' => 'event', 'arg' => '#leftToggler', 'params' => array('keyword' => 'Q'));
     $setting['界面操作'][] = array('title' => '打开/隐藏高级筛选', 'type' => 'event', 'arg' => '.finder-filter-action-handle a', 'params' => array('keyword' => 'W'));
     $url = url::route('shopadmin', array('app' => 'desktop', 'act' => 'index', 'ctl' => 'dashboard'));
     $setting['全局操作'][] = array('title' => '查看桌面', 'params' => array('keyword' => 'D'), 'arg' => $url);
     $url = url::route('shopadmin', array('app' => 'desktop', 'act' => 'index', 'ctl' => 'appmgr'));
     $setting['全局操作'][] = array('title' => '打开应用中心', 'params' => array('keyword' => 'A'), 'arg' => $url);
     $url = url::route('shopadmin', array('app' => 'desktop', 'act' => 'index', 'ctl' => 'adminpanel'));
     $setting['全局操作'][] = array('title' => '打开控制面板', 'params' => array('keyword' => 'B'), 'arg' => $url);
     $setting['全局操作'][] = array('title' => '打开帮助', 'type' => 'open', 'params' => array('keyword' => 'C'), 'arg' => 'http://www.shopex.cn/help/ecstore');
     $url = url::route('shopadmin', array('app' => 'desktop', 'act' => 'maintenance', 'ctl' => 'appmgr'));
     $setting['全局操作'][] = array('title' => '维护', 'type' => 'cmd', 'params' => array('keyword' => 'E'), 'arg' => $url, 'options' => array('title' => '维护'));
     $this->setting = $setting;
 }
Example #11
0
 function active()
 {
     if ($_GET['ent_id'] && $_GET['ent_ac'] && $_GET['ent_sign'] && $_GET['ent_email']) {
         //判断数据是否是中心过来的
         if (md5($_GET['ent_id'] . $_GET['ent_ac'] . 'ShopEXUser') == $_GET['ent_sign']) {
             //检测企业帐号是否正确
             base_enterprise::set_version();
             base_enterprise::set_token();
             if (!base_enterprise::is_valid('json', $_GET['ent_id'])) {
                 header("Content-type: text/html; charset=utf-8");
                 $active_url = url::route('shopadmin', array('app' => 'entermembercenter', 'ctl' => 'register'));
                 header('Location:' . $active_url);
                 exit;
             } else {
                 $arr_enterprise = array('ent_id' => $_GET['ent_id'], 'ent_ac' => $_GET['ent_ac'], 'ent_email' => $_GET['ent_email']);
                 base_enterprise::set_enterprise_info($arr_enterprise);
                 if (!base_certificate::certi_id() || !base_certificate::token()) {
                     base_certificate::register();
                 }
                 if (!base_shopnode::node_id() && base_certificate::certi_id() && base_certificate::token()) {
                     $obj_buildin = kernel::single('base_shell_buildin');
                     $obj_buildin->command_active_node_id('ceti_node_id');
                 }
             }
         }
     } else {
         header("Content-type: text/html; charset=utf-8");
         $active_url = url::route('shopadmin', ['app' => 'entermembercenter', 'ctl' => 'register']);
         header('Location:' . $active_url);
         exit;
     }
     $url = url::route('shopadmin');
     $url = base64_encode($url);
     $login_html = '?ctl=passport&act=index&url=' . $url;
     header("Content-type: text/html; charset=utf-8");
     header('Location:' . $login_html);
     exit;
 }
Example #12
0
 static function checkInstalled()
 {
     if (!self::is_online()) {
         if (file_exists(APP_DIR . '/setup/app.xml')) {
             //todo:进入安装check
             setcookie('LOCAL_SETUP_URL', url::route('setup'), 0, '/');
             if (file_exists(PUBLIC_DIR . '/check.php')) {
                 header('Location: ' . kernel::base_url() . '/check.php');
             } else {
                 header('Location: ' . url::route('setup'));
             }
             exit;
         } else {
             echo '<h1>System is Offline, install please.</h1>';
             exit;
         }
     }
 }
Example #13
0
 /**
  * Generate a URL to a named route.
  *
  * @param  string  $route
  * @param  array   $parameters
  * @return string
  */
 function route($route, $parameters = array())
 {
     return url::route($route, $parameters);
 }
Example #14
0
 private function get_index_url()
 {
     return url::route('shopadmin', array('app' => 'site', 'ctl' => 'admin_errorpage', 'act' => 'index'));
 }
Example #15
0
 /**
  *  URL路由处理 
  */
 private static function route()
 {
     url::route();
     //URL路由处理
 }
Example #16
0
 public function codecheck()
 {
     //if ($_POST['auth_code'] && preg_match("/^\d{19}$/", substr($_POST['auth_code'], 1)))
     if ($_POST['auth_code']) {
         $code = kernel::single('desktop_cert_certcheck');
         $result = $code->check_code($_POST['auth_code']);
         if ($result['res'] == 'succ' && $result) {
             $activation_arr = $_POST['auth_code'];
             app::get('desktop')->setConf('activation_code', $activation_arr);
             $objArr = kernel::servicelist("desktop.cert.succ");
             foreach ($objArr as $obj) {
                 if (method_exists($obj, 'notify')) {
                     $obj->notify($result);
                 }
             }
             header('Location:' . url::route('shopadmin'));
             exit;
         } else {
             switch ($result['msg']) {
                 case 'key_false_type':
                     $auth_error_msg = '激活码类型不对!';
                     break;
                 case 'key_false_ac':
                     $auth_error_msg = '验证标签错误!';
                     break;
                 case 'key_false_expir':
                     $auth_error_msg = '此激活码大于最大有效期限制!';
                     break;
                 case 'key_false_times':
                     $auth_error_msg = '失败:您已经连续6次提交失败,为了您的网店安全,请3小时后再次尝试|';
                     break;
                 case 'key_false_key':
                     $auth_error_msg = '无效的激活码,请您重新输入激活码以便正常使用。';
                     break;
                 case 'key_false_actived':
                     $auth_error_msg = '您的激活码已经失效,请您重新输入激活码以便正常使用。';
                     break;
                 case 'key_false_oem':
                     $auth_error_msg = '您的网店License与输入的激活码类型不一,请联系激活码销售商!';
                     break;
                 case 'key_false_type_1':
                     $auth_error_msg = '您的网店License与输入的激活码类型不一,请联系激活码销售商!';
                     break;
                 case 'key_false_type_2':
                     $auth_error_msg = '您的网店License与输入的激活码类型不一,请联系激活码销售商!';
                     break;
                 case 'certificate_id_is_false':
                     $auth_error_msg = ' 您的网店证书有误,请查证!';
                     break;
                 case 'temp_key_false':
                     $auth_error_msg = '临时激活码激活失败,此站点已经用正式激活码激活过了,不能再用临时激活码';
                     break;
                 case 'active_key_false':
                     $auth_error_msg = '激活错误,此激活码已被使用或者激活码输入错误';
                     break;
             }
             die($this->error_view($auth_error_msg));
         }
         header("Location: index.php");
         exit;
     }
 }
Example #17
0
 public function doDelete()
 {
     $ids = input::get('activity_id');
     $url = url::route('shopadmin', ['app' => 'syspromotion', 'act' => 'index', 'ctl' => 'admin_activity']);
     $this->begin($url);
     try {
         kernel::single('syspromotion_activity')->deleteActivity($ids);
         $this->adminlog("删除活动{$ids}", 1);
     } catch (Exception $e) {
         $this->adminlog("删除活动{$ids}", 0);
         $msg = $e->getMessage();
         $this->end(false, $msg);
     }
     $this->end(true);
 }
Example #18
0
 /**
  * 后台支付方式列表关于此支付方式的简介
  * @param null
  * @return string 简介内容
  */
 public function admin_intro()
 {
     $regIp = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : $_SERVER['HTTP_HOST'];
     return '<img src="' . $this->app->res_url . '/payments/images/ALIPAY.gif"><br /><b style="font-family:verdana;font-size:13px;padding:3px;color:#000"><br>ShopEx联合支付宝推出优惠套餐:无预付/年费,单笔费率低至0.7%-1.2%,无流量限制。</b><div style="padding:10px 0 0 388px"><a  href="javascript:void(0)" onclick="document.ALIPAYFORM.submit();"><img src="' . $this->app->res_url . '/payments/images/alipaysq.png"></a></div><div>如果您已经和支付宝签约了其他套餐,同样可以点击上面申请按钮重新签约,即可享受新的套餐。<br>如果不需要更换套餐,请将签约合作者身份ID等信息在下面填写即可,<a href="http://www.shopex.cn/help/ShopEx48/help_shopex48-1235733634-11323.html" target="_blank">点击这里查看使用帮助</a><form name="ALIPAYFORM" method="GET" action="http://top.shopex.cn/recordpayagent.php" target="_blank"><input type="hidden" name="postmethod" value="GET"><input type="hidden" name="payagentname" value="支付宝"><input type="hidden" name="payagentkey" value="ALIPAY"><input type="hidden" name="market_type" value="from_agent_contract"><input type="hidden" name="customer_external_id" value="C433530444855584111X"><input type="hidden" name="pro_codes" value="6AECD60F4D75A7FB"><input type="hidden" name="regIp" value="' . $regIp . '"><input type="hidden" name="domain" value="' . url::route('topc') . '"></form></div>';
 }
Example #19
0
 public function keyboard_setting()
 {
     $desktop_user = kernel::single('desktop_user');
     if ($_POST['keyboard_setting']) {
         if ($this->_keyboard_conflict($_POST['keyboard_setting'])) {
             $this->begin();
             $this->end(false, '错误:多个快捷键的设置存在冲突');
             exit;
         } else {
             $desktop_user->set_conf('keyboard_setting', $_POST['keyboard_setting']);
             $this->_init_keyboard_setting();
             echo $this->pagedata['keyboard_setting_json'];
             exit;
         }
     }
     $desktop_user->get_conf('keyboard_setting', $keyboard_setting);
     //初始化数据
     $o = kernel::single('desktop_keyboard_setting');
     $o->init_keyboard_setting_data($setting, $keyword, $keyboard_setting);
     foreach ($setting as $key => &$_setting) {
         foreach ($_setting as &$row) {
             if ($key != '导航菜单上的栏目') {
                 $default = array('ctrl', 'shift');
                 $o->set_default_control($default, $row);
             } else {
                 $default = array('alt');
                 $o->set_default_control($default, $row);
             }
         }
     }
     $this->pagedata['form_action_url'] = url::route('shopadmin', array('app' => 'desktop', 'act' => 'keyboard_setting', 'ctl' => 'default'));
     $this->pagedata['keyword'] = $keyword;
     $this->pagedata['setting'] = $setting;
     return view::make('desktop/keyboard_setting.html', $this->pagedata);
 }
Example #20
0
 function listener_login($params)
 {
     $opencheck = false;
     $objCertchecks = kernel::servicelist("desktop.cert.check");
     foreach ($objCertchecks as $objCertcheck) {
         if (method_exists($objCertcheck, 'certcheck') && $objCertcheck->certcheck()) {
             $opencheck = true;
             break;
         }
     }
     if (!$opencheck || $this->is_internal_ip() || $this->is_demosite()) {
         return;
     }
     if ($params['type'] === pamAccount::getAuthType('desktop')) {
         $result = $this->check_certid();
         if ($result['res'] == 'succ' && $result['info']['valid']) {
             return;
         } else {
             unset($_SESSION['account'][$params['type']]);
             switch ($result['msg']) {
                 case "invalid_version":
                     $msg = "版本号有误,查看mysql是否运行正常";
                     break;
                 case "RegUrlError":
                     $msg = "你当前使用的域名与激活码所绑定的域名不一致。</br>如果你确认需要更改域名,请将“老域名”,“新域名”,“shopexid”,“激活码”发送至邮箱:ecstore_service@shopex.cn</br>如果不是更改域名,请使用激活码所绑定的域名来登陆ECstore。</br>";
                     break;
                 case "SessionError":
                     $msg = "中心请求网店API失败!请找服务商或自行检测网络,保证网络正常。";
                     break;
                 case "license_error":
                     $msg = "证书号错误!请确认config/certi.php文件真的存在!";
                     break;
                 case "method_not_exist":
                     $msg = "接口方法不存在!";
                     break;
                 case "method_file_not_exist":
                     $msg = "接口文件不存在!";
                     break;
                 case "NecessaryArgsError":
                     $msg = "缺少必填参数!";
                     break;
                 case "ProductTypeError":
                     $msg = "产品类型错误!";
                     break;
                 case "UrlFormatUrl":
                     $msg = "URL格式错误!";
                     break;
                 case "invalid_sign":
                     $msg = "验签错误!";
                     break;
                 default:
                     $msg = null;
                     break;
             }
             if ($result == null) {
                 $msg = "请检测您的服务器域名解析是否正常!";
             }
             $pagedata['msg'] = $msg ? $msg : "";
             $pagedata['url'] = $url = url::route('shopadmin');
             $pagedata['code_url'] = url::route('shopadmin', array('app' => 'desktop', 'ctl' => 'code', 'act' => 'error_view'));
             return view::make('desktop/codetip.html', $pagedata);
         }
     }
 }
Example #21
0
 public function getViews()
 {
     if ($this->views === null) {
         if (!$this->use_view_tab) {
             return array();
         }
         list($app_id, $model) = explode('_mdl_', $this->object_name);
         if ($app_id != $this->controller->app->app_id) {
             return array();
         }
         if (method_exists($this->controller, '_views')) {
             $views = $this->controller->_views();
             $views_temp = ecos_cactus('desktop', 'finder_builder_prototype_get_view_modifier', $views, $this->finder_aliasname, $views_temp);
         }
         //            echo '<pre>';
         //            var_dump($views_temp);exit;
         //自定义筛选器
         $filter = app::get('desktop')->model('filter');
         $_filter = array('model' => $this->object_name, 'app' => $_GET['app'], 'ctl' => $_GET['ctl'], 'act' => $_GET['act'], 'user_id' => $this->controller->user->user_id);
         $rows = $filter->getList('*', $_filter, 0, -1, 'create_time asc');
         if (!$views_temp && $rows[0]) {
             $object = app::get($app_id)->model($model);
             $views_temp = array(0 => array('label' => app::get('desktop')->_('全部'), 'optional' => false, 'filter' => "", 'addon' => $object->count()));
         }
         $extends = $this->_get_args();
         krsort($views_temp);
         $view = array_slice($views_temp, 0, 1, true);
         $view = array_keys($view);
         $view = $view[0] + 1;
         ksort($views_temp);
         //$view = count($views_temp);
         foreach ($rows as $row) {
             $_url_array = array('app' => $_filter['app'], 'act' => $_filter['act'], 'ctl' => $_filter['ctl'], 'view' => $view);
             $view++;
             $_url_array = ecos_cactus('desktop', 'finder_builder_prototype_get_view_url_array', $extends, $_url_array);
             $url = url::route('shopadmin', $_url_array);
             unset($_url_array);
             $views_temp[] = ecos_cactus('desktop', 'finder_builder_prototype_get_views', $row, $url);
         }
         $this->views = (array) $views_temp;
     }
     return $this->views;
 }
Example #22
0
 function singlepage($view, $pagedata = array())
 {
     $service = kernel::service(sprintf('desktop_controller_display.%s.%s.%s', $_GET['app'], $_GET['ctl'], $_GET['act']));
     if ($service) {
         if (method_exists($service, 'get_file')) {
             $view = $service->get_file();
         }
         if (method_exists($service, 'get_app_id')) {
             $app_id = $service->get_app_id();
         }
     }
     $page = view::make($view, $pagedata)->render();
     ini_set('pcre.backtrack_limit', 10000000);
     $re = '/<script([^>]*)>(.*?)<\\/script>/is';
     $this->__scripts = '';
     $page = preg_replace_callback($re, array(&$this, '_singlepage_prepare'), $page) . '<script type="text/plain" id="__eval_scripts__" >' . $this->__scripts . '</script>';
     //后台singlepage页面增加自定义css引入到head标签内的操作--@lujy-start
     $recss = '/<link([^>]*)>/is';
     $this->__link_css = '';
     $page = preg_replace_callback($recss, array(&$this, '_singlepage_link_prepare'), $page);
     $pagedata['singleappcss'] = $this->__link_css;
     //--end
     $pagedata['statusId'] = $this->app->getConf('b2c.wss.enable');
     $pagedata['session_id'] = kernel::single('base_session')->sess_id();
     $pagedata['desktop_path'] = app::get('desktop')->res_url;
     $pagedata['shopadmin_dir'] = dirname($_SERVER['PHP_SELF']) . '/';
     $pagedata['shop_base'] = url::route('topc');
     $pagedata['desktopresurl'] = app::get('desktop')->res_url;
     $pagedata['desktopresfullurl'] = app::get('desktop')->res_full_url;
     $pagedata['_PAGE_'] =& $page;
     return view::make('desktop/singlepage.html', $pagedata);
 }
Example #23
0
 public function __construct(&$app)
 {
     $url = url::route('shopadmin', array('app' => 'site', 'act' => 'index', 'ctl' => 'admin_theme_manage'));
     $setting['导航菜单上的栏目'][] = array('title' => '打开站点主菜单', 'params' => array('keyword' => '6', 'control' => array('alt' => 'true')), 'arg' => $url);
     $this->setting = $setting;
 }