1 Star 0 Fork 5

BlueCatTAT / 哔咔漫画服务器

forked from yoshino / 哔咔漫画服务器 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tiaoban.php 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
鞠耀斌 提交于 2020-08-20 00:15 . 修复了很多问题
<?php
/*
* @Date: 2020-07-04 12:20:24
* @名称:
* @描述:
* @版本: 0.01
* @作者: 初雪桜
* @邮箱: 202184199@qq.com
* @最后编辑人: 初雪桜
* @LastEditTime: 2020-07-24 23:19:13
* @FilePath: /Pica_acg服务器/tiaoban.php
* @最后编辑: 初雪桜
*/
$url = $_GET["url"];
$extension = substr(strrchr($url, '.'), 1);
switch ($extension) {
case 'png':
$img = imagecreatefrompng(str_replace("https://", "http://", $url));
if ($img) {
header("Content-type:image/png");
imagepng($img);
} else {
echo 'aadawdaw3';
}
break;
default:
$img = imagecreatefromjpeg(str_replace("https://", "http://", $url));
if ($img) {
header("Content-type:image/jpeg");
imagejpeg($img);
} else {
echo 'aadawdaw2';
}
break;
}
/* header("Content-type:image/jpeg");
$img = imagecreatefromjpeg('http://b-ssl.duitang.com/uploads/item/201607/04/20160704052649_WLyfB.jpeg');
imagejpeg($img);
*/
PHP
1
https://gitee.com/bluecattat/bika_cartoon_server.git
git@gitee.com:bluecattat/bika_cartoon_server.git
bluecattat
bika_cartoon_server
哔咔漫画服务器
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891