当前位置: 首页>>代码示例>>PHP>>正文


PHP pc_base::load_app_func方法代码示例

本文整理汇总了PHP中pc_base::load_app_func方法的典型用法代码示例。如果您正苦于以下问题:PHP pc_base::load_app_func方法的具体用法?PHP pc_base::load_app_func怎么用?PHP pc_base::load_app_func使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pc_base的用法示例。


在下文中一共展示了pc_base::load_app_func方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 function __construct()
 {
     pc_base::load_app_func('global');
     parent::__construct();
     $this->db = pc_base::load_model('maillist_model');
     $this->domain = SITE_URL;
     $this->maillist = $this->db->get_one();
     if (isset($this->maillist['domain']) && !empty($this->maillist['domain'])) {
         $this->domain = $this->maillist['domain'];
     }
     $action = $_GET['a'];
     $menuid = $_GET['menuid'];
     if (empty($this->maillist) && in_array($action, array('send_setting', 'user_mgr'))) {
         showMessage(L('first_create_maillist'), '?m=maillist&c=maillist&a=maillist_create&menuid=' . $menuid);
     }
     /**
      * 同步
      */
     if (!empty($this->maillist['code']) && !empty($this->maillist['sdid']) && !empty($this->maillist['group_addr'])) {
         $menu = pc_base::load_model('menu_model');
         $menu->update(array('display' => '0'), "name='maillist_create'");
         $params = array('action' => 'get_group', 'domain' => $this->domain, 'code' => $this->maillist['code'], 'sdid' => $this->maillist['sdid'], 'group_addr' => $this->maillist['group_addr']);
         $hash = md5(join('', $params) . 'o.sdo');
         $maillist = $this->api($params, $hash, 2, false);
         $this->groups = $maillist;
         if ($maillist['group']['status'] == 0) {
             $bind = array('sdid' => $maillist['sdid'], 'group_name' => $maillist['group']['name'], 'group_addr' => $maillist['group']['groupAddress'] . '@o.sdo.com', 'rss_url' => $maillist['group']['rss'], 'rss_enabled' => $maillist['group']['rssEnable'], 'rss_rate' => $maillist['group']['rssRate'], 'rss_number' => $maillist['group']['rssNumber'], 'descs' => $maillist['group']['description'], 'email' => $maillist['group']['ownerEmail'], 'is_activate' => $maillist['group']['status'] == 0 ? 1 : 0);
             $this->db->update($bind, 'sdid = ' . $this->maillist['sdid']);
         }
     }
 }
开发者ID:cfhb,项目名称:MIS,代码行数:31,代码来源:maillist2.php

示例2: init

 /**
  * 编辑专题首页模板
  */
 public function init()
 {
     echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
     $specialid = isset($_GET['specialid']) && intval($_GET['specialid']) ? intval($_GET['specialid']) : showmessage(L('illegal_action'), HTTP_REFERER);
     if (!$specialid) {
         showmessage(L('illegal_action'), HTTP_REFERER);
     }
     $info = $this->db->get_one(array('id' => $specialid, 'disabled' => '0', 'siteid' => $this->get_siteid()));
     if (!$info['id']) {
         showmessage(L('illegal_parameters'), HTTP_REFERER);
     }
     $id = $specialid;
     if ($info['css']) {
         $css_param = unserialize($info['css']);
     }
     if (!$info['ispage']) {
         $type_db = pc_base::load_model('type_model');
         $types = $type_db->select(array('module' => 'special', 'parentid' => $id), '*', '', '`listorder` ASC, `typeid` ASC');
     }
     extract($info);
     $css = get_css($css_param);
     $template = $info['index_template'] ? $info['index_template'] : 'index';
     pc_base::load_app_func('global', 'template');
     ob_start();
     include template('special', $template);
     $html = ob_get_contents();
     ob_clean();
     $html = visualization($html, 'default', 'test', 'block.html');
     include $this->admin_tpl('template_edit');
 }
开发者ID:boylzj,项目名称:omguitar,代码行数:33,代码来源:template.php

