예제 #1
0
<?
session_start();
		include('weibo_time.class.php');
		$new=new sina_weibo();	
		if(!$new->check_login()){//用于检查是否已经登陆	
			echo "你还没有登陆";
			exit;
		}		
echo $_SESSION['id'];

			if(isset($_POST['text'])){
				$time=trim($_POST['time']);
				$pic=trim($_POST['pic']);
			$e=$new->new_weibo($_POST['text'],$pic,$time);
			print_r($e);
			}else{
				echo "你还没有写微博内容";
			}
			echo $e;


?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>定时微博</title>
</head>
<body>


<form  method="POST">