includes/sessions.php
changeset 1211 488294ceee13
parent 1206 50f6c144ec68
child 1216 4125e19d3b27
equal deleted inserted replaced
1210:ad49fa34ff3c 1211:488294ceee13
  2244    */
  2244    */
  2245   
  2245   
  2246   function admin_activation_request($u)
  2246   function admin_activation_request($u)
  2247   {
  2247   {
  2248     global $db;
  2248     global $db;
  2249     $this->sql('INSERT INTO '.table_prefix.'logs(log_type, action, time_id, date_string, author, author_uid, edit_summary) VALUES(\'admin\', \'activ_req\', '.time().', \''.enano_date(ED_DATE | ED_TIME).'\', \''.$this->username.'\', ' . $session->user_id . ', \''.$db->escape($u).'\');');
  2249     $this->sql('INSERT INTO '.table_prefix.'logs(log_type, action, time_id, date_string, author, edit_summary) VALUES(\'admin\', \'activ_req\', '.time().', \''.enano_date(ED_DATE | ED_TIME).'\', \''.$this->username.'\', \''.$db->escape($u).'\');');
  2250   }
  2250   }
  2251   
  2251   
  2252   /**
  2252   /**
  2253    * Activates a user account. If the action fails, a report is sent to the admin.
  2253    * Activates a user account. If the action fails, a report is sent to the admin.
  2254    * @param string $user The username of the user requesting activation
  2254    * @param string $user The username of the user requesting activation