<?php
//第一步:获取cookie
error_reporting(0);
header('Content-Type:text/html; charset= utf-8');
//curl初始化
/**
* 模拟登录
*/
$cookie_file="init_cookie";
$url = 'http://112.124.54.19/Score/score/importScoreFromSchool.action';
$time=$_POST["xz"];
$username=$_POST['username'];
$password=$_POST['password'];
$code=$_POST['code'];
if($time=="1"){
$year="2015";
$xq="1";
}
if($time=="2"){
$year="2015";
$xq="2";
}
if($time=="3"){
$year="2016";
$xq="1";
}
if($time=="4"){
$year="2016";
$xq="2