示例#1
0
	
</div>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fc8c6b4ac78fb9378987b263d5babdb1a' type='text/javascript'%3E%3C/script%3E"));
</script>

</body>
</html>


		

<?php 
po_chengji($_POST['xh'], $_POST['pw']);
po_xuanxiu($_POST['xh'], $_POST['pw']);
function get_utf8_string($content)
{
    $encoding = mb_detect_encoding($content, array('ASCII', 'UTF-8', 'GB2312', 'GBK', 'BIG5'));
    return mb_convert_encoding($content, 'utf-8', $encoding);
}
function get_personinfo($xh, $pw)
{
    $api_url = 'http://zlgc.gdpu.edu.cn/chengji/jwcapi.php?xh=' . $xh . '&pw=' . $pw . '&flag=1';
    $ret_personinfo = file_get_contents($api_url);
    return $ret_personinfo;
}
function get_chengji($xh, $pw)
{
    $api_url = 'http://zlgc.gdpu.edu.cn/chengji/jwcapi.php?xh=' . $xh . '&pw=' . $pw . '&flag=2';
    $ret_personinfo = file_get_contents($api_url);
示例#2
0
    $str = file_get_contents($api_url);
    $tj = 'http://pingtcss.qq.com/pingd?dm=yanson.duapp.com&pvi=' . rand(1, 9999999999) . '&si=s' . rand(1, 9999999999) . '&url=/jwc/new.wx.chengji.api.php&arg=&ty=&rdm=&rurl=&rarg=&adt=&r2=31957828&r3=-1&r4=1&fl=12.0&scr=1280x960&scl=24-bit&lg=zh-cn&jv=1&tz=-8&ct=&ext=adid=&pf=&random=1397458406451';
    file_get_contents($tj);
    if (strstr($str, "请确认用户名或密码是否正确")) {
        return $this->respText("【账号】或【密码】错误");
    }
    //输出名字
    $name = $row_info['realname'];
    $xb = $row_info['xb'];
    if ($xb == '男') {
        $ch = '同学';
    }
    if ($xb == '女') {
        $ch = '同学';
    }
    $string = po_xuanxiu($str);
    $title = "{$name} {$ch}欢迎使用\n【广药学生选修查询】";
    return $this->respText($title . "\n\n" . $string);
}
function get_utf8_string($content)
{
    $encoding = mb_detect_encoding($content, array('ASCII', 'UTF-8', 'GB2312', 'GBK', 'BIG5'));
    return mb_convert_encoding($content, 'utf-8', $encoding);
}
function po_chengji_new($str)
{
    preg_match('/<table cellspacing=\\"0\\" cellpadding=\\"3\\" rules=\\"rows\\" bordercolor=\\"#ADCEEF\\" border=\\"1\\" id=\\"DataGrid1\\" width=\\"100%\\">(?P<info>.+?)<\\/table>/s', $str, $results);
    $array = get_td_array($results['info']);
    array_splice($array, 0, 1);
    /*
    Array
示例#3
0
}
if ($xb == '女') {
    $ch = '师姐';
}
//搜索数据库是否已经有数据
$sql_check = "SELECT * FROM `jwc_xuanxiu` WHERE `xh` = '{$xh}' LIMIT 1 ";
$query_char = mysql_query("SET NAMES UTF8");
$query_check = mysql_query($sql_check, $link) or die(mysql_error());
$check_ret = mysql_fetch_row($query_check);
if ($check_ret[1]) {
    po_xuanxiu($xh, $ch, $name, $str, $link);
    $title = "{$name} {$ch}欢迎使用\n【广药选修查询系统】";
    echo $title . "\n\n" . $check_ret[2];
} else {
    echo "亲爱的{$name} {$ch}\n正在为你链接到教务处...\n请重新发送\n\n选修#学号#密码\n\n来获得最新选修信息";
    po_xuanxiu($xh, $ch, $name, $str, $link);
}
function get_utf8_string($content)
{
    $encoding = mb_detect_encoding($content, array('ASCII', 'UTF-8', 'GB2312', 'GBK', 'BIG5'));
    return mb_convert_encoding($content, 'utf-8', $encoding);
}
function po_xuanxiu($xh, $ch, $name, $str, $link)
{
    $str = str_replace("<tr>  \t\t<td>", "【", $str);
    $str = str_replace('<tr bgcolor="#EEF3F9">  		<td>', "【", $str);
    $str = str_replace('</td>  	</tr>', "】", $str);
    $str = str_replace('</td><td>', "#", $str);
    $str = explode("【", $str);
    $string = '';
    foreach ($str as $key => $a) {