熊猫办公系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
931 B

<?php
require('e/class/connect.php');
require('e/class/db_sql.php');
header ("content-Type: text/html; charset=utf-8");
$verify_code_url = 'http://www.tukuppt.com/index/down/code';
$cookie = $public_r['add_cookie']; //cookie文件保存的路径
$url_img='http://www.tukuppt.com/index/down/code';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url_img);
curl_setopt($ch,CURLOPT_HEADER,0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1) ;
curl_setopt($ch, CURLOPT_REFERER, 'http://www.tukuppt.com/');
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch,CURLOPT_COOKIE,$public_r['add_cookie']);
$img = curl_exec($ch);
curl_close($ch);
$img_name = 'vcode.jpg';
$op_file = fopen($img_name, 'w');
fwrite($op_file,$img);
fclose($op_file);
header('content-type:image/jpg;');
$content=file_get_contents($img_name);
echo $content;
?>