Example #1
0
    }
    if (!is_array($result)) {
        Showmsg($result);
    }
    $url .= "&uid=" . $result['ownerid'];
    ObHeader($url);
}
/*
require_once(R_P . 'u/lib/space.class.php');
$newSpace = new PwSpace($uid ? $uid : $winduid);
$space =& $newSpace->getInfo();
empty($space) && Showmsg('user_not_exists');
*/
L::loadClass('photo', 'colony', false);
$photoService = new PW_Photo($uid, $ifriend, $page, $perpage);
$isGM = $photoService->isPermission();
$isown = $photoService->isSelf();
if ($isSpace) {
    $USCR = 'space_photos';
    //	S::gp('uid');
    $newSpace = new PwSpace($uid ? $uid : $winduid);
    $photoRight = $newSpace->viewRight('photos');
    require_once S::escapePath($appEntryBasePath . 'action/view.php');
} else {
    !$winduid && Showmsg('not_login');
    if ($isown) {
        $a_key = $a == 'friend' ? 'index' : 'own';
        $a_key = $ifriend ? 'index' : $a_key;
        require_once S::escapePath($appEntryBasePath . 'action/my.php');
    } else {
        Showmsg('undefined_action');