コード例 #1
0
ファイル: member.mod.php プロジェクト: YouthAndra/huaitaoo2o
 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');
 }
コード例 #2
0
ファイル: mobile.func.php プロジェクト: YouthAndra/huaitaoo2o
 function output($result, $status = '', $code = 200, $convert = true)
 {
     $outputs = array();
     if ($status) {
         $outputs['status'] = $status;
     }
     $outputs['code'] = $code;
     $outputs['result'] = $convert == true ? Mobile::convert($result) : $result;
     ob_clean();
     echo json_encode($outputs);
     exit;
 }
コード例 #3
0
ファイル: tag.mod.php プロジェクト: YouthAndra/huaitaoo2o
 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');
 }
コード例 #4
0
ファイル: pm.mod.php プロジェクト: YouthAndra/huaitaoo2o
 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');
 }
コード例 #5
0
ファイル: search.mod.php プロジェクト: YouthAndra/huaitaoo2o
 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');
 }
コード例 #6
0
ファイル: header.php プロジェクト: YouthAndra/huaitaoo2o
<?php 
    if ($this->Code != "at_my" && $this->Code != "comment_my") {
        ?>
g_middle_nav_toolbar
<?php 
    } else {
        ?>
g_middle_nav_toolbar_message
<?php 
    }
    ?>
"> <?php 
    if ($this->Code == "home") {
        ?>
 <?php 
        echo Mobile::convert($GLOBALS['_J']['member']['nickname']);
    } elseif ($this->Code == "at_my" || $this->Code == "comment_my") {
        ?>
 <?php 
        $tab_msg_actives[$this->Code] = "g_middle_chute_on";
        ?>
 <div class="g_middle_chute"> <ul> <li class="<?php 
        echo $tab_msg_actives['at_my'];
        ?>
" onclick="changeMessageTab(TAB_MESSAGE_AT);">@我</li> <li class="s <?php 
        echo $tab_msg_actives['comment_my'];
        ?>
" onclick="changeMessageTab(TAB_MESSAGE_COMMENT);">评论</li> </ul> </div> <?php 
    } elseif ($this->Module == "search") {
        ?>
 <?php 
コード例 #7
0
ファイル: topic.mod.php プロジェクト: YouthAndra/huaitaoo2o
 function publish()
 {
     $topic_type = "web";
     if (in_array($this->Get['pt'], array('forward', 'reply'))) {
         $topic_type = $this->Get['pt'];
     }
     $mblog_content = "";
     if ($this->Get['pt'] == "new") {
         if (!empty($this->Get['atuid'])) {
             $atuid = intval($this->Get['atuid']);
             if ($atuid > 0) {
                 $member = Mobile::convert($this->MblogLogic->TopicLogic->GetMember($atuid));
                 $mblog_content = "@" . $member['nickname'];
             }
         } else {
             if (!empty($this->Get['tagid'])) {
                 $tag_id = intval($this->Get['tagid']);
                 $name = DB::result_first("SELECT name FROM " . DB::table('tag') . " WHERE id='{$this->Get['tagid']}'");
                 if (!empty($name)) {
                     $mblog_content = "#" . $name . "#";
                 }
             }
         }
     }
     if (!empty($mblog_content)) {
         $mblog_content = Mobile::convert($mblog_content);
     }
     $totid = intval($this->Get['totid']);
     include template('publish');
 }
コード例 #8
0
ファイル: login.php プロジェクト: YouthAndra/huaitaoo2o
document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false);
<?php 
}
?>
 </script> <div data-role="page" data-theme="f" class="page"> <div class="logo"><div class="loginIcon"><img src="<?php 
echo $GLOBALS['_J']['config']['site_url'];
?>
/images/logo.png"></div></div> <div class="dec_line1"></div> <div id="g_tips" onclick="closeTipsExp();"></div> <?php 
if ($_GET['code'] == 'login') {
    ?>
 <style type="text/css">
#g_isrcollWrapper {
top:70px;
bottom:0px;
}
</style> <?php 
}
?>
 <div id="g_isrcollWrapper"> <div id="setting_wp" class="mc"> <ul class="lv_4"> <li> <div class="login-main-account-word">帐号:</div> <div class="col2"><input name="nickname" type="text" id="nickname" value="昵称" class="login_txt" onFocus="this.value=''" onBlur="if(this.value==''){this.value='昵称';}" /></div> </li> <li class="nb"> <div class="login-main-account-word">密码:</div> <div class="col2"><input name="password" type="password" id="password" value="密码" class="login_txt" onFocus="this.value=''" onBlur="if(this.value==''){this.value='密码';}" /></div> </li> </ul> <div class="loginbar"> <button class="btn_login" onclick="login('nickname', 'password')">登录</button> </div> </div> <div class="loginFooter"> <?php 
echo Mobile::convert($this->Config['site_name']);
?>
手机微博3G触屏版</div> <?php 
if (!$this->Config['is_mobile_client']) {
    ?>
 </div> <?php 
}
?>
 </div><?php 
echo $GLOBALS['_J']['config']['tongji'];
?>
</body> </html>
コード例 #9
0
ファイル: friend.mod.php プロジェクト: YouthAndra/huaitaoo2o
 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');
 }