Esempio n. 1
0
        $appclient = L::loadClass('appclient');
        $app_array = $appclient->userApplist($winduid);
    }
    /*** userapp **/
    if (!empty($u) && $u != $winduid) {
        $basename = $temp_basename . "u=" . $u . "&";
    } else {
        $basename = $temp_basename;
    }
    $baseUrl = $temp_baseUrl;
}
if (file_exists(R_P . 'require/app_core.php')) {
    require_once R_P . 'require/app_core.php';
}
$pwModeImg = "{$imgpath}/apps";
list($app, $route) = app_specialRoute($q);
$appdir = $app;
list($basePath, $baseFile) = app_router($app);
@(include_once D_P . 'data/bbscache/o_config.php');
if ($groupid != 3 && $o_share_groups && strpos($o_share_groups, ",{$groupid},") === false) {
    $shareGM = 1;
}
extract(L::style(null, 'wind'));
if ($space == 1 && !in_array($q, array('group', 'galbum'))) {
    $pwModeCss = $imgpath . '/apps/browse-style.css';
} else {
    $pwModeCss = $imgpath . '/apps/app-style.css';
}
list($_Navbar, $_LoginInfo) = pwNavBar();
require_once Pcv($baseFile);
if ($m == "o") {
Esempio n. 2
0
pwCache::getData(D_P . 'data/bbscache/o_config.php');
if (isset($_GET['ajax'])) {
    define('AJAX', '1');
}
S::gp(array('q', 'uid'));
$USCR = 'user_app';
//导航
$navConfigService = L::loadClass('navconfig', 'site');
$homenavigation = $navConfigService->userHomeNavigation(PW_NAV_TYPE_MAIN, 'o');
if (in_array($q, array('ajax', 'article', 'diary', 'galbum', 'group', 'groups', 'hot', 'photos', 'sharelink', 'stopic', 'topicadmin', 'activity', 'weibo', 'collection', 'medal', 'kmd'))) {
    $pwModeImg = "{$imgpath}/apps";
    require_once R_P . 'u/lib/space.class.php';
    require_once R_P . 'require/showimg.php';
    $newSpace = new PwSpace($uid ? $uid : $winduid);
    //TODO DELETE: ajax, topicadmin
    $appdir = app_specialRoute($q);
    //USE INT global.php printEOT
    list($_Navbar, $_LoginInfo) = pwNavBar();
    if (!is_dir($appEntryBasePath = A_P . $appdir . '/')) {
        Showmsg('undefined_action');
    }
    $appEntry = $appEntryBasePath . 'index.php';
    if (!file_exists($appEntry)) {
        Showmsg("包含文件不存在,请创建index.php");
    }
    list($faceurl) = showfacedesign($winddb['icon'], 1, 'm');
    require_once S::escapePath($appEntry);
    //TODO what these actions for?
} elseif ($q == 'blooming') {
    S::gp(array('tid'), 'G', 2);
    !$db_siteappkey && Showmsg('app_not_register');