1 Star 0 Fork 3

2016/mymps

forked from cppcoder/mymps 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
space.php 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
greezen 提交于 2017-05-03 10:18 . create
<?php
define('IN_SMT',true);
define('IN_MYMPS', true);
define('CURSCRIPT','space');
require_once dirname(__FILE__)."/include/global.php";
require_once dirname(__FILE__)."/data/config.php";
require_once MYMPS_DATA."/config.db.php";
require_once MYMPS_INC."/db.class.php";
$user = isset($user) ? checkhtml($user) : '';
$id = isset($id) ? intval($id) : '';
ifsiteopen();
$where = "WHERE a.userid = '$user'";
$space = $db -> getRow("SELECT a.* FROM `{$db_mymps}member` AS a LEFT JOIN `{$db_mymps}area` AS b ON a.areaid = b.areaid $where");
if(!$space || empty($user)) write_msg("您所指定的会员不存在,或者尚未通过审核");
$space['if_corp'] = $mymps_global['cfg_if_corp'] != 1 ? 0 : $space['if_corp'];
$space['storeuri'] = $space['if_corp'] == 1 ? Rewrite('store',array('uid'=>$space['id'])) : '';
$space['uri'] = Rewrite('space',array('user'=>$user,'part'=>'index'));
$space['prelogo'] = $space['prelogo'] ? $space['prelogo'] : '/images/noavatar_small.gif';
$info = mymps_get_infos(30,1,'',$user);
/*当前位置*/
$loc = get_location('space','',$user);
$location = $loc['location'];
$page_title = $loc['page_title'];
globalassign();
include mymps_tpl('index');
is_object($db) && $db->Close();
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/ekangel/mymps.git
git@gitee.com:ekangel/mymps.git
ekangel
mymps
mymps
master

搜索帮助