Beispiel #1
0
 function _get_count()
 {
     $query = $this->MSSQL->query("SELECT COUNT(*) as cnt FROM rf_user.dbo." . query_config('table_account'));
     foreach ($query->result() as $row) {
         return $row->cnt;
     }
 }
Beispiel #2
0
 function email()
 {
     $this->data['title'] = lang('off_chmail') . gen_name_profile();
     $email = office_secure($this->input->post('email'));
     $stop = "";
     if (check_master_answer() == true) {
         $master = office_secure($this->input->post('master'));
         if (md5($master) != show_master_answer()) {
             $stop = lang('off_master_error');
         }
     }
     if (valid_email($email) and trim($stop) == '') {
         $user = get_user();
         $this->MSSQL->query("UPDATE {$user}.dbo." . query_config('table_account') . " SET email = '{$email}' WHERE Id = '" . $this->login . "'");
         $this->data['content'] = '<p>' . icon('32x32/accept.png') . lang('off_ch_email') . "</p>";
     } else {
         $this->data['content'] = '<p>' . icon('32x32/delete.png') . lang('off_reg_email') . $stop . go_back() . "</p>";
     }
     compile();
 }