CAMP part 1, registration, apply, new login screen, wide layout

This commit is contained in:
Ricsi
2017-06-08 18:35:09 +02:00
parent 7bd93e1730
commit f17adf4850
58 changed files with 4469 additions and 57 deletions

View File

@@ -18,6 +18,7 @@ class log {
//ha a user változó objektum, akkor megvizsgáljuk, hogy coach vagy parent
if (get_class($user) == 'user') $function_name = 'get_ua_id';
elseif(get_class($user) == 'user_kid') $function_name = 'get_uk_id';
elseif(get_class($user) == 'camp_user') $function_name = 'get_cu_id';
}
$sql->insert_into('log', array(
@@ -117,7 +118,7 @@ class log {
elseif (strstr($this->get_log_category()->get_logc_name(), 'delete')) return 'delete';
elseif (strstr($this->get_log_category()->get_logc_name(), 'update')) return 'edit';
elseif (in_array($this->get_log_category()->get_logc_name(), array('training_close', 'training_open'))) return 'lock';
elseif (in_array($this->get_log_category()->get_logc_name(), array('admin_login', 'admin_logout', 'kid_login', 'kid_logout', 'coach_login', 'coach_logout'))) return 'login';
elseif (in_array($this->get_log_category()->get_logc_name(), array('admin_login', 'admin_logout', 'kid_login', 'kid_logout', 'coach_login', 'coach_logout', 'camp_user_login', 'camp_user_logout'))) return 'login';
}
public function set_log_data_by_id($_log_id) {
@@ -138,6 +139,7 @@ class log {
//beállítja a log_user objektumot
if ($this->get_log_category()->get_logc_type() == 1) $new_user = new user();
elseif($this->get_log_category()->get_logc_type() == 2) $new_user = new user_kid();
elseif($this->get_log_category()->get_logc_type() == 3) $new_user = new camp_user();
$new_user->set_user_data_by_id($value);
$this->set_log_user($new_user);
}