示例3: init

 /**
  * 推送选择界面
  */
 public function init()
 {
     if ($_POST['dosubmit']) {
         $c = pc_base::load_model('content_model');
         $c->set_model($_POST['modelid']);
         $info = array();
         $ids = explode('|', $_POST['id']);
         if (is_array($ids)) {
             foreach ($ids as $id) {
                 $info[$id] = $c->get_content($_POST['catid'], $id);
             }
         }
         $_GET['add_action'] = $_GET['add_action'] ? $_GET['add_action'] : $_GET['action'];
         $this->push->{$_GET}['add_action']($info, $_POST);
         showmessage(L('success'), '', '', 'push');
     } else {
         pc_base::load_app_func('global', 'template');
         if (method_exists($this->push, $_GET['action'])) {
             $html = $this->push->{$_GET['action']}(array('modelid' => $_GET['modelid'], 'catid' => $_GET['catid']));
             $tpl = isset($_GET['tpl']) ? 'push_to_category' : 'push_list';
             include $this->admin_tpl($tpl);
         } else {
             showmessage('CLASS METHOD NO EXISTS!', 'blank');
         }
     }
 }
开发者ID:jiangwuzhang,项目名称:phpcms,代码行数:29,代码来源:push.php

示例4: __construct

 public function __construct($appid, $appkey, $callback)
 {
     $this->appid = $appid;
     $this->appkey = $appkey;
     $this->callback = $callback;
     pc_base::load_app_func('utils');
 }
开发者ID:pondyond,项目名称:phpcmsv9,代码行数:7,代码来源:qqapi.class.php

示例5: _format

 private function _format($id, $data, $type)
 {
     switch ($type) {
         case '1':
             //json
             if (CHARSET == 'gbk') {
                 $data = array_iconv($data, 'gbk', 'utf-8');
             }
             return json_encode($data);
             break;
         case '2':
             //xml
             $xml = pc_base::load_sys_class('xml');
             return $xml->xml_serialize($data);
             break;
         case '3':
             //js
             pc_base::load_app_func('global');
             ob_start();
             include template_url($id);
             $html = ob_get_contents();
             ob_clean();
             return format_js($html);
             break;
     }
 }
开发者ID:boylzj,项目名称:omguitar,代码行数:26,代码来源:call.php

示例6: __construct

 /**
  * 构造函数
  */
 public function __construct()
 {
     $this->db = pc_base::load_model('member_model');
     pc_base::load_app_func('global');
     /*获取系统配置*/
     $this->settings = getcache('settings', 'admin');
     $this->applist = getcache('applist', 'admin');
     if (isset($_GET) && is_array($_GET) && count($_GET) > 0) {
         foreach ($_GET as $k => $v) {
             if (!in_array($k, array('m', 'c', 'a'))) {
                 $_POST[$k] = $v;
             }
         }
     }
     if (isset($_POST['appid'])) {
         $this->appid = intval($_POST['appid']);
     } else {
         exit('0');
     }
     if (isset($_POST['data'])) {
         parse_str(sys_auth($_POST['data'], 'DECODE', $this->applist[$this->appid]['authkey']), $this->data);
         if (!is_array($this->data)) {
             exit('0');
         }
     } else {
         exit('0');
     }
     if (isset($GLOBALS['HTTP_RAW_POST_DATA'])) {
         $this->data['avatardata'] = $GLOBALS['HTTP_RAW_POST_DATA'];
         if ($this->applist[$this->appid]['authkey'] != $this->data['ps_auth_key']) {
             exit('0');
         }
     }
 }
开发者ID:pondyond,项目名称:phpcmsv9,代码行数:37,代码来源:phpsso.class.php

示例7: edit

 /**
  * 修改公告
  */
 public function edit()
 {
     $_GET['aid'] = intval($_GET['aid']);
     if (!$_GET['aid']) {
         showmessage(L('illegal_operation'));
     }
     if (isset($_POST['dosubmit'])) {
         $_POST['announce'] = $this->check($_POST['announce'], 'edit');
         if ($this->db->update($_POST['announce'], array('aid' => $_GET['aid']))) {
             showmessage(L('announced_a'), HTTP_REFERER, '', 'edit');
         }
     } else {
         $where = array('aid' => $_GET['aid']);
         $an_info = $this->db->get_one($where);
         pc_base::load_sys_class('form', '', 0);
         //获取站点模板信息
         pc_base::load_app_func('global', 'admin');
         $template_list = template_list($this->siteid, 0);
         foreach ($template_list as $k => $v) {
             $template_list[$v['dirname']] = $v['name'] ? $v['name'] : $v['dirname'];
             unset($template_list[$k]);
         }
         $show_header = $show_validator = $show_scroll = 1;
         include $this->admin_tpl('announce_edit');
     }
 }
开发者ID:zhouzhouxs,项目名称:Progect,代码行数:29,代码来源:admin_announce.php

示例8: __construct

 function __construct()
 {
     parent::__construct();
     $this->db = pc_base::load_model('plugin_model');
     $this->db_var = pc_base::load_model('plugin_var_model');
     pc_base::load_app_func('global');
 }
