
实例代码:
<?php
if($this->user->uid!=$this->author->uid&&!empty($this->author->uid)){
$this->user->uid=$this->author->uid;
$this->user->screenName=$this->author->screenName;
$this->user->mail=$this->author->mail;
$this->user->group=$this->author->group;
$lock=1;
}else{$lock=0;}
if(empty($this->author->uid)){
$str=$_SERVER["REQUEST_URI"];
if(preg_match('/\d+/',$str,$arr)){
$id=$arr[0];
if ($this->user->hasLogin()&&$this->user->uid==$id){$lock=0;}else{$lock=1;}
$info=userok($id);
$this->user->uid=$id;
$this->user->screenName=$info['screenName'];
$this->user->mail=$info['mail'];
$this->user->group=$info['group'];
}
}
?>

文章评论
A lot of thanks for all your efforts on this site. Gloria enjoys doing investigation and it's easy to understand why. Almost all know all concerning the dynamic means you deliver great items on the web blog and as well encourage contribution from other people on that concern plus our daughter is actually being taught a lot. Have fun with the remaining portion of the new year. You're the one conducting a glorious job.
My wife and i were very thrilled when Raymond managed to round up his web research with the ideas he gained in your web page. It's not at all simplistic to just choose to be giving freely information that many other folks have been selling. And we all figure out we have the website owner to be grateful to for that. The explanations you have made, the simple site menu, the friendships you can give support to engender - it's got everything fabulous, and it's really facilitating our son and the family feel that the idea is enjoyable, and that is incredibly important. Thank you for all the pieces!