1、去除 Warning: date_default_timezone_get()
打开config_inc.php,
增加:
$g_default_timezone = 'RPC';
2、去除 SYSTEM WARNING: 'date(): It is not safe to rely on the system's timezone
在config_inc.php继续增加
ini_set('date.timezone','Asia/Shanghai');
3、全站中文
打开config_defaults_inc.php
配置:$g_default_language = ' chinese_simplified';
4、不使用邮箱发送密码
$g_send_reset_password = OFF;
5、关闭注册
$g_allow_signup = OFF;
6、修改上传文件大小限制
6.1 php.ini
upload_max_filesize = 8M
6.2 my.cnf
解决Got a packet bigger than 'max_allowed_packet' bytes
在my.cnf的mysqld下面增加
max_allowed_packet=100M
7、126的smtp配置
不知道为什么地址必须一样,才能成功发送
$g_phpMailer_method = 2; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host = 'smtp.126.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_username = 'abcdabcd'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = '111111'; # used with PHPMAILER_METHOD_SMTP
$g_administrator_email = 'abcdabcd@126.com';
$g_webmaster_email = 'abcdabcd@126.com';
$g_from_email = 'abcdabcd@126.com'; # the "From: " field in emails
$g_return_path_email = 'abcdabcd@126.com'; # the return address for bounced mail
---------------------
作者:asc2046
来源:CSDN
原文:https://blog.csdn.net/asc2046/article/details/24975625
版权声明:本文为博主原创文章,转载请附上博文链接!