本文整理汇总了PHP中load::mod_class方法的典型用法代码示例。如果您正苦于以下问题:PHP load::mod_class方法的具体用法?PHP load::mod_class怎么用?PHP load::mod_class使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类load
的用法示例。
在下文中一共展示了load::mod_class方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct()
{
global $_M;
parent::__construct();
$this->moduleclass = load::mod_class('content/class/sys_article', 'new');
$this->module = 2;
}
示例2: doauth
public function doauth()
{
global $_M;
$auth = load::mod_class('system/class/auth', 'new');
if ($auth->dl_auth($_M['form']['authpass'], $_M['form']['authcode'])) {
turnover("{$_M['url']['own_form']}a=doindex");
} else {
turnover("{$_M['url']['own_form']}a=doindex", $_M['word']['authTip2']);
}
}
示例3: __construct
public function __construct()
{
parent::__construct();
global $_M;
nav::set_nav(1, '会员列表', $_M['url']['own_name'] . 'c=admin_user&a=doindex');
nav::set_nav(2, '会员组', $_M['url']['own_name'] . 'c=admin_group&a=doindex');
nav::set_nav(3, '会员属性', $_M['url']['own_name'] . 'c=admin_set&a=douserfield');
nav::set_nav(4, '会员功能设置', $_M['url']['own_name'] . 'c=admin_set&a=doindex');
nav::set_nav(5, '社会化登录', $_M['url']['own_name'] . 'c=admin_set&a=doopen');
$this->userclass = load::mod_class('user/class/sys_user', 'new');
}
示例4: __construct
function __construct()
{
global $_M;
parent::__construct();
$this->moduleclass = load::mod_class('content/class/sys_product', 'new');
//
//$this->shop = load::app_class('shop/admin/class/sys_goods', 'new');
if (!($this->shop = load::plugin('doproduct_plugin_class', '1'))) {
$this->shop = load::mod_class('content/class/sys_shop', 'new');
}
$this->paraclass = load::mod_class('system/class/sys_para', 'new');
$this->module = 3;
}
示例5: dophonecode
public function dophonecode()
{
global $_M;
$user = $this->userclass->get_user_by_tel($_M['form']['phone']);
if (!$user) {
okinfo($_M['url']['getpassword'], $_M['word']['nouser']);
}
$valid = load::mod_class('user/class/valid', 'new');
if ($valid->get_tel($_M['form']['phone'])) {
echo 'SUCCESS';
} else {
echo $_M['word']['membererror5'] . $ret;
}
}
示例6: get_info_by_curl
public function get_info_by_curl($unionid)
{
global $_M;
$data = $this->get_other_user($unionid);
$url = "https://api.weixin.qq.com/sns/userinfo";
$send['access_token'] = $data['access_token'];
$send['openid'] = $data['openid'];
$data = jsondecode(load::mod_class('user/class/curl_ssl', 'new')->curl_post($url, $send, 'get'));
$data['username'] = $data['nickname'];
if ($this->error_curl($data)) {
return false;
} else {
return $data;
}
}
示例7: get_info_by_curl
public function get_info_by_curl($unionid)
{
global $_M;
$data = $this->get_other_user($unionid);
$url = "https://api.weibo.com/2/users/show.json";
$send['access_token'] = $data['access_token'];
$send['uid'] = $data['openid'];
$send['source'] = $this->appkey;
$data = jsondecode(load::mod_class('user/class/curl_ssl', 'new')->curl_post($url, $send, 'get'));
$data['username'] = $data['screen_name'];
if ($this->error_curl($data)) {
return false;
} else {
return $data;
}
}
示例8: doappdetail
public function doappdetail()
{
global $_M;
$return_this = 1;
$appdetail['type'] = $_M['form']['type'];
$appdetail['no'] = $_M['form']['no'];
//$appdetail['appid'] = $_M['form']['appid'];
if ($appdetail['type'] == 'app') {
nav::select_nav(2);
$getapp = load::mod_class('myapp/class/getapp', 'new');
$app = $getapp->get_oneapp($appdetail['no']);
if ($app) {
$app['url'] = "<a href=\"{$app['url']}\">{$_M['word']['dlapptips5']}</a>";
}
$buy_Explain = $_M['word']['langshuom'];
$buy_Explain1 = $_M['word']['purchase_application'];
$demonstration = "<span class='demo_url'></span>";
}
if ($appdetail['type'] == 'tem') {
nav::select_nav(3);
$query = "SELECT * FROM {$_M['table']['skin_table']} WHERE skin_file ='{$appdetail['no']}'";
$app = DB::get_one($query);
if ($app) {
$app['ver'] = '1.0';
$app['url'] = "<a target=\"_blank\" href=\"{$_M['url']['adminurl']}n=theme&c=theme&a=doindex&mobile={$app['devices']}&anyid=70&lang={$_M['lang']}\">{$_M['word']['configuratio_template']}</a>";
}
$appdetail['no'] = $_M['form']['appid'];
$buy_Explain = $_M['word']['template_domain'];
$buy_Explain1 = $_M['word']['buy_template_must'];
}
if ($app) {
$appdetail['download'] = 1;
} else {
$appdetail['download'] = 0;
}
$appdetail['ver'] = $app['ver'];
$appdetail['url'] = $app['url'];
$query = "SELECT * FROM {$_M['table']['otherinfo']} where id=1";
$th = DB::get_one($query);
$authkey = $th['authpass'];
$authcode = $th['authcode'];
require $this->template('tem/appdetail');
}
示例9: dodelapp
public function dodelapp()
{
global $_M;
$no = $_M['form']['no'];
$getapp = load::mod_class('myapp/class/getapp', 'new');
$app = $getapp->get_oneapp($no);
if ($app['m_class']) {
$uninstall = load::app_class($app['m_name'] . '/admin/uninstall', 'new');
$uninstall->dodel();
turnover($_M['url']['own_name'] . '&c=myapp&a=doindex', $_M['word']['physicaldelok']);
} else {
$query = "DELETE FROM {$_M['table']['applist']} WHERE no='{$no}'";
DB::query($query);
$query = "SELECT * FROM {$_M['table']['app']} WHERE no='{$no}' AND download=1";
$app_old = DB::get_one($query);
if (file_exists(PATH_WEB . $_M['config']['met_adminfile'] . '/app/' . $app['m_name'] . '/delapp.php')) {
header('location:' . $_M['url']['site_admin'] . 'app/' . $app['m_name'] . '/delapp.php?lang=' . $_M['lang'] . '&id=' . $app_old['id'] . '&action=del');
} else {
header('location:' . $_M['url']['site_admin'] . 'app/dlapp/delapp.php?lang=' . $_M['lang'] . '&id=' . $app_old['id'] . '&action=del');
}
}
}
示例10: dojson_para_list
function dojson_para_list()
{
global $_M;
$moduleclass = load::mod_class('content/class/module');
$column = $moduleclass->column(3, 3);
$order = "no_order";
$where = '';
$paralist = $this->paraclass->json_para_list($where, $order, 3);
foreach ($paralist as $key => $val) {
$list = array();
$list[] = $val['id_html'];
$list[] = $val['name_html'];
$list[] = $val['paratype_html'];
$list[] = '';
$list[] = '';
$list[] = $val['wr_ok_html'];
$list[] = $val['no_order_html'];
$list[] = $val['options_html'];
$rarray[] = $list;
}
$this->paraclass->json_return($rarray);
}
示例11: dophonecode
public function dophonecode()
{
global $_M;
if ($this->userclass->get_user_by_username_sql($_M['form']['phone']) || $this->userclass->get_admin_by_username_sql($_M['form']['phone'])) {
echo $_M['word']['telreg'];
die;
}
$valid = load::mod_class('user/class/valid', 'new');
if ($valid->get_tel($_M['form']['phone'])) {
echo 'SUCCESS';
} else {
echo $_M['word']['Sendfrequent'];
}
}
示例12: array
{
$data = array();
$parameter = explode('&', end(explode('?', $str)));
foreach ($parameter as $val) {
$tmp = explode('=', $val);
$data[$tmp[0]] = $tmp[1];
}
return $data;
}
$str = $_M['form']['iframeurl'];
$data = get($str);
$_M['form']['anyid'] = $data['anyid'];
$_M['form']['n'] = $data['n'];
}
$adminnav = get_adminnav();
$adminapp = load::mod_class('myapp/class/getapp', 'new');
$adminapplist = $adminapp->get_app();
if ($_M['form']['anyid'] == '44') {
foreach ($adminapplist as $key => $val) {
if ($val['m_name'] == $_M['form']['n']) {
$nav_3 = $val;
$nav_3['name'] = get_word($val['appname']);
break;
}
}
if (!$nav_3) {
$nav_3 = $adminnav[$_M['form']['anyid']];
}
} else {
$nav_3 = $adminnav[$_M['form']['anyid']];
}
示例13: complete
public function complete()
{
global $_M;
$this->del_dl_file();
if ($this->info['type'] == 'cms') {
return $this->suc_data('end', 0, "{$_M['word']['installation_complete']},3{$_M['word']['seconds_background']}", 1, 'refresh');
}
if ($this->info['type'] == 'app') {
$this->add_power($this->info['no']);
$getapp = load::mod_class('myapp/class/getapp', 'new');
$app = $getapp->get_oneapp($this->info['no']);
$html = "<a href=\"{$app['url']}\">{$_M['word']['dlapptips5']}</a>";
return $this->suc_data('end', 0, $html);
}
if ($this->info['type'] == 'tem') {
$query = "SELECT * FROM {$_M['table']['skin_table']} ORDER BY id DESC";
$tem = DB::get_one($query);
$html = "<a target=\"_blank\" href=\"{$_M['url']['adminurl']}n=theme&c=theme&a=doindex&mobile={$tem['devices']}&anyid=70&lang={$_M['lang']}\">{$_M['word']['configuratio_template']}</a>";
return $this->suc_data('end', 0, $html);
}
}
示例14: __construct
function __construct($no, $lang)
{
global $_M;
$this->no = $no;
$this->lang = $lang;
$tmpincfile = PATH_WEB . "templates/{$no}/metinfo.inc.php";
if (file_exists($tmpincfile)) {
require_once $tmpincfile;
}
$metinfover = "v1";
$this->metinfover = $metinfover;
$this->metadmin = $metadmin;
//$this->iniclass = load::mod_class('theme/class/oldskinc.class.php','new');
load::mod_class('theme/class/skininc.class.php');
$this->iniclass = new skininc($this->no, $this->lang);
$configlist = array();
$configlist[] = 'met_skin_user';
$configlist[] = 'met_logo';
/*首页*/
$configlist[] = 'met_skin_css';
$configlist[] = 'met_index_content';
$configlist[] = 'flash_10001';
$configlist[] = 'index_hadd_ok';
$configlist[] = 'index_news_no';
$configlist[] = 'index_product_no';
$configlist[] = 'index_img_no';
$configlist[] = 'index_download_no';
$configlist[] = 'index_job_no';
$configlist[] = 'index_link_ok';
$configlist[] = 'index_link_img';
$configlist[] = 'index_link_text';
/*列表页*/
$configlist[] = 'met_bannerpagetype';
$configlist[] = 'met_product_list';
$configlist[] = 'met_news_list';
$configlist[] = 'met_download_list';
$configlist[] = 'met_img_list';
$configlist[] = 'met_job_list';
$configlist[] = 'met_message_list';
$configlist[] = 'met_search_list';
$configlist[] = 'met_productimg_x';
$configlist[] = 'met_productimg_y';
$configlist[] = 'met_imgs_x';
$configlist[] = 'met_imgs_y';
$configlist[] = 'met_newsimg_x';
$configlist[] = 'met_newsimg_y';
$configlist[] = 'met_product_page';
$configlist[] = 'met_img_page';
$configlist[] = 'met_urlblank';
$configlist[] = 'met_newsdays';
$configlist[] = 'met_hot';
$configlist[] = 'met_listtime';
/*详情页*/
$configlist[] = 'met_tools_ok';
$configlist[] = 'met_contenttime';
$configlist[] = 'met_productdetail_x';
$configlist[] = 'met_productdetail_y';
$configlist[] = 'met_imgdetail_x';
$configlist[] = 'met_imgdetail_y';
$configlist[] = 'met_pageclick';
$configlist[] = 'met_pagetime';
$configlist[] = 'met_pageprint';
$configlist[] = 'met_pageclose';
$configlist[] = 'met_pnorder';
$this->configlist = $configlist;
$mobile_configlist = array();
$mobile_configlist[] = 'wap_skin_user';
$mobile_configlist[] = 'wap_skin_css';
$mobile_configlist[] = 'met_wap_logo';
$mobile_configlist[] = 'flash_10001';
$mobile_configlist[] = 'met_bannerpagetype';
$mobile_configlist[] = 'wap_news_list';
$mobile_configlist[] = 'wap_product_list';
$mobile_configlist[] = 'wap_download_list';
$mobile_configlist[] = 'wap_img_list';
$mobile_configlist[] = 'wap_job_list';
$mobile_configlist[] = 'wap_message_list';
$mobile_configlist[] = 'wap_search_list';
$this->mobile_configlist = $mobile_configlist;
}
示例15: Copyright
<?php
# MetInfo Enterprise Content Management System
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
defined('IN_MET') or exit('No permission');
load::sys_class('admin.class.php');
load::mod_class('content/class/module');
class sys_product extends module
{
public $errorno;
public $table;
public $tablename;
public $paraclass;
public $module;
public function __construct()
{
global $_M;
$this->paraclass = load::sys_class('para', 'new');
$this->tablename = $_M['table']['product'];
$this->module = 3;
}
public function json_list($where, $order)
{
global $_M;
$this->table = load::sys_class('tabledata', 'new');
$p = $this->tablename;
$s = $_M['table']['shopv2_product'];
if ($_M['config']['shopv2_open']) {
//开启在线订购时
$table = $p . ' Left JOIN ' . $s . " ON ({$p}.id = {$s}.pid)";
$where = "{$p}.lang='{$_M['lang']}' and ({$p}.recycle = '0' or {$p}.recycle = '-1') {$where}";