| 分类 |
if(file_exists("$data/artdata/usersort/$user.php"))//读取分类数据
{
$dd=file("$data/artdata/usersort/$user.php");
$ee=count($dd);
for($a=$ee-1;$a>=0;$a--)
{
$ww=explode("|",$dd[$a]);
$sortlink=getsort($ww[0]);
echo"·$sortlink ";
}
}
else
{
echo"还没有分类";
}
?>
|
|
|
| 资料 |
|
$profile=file("$data/user/$user.php");
$ww=explode("|",$profile[0]);
if(file_exists("$pathphoto/$ww[0].jpg"))
{
$photo="$pathphoto/$ww[0].jpg";
}
elseif(file_exists("$pathphoto/$ww[0].gif"))
{
$photo="$pathphoto/$ww[0].gif";
}
else
{
$photo="images/photo.jpg";
}
if($ww[10]=="man")
{
$sex="男";
}
else
{
$sex="女";
}
include"$temp/$nowtemp/profile.htm";
?>
|
|
| |
|
| 好友 |
if(file_exists("$data/artdata/friend/$user.php"))//读取好友数据
{
$dd=file("$data/artdata/friend/$user.php");
$ee=count($dd);
if($ee<=5) $friendnum=$ee-1;
else $friendnum=5;
for($a=0;$a<=$friendnum;$a++)
{
$ww=explode("|",$dd[$a]);
echo"·{$ww[0]} ";
}
}
else
{
echo"还没有好友";
}
?>
|
|
|
| 日志 |
if(file_exists("$data/artdata/userlist/{$user}.php"))//读取文章列表数据
{
$dd=file("$data/artdata/userlist/{$user}.php");
$ee=count($dd);
if($ee<=5) $commnum=$ee;
else $commnum=5;
echo"";
for($a=0;$a<$commnum;$a++)
{
$ww=explode("|",$dd[$a]);
if (strlen($ww[2])>=20) $ww[1]=substr($ww[2],0,20)."...";
$wwed=getsorted($ww[1]);
echo"| ·{$ww[2]} | $wwed | {$ww[4]} | ";
}
echo" ";
}
else
{
echo"还没添加日志";
}
?>
|
|
|
| 统计 |
| 日志数量:{$art}
链接数量:{$link}
好友数量:{$friend}
分类数量:{$sorteded}
评论数量:{$commtenteded} |
|
|
|
| 评论 |
if(file_exists("$data/artdata/commtent/{$user}list.php"))//读取评论数据
{
$dd=file("$data/artdata/commtent/{$user}list.php");
$ee=count($dd);
if($ee<=5) $commnum=$ee;
else $commnum=5;
for($a=0;$a<$commnum;$a++)
{
$ww=explode("|",$dd[$a]);
if (strlen($ww[1])>=16) $ww[1]=substr($ww[1],0,16)."...";
echo"·{$ww[1]}—{$ww[2]} ";
}
}
else
{
echo"还没有评论";
}
?>
|
|
|
| |
| 链接 |
if(file_exists("$data/artdata/link/{$user}.php"))//读取链接数据
{
$dd=file("$data/artdata/link/{$user}.php");
$ee=count($dd);
if($ee<=5) $commnum=$ee;
else $commnum=5;
for($a=0;$a<$commnum;$a++)
{
$ww=explode("|",$dd[$a]);
if (strlen($ww[1])>=20) $ww[1]=substr($ww[1],0,20)."...";
echo"·{$ww[1]} ";
}
}
else
{
echo"还没添加链接";
}
?>
|
|
|
|