开发者ID:klj123wan,项目名称:czsz,代码行数:7,代码来源:plugin.php

示例9: init

 public function init()
 {
     pc_base::load_app_func('global', 'admin');
     $list = template_list('', 1);
     $big_menu = array('javascript:window.top.art.dialog({id:\'import\',iframe:\'?m=template&c=style&a=import\', title:\'' . L('import_style') . '\', width:\'500\', height:\'250\', lock:true}, function(){var d = window.top.art.dialog({id:\'import\'}).data.iframe;var form = d.document.getElementById(\'dosubmit\');form.click();return false;}, function(){window.top.art.dialog({id:\'import\'}).close()});void(0);', L('import_style'));
     include $this->admin_tpl('style_list');
 }
开发者ID:ahmatjan,项目名称:huluphp,代码行数:7,代码来源:style.php

示例10: __construct

	public function __construct($config = array()) {	
		if (!empty($config)) $this->set_config($config);
      
		$this->config['gateway_url'] = 'https://pay3.chinabank.com.cn/PayGate';
		$this->config['gateway_method'] = 'POST';
		$this->config['return_url'] = return_url('chinabank');
		pc_base::load_app_func('alipay');
	}
开发者ID:panhongsheng,项目名称:zl_cms,代码行数:8,代码来源:Chinabank.class.php

示例11: __construct

 function __construct()
 {
     pc_base::load_app_func('global');
     //$siteid = isset($_GET['siteid']) ? intval($_GET['siteid']) : get_siteid();
     //define("SITEID",$siteid);
     $mail_db = pc_base::load_model(mail_model);
     //邮件库
 }
开发者ID:baowzh,项目名称:fulianweb,代码行数:8,代码来源:dynaform.php

示例12: __construct

 function __construct()
 {
     pc_base::load_app_func('global');
     pc_base::load_sys_class('format', '', 0);
     $this->reviewsid = isset($_GET['reviewsid']) && trim(urldecode($_GET['reviewsid'])) ? trim(urldecode($_GET['reviewsid'])) : $this->_show_msg(L('illegal_parameters'));
     $this->format = isset($_GET['format']) ? $_GET['format'] : '';
     list($this->modules, $contentid, $this->siteid) = decode_reviewsid($this->reviewsid);
     define('SITEID', $this->siteid);
 }
开发者ID:zhouzhouxs,项目名称:Progect,代码行数:9,代码来源:index.php

示例13: __construct

	function __construct() {
		pc_base::load_app_func('global');
		pc_base::load_sys_class('format', '', 0);
		$this->commentid = isset($_GET['commentid']) && trim(urldecode($_GET['commentid'])) ? trim(urldecode($_GET['commentid'])) : $this->_show_msg(L('illegal_parameters'));
		if(!preg_match("/^[a-z0-9_\-]+$/i",$this->commentid)) $this->_show_msg(L('illegal_parameters'));
		$this->format = isset($_GET['format']) ? $_GET['format'] : '';
		list($this->modules, $this->contentid, $this->siteid) = decode_commentid($this->commentid);
		define('SITEID', $this->siteid);
		$this->callback = isset($_GET['callback']) ? safe_replace($_GET['callback']) : '';
	}
开发者ID:panhongsheng,项目名称:zl_cms,代码行数:10,代码来源:index.php

示例14: __construct

 function __construct()
 {
     pc_base::load_app_func('global');
     $this->upload_url = pc_base::load_config('system', 'upload_url');
     $this->upload_path = pc_base::load_config('system', 'upload_path');
     $this->imgext = array('jpg', 'gif', 'png', 'bmp', 'jpeg');
     $this->userid = param::get_cookie('userid') ? param::get_cookie('userid') : param::get_cookie('_userid');
     $this->isadmin = $this->admin_username = $_SESSION['roleid'] ? 1 : 0;
     $this->groupid = param::get_cookie('_groupid') ? param::get_cookie('_groupid') : 8;
 }
开发者ID:baowzh,项目名称:renfang,代码行数:10,代码来源:attachments.php

示例15: __construct

	public function __construct() {
		self::check_admin();
		self::check_priv();
		pc_base::load_app_func('global','admin');
		if (!module_exists(ROUTE_M)) showmessage(L('module_not_exists'));
		self::manage_log();
		self::check_ip();
		self::lock_screen();
		self::check_hash();
	}
开发者ID:hxzyzz,项目名称:ddc,代码行数:10,代码来源:admin.class.php


注:本文中的pc_base::load_app_func方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。