php代码实现下载地址base64加密
<?php header("Content-type: text/html; charset=utf-8"); $url=$_GET["url"]; if($url==''){echo "无下载地址";} $urll=base64_decode($url); header("Location:".$urll);?>
<?php header("Content-type: text/html; charset=utf-8"); $url=$_GET["url"]; if($url==''){echo "无下载地址";} $urll=base64_decode($url); header("Location:".$urll);?>
<?php // Include WordPress define('WP_USE_THEMES', false); require('./wp-load.php'); query_posts('showposts=5'); //这个调用最新文章,如果是热门文章的话则改为get_most_viewed("post",10),前提是你的主题安装了热门文章插件,而且此方法可以接受几乎wp-kit-cn所有代码。 ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <?php while (have_posts()): the_post(); ?> <tr><td height="23">· 【新上源码】 <a href="<?php the_permalink(); ?>" target="_blank"><b><?php echo mb_strimwidth(strip_tags(apply_filters('the_title', $post->post_title)), 0, 50," "); ?></b></a></td></tr> <?php endwhile; ?> </table> 目录建立php文件把代码粘贴进去就可以了。在其他地方随意调用自身内容
<?php $user = "root"; //数据库用户名 $password = "123";//数据库密码 $db_name = "root";//数据库名 $link = mysql_connect("localhost:3306",$user,$password); mysql_select_db("$db_name",$link); echo "<p>;正在清空数据库..."; $result=mysql_query("SHOW tables",$link); while ($currow=mysql_fetch_array($result)) { mysql_query("drop TABLE IF EXISTS $currow[0]"); echo $currow[0]."<br>;"; } echo "成功</p>;"; ?>;
<?php header("Content-Type: image/jpeg;text/html; charset=utf-8"); $url = 'http://'.$_GET['tu']; $ch = curl_init($url); // //curl_setopt($ch, CURLOPT_REFERER, "http://www.iqiyi.com/"); //伪造来路页面 //curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:'. getIP().'', 'CLIENT-IP:'. getIP().'')); //构造IP curl_setopt($ch, CURLOPT_HEADER, 0); //不返回header部分 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //返回字符串,而非直接输出 $FH= curl_exec($ch); curl_close($ch); echo $FH; exit; ?>
<?php $token='http://data.zz.baidu.com/urls?site=www.xxxxx.com&token=6lvko54336DCLR6e';//去百度获取 $xml_string = file_get_contents("https://www.1004619.com/sitemap.xml");//网站地图 $xml_string = trim($xml_string); $xml_object = simplexml_load_string($xml_string); $array=[]; $i=0; foreach ($xml_object->url as $key=>$value){ //$i=500 代表从地图获取500条连接 默认是从第一条开始 if($i===88){ break; } $array['aa']= get_object_vars($value); $url.=$array['aa']['loc']."\n"; $i++; } $urls=explode("\n",$url); $ch = curl_init(); $options = array( CURLOPT_URL => $token, CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => implode("\n", $urls), CURLOPT_HTTPHEADER => array('Content-Type: text/plain'), ); curl_setopt_array($ch, $options); $result = curl_exec($ch); echo $result; ?>