添加新文章
- A theme by Foxinni
- More Wordpress Themes
| 一 | 二 | 三 | 四 | 五 | 六 | 日 |
|---|---|---|---|---|---|---|
| « 五 | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||
添加新文章
if (!$user->ID) { $result_set = $wpdb->get_results("SELECT display_name, user_email FROM $wpdb->users WHERE display_name = '" . $comment_author . "' OR user_email = '" . $comment_author_email . "'"); if ($result_set) { if ($result_set[0]->display_name == $comment_author) { wp_die( __(’您所填写的昵称已经有人使用了…’) ); } else { wp_die( __(’您所填写的邮箱已经有人使用了…’) ); } } }
昨天回复网友评论的时候没有登陆管理员账号,直接输入了自己的邮箱,结果评论竟然直接发上去了。
如果有人冒充管理员来回复网友的留言,是一个不小的安全隐患。
在此列出一下解决办法:
1.打开根目录的wp-comments-post.php
2.在if ( ” == $comment_content )前边加入如下代码
if (!$user->ID) {
$result_set = $wpdb->get_results("SELECT display_name, user_email FROM $wpdb->users WHERE display_name = '" . $comment_author . "' OR user_email = '" . $comment_author_email . "'");
if ($result_set) {
if ($result_set[0]->display_name == $comment_author) {
wp_die( __(’您所填写的昵称已经有人使用了…’) );
} else {
wp_die( __(’您所填写的邮箱已经有人使用了…’) );
}
}
}
安装Dede前需先修改以下文件夹的777权限:
| 目录名 | 需要权限 | 语法 |
| / | 读写 | chmod 777 / |
| /plus/* | 读写 | chmod 777 plus/ |
| /dede/* | 读写 | |
| /data/* | 读写 | |
| /html/* | 读写 | |
| /install | 读写 | |
| /special | 读写 | |
| /uploads/* | 读写 | |
| /include/ | 读写 | |
| /templets | 读写 | |
| /dede/templets | 读写 | |
| /js/ | 读写 | |
| /dede/img | 读写 | |
| /uploads/ | 子目录可读写 | chmod 777 -R uploads |
如果碰到会员中心或留言板打开页面是空白,那也需要将以下目录:/member/ /plus/两个目录需要开放777权限。
MYSQL数据库安装完成后,默认最大连接数是100,一般流量稍微大一点的论坛或网站这个连接数是远远不够的,增加默认MYSQL连接数的方法有两个:
方法一:
进入MYSQL安装目录(编译包目录在:/etc/my.cnf),打开MYSQL配置文件 my.ini 或 my.cnf查找 max_connections=100(如果没有这个参数则自己加上,在[mysqld]段下写max_connections=99999
),修改为 max_connections=1000 服务里重起MYSQL即可。
注:win服务全局配置文件是my.ini,linux服务器全局配置文件是/etc/my.cnf Continue Reading »
Linux是GNU/Linux的缩写,通常指各种Linux发行版的通称。
常见的Linux厂家主要有Redhat/Novell等。
Redhat有两大Linux产品系列,其一是免费的Fedora Core系列,主要用于桌面版本,提供了较多新特性的支持。
另外一个产品系列是收费的Enterprise系列 这个系列分成 AS/ES/WS等分支。
Advanced Server,缩写即AS。AS在标准Linux内核的基础上,做了性能上的增强,并提高了可靠性,集成了众多常见服务器的驱动程序 可轻松识别IBM/DELL/HP等常见机架式服务器的磁盘阵列卡等设备。 Continue Reading »