懒人网址导航源码v3.9源码及教程
- 效果图
- 使用方法
- 部分源码
- 领取源码
- 下期更新预报
效果图
使用方法
测试环境
- 宝塔Nginx -Tengine2.2.3的PHP5.6 + MySQL5.6.44
- 为防止调试错误,建议使用测试环境运行的php与mysql版本
- 首先用phpMyAdmin导入数据库文件db/db.sql 如果导入不行,请直接复制数据库内容运行sql语句也可以; 再修改config.php来进行数据库配置 然后在服务器设置好伪静态规则 访问网站OK
- 后台是:你的域名/admin/login.php 账号:admin 密码:qqqqqq
Nginx伪静态规则
rewrite ^/index.html$ /index.php;
rewrite ^/about.html$ /about.php;
rewrite ^/search.html$ /search.php;
rewrite ^/ranking.html$ /ranking.php;
rewrite ^/wz.html$ /wzall.php;
rewrite ^/apply.html$ /apply.php;
rewrite ^/404.html$ /404.php;
rewrite ^/sort([1-9]+[0-9]*).html$ /sort.php?id=$1;
rewrite ^/sort([a-zA-Z]+).html$ /sort.php?alias=$1;
rewrite ^/site_([1-9]+[0-9]*).html$ /site.php?id=$1;
rewrite ^/wz([1-9]+[0-9]*).html$ /wz.php?id=$1;
rewrite ^/wzshow_([1-9]+[0-9]*).html$ /wzshow.php?id=$1;
Apache伪静态规则
RewriteEngine On
rewritebase /
RewriteRule ^index.\html /index\.php [L,NC]
RewriteRule ^about\.html about\.php [L,NC]
RewriteRule ^search\.html search\.php [L,NC]
RewriteRule ^ranking\.html ranking\.php [L,NC]
RewriteRule ^wz\.html wzall\.php [L,NC]
RewriteRule ^apply\.html apply\.php [L,NC]
RewriteRule ^404\.html 404\.php [L,NC]
RewriteRule ^sort([0-9]+)\.html sort\.php?id=$1 [L,NC]
RewriteRule ^sort([a-zA-Z]+)\.html sort\.php?alias=$1 [L,NC]
RewriteRule ^site_([0-9]+)\.html site\.php?id=$1 [L,NC]
RewriteRule ^wz([0-9]+)\.html wz\.php?id=$1 [L,NC]
RewriteRule ^wzshow_([0-9]+)\.html wzshow\.php?id=$1 [L,NC]
IIS伪静态规则(请查看压缩包中的版本简单说明)
部分源码
<?php$index = 'active';require ('./header.php');
?><div class="card"><div class="wzgg">
<a href="https://invite.51.la/1Nr2xd3?target=V6" target="_blank" rel="nofollow">免费网站统计还送钱</a>
<a href="#" target="_blank" rel="nofollow">文字广告火爆招租</a>
<a href="#" target="_blank" rel="nofollow">文字广告火爆招租</a>
<a href="#" target="_blank" rel="nofollow">文字广告火爆招租</a> </div></div><div id="置顶站点" class="card"><div class="top-grid"><?phpmysql_query("set names utf8");$results = mysql_query("SELECT * FROM zzdh_list where tui = '1' order by lid asc limit 12");while($rows = mysql_fetch_array($results)){?><a href="<?php if(empty($rows['alias'])){echo "../site_{$rows['id']}.html";}else{echo "../{$rows['alias']}.html";};?>" class="item" title="<?php echo $rows['name'];?>" data-id="<?php echo $rows['id'];?>"><span class="icon"><img class="lazy-load" src="assets/images/loading.gif" data-src="<?php echo $rows['img'];?>"></span><span class="name"><?php echo $rows['name'];?></span></a><?php }?></div></div><div class="card"><a class="ad" target="blank" href="http://www.9zwz.com"><img src="/assets/images/2.gif"></a></div><div class="card"><div class="card-head"><i class="fa fa-link fa-fw"></i>最新点入:友链后在贵站点击即排本站首位!<a href="apply.html" class="more"><i class="fa fa-plus-square" aria-hidden="true"></i>申请收录</a></div><div class="card-body"><?phpmysql_query("set names utf8");$results = mysql_query("SELECT * FROM zzdh_list order by drtime desc limit 14");while($rows = mysql_fetch_array($results)){ ?><a href="<?php echo "../site_{$rows['id']}.html";?>" target="_blank" class="item" title="<?php echo $rows['name'];?>" data-id="<?php echo $rrows['id'];?>"><span class="icon"><img class="lazy-load" src="assets/images/loading.gif" data-src="<?php echo $rows['img'];?>"></span><span class="name"><?php echo $rows['name'];?></span></a><?php }?></div></div><?phpmysql_query("set names utf8");$result = mysql_query("SELECT * FROM zzdh_sort order by sid asc");while($row = mysql_fetch_array($result)){?><a id="<?php echo $row['sortname'];?>"></a><div id="<?php echo $row['sortname'];?>" class="card"><div class="card-head"><i class="fa <?php echo $row['icon'];?> fa-fw"></i><?php echo $row['sortname'];?> <a href="<?php if(empty($row['alias'])){echo "../sort{$row['id']}.html";}else{echo "../sort{$row['alias']}.html";};?>" class="more"><i class="fa fa-ellipsis-h fa-fw"></i></a></div><div class="card-body"><?phpmysql_query("set names utf8");$results = mysql_query("SELECT * FROM zzdh_list where sortname = '".$row['sortname']."' order by lid asc limit 14");while($rows = mysql_fetch_array($results)){?><a href="<?php if(empty($rows['alias'])){echo "../site_{$rows['id']}.html";}else{echo "../{$rows['alias']}.html";};?>" target="_blank" class="item" title="<?php echo $rows['name'];?>" data-id="<?php echo $rrows['id'];?>"><span class="icon"><img class="lazy-load" src="assets/images/loading.gif" data-src="<?php echo $rows['img'];?>"></span><span class="name"><?php echo $rows['name'];?></span></a><?php }?></div></div><?php }?><div class="card"><a class="ad" target="blank" href="https://wpa.qq.com/msgrd?v=3&uin=1308484422&site=qq&menu=yes" title="点击对话" rel="nofollow"><img src="/assets/images/1.gif"></a></div>
<div class="card"><div class="card-head"><i class="fa fa-book fa-fw"></i>
文章推荐<a href="wz.html" class="more"><i class="fa fa-ellipsis-h fa-fw"></i></a></div><div class="card-body">
<?php $result=mysql_query("select * from zzdh_wz where tui=1 order by time desc limit 8");
while($rs=mysql_fetch_array($result)) {preg_match_all("|<img[^>]+src=\"([^>\"]+)\"?[^>]*>|is", $rs['introduce'], $img);$imgsrc = !empty($img[1]) ? $img[1][0] : '';if(!$imgsrc)$imgsrc = '../assets/images/no.png';?><a href="../wzshow_<?php echo $rs['id'];?>.html" target="_blank" class="post">
<div class="pic"><img class="lazy-load" src="../assets/images/loading.gif" data-src="<?php echo $imgsrc;?>"></div>
<div class="text"><div class="title"><?php echo $rs['name'];?></div>
<div class="info"><span><i class="fa fa-eye fa-fw"></i><?php echo $rs['view'];?></span>
<span><i class="fa fa-clock-o fa-fw"></i><?php echo $rs['time'];?></span></div></div>
</a><?php }?>
</div>
</div></div><div class="side"><div class="card"><div class="card-head"><i class="fa fa-line-chart fa-fw"></i>总浏览TOP10</div><div class="card-body"><div class="view-list">
<?php $result=mysql_query("select * from zzdh_list order by view desc limit 10");
$pai=0;
while($rs=mysql_fetch_array($result)) {
$pai=$pai+1;
?><a href="<?php if(empty($rs['alias'])){echo "/site_{$rs['id']}.html";}else{echo "/{$rs['alias']}.html";};?>" data-id="<?php echo $rs['id'];?>"><span class="rank"><?php echo $pai;?></span><span class="icon"><img class="lazy-load" src="assets/images/loading.gif" data-src="<?php echo $rs['img'];?>"></span><span class="name"><?php echo $rs['name'];?></span><span class="view"><?php echo $rs['view'];?></span></a><?php }?></div></div></div><div class="card"><div class="card-head"><i class="fa fa-coffee fa-fw"></i>最新收录</div><div class="card-body"><div class="side-latest oz-timeline">
<?php $result=mysql_query("select * from zzdh_list order by time desc limit 10");
while($rs=mysql_fetch_array($result)) {
?><a href="<?php if(empty($rs['alias'])){echo "/site_{$rs['id']}.html";}else{echo "/{$rs['alias']}.html";};?>" data-id="<?php echo $rs['id'];?>" data-id="<?php echo $rs['id'];?>" class="oz-timeline-item"><div class="oz-timeline-time"><?php echo $rs['time'];?></div><div class="oz-timeline-main"><span class="icon"><img class="lazy-load" src="assets/images/loading.gif" data-src="<?php echo $rs['img'];?>"></span><span class="name"><?php echo $rs['name'];?></span></div></a><?php }?></div></div></div><div class="card"><div class="card-head"><i class="fa fa-folder-open fa-fw"></i>文章分类</div><div class="card-body"><div class="side-sort"><?phpmysql_query("set names utf8");$result = mysql_query("SELECT * FROM zzdh_sortwz order by sid asc");while($row = mysql_fetch_array($result)){?><a href="<?php echo "../wz{$row['id']}.html";?>" class=""><i class="fa fa-pencil-square-o <?php echo $row['icon'];?>"></i> <?php echo $row['sortname'];?></a><?php }?> </div></div></div>
<div class="card"><div class="card-head"><i class="fa fa-bar-chart fa-fw"></i>最新文章</div><div class="card-body"><div class="view-list">
<?php $result=mysql_query("select * from zzdh_wz order by time desc limit 10");
$pai=0;
while($rs=mysql_fetch_array($result)) {
$pai=$pai+1;?><a href="<?php echo "../wzshow_{$rs['id']}.html";?>" target="_blank" title="<?php echo $rs['name'];?>" data-id="36"><span class="rank"><?php echo $pai;?></span><span class="name"><?php echo $rs['name'];?></span></a><?php }?> </div></div></div><div class="card"><a class="ad" target="blank" href="http://www.9zwz.com"><img src="/assets/images/3.gif"></a></div><div class="card"><div class="card-head"><i class="fa fa-pie-chart fa-fw"></i>本站统计</div><div class="card-body"><div class="side-common"><p>已开设分类:<b><?php echo $cntsort?></b> 个</p><p>已收录站点:<b><?php echo $cntlist?></b> 个</p><p>最高日览站:<a href="<?php echo "../site_{$rows_cntlistrhits['id']}.html";?>" target="_blank"><?php echo $rows_cntlistrhits['name'];?></a></p><p>最高月览站:<a href="<?php echo "../site_{$rows_cntlisthits['id']}.html";?>" target="_blank"><?php echo $rows_cntlisthits['name'];?></a></p><p>最高总览站:<a href="<?php echo "../site_{$rows_cntlistview['id']}.html";?>" target="_blank"><?php echo $rows_cntlistview['name'];?></a></p><p>最高点赞站:<a href="<?php echo "../site_{$rows_cntlistlove['id']}.html";?>" target="_blank"><?php echo $rows_cntlistlove['name'];?></a></p><p>正申请站点:<b><?php echo $cntapply?></b> 个</p><p>已拒绝站点:<b><?php echo $cntjuapply?></b> 个</p><p>文章的分类:<b><?php echo $cntsortwz?></b> 个</p><p>已发布文章:<b><?php echo $cntwz?></b> 篇</p><p>已发布公告:<b><?php echo $cntnotice;?></b> 条</p><p>已交换友链:<b><?php echo $cntlink;?></b> 个</p><p>本站已稳定运行了 <b><script language="JavaScript" type="text/javascript">var urodz = new Date("<?php echo $conf['time'];?>");var now = new Date();var ile = now.getTime() - urodz.getTime();var dni = Math.floor(ile / (1000 * 60 * 60 * 24));document.write( + dni)</script></b> 天。</p></div></div></div></div><div class="card links"><div class="card-head"><i class="fa fa-link fa-fw"></i>友情链接</div><div class="card-body"><?phpmysql_query("set names utf8");$results = mysql_query("SELECT * FROM zzdh_link order by id asc limit 36");while($rows = mysql_fetch_array($results)){?><a href="<?php echo $rows['url'];?>" target="_blank"><?php echo $rows['name'];?></a>
<?php }?></div></div>
</div>
<?phprequire ('./footer.php');
?>
领取源码
源码地址:https://www.123pan.com/s/ji8kjv-GGPU3.html
下期更新预报
Ypay源支付6.9无授权聚合免签系统可运营源码
- 📢博客主页:孤客网络科技工作室官方账号
- 📢欢迎点赞👍收藏⭐️留言 📝如有错误敬请指正!
- 📢本文由孤客原创,若侵权联系作者,首发于CSDN博客
- 📢停下休息的时候不要忘了别人还在奔跑,希望大家抓紧时间学习,全力奔赴更好的生活💻