Exemplo n.º 1
0
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");
}
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->charger(1);
 }