| 	
    		 | 
   
  
     | 
   
  
    
      
         | 
       
      
        | 友情链接 | 
       
      
        |   | 
       
      
           | 
       
      | 
   
  
     | 
   
 
 | 
    
发表留言
$_SESSION['lasturl']=$_SERVER['HTTP_REFERER'];
if(!isset($_SESSION['username']) or $_SESSION['groupid']<1){
			   	$msg1=$icon_path."stop.gif";
	   			$msg2="游客无法执行此操作,请登录!";
			    $lasturl=$_SERVER['HTTP_REFERER'];
	   			$refresh_time=300;
		        makemsg($msg1,$msg2,$refresh_time,$lasturl);
	   			break;
				#exit;
  }
if($_GET['action']=="edit")
	{
		consql($db_host,$db_user,$db_pin,$db_name);
		$result=mysql_query("select * from lybnr where topicid={$_GET['id']} ");
		$r_row=mysql_fetch_object($result);
		if(!(($r_row->poster==$_SESSION['username'])or ($_SESSION['username']=="张叁")))
			{
			   	$msg1=$icon_path."jin20.gif";
	   			$msg2="不要乱改别人的东西啊!";
			    $lasturl=$_SERVER['HTTP_REFERER'];
	   			$refresh_time=300;
		        makemsg($msg1,$msg2,$refresh_time,$lasturl);
	   			break;
			}
		$content_old=$r_row->content;
	}  
if($_GET['action']=="quote")
	{
		consql($db_host,$db_user,$db_pin,$db_name);
		$result=mysql_query("select * from lybnr where topicid={$_GET['id']} ");
		$r_row=mysql_fetch_object($result);
		$content_old="[quote][i]".$r_row->poster."于".date("m-d H:i",$r_row->topicid)."发布[/i]:".$r_row->content."[/quote]";
	} 
?>
 |