callback_func = $callback_func; $this->callback_url = $callback_url; $this->new_tab = $new_tab; switch($action){ case 'check_auth' : //On tente la connexion // si paramétrage authentification particulière $empty_pwd=true; $ext_auth=false; if (file_exists($base_path.'/includes/ext_auth.inc.php')) { require_once($base_path.'/includes/ext_auth.inc.php'); } $log_ok = connexion_empr(); print $popup_header; if($log_ok){ //réussie, on poursuit le tout... $this->success_callback(); }else{ print $this->get_form($msg['auth_failed']); } break; case 'get_form' : default : print $popup_header; if(!$_SESSION['user_code']){ print $this->get_form(); }else{ $this->success_callback(); } break; } } public function success_callback(){ $html = " "; print $html; } public function show_form(){ print "