php代码|万能单页随机生成新的泛域名网页(php自动生成网页)
时间:2021-11-13 21:20:50 阅读:1300
创建关键词key.txt文件,在里面放需要的关键词。
创建内容juzi.txt文件,在里面放一些文章【可以自己写或者百度】
创建图片img.txt文件,这个可以弄或者不弄,看个人。
创建主要页面sitemap.php文件,在里面放以下代码:
<?php error_reporting(0); $refer=$_SERVER['HTTP_REFERER']; if(stristr($refer,"baidu.com")||stristr($refer,"sogou.com")||stristr($refer,"soso.com")||stristr($refer,"google.")||stristr($refer,"bing.com")||stristr($refer,"youdao.com")) { header("location:http://www.你的主域名/");//这个是跳转地址 exit(); } function randKey($len) { $chars = array( "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ); $charsLen = count($chars) - 1; shuffle($chars); // 将数组打乱 $str = ""; for ($i=0; $i<$len; $i++) { $str .= $chars[mt_rand(0, $charsLen)]; } return $str; } $Titleline=file('key.txt'); $pictures=file('img.txt'); $Contentline=file('juzi.txt'); $TY=count($pictures); $TC=count($Titleline); $CC=count($Contentline); function Getpictures($id) { global $pictures; $str=$pictures[$id]; return $str; } function gettitle($id) { global $Titleline; $str=$Titleline[$id]; return $str; } function getcontent($id) { global $Contentline; $str=$Contentline[$id]; $str=str_replace("{title}","",$str); return $str; } $pictures0=trim(Getpictures(rand(0,$TY))); $pictures1=trim(Getpictures(rand(0,$TY))); $pictures2=trim(Getpictures(rand(0,$TY))); $pictures3=trim(Getpictures(rand(0,$TY))); $pictures4=trim(Getpictures(rand(0,$TY))); $pictures5=trim(Getpictures(rand(0,$TY))); $pictures6=trim(Getpictures(rand(0,$TY))); $pictures7=trim(Getpictures(rand(0,$TY))); $pictures8=trim(Getpictures(rand(0,$TY))); $pictures9=trim(Getpictures(rand(0,$TY))); $pictures10=trim(Getpictures(rand(0,$TY))); $pictures11=trim(Getpictures(rand(0,$TY))); $pictures12=trim(Getpictures(rand(0,$TY))); $pictures13=trim(Getpictures(rand(0,$TY))); $pictures14=trim(Getpictures(rand(0,$TY))); $pictures15=trim(Getpictures(rand(0,$TY))); $pictures16=trim(Getpictures(rand(0,$TY))); $pictures17=trim(Getpictures(rand(0,$TY))); $pictures18=trim(Getpictures(rand(0,$TY))); $pictures19=trim(Getpictures(rand(0,$TY))); $pictures20=trim(Getpictures(rand(0,$TY))); $pictures21=trim(Getpictures(rand(0,$TY))); $pictures22=trim(Getpictures(rand(0,$TY))); $pictures23=trim(Getpictures(rand(0,$TY))); $pictures24=trim(Getpictures(rand(0,$TY))); $pictures25=trim(Getpictures(rand(0,$TY))); $pictures26=trim(Getpictures(rand(0,$TY))); $pictures27=trim(Getpictures(rand(0,$TY))); $pictures28=trim(Getpictures(rand(0,$TY))); $pictures29=trim(Getpictures(rand(0,$TY))); $pictures30=trim(Getpictures(rand(0,$TY))); $pictures31=trim(Getpictures(rand(0,$TY))); $pictures32=trim(Getpictures(rand(0,$TY))); $pictures33=trim(Getpictures(rand(0,$TY))); $pictures34=trim(Getpictures(rand(0,$TY))); $pictures35=trim(Getpictures(rand(0,$TY))); $pictures36=trim(Getpictures(rand(0,$TY))); $pictures37=trim(Getpictures(rand(0,$TY))); $pictures38=trim(Getpictures(rand(0,$TY))); $pictures39=trim(Getpictures(rand(0,$TY))); $pictures40=trim(Getpictures(rand(0,$TY))); $pictures41=trim(Getpictures(rand(0,$TY))); $pictures42=trim(Getpictures(rand(0,$TY))); $pictures43=trim(Getpictures(rand(0,$TY))); $pictures44=trim(Getpictures(rand(0,$TY))); $pictures45=trim(Getpictures(rand(0,$TY))); $pictures46=trim(Getpictures(rand(0,$TY))); $pictures47=trim(Getpictures(rand(0,$TY))); $pictures48=trim(Getpictures(rand(0,$TY))); $pictures49=trim(Getpictures(rand(0,$TY))); $pictures50=trim(Getpictures(rand(0,$TY))); $pictures51=trim(Getpictures(rand(0,$TY))); $pictures52=trim(Getpictures(rand(0,$TY))); $pictures53=trim(Getpictures(rand(0,$TY))); $pictures54=trim(Getpictures(rand(0,$TY))); $pictures55=trim(Getpictures(rand(0,$TY))); $pictures56=trim(Getpictures(rand(0,$TY))); $pictures57=trim(Getpictures(rand(0,$TY))); $pictures58=trim(Getpictures(rand(0,$TY))); $pictures59=trim(Getpictures(rand(0,$TY))); $pictures60=trim(Getpictures(rand(0,$TY))); $Title0=trim(gettitle(rand(0,$TC))); $Title1=trim(gettitle(rand(0,$TC))); $Title2=trim(gettitle(rand(0,$TC))); $Title3=trim(gettitle(rand(0,$TC))); $Title4=trim(gettitle(rand(0,$TC))); $Title5=trim(gettitle(rand(0,$TC))); $Title6=trim(gettitle(rand(0,$TC))); $Title7=trim(gettitle(rand(0,$TC))); $Title8=trim(gettitle(rand(0,$TC))); $Title9=trim(gettitle(rand(0,$TC))); $Title10=trim(gettitle(rand(0,$TC))); $Title11=trim(gettitle(rand(0,$TC))); $Title12=trim(gettitle(rand(0,$TC))); $Title13=trim(gettitle(rand(0,$TC))); $Title14=trim(gettitle(rand(0,$TC))); $Title15=trim(gettitle(rand(0,$TC))); $Title16=trim(gettitle(rand(0,$TC))); $Title17=trim(gettitle(rand(0,$TC))); $Title18=trim(gettitle(rand(0,$TC))); $Title19=trim(gettitle(rand(0,$TC))); $Title20=trim(gettitle(rand(0,$TC))); $Title21=trim(gettitle(rand(0,$TC))); $Title22=trim(gettitle(rand(0,$TC))); $Title23=trim(gettitle(rand(0,$TC))); $Title24=trim(gettitle(rand(0,$TC))); $Title25=trim(gettitle(rand(0,$TC))); $Title26=trim(gettitle(rand(0,$TC))); $Title27=trim(gettitle(rand(0,$TC))); $Title28=trim(gettitle(rand(0,$TC))); $Title29=trim(gettitle(rand(0,$TC))); $Title30=trim(gettitle(rand(0,$TC))); $Title31=trim(gettitle(rand(0,$TC))); $Title32=trim(gettitle(rand(0,$TC))); $Title33=trim(gettitle(rand(0,$TC))); $Title34=trim(gettitle(rand(0,$TC))); $Title35=trim(gettitle(rand(0,$TC))); $Title36=trim(gettitle(rand(0,$TC))); $Title37=trim(gettitle(rand(0,$TC))); $Title38=trim(gettitle(rand(0,$TC))); $Title39=trim(gettitle(rand(0,$TC))); $Title40=trim(gettitle(rand(0,$TC))); $Title41=trim(gettitle(rand(0,$TC))); $Title42=trim(gettitle(rand(0,$TC))); $Title43=trim(gettitle(rand(0,$TC))); $Title44=trim(gettitle(rand(0,$TC))); $Title45=trim(gettitle(rand(0,$TC))); $Title46=trim(gettitle(rand(0,$TC))); $Title47=trim(gettitle(rand(0,$TC))); $Title48=trim(gettitle(rand(0,$TC))); $Title49=trim(gettitle(rand(0,$TC))); $Title50=trim(gettitle(rand(0,$TC))); $Title51=trim(gettitle(rand(0,$TC))); $Title52=trim(gettitle(rand(0,$TC))); $Title53=trim(gettitle(rand(0,$TC))); $Title54=trim(gettitle(rand(0,$TC))); $Title55=trim(gettitle(rand(0,$TC))); $Title56=trim(gettitle(rand(0,$TC))); $Title57=trim(gettitle(rand(0,$TC))); $Title58=trim(gettitle(rand(0,$TC))); $Title59=trim(gettitle(rand(0,$TC))); $Title60=trim(gettitle(rand(0,$TC))); $Title61=trim(gettitle(rand(0,$TC))); $Title62=trim(gettitle(rand(0,$TC))); $Title63=trim(gettitle(rand(0,$TC))); $Title64=trim(gettitle(rand(0,$TC))); $Title65=trim(gettitle(rand(0,$TC))); $Title66=trim(gettitle(rand(0,$TC))); $Title67=trim(gettitle(rand(0,$TC))); $Title68=trim(gettitle(rand(0,$TC))); $Title69=trim(gettitle(rand(0,$TC))); $Title70=trim(gettitle(rand(0,$TC))); $Title71=trim(gettitle(rand(0,$TC))); $Title72=trim(gettitle(rand(0,$TC))); $Title73=trim(gettitle(rand(0,$TC))); $Title74=trim(gettitle(rand(0,$TC))); $Title75=trim(gettitle(rand(0,$TC))); $Title76=trim(gettitle(rand(0,$TC))); $Title77=trim(gettitle(rand(0,$TC))); $Title78=trim(gettitle(rand(0,$TC))); $Title79=trim(gettitle(rand(0,$TC))); $Title80=trim(gettitle(rand(0,$TC))); $Title81=trim(gettitle(rand(0,$TC))); $Title82=trim(gettitle(rand(0,$TC))); $Title83=trim(gettitle(rand(0,$TC))); $Title84=trim(gettitle(rand(0,$TC))); $Title85=trim(gettitle(rand(0,$TC))); $Title86=trim(gettitle(rand(0,$TC))); $Title87=trim(gettitle(rand(0,$TC))); $Title88=trim(gettitle(rand(0,$TC))); $Title89=trim(gettitle(rand(0,$TC))); $Title90=trim(gettitle(rand(0,$TC))); $Title91=trim(gettitle(rand(0,$TC))); $Title92=trim(gettitle(rand(0,$TC))); $Title93=trim(gettitle(rand(0,$TC))); $Title94=trim(gettitle(rand(0,$TC))); $Title95=trim(gettitle(rand(0,$TC))); $Title96=trim(gettitle(rand(0,$TC))); $Title97=trim(gettitle(rand(0,$TC))); $Title98=trim(gettitle(rand(0,$TC))); $Title99=trim(gettitle(rand(0,$TC))); $Title100=trim(gettitle(rand(0,$TC))); $Title101=trim(gettitle(rand(0,$TC))); $Title102=trim(gettitle(rand(0,$TC))); $Title103=trim(gettitle(rand(0,$TC))); $Title104=trim(gettitle(rand(0,$TC))); $Title105=trim(gettitle(rand(0,$TC))); $Title106=trim(gettitle(rand(0,$TC))); $Title107=trim(gettitle(rand(0,$TC))); $Title108=trim(gettitle(rand(0,$TC))); $Title109=trim(gettitle(rand(0,$TC))); $Title110=trim(gettitle(rand(0,$TC))); $Title111=trim(gettitle(rand(0,$TC))); $Title112=trim(gettitle(rand(0,$TC))); $Title113=trim(gettitle(rand(0,$TC))); $Title114=trim(gettitle(rand(0,$TC))); $Title115=trim(gettitle(rand(0,$TC))); $Title116=trim(gettitle(rand(0,$TC))); $Title117=trim(gettitle(rand(0,$TC))); $Title118=trim(gettitle(rand(0,$TC))); $Title119=trim(gettitle(rand(0,$TC))); $Title120=trim(gettitle(rand(0,$TC))); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <link rel="canonical" href="https://www.clxsite.cn"> <head><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?=$Title1?>|<?=$Title120?></title> <meta name="keywords" content="<?=$Title8?>,<?=$Title18?>,<?=$Title28?>"/> <meta name="description" content="<?=$Title38?>,<?=$Title50?>,<?=getcontent(rand(0,$CC))?>"/> <script language="javascript" src="gg.js"></script> <script language="javascript" src="tj.js"></script> <!--导航的文件开始--> <link rel="stylesheet" href="/css/zhuyestyle.css"> <link rel="stylesheet" href="/css/zhuyebootstrap.css"> <script src="http://zy.zshao.vip:88/js/jquery.min.js"></script> <script src="http://zy.zshao.vip:88/js/bootstrap.min.js"></script> <!--导航的文件结束--> <link rel="stylesheet" href="/css/bootstrap.css"> <link rel="stylesheet" href="/css/css.css"> </head> <body> <!--导航代码开始--> <div class="sticky-section nav-bg"> <!--黑色--> <div class="sticky-section"> <div id="topbar-hold" class="nav-hold container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-responsive-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <div class="logo"></div> <img alt="<?=$Title60?>"src="/images/<?=$pictures50?>"width="70px;"height="50px;"></div> <div class="collapse navbar-collapse navbar-responsive-collapse"> <ul class="nav navbar-nav navbar-right"> <li id="dh"><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(2)?>.你的主域名"><?=$Title1?></a></li> <li id="dh"><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(3)?>.你的主域名/"><?=$Title2?></a></li> <li id="dh"> <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(4)?>.你的主域名/"><?=$Title3?></a></li> <li id="dh"><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(5)?>.clxsite.cn/"><?=$Title4?></a></li> <li id="dh"><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(6)?>.你的主域名/"><?=$Title5?></a></li> </ul> </div> </div> </div> </div> <!--导航代码结束--> <p class="fl"></p> <div id="main"> <div class="location"> <div class="container"> <div class="row"> <p class="right"><a href="#" style="cursor:hand" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('/')">设为首页</a> > <a href="javascript:window.external.AddFavorite('/','www.zshao.vip')" target="_top">加入收藏</a> > <a href="sitemap.php" target="_blank">网站地图</a> | 您当前位置:<a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(1)?>.你的主域名/"><?=$Title6?></a> > 正文</p> </div> </div> </div> <div class="phone_box"> <div class="phone"> <span><?=$Title90?></span> <i class="phone-menuicon"> <img src="http://www.88680k.com/template/pc/skin/img/1.png"> </i> </div> <ul class="phone-menulist"> </ul> </div> <div class="pc-main"> <div class="container"> <div class="row"> <div class="menu_list"> <ul class="menu_list_foot"> <li> <p class="one_level"><i class="square"></i><span>相关推荐</span> </p> </li> <li class="about_meassage"> <div class="report fz-nlist8 pt5"> <ul> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(5)?>.你的主域名 "><?=$Title7?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(7)?>.你的主域名 "><?=$Title8?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(4)?>.caihongdaishuawang.com "><?=$Title9?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(9)?>.你的主域名 "><?=$Title10?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(2)?>.你的主域名 "><?=$Title11?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(6)?>.你的主域名 "><?=$Title12?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(11)?>.你的主域名 "><?=$Title13?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(2)?>.clxsite.cn "><?=$Title14?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(4)?>.你的主域名 "><?=$Title15?></a></li> </ul> </div> <div class="one_level" style="padding-left: 0px;"><i class="square"></i>热门文章</div> <div class="fz-nlist6"> <ul> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(5)?>.你的主域名" target="_blank"><?=$Title31?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(7)?>.你的主域名" target="_blank"><?=$Title32?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(8)?>.你的主域名" target="_blank"><?=$Title33?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(7)?>.你的主域名" target="_blank"><?=$Title34?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(5)?>.你的主域名" target="_blank"><?=$Title35?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(4)?>.你的主域名" target="_blank"><?=$Title36?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(7)?>.clxsite.cn" target="_blank"><?=$Title37?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(3)?>.你的主域名" target="_blank"><?=$Title38?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(7)?>.你的主域名" target="_blank"><?=$Title39?></a></li> <li><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(2)?>.你的主域名" target="_blank"><?=$Title40?></a></li> </ul> </div> <div> <div class="one_level" style="padding-left: 0px;"><i class="square"></i>站内支持</div> <a href="http://www.clxsite.cn" target="_blank"><?=$Title41?></a> - <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(5)?>.你的主域名" target="_blank"><?=$Title42?></a> - <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(4)?>.你的主域名" target="_blank"><?=$Title43?></a> - <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(7)?>.你的主域名" target="_blank"><?=$Title44?></a> - <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(9)?>.你的主域名" target="_blank"><?=$Title45?></a> </div> <p> <img alt="<?=$Title20?>"src="/images/<?=$pictures30?>" /> </p> </li> </ul> </div> <div class="product_meassage news-center"> <div class="news_detail_title"style="text-align: center;"> <h1 class="line40 fontwei font24 fontblack"><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(2)?>.你的主域名/"><?=$Title7?></a></h1> <p class="line22 fontgrey">时间:<?php echo date('Y-m-d h:i:s', time()); ?> 来源:<?=$Title8?> 人气:<?php echo(rand(10000,20000)); ?></p> </div> <div class="news_detail_content"> <div class="news_detail_content2"> <p style="text-align: center;"> <?=getcontent(rand(0,$CC))?><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(9)?>.你的主域名 "><?=$Title9?></a><?=getcontent(rand(0,$CC))?><?=getcontent(rand(0,$CC))?><?=getcontent(rand(0,$CC))?><a href="http://<?=randKey(2)?>.<?=randKey(4)?>.<?=randKey(5)?>.你的主域名 "><?=$Title10?></a><?=getcontent(rand(0,$CC))?><?=getcontent(rand(0,$CC))?><?=getcontent(rand(0,$CC))?><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(9)?>.你的主域名 "><?=$Title11?></a> <p style="text-align: center;"><img border="0" alt="<?=$Title30?>www.zshao.vip" src="/images/<?=$pictures10?>" width="120" height="160" /></p> <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(9)?>.你的主域名 "><?=$Title12?></a></b><?=getcontent(rand(0,$CC))?><?=getcontent(rand(0,$CC))?><a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(9)?>.你的主域名 "><?=$Title13?></a><?=getcontent(rand(0,$CC))?><?=getcontent(rand(0,$CC))?><?=getcontent(rand(0,$CC))?><?=getcontent(rand(0,$CC))?> <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(9)?>.你的主域名 "><?=$Title14?></a> </p> <p> <span style="font-size:14px;"> </span> </p> </div> <div class="prev">上一篇:<a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(3)?>.你的主域名 "><?=$Title15?></a></div> <div class="next">下一篇:<a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(2)?>.你的主域名 "><?=$Title16?></a></div> </div> </div> </div> </div> </div> </div> <div id="foot"> <p> <span>站内支持:</span> <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(7)?>.你的主域名" target="_blank"><?=$Title41?></a> - <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(5)?>.你的主域名" target="_blank"><?=$Title42?></a> - <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(4)?>.你的主域名" target="_blank"><?=$Title43?></a> - <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(7)?>.你的主域名" target="_blank"><?=$Title44?></a> - <a href="http://<?=randKey(2)?>.<?=randKey(2)?>.<?=randKey(9)?>.你的主域名" target="_blank"><?=$Title45?></a> <br> <font color="#1092dc">Copyright ©</font> <font color="#FF6600">http://www.你的主域名</font> <a href="http://www.你的主域名" target="_blank">网络资源工作室</a><a href="https://www.clxsite.cn/" target="_blank">()</a> All Rights Reserved. </p> </div> </body> </html>
至于JS和css,可以自己根据需要去换模板【因为JS和css文件太多内容,懒得放上来】
网友评论