Webscan.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * 系统安全检测相关代码
  4. */
  5. namespace app\admin\controller;
  6. use think\facade\Lang;
  7. use think\facade\Db;
  8. /**
  9. * ============================================================================
  10. *
  11. * ============================================================================
  12. * 版权所有 2014-2028 浙江惠利玛产业互联网有限公司,并保留所有权利。
  13. * 网站地址: https://www.valimart.net/
  14. * ----------------------------------------------------------------------------
  15. *
  16. * ============================================================================
  17. * 控制器
  18. */
  19. class Webscan extends AdminControl {
  20. public function initialize() {
  21. parent::initialize();
  22. $this->_prefix = config('database.connections.mysql.prefix');
  23. Lang::load(base_path() . 'admin/lang/'.config('lang.default_lang').'/webscan.lang.php');
  24. }
  25. public function index()
  26. {
  27. $this->scan_member();
  28. }
  29. public function scan_member()
  30. {
  31. $output = array();
  32. //检测Member数据表中是否有重复的 用户名 邮箱 手机号
  33. $result = Db::query("select member_name,count(*) as count from {$this->_prefix}member group by member_name having count>1;");
  34. }
  35. }