Esempio n. 1
0
 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');
 }
Esempio n. 2
0
 function ModuleObject($config)
 {
     $this->MasterObject($config);
     Mobile::logic('pm');
     $this->MyPmLogic = new MyPmLogic();
     Mobile::is_login();
     $this->Execute();
 }
Esempio n. 3
0
 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->Config = $config;
     Mobile::is_login();
     Mobile::logic('misc');
     $this->MiscLogic = new MiscLogic();
     $this->Execute();
 }
Esempio n. 4
0
 function ModuleObject($config)
 {
     $this->MasterObject($config);
     Load::logic('topic');
     $this->TopicLogic = new TopicLogic($this);
     Mobile::logic('friend');
     $this->FriendLogic = new FriendLogic();
     Mobile::is_login();
     $this->Execute();
 }
Esempio n. 5
0
 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->ID = jget('id', 'int');
     Mobile::logic('mblog');
     $this->MblogLogic = new MblogLogic();
     Mobile::logic('friend');
     $this->FriendLogic = new FriendLogic();
     $this->CacheConfig = jconf::get('cache');
     $this->ShowConfig = jconf::get('show');
     Mobile::is_login();
     $this->Execute();
 }
Esempio n. 6
0
 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->ID = jget('id', 'int');
     Load::logic('topic');
     $this->TopicLogic = new TopicLogic($this);
     Mobile::logic('tag');
     $this->MTagLogic = new MTagLogic();
     $this->CacheConfig = jconf::get('cache');
     $this->ShowConfig = jconf::get('show');
     Mobile::is_login();
     $this->Execute();
 }
Esempio n. 7
0
 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->Config = $config;
     Load::logic('topic');
     $this->TopicLogic = new TopicLogic($this);
     Mobile::logic('mblog');
     $this->MblogLogic = new MblogLogic();
     $this->ID = jget('id', 'int');
     if (!in_array($this->Code, array('new', 'hot_comments', 'hot_forwards'))) {
         Mobile::is_login();
     }
     $this->Execute();
 }
Esempio n. 8
0
 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->ID = jget('id', 'int');
     Mobile::logic('mblog');
     $this->MblogLogic = new MblogLogic();
     $this->CacheConfig = jconf::get('cache');
     if (!in_array($this->Code, array('new', 'hot_comments', 'hot_forwards'))) {
         Mobile::is_login();
     }
     if (empty($this->Code)) {
         $this->Code = "home";
     }
     $this->Execute();
 }
Esempio n. 9
0
 function searchUser()
 {
     Mobile::logic('member');
     $MemberLogic = new MemberLogic();
     $q = trim($this->Get['q']);
     if (empty($q)) {
         Mobile::error("No Data", 400);
     }
     $param = array('limit' => Mobile::config("perpage_member"), 'nickname' => $q, 'max_id' => $this->Get['max_id']);
     $ret = $MemberLogic->getMemberList($param);
     if (is_array($ret)) {
         Mobile::output($ret);
     } else {
         Mobile::error("No Data", $ret);
     }
 }
Esempio n. 10
0
 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');
 }