diff --git a/application/controllers/Debug.php b/application/controllers/Debug.php index 329fe0547..427a8f0d5 100644 --- a/application/controllers/Debug.php +++ b/application/controllers/Debug.php @@ -41,6 +41,7 @@ class Debug extends CI_Controller $data['stations'] = $this->Stations->all(); $data['qso_total'] = $this->Debug_model->count_all_qso(); + $data['users_total'] = $this->Debug_model->count_users(); $data['available_languages'] = $this->config->item('languages'); $data['qsos_with_no_station_id'] = $this->Logbook_model->check_for_station_id(); diff --git a/application/models/Debug_model.php b/application/models/Debug_model.php index eb14fe687..0082cb420 100644 --- a/application/models/Debug_model.php +++ b/application/models/Debug_model.php @@ -161,6 +161,12 @@ class Debug_model extends CI_Model return $query->row()->total; } + function count_users() { + $sql = 'SELECT COUNT(*) AS total FROM users;'; + $query = $this->db->query($sql); + return $query->row()->total; + } + function getMigrationVersion() { $this->db->select_max('version'); $query = $this->db->get('migrations'); diff --git a/application/views/debug/index.php b/application/views/debug/index.php index 7077382e4..b5bfe9b60 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -70,7 +70,11 @@