续费更新已消费记录

2014-10-12 mdoctor 相关

更改

Model\indexs.php 第175行

改为

$sql = "UPDATE amh_member set member_money = member_money - '$annualprice', member_cost = member_cost + '$annualprice' WHERE member_id = '$member_id...

阅读全文>>

标签: mdoctor amh php 已消费 修改优化

评论(2) 浏览(1627)

mdoctor过滤敏感词防止恶意提权(重要)

2014-8-16 mdoctor 相关

1、Controller\reg.php 第42行附近

if($member_id)

改为

if($member_id || in_array($member,array('root','mysql','admin','test')))

2、Controller\host.php 第31行附近

elseif(...

阅读全文>>

标签: mdoctor 虚拟主机销售系统 mysql php mdoctor安全

评论(0) 浏览(1743)

解决php的date(): It is not safe to rely on the system's timezone settings.

2014-7-29 mdoctor 杂谈

date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those...

阅读全文>>

标签: php timezone date()

评论(0) 浏览(1689)

Powered by emlog 粤ICP备15039028号-1