set_user_id($id); $evt_handler->send($event); include("./admin/users/user_pwd.inc.php"); //Evenement publié $evt_handler = events_handler::get_instance(); $event = new event_user("user", "after_pwd"); $event->set_user_id($id); $evt_handler->send($event); break; case 'modif': //Evenement publié $evt_handler = events_handler::get_instance(); $event = new event_user("user", "before_modif"); $event->set_user_id($id); $evt_handler->send($event); include("./admin/users/user_modif.inc.php"); break; case 'update': //Evenement publié $evt_handler = events_handler::get_instance(); $event = new event_user("user", "before_update"); $event->set_user_id($id); $evt_handler->send($event); include("./admin/users/user_update.inc.php"); //Evenement publié $evt_handler = events_handler::get_instance(); $event = new event_user("user", "after_update"); $event->set_user_id($id); $evt_handler->send($event); break; case 'add': //Evenement publié $evt_handler = events_handler::get_instance(); $event = new event_user("user", "before_add"); $event->set_user_id($id); if( isset($synchro_step) ) { $event->set_synchro_step($synchro_step); } $evt_handler->send($event); echo window_title($database_window_title.$msg[347].$msg[1003].$msg[1001]); $user = new user(); print $user->get_user_form(); echo form_focus('userform', 'form_login'); break; case 'del': //Evenement publié $evt_handler = events_handler::get_instance(); $event = new event_user("user", "before_del"); $event->set_user_id($id); $evt_handler->send($event); if($id && $id !=1) { user::delete($id, $_COOKIE["PhpMyBibli-LOGIN"]); } show_users(); //Evenement publié $evt_handler = events_handler::get_instance(); $event = new event_user("user", "after_del"); $event->set_user_id($id); $evt_handler->send($event); break; case 'duplicate': //Evenement publié $evt_handler = events_handler::get_instance(); $event = new event_user("user", "before_duplicate"); $event->set_user_id($id); $event->set_user_id($id); $evt_handler->send($event); include("./admin/users/user_duplicate.inc.php"); break; default: show_users(); break; }