单个PHP文件中基于Web的文件管理器,使用Tiny File Manager高效轻松地管理文件 https://tinyfilemanager.github.io
它是一个简单,快速和小型的文件管理器,具有单个php文件。它也是一个Web代码编辑器。它可以在Linux,Windows或Mac平台上在线或本地运行。唯一的要求是提供PHP 5.5+。
遨游死神文章列表
本想给博客加个banner图 可惜找不到好看的图片,给入门的参考
.index_top_img{padding: 180px 0 85px 0;margin-bottom:20px;background-image:url('https://cdn.jsdelivr.net/gh/javadeath/Store@latest/usr/uploads/2021/10/1433560926.jpeg');background-size: 100% 100% ;}
.index_top_text{color:#000000;}
<div class="index_top_img">
<div class="container">
<div class="index_top_text">
<h2><?php $this->options->title();?></h2>
</div>
</div>
</div>
宝塔面板centos8 无法安装?
简单的说centos8已经绝版,官方也不提供下载了。
(看到这里建议各位别折腾了,直接换centos7 或者其他系统)
2022年2月1日,CentOS 8的Yum仓库已被搬走无法正常使用Yum,CentOS官网已经更新新的迁移命令如下:
dnf --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos
dnf distro-sync
下面的可以不用看,不过宝塔官方是建议你升级到Centos 8 Stream 以便他们支持安装。
OneinStack 一键JAVA php环境
对于开发与建站的伙伴肯定是需要的了!
安装命令
yum -y install wget screen python
wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz
tar xzf oneinstack-full.tar.gz
cd oneinstack
screen -S oneinstack
./install.sh
Discuz X3.4免插件定时自动生成sitemap.xml
<?php
/*
* $ cron_sitemap.php 2021-7-21 网站地图 计划任务版 www.172u.cn
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$filename='sitemap.xml';
//以下五项根据具体情况修改即可
$cfg_updateperi='60';//协议文件更新周期的上限,单位为分钟
$web_root=$_G['siteurl'];//根网址,不用修改
$CHARSET='utf-8';// or gbk //选择编码方式
/***********************************************************************************************/
//网站地图sitemap.xml
$sitemap="<?xml version="1.0" encoding="UTF-8"?>\n";
$sitemap.="<urlset\n";
$sitemap.="xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"\n";
$sitemap.="xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\n";
$sitemap.="xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9\n";
$sitemap.="http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">\n";
$querys = DB::query("SELECT a.tid FROM ".DB::table('forum_thread')." a inner join ".DB::table('forum_forum')." b on a.fid=b.fid ORDER BY a.tid DESC LIMIT 0,10000");
while($threadfid = DB::fetch($querys))
{
$turl=$web_root.'thread-'.$threadfid['tid'].'-1-1.html';//注意静态规则
$link = $turl;
$t=time();
$riqi=date("Y-m-d",$t);
$priority=rand(1,10)/10;
//date("D F d Y",$t);
$sitemap.="<url>\n";
$sitemap.="<loc>$link</loc>\n";
$sitemap.="<priority>$priority</priority>\n";
$sitemap.="<lastmod>$riqi</lastmod>\n";
$sitemap.="<changefreq>weekly</changefreq>\n";
$sitemap.="</url>\n";
}
$sitemap .= "</urlset>\n";
$fp = fopen(DISCUZ_ROOT.'/'.$filename,'w');
fwrite($fp,$sitemap);
fclose($fp);
?>
把cron_sitemap.php上传至source\include\cron目录
discuz后台添加定时任务
后台–工具–计划任务–新增
完成后点执行即可,不点的话也是定时会执行的。
然后进入百度站长等网站提交。