Beispiel #1
0
<?php

if (isset($_REQUEST['del']) && $_REQUEST['del'] == 1) {
    model::load('mail', 'mail');
    if (!suppuser($_REQUEST['usrid'])) {
        $reponse = 'Erreur Opération';
    } else {
        $reponse = 'ok';
    }
} else {
    view::load('mail', 'mail');
}
view::load('mail', 'mail');
Beispiel #2
0
<?php

if (tg('del') != 0) {
    model::load('admin', 'user');
    if (!suppuser(tg('del'))) {
        $reponse = 'Erreur enregistrements';
    } else {
        $reponse = 'ok';
    }
}
if (tg('act') != 0) {
    model::load('admin', 'user');
    if (!actuser(tg('act'))) {
        $reponse = 'Erreur enregistrements';
    } else {
        $reponse = 'ok';
    }
}
view::load('admin', 'user');