Files
marumaru-php-parser/image_parse.php
T
hakasenyang f222156c55 First commit
마루마루 관련 파일입니다.
2016-11-02 08:51:06 +09:00

21 lines
469 B
PHP

<?php
include '_function.php';
$url = $_GET['url'];
$marumaru = new Marumaru();
$a = parse_url($url);
switch($a['host'])
{
case 'www.yuncomics.com':
case 'blog.yuncomics.com':
case 'marumaru.in':
break;
default:
exit;
}
header('Cache-Control: max-age=86400, public');
header('Expires: '. gmdate('D, d M Y H:i:s \G\M\T', time() + 86400));
header('Content-Type: image/jpeg');
echo $marumaru->WEBParsing($url, NULL, NULL);
?>