public function __construct($maxSize = '', $allowExts = '', $allowTypes = '', $savePath = '', $saveRule = '') { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); if (!empty($maxSize) && is_numeric($maxSize)) { $this->maxSize = $maxSize; } if (!empty($allowExts)) { if (is_array($allowExts)) { $this->allowExts = array_map('strtolower', $allowExts); } else { $this->allowExts = explode(',', strtolower($allowExts)); } } if (!empty($allowTypes)) { if (is_array($allowTypes)) { $this->allowTypes = array_map('strtolower', $allowTypes); } else { $this->allowTypes = explode(',', strtolower($allowTypes)); } } if (!empty($saveRule)) { $this->saveRule = $saveRule; } else { $this->saveRule = 'uniqid'; } $this->savePath = $savePath; }
public function sub($openid) { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); $access_token_array = D('Access_token_expires')->get_access_token(); $access_token = $access_token_array['access_token']; $url = 'https://api.weixin.qq.com/cgi-bin/user/info?openid=' . $openid . '&access_token=' . $access_token; $content = $this->curlGet($url); $classData = json_decode($content); if ($classData->subscribe && $classData->subscribe == 1) { $user = M('User')->where(array('openid' => $classData->openid))->find(); $data = array(); $data['nickname'] = str_replace(array("'", "\\"), array(''), $classData->nickname); $data['last_time'] = time(); $data['last_ip'] = get_client_ip(1); $data['avatar'] = $classData->headimgurl; $data['is_weixin'] = 1; if (empty($user)) { $data['reg_time'] = time(); $data['openid'] = $classData->openid; $data['reg_ip'] = get_client_ip(1); M('User')->add($data); } else { M('User')->where(array('openid' => $openid))->data($data)->save(); } } }
public function __construct() { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); }
public function __construct() { $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); $this->weixin_account(); }
public function _initialize() { parent::_initialize(); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); $this->canUseFunction('Hongbao'); }
function __construct() { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); $this->appid = option('config.wechat_appid'); $this->appsecret = option('config.wechat_appsecret'); }
public function __construct() { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); global $_G; $this->_G = $_G; $this->arrays['config'] = $this->config = $_G['config']; }
public function __construct($model) { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); import('source.class.mysql'); $db = new mysql(); $this->db = $db->table($model); }
public function __construct($order_info, $pay_config, $user_info) { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); $this->order_info = $order_info; $this->pay_config = $pay_config; $this->user_info = $user_info; }
public function __construct($path, $pattern = '*') { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); if (substr($path, -1) != '/') { $path .= '/'; } $this->listFile($path, $pattern); }
public function __construct() { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); parent::__construct(); if (!empty($_GET['sessid']) && !empty($_GET['token'])) { $_SESSION['sync_store'] = true; $user = M('User'); $userinfo = $user->checkUser(array('session_id' => trim($_GET['sessid']), 'token' => trim($_GET['token']))); if (!empty($userinfo)) { $_SESSION['user'] = $userinfo; } if (!empty($_GET['store_id'])) { $tmp_store = M('Store')->getStoreById($_GET['store_id'], $userinfo['uid']); if ($tmp_store) { if (empty($tmp_store['logo'])) { $tmp_store['logo'] = 'default_shop_2.jpg'; } $_SESSION['store'] = $tmp_store; } else { pigcms_tips('该店铺不存在!'); } } setcookie('session', serialize($_SESSION), $_SERVER['REQUEST_TIME'] + 10000000, '/'); } if (empty($_SESSION['user'])) { if (!empty($_COOKIE['session'])) { $_SESSION = unserialize($_COOKIE['session']); } else { redirect('./account.php'); } } $this->store_session = $_SESSION['store']; $this->assign('store_session', $_SESSION['store']); $this->user_session = $_SESSION['user']; $this->assign('user_session', $_SESSION['user']); $open_store_drp = option('config.open_store_drp'); if (!$this->checkFx(true) && !$open_store_drp) { $this->assign('enabled_drp', false); $this->enabled_drp = false; } else { $this->assign('enabled_drp', true); $this->enabled_drp = true; } }
public function _initialize() { parent::_initialize(); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); $this->action_id = $this->_get('id', 'intval'); $this->share_code = $this->_get('share_code', 'trim'); $this->action = M('seckill_action')->where(array('action_id' => $this->action_id, 'action_open' => 0))->find(); $this->shop = M('seckill_base_shop')->where(array('action_id' => $this->action_id, 'shop_open' => 0))->select(); $this->cdata = $this->action['action_key']; $this->sessarr = $_SESSION[$this->cdata]; }
public function __construct($config = NULL) { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); $this->nonce = isset($_REQUEST['nonce']) ? $_REQUEST['nonce'] : ''; $this->sTimeStamp = isset($_REQUEST['timestamp']) ? $_REQUEST['timestamp'] : time(); $this->msg_signature = isset($_REQUEST['msg_signature']) ? $_REQUEST['msg_signature'] : ''; $this->_config = $config; $xml = file_get_contents('php://input'); $this->data = $this->decodeMsg($xml); }
public function _initialize() { parent::_initialize(); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); //$this->wecha_id = "o6Jlyt-8jTEZKtpmN-5-DpmFB3cA";//测试使用,上线前删除 //加载数据库 $this->m_test = M("test"); $this->m_user = M("test_user"); if (empty($this->wecha_id) && !in_array(ACTION_NAME, array("gzhurl"))) { $this->success("您好,您还没有关注我们的公众号,关注后才能继续喔。", U("Test/gzhurl", array("token" => $this->token))); exit; } }
public function open($savePath, $sessName) { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); $this->lifeTime = get_cfg_var('session.gc_maxlifetime'); $db_handle = @mysql_connect(self::db_host, self::db_user, self::db_pwd); $dbSel = @mysql_select_db(self::db_name, $db_handle); if (!$db_handle || !$dbSel) { return false; } $this->db_handle = $db_handle; return true; }
public static function getImageInfo($img) { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); $imageInfo = getimagesize($img); if ($imageInfo !== false) { $imageType = strtolower(substr(image_type_to_extension($imageInfo[2]), 1)); $imageSize = filesize($img); $info = array('width' => $imageInfo[0], 'height' => $imageInfo[1], 'type' => $imageType, 'size' => $imageSize, 'mime' => $imageInfo['mime']); return $info; } else { return false; } }
public function __construct($totalRows, $listRows, $nowPage = '') { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); $this->totalRows = $totalRows; $this->nowPage = !empty($_POST['p']) ? intval($_POST['p']) : 1; if (!empty($nowPage)) { $this->nowPage = $nowPage; } $this->listRows = $listRows; $this->totalPage = ceil($totalRows / $listRows); if ($this->nowPage > $this->totalPage && $this->totalPage > 0) { $this->nowPage = $this->totalPage; } $this->firstRow = $listRows * ($this->nowPage - 1); }
/** * 初始时自动调用 */ public function __construct($other = array()) { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); if (!function_exists('mysql_connect')) { pigcms_tips('服务器空间PHP不支持MySql数据库', 'none'); } if (empty($other)) { global $_G; } else { $_G['system'] = $other; } $this->db_prefix = $_G['system']['DB_PREFIX']; if (!($this->conn = @mysqli_connect($_G['system']['DB_HOST'] . ':' . $_G['system']['DB_PORT'], $_G['system']['DB_USER'], $_G['system']['DB_PWD']))) { switch ($this->geterrno()) { case 2005: pigcms_tips('连接数据库失败,数据库地址错误或者数据库服务器不可用', 'none'); break; case 2003: pigcms_tips('连接数据库失败,数据库端口错误', 'none'); break; case 2006: pigcms_tips('连接数据库失败,数据库服务器不可用', 'none'); break; case 1045: pigcms_tips('连接数据库失败,数据库用户名或密码错误', 'none'); break; default: pigcms_tips('连接数据库失败,请检查数据库信息。错误编号:' . $this->geterrno(), 'none'); break; } } if ($this->getMysqlVersion() > '4.1') { mysqli_query($this->conn, "SET NAMES 'utf8'"); } @mysqli_select_db($this->conn, $_G['system']['DB_NAME']) or pigcms_tips('连接数据库失败,未找到您填写的数据库 <b>' . $_G['system']['DB_NAME'] . '</b>', 'none'); }
protected function _initialize() { import('checkFunc', './source/class'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); $this->system_session = session('system'); if (empty($this->system_session)) { header("Location: " . U('Login/index')); } $this->assign('system_session', $this->system_session); $this->config = D('Config')->get_config(); $this->assign('config', $this->config); C('config', $this->config); $this->static_path = './source/tp/Project/tpl/Static/'; $this->static_public = './static/'; $this->assign('static_path', $this->static_path); $this->assign('static_public', $this->static_public); }
public function _initialize() { parent::_initialize(); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); //$this->wecha_id = "o6Jlyt-8jTEZKtpmN-5-DpmFB3cA";//测试使用,上线前删除 $this->m_type = M("livingcircle_type"); $this->m_sellcircle = M("livingcircle_sellcircle"); $this->m_company = M("company"); $this->m_seller = M("livingcircle_seller"); $this->m_mysellergoods = M("livingcircle_mysellergoods"); $this->m_mysellercart = M("livingcircle_mysellercart"); $this->m_mysellerorder = M("livingcircle_mysellerorder"); $this->m_favorite = M("livingcircle_favorite"); $this->m_user = M("livingcircle_user"); $this->m_livingcircle = M("livingcircle"); $this->m_userinfo = M("userinfo"); $this->m_comment = M('livingcircle_comment'); $this->mylat = session("mylat"); $this->mylng = session("mylng"); $this->assign("mylat", $this->mylat); $this->assign("mylng", $this->mylng); if ($this->mylat == "" && !in_array(ACTION_NAME, array("index", "latlng"))) { $this->redirect("LivingCircle/index", array("token" => $this->token)); exit; } /*if($this->isSubscribe() == false && !in_array(ACTION_NAME,array("gzhurl"))){ $this->success("您好,您还没有关注我们的公众号,关注后才能继续喔。",U("LivingCircle/gzhurl",array("token"=>$this->token))); exit; }*/ if (C('baidu_map')) { $this->isamap = 0; } else { $this->isamap = 1; $this->amap = new amap(); } }
<?php define('PIGCMS_PATH', dirname(__FILE__) . '/../'); require_once PIGCMS_PATH . 'source/init.php'; import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); import('source.class.Image'); Image::buildImageVerify(4, 1, 'jpeg', $_GET['w'] ? $_GET['w'] : 53, $_GET['h'] ? $_GET['h'] : 28, $_GET['name'] ? $_GET['name'] : 'verify'); echo ob_get_clean();
/** * * @param Array $params * @param string $class * @param string $not */ public static function method($params, $class = null, $not = false) { import('source.class.checkFunc'); $checkFunc = new checkFunc(); if (!function_exists('fdsrejsie3qklwewerzdagf4ds')) { exit('error-4'); } $checkFunc->cfdwdgfds3skgfds3szsd3idsj(); if ($not) { $class = is_array($class) ? $class : array($class); $class = array_diff(self::$class, $class); } else { $class = empty($class) ? self::$class : $class; } return parent::method($params, $class); }