dedecms自定义表单自动获取IP,留言时间
1、修改plus/diy.php:if($fieldinfo[1] == textdata){${$fieldinfo[0]} = FilterSearch(stripslashes(${$fieldinfo[0]}));${$fieldinfo[0]} = addslashes(${$fieldinfo[0]});}在此段代码后添加如下代码:if($fieldinfo[0] == ip){${$fieldinfo[0]}=Ge...