Example #1
0
} elseif ($username && $username != $windid) {
    $userdb = $db->get_one("SELECT m.uid,m.icon,m.username,m.honor FROM pw_members m WHERE m.username = "******"index.php?a=read&tid=" . $value['typeid'];
        $temp['subject'] = $value['content']['postfavor']['subject'];
        $myFavThreads[] = $temp;
    }
}
wap_header();
Example #2
0
<?php

!defined('W_P') && exit('Forbidden');
InitGP(array('uid', 'goto'));
!$winduid && wap_msg('not_login');
require_once W_P . 'include/db/myspace.db.php';
pwCache::getData(D_P . 'data/bbscache/constant_post.php');
$myspace = new MyspaceDB();
if ($goto == 'articles') {
    if ($uid && $uid != $winduid) {
        $results = $myspace->getArticlesByUser($uid);
    } else {
        $results = $myspace->getArticlesByUser($winduid);
    }
    $bodybackground = 'read';
    wap_header();
    require_once PrintWAP('mylist');
    wap_footer();
} elseif ($goto == 'replaies') {
    if ($uid && $uid != $winduid) {
        $results = $myspace->getReplaysByUser($uid);
    } else {
        $results = $myspace->getReplaysByUser($winduid);
    }
    $bodybackground = 'read';
    wap_header();
    require_once PrintWAP('mylist');
    wap_footer();
} elseif ($goto == 'mymsg') {
    $results = $myspace->getArticlesByUser($uid);
    $bodybackground = 'read';
Example #3
0
<?php

!defined('W_P') && exit('Forbidden');
!$winduid && wap_msg('not_login');
InitGP(array('page', 'type', 'fr', 'from'));
if ($fr == 'index') {
    $returnUrl = "index.php";
} else {
    $returnUrl = "index.php?a=mybbs";
}
InitGP(array('uid'));
!$uid && ($uid = $winduid);
$userdb = $db->get_one("SELECT m.uid,m.icon,m.username FROM pw_members m WHERE m.uid = " . pwEscape($uid));
require_once W_P . 'include/db/myspace.db.php';
$myspace = new MyspaceDB();
if (!empty($type)) {
    if ($type == 'my') {
        $mydata = $myspace->getArticlesByUser($uid, $page);
    } elseif ($type == 're') {
        $mydata = $myspace->getReplaysByUser($uid, $page);
    } elseif ($type == 'fav' && $winduid == $uid) {
        if (!$page) {
            $page = 1;
        }
        //$mydata = $myspace->getFavsByUser($uid,$page);
        $collectionService = L::loadClass('Collection', 'collection');
        $myFavThreads = $collectionService->findByUidAndTypeInPage($winduid, 'postfavor', $page, $wap_perpage, 'all');
        $mydata = array();
        foreach ($myFavThreads as $key => $value) {
            $temp = array();
            $temp['url'] = "index.php?a=read&tid=" . $value['typeid'];