示例#1
0
function getInfo()
{
    $info = user_info::getUserInfo($_SESSION['userId']);
    if ($info != false) {
        return $info;
    } else {
        return false;
    }
}
示例#2
0
<?php

include_once "conf/config.php";
//引入相关模型类
include_once "Models/user_info.php";
include_once "Models/article.php";
if (!$_GET['id']) {
    die("出错");
}
$ID = $_GET['id'];
list($ID, $nickname, $popularity, $registerTime, $signature, $article_count) = user_info::getUserInfo($ID);
$allrows = article::getArticleInfo($ID);
if (!$allrows) {
    $allrows = array();
}
?>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>hci-user</title>
	<link rel="stylesheet" type="text/css" href="public/stylesheets/global.css">
	<link rel="stylesheet" type="text/css" href="public/stylesheets/user.css">
	<script type="text/javascript" src="public/javascripts/navSlide.js"></script>
	<script type="text/javascript">
	window.onload = function(){
		//本页面对应栏,下标由0起始,首页为0
        initSlide(0);
	};
	</script>
</head>