. */ /* */ /*************************************************************************************/ require_once("pre.php"); require_once("auth.php"); if(! est_autorise("acces_configuration")) exit; if(isset($action)){ switch($action){ case "modifier": modification($serveur,$port,$username,$password,$secure,$active); break; } } function modification($serveur,$port,$username,$password,$secure,$active){ $smtp = new Smtpconfig(); $smtp->charger(1); $smtp->serveur = $serveur; $smtp->port = $port; $smtp->username = $username; $smtp->password = $password; $smtp->secure = $secure; if($active == "on") $smtp->active = 1; else $smtp->active = 0; if($smtp->id != "") $smtp->maj(); else $smtp->add(); redirige("smtp.php"); } $smtp = new Smtpconfig(); $smtp->charger(1); ?>