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


PHP Mobile::show_message方法代码示例

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


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

示例1: getUserInfo

 function getUserInfo()
 {
     $uid = intval($this->Get['uid']);
     if ($uid < 1) {
         $uid = MEMBER_ID;
     }
     $is_follow = false;
     $is_blacklist = false;
     if ($uid > 0) {
         $member = Mobile::convert($this->TopicLogic->GetMember($uid));
         if (empty($member)) {
             $error_code = 400;
         } else {
             if ($member['uid'] != MEMBER_ID) {
                 $is_follow = chk_follow(MEMBER_ID, $member['uid']);
                 if (!$is_follow) {
                     Mobile::logic('friend');
                     $FriendLogic = new FriendLogic();
                     $is_blacklist = $FriendLogic->check($member['uid']);
                 }
             }
         }
     } else {
         Mobile::show_message(400);
     }
     include template('user_info');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:27,代码来源:member.mod.php

示例2: is_login

 function is_login()
 {
     global $_J;
     if (MEMBER_ID > 0) {
         return true;
     } else {
         if (defined("IS_MOBILE_CLIENT") && IS_MOBILE_CLIENT == true) {
             Mobile::show_message(410);
         } else {
             echo "正在转到登录页面...";
             echo "<script>location.href='{$_J['mobile_url']}/index.php?mod=member&code=login'</script>";
             exit;
         }
     }
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:15,代码来源:mobile.func.php

示例3: Main

 function Main()
 {
     $uid = intval($this->Get['uid']);
     $param = array('limit' => Mobile::config("perpage_def"), 'uid' => $uid);
     $ret = Mobile::convert($this->MTagLogic->getTagList($param));
     if (is_array($ret)) {
         $tag_list = $ret['tag_list'];
         $list_count = $ret['list_count'];
         $total_record = $ret['total_record'];
         $max_id = $ret['max_id'];
     } else {
         Mobile::show_message($ret);
     }
     include template('tag_list');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:15,代码来源:tag.mod.php

示例4: getHistoryList

 function getHistoryList()
 {
     $uid = intval($this->Get['uid']);
     if (empty($uid)) {
         Mobile::show_message(300);
     }
     $info = Mobile::convert($this->MyPmLogic->getHistoryList(MEMBER_ID, $uid, array("per_page_num" => Mobile::config("perpage_pm"))));
     if (!empty($info)) {
         $pm_list = $info['pm_list'];
         $current_page = empty($info['current_page']) ? 1 : $info['current_page'];
         $next_page = $current_page + 1;
         $total_page = intval($info['total_page']);
         $list_count = count($info['pm_list']);
     } else {
         Mobile::show_message(400);
     }
     include template('pm_list');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:18,代码来源:pm.mod.php

示例5: MasterObject

 function MasterObject(&$config)
 {
     require_once ROOT_PATH . 'mobile/include/func/mobile.func.php';
     $config['client_type'] = '';
     $user_agent = $_SERVER['HTTP_USER_AGENT'];
     if (empty($user_agent)) {
         exit('Access Denied');
     }
     $pc_browser = false;
     if (preg_match("/android/i", $user_agent)) {
         $config['client_type'] = "android";
     } else {
         if (preg_match("/iphone/i", $user_agent)) {
             $config['client_type'] = "iphone";
         } else {
             $pc_browser = true;
         }
     }
     $config['is_mobile_client'] = false;
     if (isset($_GET['JSG_SESSION']) && isset($_GET['iv']) && isset($_GET['app_key']) && isset($_GET['app_secret']) && isset($_GET['bt'])) {
         $config['is_mobile_client'] = true;
         define("IS_MOBILE_CLIENT", true);
     }
     define("CLIENT_TYPE", $config['client_type']);
     $config['sys_version'] = sys_version();
     $config['sys_published'] = SYS_PUBLISHED;
     if (!$config['mobile_url']) {
         $config['mobile_url'] = $config['site_url'] . "/mobile";
     }
     if (!$config['topic_length']) {
         $config['topic_length'] = 140;
     }
     $this->Config = $config;
     $this->Config = array_merge($this->Config, Mobile::config());
     define("CHARSET", $this->Config['charset']);
     Obj::register('config', $this->Config);
     $this->Get =& $_GET;
     $this->Post =& $_POST;
     $this->Module = trim($this->Post['mod'] ? $this->Post['mod'] : $this->Get['mod']);
     $this->Code = trim($this->Post['code'] ? $this->Post['code'] : $this->Get['code']);
     $this->DatabaseHandler =& Obj::registry('DatabaseHandler');
     $uid = 0;
     $password = '';
     $authcode = '';
     $implicit_pass = true;
     if (!empty($this->Get['JSG_SESSION']) && $config['is_mobile_client']) {
         $authcode = $this->Get['JSG_SESSION'];
         $authcode = rawurldecode($authcode);
         $implicit_pass = false;
     } else {
         $authcode = jsg_getcookie('auth');
     }
     if (!empty($authcode)) {
         list($password, $uid) = explode("\t", authcode($authcode, 'DECODE'));
     }
     $this->MemberHandler = jclass('member');
     $MemberFields = $this->MemberHandler->FetchMember($uid, $password);
     if ($this->MemberHandler->HasPermission($this->Module, $this->Code) == false) {
         Mobile::show_message(411);
         exit;
     }
     if (!in_array($this->Module, array('member', 'login', 'wechat'))) {
         $visit_rets = $this->MemberHandler->visit();
         if ($visit_rets['error']) {
             Mobile::show_message(411);
             exit;
         }
     }
     $this->Title = $this->MemberHandler->CurrentAction['name'];
     Obj::register("MemberHandler", $this->MemberHandler);
     $rets = jsg_member_login_extract();
     if ($rets) {
         if (MEMBER_ID < 1) {
             $func = $rets['login_direct'];
         } else {
             $func = $rets['logout_direct'];
         }
         if ($func && function_exists($func)) {
             $ret = $func();
         }
     }
     if (MEMBER_ID > 0) {
         jsg_member_login_set_status($MemberFields);
     }
     if ($this->Config['extcredits_enable']) {
         if (MEMBER_ID > 0 && jsg_getcookie('login_credits') + 3600 < time()) {
             update_credits_by_action('login', MEMBER_ID);
             jsg_setcookie('login_credits', time(), 3600);
         }
     }
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:91,代码来源:master.mod.php

示例6: getCommentList

 function getCommentList()
 {
     $tid = intval($this->Get['tid']);
     $topic_info = $this->MblogLogic->TopicLogic->Get($tid);
     if (empty($topic_info)) {
         Mobile::show_message(400);
     }
     if ($topic_info['replys'] > 0) {
         $param = array('tid' => $tid, 'limit' => Mobile::config("perpage_mblog"));
         $ret = Mobile::convert($this->MblogLogic->getCommentList($param));
         $error_code = 0;
         if (is_array($ret)) {
             $topic_list = $ret['topic_list'];
             $parent_list = $ret['parent_list'];
             $total_record = $ret['total_record'];
             $list_count = count($topic_list);
             $max_tid = $ret['max_tid'];
             $next_page = $ret['next_page'];
         }
     } else {
     }
     $huifu_flg = "is_huifu";
     include template('topic_comment');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:24,代码来源:topic.mod.php

示例7: searchUser

 function searchUser()
 {
     $this->Title = "Search User";
     Mobile::logic('member');
     $MemberLogic = new MemberLogic();
     $q = trim($this->Get['q']);
     if (empty($q)) {
         Mobile::show_message($ret);
     } else {
         $param = array('limit' => Mobile::config("perpage_member"), 'nickname' => $q);
         $keyword = urlencode($param['nickname']);
         $ret = Mobile::convert($MemberLogic->getMemberList($param));
         if (is_array($ret)) {
             $member_list = $ret['member_list'];
             $total_record = $ret['total_record'];
             $list_count = count($member_list);
             $max_tid = $ret['max_tid'];
         } else {
             Mobile::show_message($ret);
         }
     }
     include template('search_user');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:23,代码来源:search.mod.php

示例8: blacklist

 function blacklist()
 {
     $param = array('limit' => Mobile::config("perpage_member"));
     $ret = Mobile::convert($this->FriendLogic->getBlackList($param));
     if (is_array($ret)) {
         $member_list = $ret['member_list'];
         $list_count = count($member_list);
         $total_record = $ret['total_record'];
         $max_id = $ret['max_id'];
     } else {
         Mobile::show_message($ret);
     }
     include template('friend_list');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:14,代码来源:friend.mod.php


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