diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index b16eecba..43a2c63b 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -1888,6 +1888,22 @@ public function get_system_var( $key ){ return $row->value; } } + + /** + * List System Variable Keys + * Return array of variable keys or false + * @return bool|array , false if var is not set, the value of var if set + */ + + public function list_system_var_keys(){ + $query = $this->CI->db->select('key'); + $query = $this->CI->db->get( $this->config_vars['system_variables'] ); + // if variable not set + if ($query->num_rows() < 1) { return false;} + else { + return $query->result(); + } + } } // end class