只需在主题的footer.php中(外观–主题文件编辑器)加入以下代码
1 |
<p>加载用时 <?php timer_stop(7); ?>s | SQL查询 <?php echo get_num_queries(); ?>次 | 使用内存 <?php memory_get_peak_usage()/1024/1024; ?>MB</p> |
E星期五,一个心情日记和分享记录的博客
只需在主题的footer.php中(外观–主题文件编辑器)加入以下代码
1 |
<p>加载用时 <?php timer_stop(7); ?>s | SQL查询 <?php echo get_num_queries(); ?>次 | 使用内存 <?php memory_get_peak_usage()/1024/1024; ?>MB</p> |
对于服务器网络较差的用户来说并不友好,会导致Chevereto图床第一次打开很慢,除了在后台关掉更新检查外,还需要在/app/web.php屏蔽这个325kb的封面图,找到 'homepage_cover_image' => 'home_cover.jpg',
在该行前加上// 注释掉
rewrite ^/space/(.+)/$ /space.php?user=$1;
rewrite ^/store-([0-9]+)/$ /store.php?uid=$1;
rewrite ^/store-([0-9]+)/([^/]+).html$ /store.php?uid=$1&Uid=$2;
if (!-d $request_filename){
set $rule_3 1$rule_3;
}
if ($rule_3 = "1"){
rewrite ^/(?!store|space)(.+)/$ /category.php?Catid=$1;
}
rewrite ^/([^/]+)/([0-9]+).html$ /information.php?id=$2;
rewrite ^/news.html$ /news.php;
rewrite ^/news-id-([0-9]+).html$ /news.php?id=$1;
rewrite ^/news-catid-([0-9]+).html$ /news.php?catid=$1;
rewrite ^/news-catid-([0-9]+)-page-([0-9]+).html$ /news.php?catid=$1&page=$2;
rewrite ^/goods.html$ /goods.php;
rewrite ^/goods-id-([0-9]+).html$ /goods.php?id=$1;
rewrite ^/goods-([^/]+).html$ /goods.php?Catid=$1;
rewrite ^/corporation.html$ /corporation.php;
rewrite ^/corporation-([^/]+).html$ /corporation.php?Catid=$1;
rewrite ^/aboutus.html$ /about.php?part=aboutus;
rewrite ^/sitemap.html$ /about.php?part=sitemap;
rewrite ^/aboutus-id-([0-9]+).html$ /about.php?part=aboutus&id=$1;
rewrite ^/announce.html$ /about.php?part=announce&id=$1;
rewrite ^/faq.html$ /about.php?part=faq;
rewrite ^/faq-id-([0-9]+).html$ /about.php?part=faq&id=$1;
rewrite ^/friendlink.html$ /about.php?part=friendlink;
感谢原博
https://github.com/xhboke/IP
路径\WeTypecho-master\wetypecho\page\about\about.wxml
删除
RewriteEngine On
RewriteBase /
#如果是二级域名,删除下面2行的# 注释
#RewriteCond Host: ([a-z]+)\.aaa\.com
#RewriteRule ^(.*) /$1/$2
RewriteRule ^space/(.+)\/$ space\.php\?user=$1
RewriteRule ^store-([0-9]+)\/$ store\.php\?uid=$1
RewriteRule ^store-([0-9]+)/([^\/]+).html$ store\.php\?uid=$1&Uid=$2
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?!store|space)(.+)/$ category\.php\?Catid=$1
RewriteRule ^([^\/]+)/([0-9]+)\.html$ information\.php\?id=$2
RewriteRule ^news\.html$ news\.php
RewriteRule ^news-id-([0-9]+)\.html$ news\.php\?id=$1
RewriteRule ^news-catid-([0-9]+)\.html$ news\.php\?catid=$1
RewriteRule ^news-catid-([0-9]+)-page-([0-9]+)\.html$ news\.php\?catid=$1&page=$2
RewriteRule ^goods\.html$ goods\.php
RewriteRule ^goods-id-([0-9]+)\.html$ goods\.php\?id=$1
RewriteRule ^goods-([^\/]+)\.html$ goods\.php\?Catid=$1
RewriteRule ^corporation\.html$ corporation\.php
RewriteRule ^corporation-([^\/]+)\.html$ corporation\.php\?Catid=$1
RewriteRule ^aboutus\.html$ about\.php\?part=aboutus
RewriteRule ^sitemap\.html$ about\.php\?part=sitemap
RewriteRule ^aboutus-id-([0-9]+)\.html$ about\.php\?part=aboutus&id=$1
RewriteRule ^announce\.html$ about\.php\?part=announce&id=$1
RewriteRule ^faq\.html$ about\.php\?part=faq
RewriteRule ^faq-id-([0-9]+)\.html$ about\.php\?part=faq&id=$1
RewriteRule ^friendlink\.html$ about\.php\?part=friendlink
RewriteEngine On
RewriteBase /
#如果是二级域名,删除下面2行的# 注释
#RewriteCond Host: ([a-z]+)\.aaa\.com
#RewriteRule ^(.*) /$1/$2
redirect 301 /bbs/ http://新域名/
RewriteRule ^space/(.+)\/$ space\.php\?user=$1
RewriteRule ^store-([0-9]+)\/$ store\.php\?uid=$1
RewriteRule ^store-([0-9]+)/([^\/]+).html$ store\.php\?uid=$1&Uid=$2
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?!store|space)(.+)/$ category\.php\?Catid=$1
RewriteRule ^([^\/]+)/([0-9]+)\.html$ information\.php\?id=$2
RewriteRule ^news\.html$ news\.php
RewriteRule ^news-id-([0-9]+)\.html$ news\.php\?id=$1
RewriteRule ^news-catid-([0-9]+)\.html$ news\.php\?catid=$1
RewriteRule ^news-catid-([0-9]+)-page-([0-9]+)\.html$ news\.php\?catid=$1&page=$2
RewriteRule ^goods\.html$ goods\.php
RewriteRule ^goods-id-([0-9]+)\.html$ goods\.php\?id=$1
RewriteRule ^goods-([^\/]+)\.html$ goods\.php\?Catid=$1
RewriteRule ^corporation\.html$ corporation\.php
RewriteRule ^corporation-([^\/]+)\.html$ corporation\.php\?Catid=$1
RewriteRule ^aboutus\.html$ about\.php\?part=aboutus
RewriteRule ^sitemap\.html$ about\.php\?part=sitemap
RewriteRule ^aboutus-id-([0-9]+)\.html$ about\.php\?part=aboutus&id=$1
RewriteRule ^announce\.html$ about\.php\?part=announce&id=$1
RewriteRule ^faq\.html$ about\.php\?part=faq
RewriteRule ^faq-id-([0-9]+)\.html$ about\.php\?part=faq&id=$1
RewriteRule ^friendlink\.html$ about\.php\?part=friendlink
某论坛设置了访问别人空间增加自己积分的功能,把这个代码保存为html后缀
每天只需登录运行这个文件即可
自动访
<html>
<head>
<meta charset=”zh-cn”>
<title>Hostloc自动访问</title><style>#BAIDU_DSPUI_FLOWBAR,.adsbygoogle,.ad,div[class^=”ad-widsget”],div[id^=”div-gpt-ad-“]{display:none !important;}</style></head>
<body><iframe src=”” width=”980″ height=”600″ id=”hostloc” border=”0″></iframe>
<div id=”msg”>正在刷金币。。。。请稍等</div><script type=”text/javascript”>
setTimeout(“viewhostloc()”,5000);
var times = 20940;
function viewhostloc(){
document.getElementById(“hostloc”).src=”http://www.hostloc.com/space-uid-“+times+”.html”;
if(times<20955){
setTimeout(“viewhostloc()”,5000);
}
else{
document.getElementById(“hostloc”).innerHTML=”刷金币完成”;
alert(“完成”);
}
times++;
}
</script>
</body>
</html>
这些天使用某些破解版本软件时弹出这提示“无法找到’HandleXmpSingleton’,请重新安装”,xmp是迅雷影音吧?对,就这。
安装原版没问题,安装完原版再安装破解版还是不行。
后来考虑到是运行库的问题,编译器版本的不同(我也不知道啥意思,反正很高端的样子)
虽然之前已经安装了运行库,但这错误还是出了,可能是库的版本不同
在网上找到一个库,安装,再打开软件,错误已经不再。
库地址http://120.25.123.149/RunTime/MSVCVB/
邮件在发送的时候出现SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could……错误,本以为是SMTP邮局的问题,换了一家邮局还是这个错误,又从文件权限查找,无解啊,度娘了一下,发现是某个函数被禁用了,额,以前好好的,什么时候被禁了……
解决方法
SMTP Error: Could not connect to SMTP host”错误。下面介绍两种解决办法:
这个错误说明虚拟主机不支持PHPMailer默认调用的fsockopen函数,找到class.smtp.php文件,搜索fsockopen,就找到了这样一段代码:
// connect to the smtp server
$this->smtp_conn = @fsockopen($host,// the host of the server
$port,// the port to use
$errno, // error number if any
$errstr, // error message if any
$tval); // give up after ? secs方法1:将fsockopen函数替换成pfsockopen函数
因为pfsockopen的参数与fsockopen基本一致,所以只需要将@fsockopen替换成@pfsockopen就可以了。
方法2:使用stream_socket_client函数
一般fsockopen()被禁,pfsockopen也有可能被禁,所以这里介绍另一个函数stream_socket_client()。
stream_socket_client的参数与fsockopen有所不同,所以代码要修改为:
$this->smtp_conn = stream_socket_client(“tcp://”.$host.”:”.$port, $errno, $errstr, $tval);
这样就可以了。
© 2025 E星期五的博客
Theme by Anders Noren — Up ↑