function list_action() { $set1=settings::getInstance(); $sets1=$set1->getrow(array('tag'=>'table-'.$this->table)); $setsdata1=unserialize($sets1['value']); $this->view->settings=$setsdata1; $where = $ologin_list = array(); $where['enabled'] = 1; $ordre='`ologin_id` DESC'; $limit=((front::get('page') -1) * $this->_pagesize).','.$this->_pagesize; $this->_view_table=$this->_table->getrows($where,$limit,$ordre,$this->_table->getcols('manage')); $ologin_list = $this->_view_table; foreach($ologin_list as $key=>$value) { $ologin_list[$value['ologin_code']] = $value; unset($ologin_list[$key]); } $modules = read_modules(ROOT.'/lib/plugins/ologin/'); global $_LANG; for ($i = 0;$i <count($modules);$i++) { $code = $modules[$i]['code']; $modules[$i]['ologin_code'] = $modules[$i]['code']; if (isset($ologin_list[$code])) { $modules[$i]['id'] = $ologin_list[$code]['ologin_id']; $modules[$i]['name'] = $ologin_list[$code]['ologin_name']; $modules[$i]['is_cod'] = $ologin_list[$code]['is_cod']; $modules[$i]['desc'] = $ologin_list[$code]['ologin_desc']; $modules[$i]['install'] = '1'; } else { $modules[$i]['name'] = $_LANG[$modules[$i]['code']]; $modules[$i]['desc'] = $_LANG[$modules[$i]['desc']]; $modules[$i]['install'] = '0'; } } $this->_view_table = $modules; }
/** * 授权列表 */ public function index() { $modules = read_modules(ROOT_PATH . 'plugins/connect'); foreach ($modules as $key => $value) { $modules[$key]['install'] = $this->model->table('touch_auth')->where(array('from' => $value['type']))->count(); } $this->assign('ur_here', L('09_authorization_list')); $this->assign('modules', $modules); $this->display(); }
/** * 支付方式列表 */ public function index() { // 查询数据库中启用的支付方式 $pay_list = array(); $where['enabled'] = 1; $rs = $this->model->table('touch_payment')->where($where)->order('pay_order')->select(); if ($rs) { foreach ($rs as $key => $val) { $pay_list[$val['pay_code']] = $val; } } // 获取目录中支付插件列表 $modules = read_modules(ROOT_PATH . 'plugins/payment'); foreach ($modules as $key => $val) { $code = $val['code']; $modules[$key]['pay_code'] = $val['code']; // 如果数据库中存在,用数据库中的数据 if (isset($pay_list[$code])) { $modules[$key]['name'] = $pay_list[$code]['pay_name']; $modules[$key]['pay_fee'] = $pay_list[$code]['pay_fee']; $modules[$key]['is_cod'] = $pay_list[$code]['is_cod']; $modules[$key]['desc'] = $pay_list[$code]['pay_desc']; $modules[$key]['pay_order'] = $pay_list[$code]['pay_order']; $modules[$key]['install'] = '1'; } else { $modules[$key]['name'] = L($val['code']); if (!isset($val['pay_fee'])) { $modules[$key]['pay_fee'] = 0; } $modules[$key]['desc'] = L($val['desc']); $modules[$key]['install'] = '0'; } } $this->assign('ur_here', L('02_payment_list')); $this->assign('modules', $modules); $this->display(); }
ksort($modules); for ($i = 0; $i < count($modules); $i++) { $lang_file = ROOT_PATH . 'languages/' . $_CFG['lang'] . '/shipping/' . $modules[$i]['code'] . '.php'; if (file_exists($lang_file)) { include_once $lang_file; } $modules[$i]['name'] = $_LANG[$modules[$i]['code']]; $modules[$i]['desc'] = $_LANG[$modules[$i]['desc']]; $modules[$i]['insure_fee'] = empty($modules[$i]['insure']) ? 0 : $modules[$i]['insure']; $modules[$i]['cod'] = $modules[$i]['cod']; $modules[$i]['install'] = 0; } $smarty->assign('modules', $modules); unset($modules); //获取支付方式 $modules = read_modules('../includes/modules/payment'); for ($i = 0; $i < count($modules); $i++) { $code = $modules[$i]['code']; $modules[$i]['name'] = $_LANG[$modules[$i]['code']]; if (!isset($modules[$i]['pay_fee'])) { $modules[$i]['pay_fee'] = 0; } $modules[$i]['desc'] = $_LANG[$modules[$i]['desc']]; } // $modules[$i]['install'] = '0'; $smarty->assign('modules_payment', $modules); assign_query_info(); $smarty->assign('ur_here', $_LANG['ur_config']); $smarty->display('setting_first.htm'); } elseif ($_REQUEST['act'] == 'second') { admin_priv('shop_config');
if(!empty($shop_province)) { $sql = 'UPDATE ' . $ecs->table('shop_config') . "SET value = '$shop_province' WHERE code='shop_province'"; $db->query($sql); } if(!empty($shop_city)) { $sql = 'UPDATE ' . $ecs->table('shop_config') . "SET value = '$shop_city' WHERE code='shop_city'"; $db->query($sql); } //设置配送方式 if(!empty($shipping)) { $shop_add = read_modules('../includes/modules/shipping'); foreach ($shop_add as $val) { $mod_shop[] = $val['code']; } $mod_shop = implode(',',$mod_shop); $set_modules = true; if(strpos($mod_shop,$shipping) === false) { exit; } else { include_once(ROOT_PATH . 'includes/modules/shipping/' . $shipping . '.php');
* 网站地址: http://www.ecshop.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ * $Author: liubo $ * $Id: shipping.php 17217 2011-01-19 06:29:08Z liubo $. */ define('IN_ECS', true); require dirname(__FILE__) . '/includes/init.php'; $exc = new exchange($ecs->table('shipping'), $db, 'shipping_code', 'shipping_name'); /*------------------------------------------------------ */ //-- 配送方式列表 /*------------------------------------------------------ */ if ($_REQUEST['act'] == 'list') { $modules = read_modules('../includes/modules/shipping'); for ($i = 0; $i < count($modules); ++$i) { $lang_file = ROOT_PATH . 'languages/' . $_CFG['lang'] . '/shipping/' . $modules[$i]['code'] . '.php'; if (file_exists($lang_file)) { include_once $lang_file; } /* 检查该插件是否已经安装 */ $sql = 'SELECT shipping_id, shipping_name, shipping_desc, insure, support_cod,shipping_order FROM ' . $ecs->table('shipping') . " WHERE shipping_code='" . $modules[$i]['code'] . "' ORDER BY shipping_order"; $row = $db->GetRow($sql); if ($row) { /* 插件已经安装了,获得名称以及描述 */ $modules[$i]['id'] = $row['shipping_id']; $modules[$i]['name'] = $row['shipping_name']; $modules[$i]['desc'] = $row['shipping_desc']; $modules[$i]['insure_fee'] = $row['insure']; $modules[$i]['cod'] = $row['support_cod'];
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ * $Author: testyang $ * $Id: convert.php 15013 2008-10-23 09:31:42Z testyang $ */ define('IN_ECS', true); require dirname(__FILE__) . '/includes/init.php'; /*------------------------------------------------------ */ //-- 转换程序主页面 /*------------------------------------------------------ */ if ($_REQUEST['act'] == 'main') { /* 检查权限:只有超级管理员(安装本系统的人)才可以执行此操作 */ admin_priv('all'); /* 取得插件文件中的转换程序 */ $modules = read_modules('../includes/modules/convert'); for ($i = 0; $i < count($modules); $i++) { $code = $modules[$i]['code']; $lang_file = ROOT_PATH . 'languages/' . $_CFG['lang'] . '/convert/' . $code . '.php'; if (file_exists($lang_file)) { include_once $lang_file; } $modules[$i]['desc'] = $_LANG[$modules[$i]['desc']]; } $smarty->assign('module_list', $modules); /* 设置默认值 */ $def_val = array('host' => $db_host, 'db' => '', 'user' => $db_user, 'pass' => $db_pass, 'prefix' => 'sdb_', 'path' => ''); $smarty->assign('def_val', $def_val); /* 取得字符集数组 */ $smarty->assign('charset_list', get_charset_list()); /* 显示模板 */
* $Author: liubo $ * $Id: cron.php 17217 2011-01-19 06:29:08Z liubo $ */ define('IN_ECS', true); require dirname(__FILE__) . '/includes/init.php'; $_REQUEST['act'] = trim($_REQUEST['act']); admin_priv('cron'); $exc = new exchange($ecs->table('crons'), $db, 'cron_code', 'cron_name'); if ($_REQUEST['act'] == 'list') { $cron_list = array(); $sql = "SELECT * FROM " . $ecs->table('crons'); $res = $db->query($sql); while ($row = $db->fetchRow($res)) { $cron_list[$row['cron_code']] = $row; } $modules = read_modules('../includes/modules/cron'); for ($i = 0; $i < count($modules); $i++) { $code = $modules[$i]['code']; /* 如果数据库中有,取数据库中的名称和描述 */ if (isset($cron_list[$code])) { $modules[$i]['name'] = $cron_list[$code]['cron_name']; $modules[$i]['desc'] = $cron_list[$code]['cron_desc']; $modules[$i]['cron_order'] = $cron_list[$code]['cron_order']; $modules[$i]['enable'] = $cron_list[$code]['enable']; $modules[$i]['nextime'] = local_date('Y-m-d/H:i:s', $cron_list[$code]['nextime']); $modules[$i]['thistime'] = $cron_list[$code]['thistime'] ? local_date('Y-m-d/H:i:s', $cron_list[$code]['thistime']) : '-'; $modules[$i]['install'] = '1'; } else { $modules[$i]['name'] = $_LANG[$modules[$i]['code']]; $modules[$i]['desc'] = $_LANG[$modules[$i]['desc']]; $modules[$i]['nextime'] = '-';
* * 版权所有 2005-2012 上海商派网络科技有限公司,并保留所有权利。 * 网站地址: http://www.ecshop.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ * $Author: liubo $ * $Id: integrate.php 17217 2011-01-19 06:29:08Z liubo $ */ define('IN_ECTOUCH', true); require dirname(__FILE__) . '/includes/init.php'; /*------------------------------------------------------ */ //-- 会员数据整合插件列表 /*------------------------------------------------------ */ if ($_REQUEST['act'] == 'list') { $modules = read_modules('../include/modules/integrates'); for ($i = 0; $i < count($modules); $i++) { $modules[$i]['installed'] = $modules[$i]['code'] == $_CFG['integrate_code'] ? 1 : 0; } $allow_set_points = $_CFG['integrate_code'] == 'ecshop' ? 0 : 1; $smarty->assign('allow_set_points', $allow_set_points); $smarty->assign('ur_here', $_LANG['06_list_integrate']); $smarty->assign('modules', $modules); assign_query_info(); $smarty->display('integrates_list.htm'); } /*------------------------------------------------------ */ //-- 安装会员数据整合插件 /*------------------------------------------------------ */ if ($_REQUEST['act'] == 'install') { admin_priv('integrate_users', '');
require dirname(__FILE__) . '/includes/init.php'; $exc = new exchange($ecs->table('sms_proxy'), $db, 'proxy_code', 'proxy_name'); /*------------------------------------------------------ */ //-- 短信平台列表 ?act=list /*------------------------------------------------------ */ if ($_REQUEST['act'] == 'list') { admin_priv('sms_proxy'); /* 查询数据库中启用的短信平台 */ $proxy_list = array(); $sql = "SELECT * FROM " . $ecs->table('sms_proxy') . " WHERE enabled = '1' ORDER BY proxy_order"; $res = $db->query($sql); while ($row = $db->fetchRow($res)) { $proxy_list[$row['proxy_code']] = $row; } /* 取得插件文件中的短信平台 */ $modules = read_modules('../includes/modules/sms'); for ($i = 0; $i < count($modules); $i++) { $code = $modules[$i]['code']; $modules[$i]['proxy_code'] = $modules[$i]['code']; /* 如果数据库中有,取数据库中的名称和描述 */ if (isset($proxy_list[$code])) { $modules[$i]['name'] = $proxy_list[$code]['proxy_name']; $modules[$i]['desc'] = $proxy_list[$code]['proxy_desc']; $modules[$i]['proxy_order'] = $proxy_list[$code]['proxy_order']; $modules[$i]['is_text'] = $proxy_list[$code]['is_text']; $modules[$i]['is_voice'] = $proxy_list[$code]['is_voice']; $modules[$i]['install'] = '1'; } else { $modules[$i]['name'] = $_LANG[$modules[$i]['code']]; $modules[$i]['desc'] = $_LANG[$modules[$i]['desc']]; $modules[$i]['is_text'] = $_LANG[$modules[$i]['is_text']];