整合如下:<?php
$id='';
$psw='';
if($_POST["id"]){
global $id;
$id=$_POST["id"];
}
if($_POST["psw"]){
global $psw;
$psw=$_POST["psw"];
}
$view2='';
$urlcookie='';
$name='';
function curl_request($url,$post='',$cookie='', $returnCookie=0){
global $id;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)');
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_AUTOREFERER, 1);
curl_setopt($curl, CURLOPT_REFERER, 'http://教务系统地址/xs_main.aspx?xh='.$id);
i