页面生成中,正在为您自动刷新……

System Error

[64] ErrorException in common.php line 63

Cannot redeclare writelog() (previously declared in D:\wwwroot\shujiemeicom_8uaj86\web\home_gate.php:218)

  1. function writelog($uid,$username,$description,$status)
  2. {
  3. $data['admin_id'] = $uid;
  4. $data['admin_name'] = $username;
  5. $data['description'] = $description;
  6. $data['status'] = $status;
  7. $data['ip'] = request()->ip();
  8. $data['add_time'] = time();
  9. $log = db('Log')->insert($data);
  10. }
  11. //字符串截取
  12. function str_replace_limit($search, $replace, $subject, $limit=-1) {
  13. if (is_array($search)) {
  14. foreach ($search as $k=>$v) {
  15. $search[$k] = '`' . preg_quote($search[$k],'`') . '`';
  16. }
  17. }else {
  18. $search = '`' . preg_quote($search,'`') . '`';