public function register()
 {
     global $_FANWE;
     if ($_FANWE['uid'] > 0) {
         fHeader("location: " . FU('u/index'));
     }
     $cache_file = getTplCache('page/user/user_register');
     if (!@(include $cache_file)) {
         $login_modules = getLoginModuleList();
         include template('page/user/user_register');
     }
     display($cache_file);
 }
 public function bind()
 {
     global $_FANWE;
     $login_modules = getLoginModuleList();
     $bind_list = FS('User')->getUserBindList($_FANWE['uid']);
     $sync_bind_exists = $_FANWE['cookie']['sync_bind_exists'];
     if (!empty($sync_bind_exists)) {
         $sync_bind_exists = unserialize(authcode($sync_bind_exists, 'DECODE'));
         $bind_exists = sprintf(lang('settings', 'setting_tip_2'), $sync_bind_exists['short_name'], $_FANWE['setting']['site_name'], $sync_bind_exists['short_name'], $_FANWE['setting']['site_name']);
     }
     include template('page/settings/settings_bind');
     display();
 }
Пример #3
0
<?php

$cache_file = getTplCache('services/user/share');
FanweService::instance()->cache->loadCache('albums');
if (!@(include $cache_file)) {
    $login_modules = getLoginModuleList();
    include template('services/user/share');
}
display($cache_file);