handsome设置随机头图+解决新浪图床403问题

2023-03-19T11:53:00

简介:

更换掉handsome默认头图,使用随机头图,主要用于主页显示,这里提供两种方法,外加解决新浪图床403的临时方法,最好还是下载下来图片后用自己的服务器,避免再次403失效

方法一

1.准备好自己的随机图url

我的是https://www.buleng.xyz/code/get_img.php,源码放在这里

<?php
/*
直接请求将随机跳转到一个图片
*/
$imgArr = [];

//https://www.pexels.com/zh-cn/
$imgArr[0] = [
'list'=>[267371,230477,1115680,838413,235922,1560424,1056251,416160,96938,2194261,
666839,1133957,1269025,1089932,338711,573910,670061,3113124,247431,434090,
1209843,1684187,358312,1536619,96380,164821,373945,1547248,301920,256468,
1653823,59106,556665,461198,376464,321588,3193917,1040157,189349,396547,
3145552,220067,285173,409701,917076,255464,735911,2120016,1162540,],
//'fun'=> function($id){return "https://images.pexels.com/photos/{$id}/pexels-photo-{$id}.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500";}
'fun'=> function($id){return "https://api.vvhan.com/api/acgimg";}
];
//https://i.keaitupian.net/
// $imgArr[1] = [
//     'list'=>[
//         'up/40/c0/7c/ec2caa4f7b67d2b44a95bece4e7cc040.jpg',
//         'up/38/05/17/57ae05cdfe607c1f877a7881ea170538.jpg'
//     ],
//     'fun'=> function($id){return "https://i.keaitupian.net/".$id;}
// ];
function oneImg($id=false){
global $imgArr;
//求图片总数

// echo $count;
//随机选择一个
if($id == false){
    $count = 0;
    foreach($imgArr as $item){
        $count += count($item['list']);
    }
    $id = rand(0, $count - 1);
}
//累积下标
$key = 0;
foreach($imgArr as $item){
    if(isset($item['list'][$id - $key])){
        return $item['fun']($item['list'][$id - $key]);
    }else{
        $key += count($item['list']);
        continue;
    }
}
}

header('Location: '.oneImg(isset($_GET['id'])?$_GET['id']:false));exit;

2.进入/usr/themes/handsome/libs/Content.php页面

3.修改为图片上的代码即可

//随机图片
 $random = '/code/get_img.php?_='.rand(999, 3000);

方法二

1.依然是准备自己的url

我的是https://www.buleng.xyz/code/r_img.php,源码放在这里

<html>

<style>
.img-responsive {
display: inline-block;
height: auto;
max-width: 100%;}
</style>

<body style="background: #0e0e0e;display: block;">
    <div class="img-responsive">
<?php
 srand( microtime() * 1000000 );
