Пример #1
0
}
if (!est_autorise("acces_contenu")) {
    exit;
}
require_once "../fonctions/divers.php";
$images_adm = new ImagesAdmin('contenu', $id, $lang);
$documents_adm = new DocumentsAdmin('contenu', $id, $lang);
switch ($action) {
    case 'modclassement':
        modclassement($id, $parent, $type);
        break;
    case 'modifier':
        modifier($id, $lang, $dossier, $ligne, $titre, $chapo, $description, $postscriptum, $urlsuiv, $urlreecrite);
        break;
    case 'ajouter':
        ajouter($lang, $dossier, $ligne, $titre, $chapo, $description, $postscriptum);
        break;
    case 'supprimer':
        supprimer($id, $parent);
        break;
}
$images_adm->action($action);
$documents_adm->action($action);
function modclassement($id, $parent, $type)
{
    $cont = new Contenu($id);
    $cont->changer_classement($id, $type);
    redirige("listdos.php?parent=" . $parent);
}
function modifier($id, $lang, $dossier, $ligne, $titre, $chapo, $description, $postscriptum, $urlsuiv, $urlreecrite)
{
}
if (!isset($affiche)) {
    $affiche = "";
}
switch ($action) {
    case 'modclassement':
        modclassement($id, $type);
        break;
    case 'modifier':
        modifier($id, $lang, $titre, $chapo, $description, $tabdisp, $affiche);
        break;
    case 'maj':
        maj($id, $lang, $titre, $chapo, $description, $tabdisp, $affiche);
        break;
    case 'ajouter':
        ajouter($lang, $id, $titre, $chapo, $description, $tabdisp, $affiche, $ajoutrub);
        break;
    case 'ajcaracdisp':
        ajcaracdisp($id, $caracdisp, $lang);
        break;
    case 'majcaracdisp':
        majcaracdisp($id, $lang);
        break;
    case 'supprimer':
        supprimer($id);
        break;
    case 'suppcaracdisp':
        suppcaracdisp($caracdisp);
    case 'modclassementcaracdisp':
        modclassementcaracdisp($id, $cacacdispdesc, $type, $lang);
        break;
Пример #3
0
    redirige($redir_url);
}
// URL précédente
if (isset($_SERVER['HTTP_REFERER'])) {
    $_SESSION["navig"]->urlprec = $_SERVER['HTTP_REFERER'];
}
// Langue
ActionsLang::instance()->set_id_langue_courante($lang);
// Devise
ActionsDevises::instance()->set_id_devise_courante($devise);
// fonctions à éxecuter avant le moteur
ActionsModules::instance()->appel_module("demarrage");
// Actions
switch ($action) {
    case 'ajouter':
        ajouter($ref, $quantite, $append, $nouveau, $parent);
        break;
    case 'supprimer':
        supprimer($article);
        break;
    case 'modifier':
        modifier($article, $quantite);
        break;
    case 'connexion':
        connexion($email, $motdepasse, $urlok, $urlerr);
        break;
    case 'deconnexion':
        deconnexion();
        break;
    case 'paiement':
        paiement($type_paiement);
Пример #4
0
if (!isset($action)) {
    $action = "";
}
if (!isset($page)) {
    $page = 0;
}
if (!est_autorise("acces_codespromos")) {
    exit;
}
$promo = new Promo();
if ($expiration == 0) {
    $jour = $mois = $annee = 0;
}
switch ($action) {
    case 'ajouter':
        ajouter($code, $type, $valeur, $mini, $actif, $limite, $nombre_limite, $jour, $mois, $annee);
        break;
    case 'modifier':
        modifier($id, $code, $type, $valeur, $mini, $actif, $limite, $nombre_limite, $jour, $mois, $annee);
        break;
    case 'supprimer':
        supprimer($id);
}
$nbPromoParPage = 20;
if ($page == "") {
    $page = 1;
}
$query = "select * from {$promo->table} WHERE actif='1'";
$resul = mysql_query($query, $promo->link);
$num = $resul ? mysql_num_rows($resul) : 0;
$nbpage = ceil($num / $nbPromoParPage);
Пример #5
0
    exit;
}
require_once "../fonctions/divers.php";
require_once "liste/accessoire.php";
require_once "liste/contenu_associe.php";
$images_adm = new ImagesAdmin('produit', $ref, $lang);
$documents_adm = new DocumentsAdmin('produit', $ref, $lang);
switch ($action) {
    case 'modclassement':
        modclassement($ref, $parent, $type);
        break;
    case 'modifier':
        modifier($id, $lang, $ref, $prix, $ecotaxe, $promo, $prix2, $rubrique, $nouveaute, $perso, $poids, $stock, $tva, $ligne, $titre, $chapo, $description, $postscriptum, $urlsuiv, $urlreecrite);
        break;
    case 'ajouter':
        ajouter($lang, $ref, $prix, $ecotaxe, $promo, $prix2, $rubrique, $nouveaute, $perso, $poids, $stock, $tva, $ligne, $titre, $chapo, $description, $postscriptum);
        break;
    case 'supprimer':
        supprimer($ref, $parent);
    case 'dupliquer':
        dupliquer($ref, $refn, $rubrique);
        break;
}
$images_adm->action($action);
$documents_adm->action($action);
function dupliquer($ref, $refn, $rubrique)
{
    $test = new Produit();
    if (!$test->charger($refn)) {
        $produit = new Produit();
        if ($produit->charger($ref)) {
Пример #6
0
}
if (!est_autorise("acces_contenu")) {
    exit;
}
require_once "../fonctions/divers.php";
$images_adm = new ImagesAdmin('dossier', $id, $lang);
$documents_adm = new DocumentsAdmin('dossier', $id, $lang);
switch ($action) {
    case 'modclassement':
        modclassement($id, $parent, $type);
        break;
    case 'modifier':
        modifier($id, $lang, $titre, $chapo, $description, $postscriptum, $ligne, $parent, $urlsuiv, $urlreecrite);
        break;
    case 'ajouter':
        ajouter($parent, $lang, $titre, $chapo, $description, $postscriptum, $ligne);
        break;
    case 'supprimer':
        supprimer($id, $parent);
}
$images_adm->action($action);
$documents_adm->action($action);
function modclassement($id, $parent, $type)
{
    if ($parent == 0) {
        $parent = 0;
    }
    $dos = new Dossier();
    $dos->charger($id);
    $dos->changer_classement($id, $type);
    redirige("listdos.php?parent={$parent}");