$num = rand( 0, 200 );  
switch( $num )
 {
case 0: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb340cdhj31xg16je02.jpg";break;
case 1: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb33woc8j32pf1p4h5s.jpg";break;
case 2: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb33qgp0j31yc1e0ats.jpg";break;
case 3: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb33s62fj31z4118trw.jpg";break;
case 4: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb33vhnhj32301avtr7.jpg";break;
case 5: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb33upe1j32ke1qidxj.jpg";break;
case 6: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb34c43ej32jo1h1k92.jpg";break;
case 7: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb34doulj32061f1nej.jpg";break;
case 8: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb34500fj322d19uqk3.jpg";break;
case 9: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb348op7j32bc1aw4fd.jpg";break;
case 10: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb34p3paj31yo1e07kl.jpg";break;
case 11: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb34bellj31my15o4em.jpg";break;
case 12: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb34cascj3200190tol.jpg";break;
case 13: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb34gx2ej31y61e0188.jpg";break;
case 14: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb34k6jqj31xg0yyqie.jpg";break;
case 15: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb36g8t9j31y017rh0q.jpg";break;
case 16: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb36lshkj31t019xh0l.jpg";break;
case 17: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb356886j31hc0u0tnk.jpg";break;
case 18: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb35be0hj31y0190qhk.jpg";break;
case 19: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb357bscj31qi1avdub.jpg";break;
case 20: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb353ikuj31yo1e07if.jpg";break;
case 21: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb381sorj32p81e0wsh.jpg";break;
case 22: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb35fv9gj32yo1o0k55.jpg";break;
case 23: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb35vkrzj31yo1e0ans.jpg";break;
case 24: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb35jd1qj31y21dh7hn.jpg";break;
case 25: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb35upzij31rl0zuwrq.jpg";break;
case 26: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb368y92j31xg132an3.jpg";break;
case 27: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3631vdj31kw14hk46.jpg";break;
case 28: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb36fmr2j31s0140wr4.jpg";break;
case 29: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb36eo20j31hc11o4au.jpg";break;
case 30: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb36i6zaj31ww19uwqm.jpg";break;
case 31: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb36mozcj31pm0x6am3.jpg";break;
case 32: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb372iwyj31hc0xck39.jpg";break;
case 33: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb36rtesj31j012wqeo.jpg";break;
case 34: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb37nyscj32301ff49z.jpg";break;
case 35: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb36ut3dj31sy17vk2t.jpg";break;
case 36: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb36sqabj31z418ggwy.jpg";break;
case 37: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb37dlfxj31jk13a142.jpg";break;
case 38: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb37g5x5j31uo1a07fh.jpg";break;
case 39: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb37zvboj31hc0u0gwm.jpg";break;
case 40: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb381f4uj31jk12z49e.jpg";break;
case 41: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb37tcw8j31hc0xcqdo.jpg";break;
case 42: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb38d76mj31r415oqdk.jpg";break;
case 43: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb380p5ej31hc0zk492.jpg";break;
case 44: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb388yqej32bc17ldqa.jpg";break;
case 45: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb387h7sj31uo15x7eb.jpg";break;
case 46: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb391xnxj31ww1cqdpt.jpg";break;
case 47: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb38t6thj31qh15o7e1.jpg";break;
case 48: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb39436kj31hc11q488.jpg";break;
case 49: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb38mo6bj31na0xcajr.jpg";break;
case 50: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce4o3fyj31hc0u0dsp.jpg";break;
case 51: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce57tn0j31hc0u0k4a.jpg";break;
case 52: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb392retj31hc0u0wnp.jpg";break;
case 53: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb391p1rj31mc15o47k.jpg";break;
case 54: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb39g7wij31kn0zetho.jpg";break;
case 55: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb39c16ej31pq0yqthl.jpg";break;
case 56: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb399xcmj31hc0xcthg.jpg";break;
case 57: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb39ewenj31pn12wqbo.jpg";break;
case 58: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb39d915j31hc0u07cy.jpg";break;
case 59: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb39jhl0j31jk0xcdoh.jpg";break;
case 60: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb39zqhlj31jk13iwn4.jpg";break;
case 61: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb39tq3tj31hc0u07cq.jpg";break;
case 62: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3b0jifj31kn0vvaih.jpg";break;
case 63: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3d07a8j33ho1jknhy.jpg";break;
case 64: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb39uylaj31uo12wn5e.jpg";break;
case 65: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3affbhj31z41407ch.jpg";break;
case 66: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3a7nguj31hc0u0dny.jpg";break;
case 67: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3a94zqj31jk11xgtp.jpg";break;
case 68: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3a7n9jj31hc0u0n58.jpg";break;
case 69: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3ag88kj31hc0u0jzf.jpg";break;
case 70: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3atscmj31kn0vvwma.jpg";break;
case 71: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3aox3lj31hc0u07bt.jpg";break;
case 72: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3axqknj31hc0xcwm0.jpg";break;
case 73: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3ax04pj31jk0yqtg6.jpg";break;
case 74: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3b2b2kj32bc0rstg1.jpg";break;
case 75: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3b5dnbj31hc0xc0zx.jpg";break;
case 76: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3b6ee6j31nu0xoage.jpg";break;
case 77: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3bg0ftj31hc0tz0yu.jpg";break;
case 78: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3bavfwj31z31400yl.jpg";break;
case 79: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3be6yej31jk0x5tee.jpg";break;
case 80: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3bfggpj31hc0xcq8d.jpg";break;
case 81: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3bcmwij31jk0uj79p.jpg";break;
case 82: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3blazwj31jk0yqgqv.jpg";break;
case 83: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3bjaqtj31hc0u0gqs.jpg";break;
case 84: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3bkclij31z3140jwc.jpg";break;
case 85: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3bnr86j31hc0xc0xh.jpg";break;
case 86: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3c6woqj331c1pie81.jpg";break;
case 87: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3ckvkdj35ev2zr4qp.jpg";break;
case 88: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3bz6ahj36682mmnnk.jpg";break;
case 89: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3bzeq5j32p81osqrl.jpg";break;
case 90: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjb3c86rhj34xw3367sm.jpg";break;
case 91: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwan99j31hc0u0dsk.jpg";break;
case 92: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdvz9x3j31z4140amq.jpg";break;
case 93: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdvvwp9j31hc0u0ds2.jpg";break;
case 94: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdw7h4gj32fd1d54aq.jpg";break;
case 95: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdvxjysj31hc0u014u.jpg";break;
case 96: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdw1vwkj31hc0u0gxo.jpg";break;
case 97: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdw2fr6j31hc0u0wq0.jpg";break;
case 98: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdw4sbbj31hc0u049x.jpg";break;
case 99: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdw7grij31hc0u013s.jpg";break;
case 100: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwasjgj32yo1o0n7n.jpg";break;
case 101: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwlbn3j31r011sgvp.jpg";break;
case 102: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwghf3j31hc0yd7eb.jpg";break;
case 103: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwfi02j322g1owwoh.jpg";break;
case 104: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwjlznj31hc0u6dpq.jpg";break;
case 105: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwut55j31hc0u0tik.jpg";break;
case 106: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwlll2j31hc0u0ajv.jpg";break;
case 107: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwpck6j31hc0u0480.jpg";break;
case 108: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwp6w1j31hc0u07dq.jpg";break;
case 109: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwtizfj31hc0u0k0o.jpg";break;
case 110: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdx10lmj32yo1o0wnm.jpg";break;
case 111: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwwndmj31hc0u0guh.jpg";break;
case 112: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdwzdcqj31hc0u011i.jpg";break;
case 113: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdx866ij31hc0x9n5u.jpg";break;
case 114: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdx6hwlj31hc0u0doi.jpg";break;
case 115: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdx2l2cj31070pljzj.jpg";break;
case 116: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdx5qurj31hc0u0wmj.jpg";break;
case 117: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdx8zzhj31hc0u0wmj.jpg";break;
case 118: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxhlo1j31hc0u1gti.jpg";break;
case 119: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxfx01j31hc0u010m.jpg";break;
case 120: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxdmw2j31hc0u046a.jpg";break;
case 121: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxfze8j31jk0vr463.jpg";break;
case 122: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxgcscj31hc0u0tg6.jpg";break;
case 123: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxiupcj31hc0p3jys.jpg";break;
case 124: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxo0uoj31hc0u07bm.jpg";break;
case 125: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxlzg2j31hc0u0100.jpg";break;
case 126: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxnpg1j31hc0u0tfz.jpg";break;
case 127: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxq6uuj31hc0uyjyn.jpg";break;
case 128: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxtfgwj31hc0u0qa6.jpg";break;
case 129: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxymz5j31hc0u0wlm.jpg";break;
case 130: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxxcjgj31hc0xc7bc.jpg";break;
case 131: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxwm2oj31hc0u0jyf.jpg";break;
case 132: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdxyfjnj31hc0u045f.jpg";break;
case 133: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdy27gfj31hc0u0451.jpg";break;
case 134: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdy347mj31hc0u0jxv.jpg";break;
case 135: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdy53wnj31hc0u0dmb.jpg";break;
case 136: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdybapij31hc0u00z6.jpg";break;
case 137: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdyb5kqj31hc0u0q9b.jpg";break;
case 138: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdydlkzj319k0rsn3i.jpg";break;
case 139: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdyjsf6j31z4140jxq.jpg";break;
case 140: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdyg67lj31hc0u0dlz.jpg";break;
case 141: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdyju9aj31z4140q8z.jpg";break;
case 142: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdyma4yj315e0p0dlv.jpg";break;
case 143: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdyjr1sj32dc1c07a8.jpg";break;
case 144: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdylf1aj31hc0u0afy.jpg";break;
case 145: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdyoaafj318g0n2tek.jpg";break;
case 146: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdyu9yrj31hc0u0dll.jpg";break;
case 147: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdyyjchj31e00n4grb.jpg";break;
case 148: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdytkezj31kw0vsdlj.jpg";break;
case 149: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdysfwsj31hc0u0gr5.jpg";break;
case 150: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdyt9dyj32yo1o079t.jpg";break;
case 151: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdyuiptj31hc0u0wjt.jpg";break;
case 152: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdz0r9lj31hc0ubgqw.jpg";break;
case 153: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdz0aihj31hc0vrgqv.jpg";break;
case 154: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdz222yj317x0uv43q.jpg";break;
case 155: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdz4lf3j31hc0u0dl1.jpg";break;
case 156: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdz6c72j31xg0tb79g.jpg";break;
case 157: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzef7xj31b80r343o.jpg";break;
case 158: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdz7c6pj31hc0u00xv.jpg";break;
case 159: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzecssj31hc0u0af5.jpg";break;
case 160: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdz8fykj31hc0u0tdl.jpg";break;
case 161: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzb37pj31hc0u0wj8.jpg";break;
case 162: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzc3ibj31hc0u0jw0.jpg";break;
case 163: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzg4z5j31hc0u0q7g.jpg";break;
case 164: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzgcj9j31hc0u0tcy.jpg";break;
case 165: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzj3n2j31hc0u0ae6.jpg";break;
case 166: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzjhw6j31hc0u0n0j.jpg";break;
case 167: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzjq0yj31hc0u0tbz.jpg";break;
case 168: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzkzmmj315z0oqwgz.jpg";break;
case 169: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzmyo2j31z4140dia.jpg";break;
case 170: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdznbngj31hc0u0gnw.jpg";break;
case 171: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjcdzsmi1j32yo1o07wh.jpg";break;
case 172: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce13fg6j32bc15o4qp.jpg";break;
case 173: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce0uuxvj335s1s01kx.jpg";break;
case 174: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce2xdv3j32yo1crb01.jpg";break;
case 175: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce1f52qj330m1p41if.jpg";break;
case 176: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce0noj4j32yo1bgnm4.jpg";break;
case 177: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce0zhmlj33y8280x2h.jpg";break;
case 178: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce16m77j32yo1o0tud.jpg";break;
case 179: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce19z4jj32vs1gswzv.jpg";break;
case 180: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce2kyuqj32yo1o0e14.jpg";break;
case 181: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce3au2gj32yo1u0wz1.jpg";break;
case 182: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce1hvocj32yo1o0e0b.jpg";break;
case 183: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce29gpaj32yo1gph5t.jpg";break;
case 184: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce2i0aij32yo1hc7ni.jpg";break;
case 185: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce1rfwbj32qr1jknfz.jpg";break;
case 186: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce255mxj31li12c1bi.jpg";break;
case 187: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce2e44wj326r1jk1bc.jpg";break;
case 188: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce2vqofj32yo1o04gq.jpg";break;
case 189: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce3ehzbj32yo1o0dxw.jpg";break;
case 190: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce2svm5j31hc0u0as1.jpg";break;
case 191: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce5ckohj32yo1o0qkj.jpg";break;
case 192: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce30u5oj32xk27dwvp.jpg";break;
case 193: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce3aaycj335s1ul4fc.jpg";break;
case 194: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce4d8e0j32pg1wwh2a.jpg";break;
case 195: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce45dcij32yo1o0k7m.jpg";break;
case 196: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce4rhakj32nk140k7k.jpg";break;
case 197: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce3mucfj31xg132aot.jpg";break;
case 198: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce4msejj31hc14fgzt.jpg";break;
case 199: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce43dd8j32yo1o016e.jpg";break;
case 200: $image_file ="http://tva1.sinaimg.cn/large/00828lbuly1gkjce4lr1bj32yo1o07hc.jpg";break;
};
header("location:$image_file");
?>

</div>
</body>
</html>

原地址https://blog.rain888.cn/archives/140.html,不过他的调用方法麻烦,看我的第二步即可

2.依然进入/usr/themes/handsome/libs/Content.php页面,替换为下面代码

$random = '/code/r_img.php?_='.rand(0, 200);

3.目前上面图链都失效了,需要你自己去修改对应前缀

提供目前解决方法有下面几种
速度快:https://image.baidu.com/search/down?url=http://tva1.sinaimg.cn/large/00828lbuly1gkjce4msejj31hc14fgzt.jpg
速度慢:https://cdn.cdnjson.com/tvax1.sinaimg.cn/large/00828lbuly1gkjcdxfx01j31hc0u010m.jpg

未来的某一天可能就会失效了,建议大家早点下载下来图片吧

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »