101 lines
4.1 KiB
PHP
Executable File
101 lines
4.1 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// -----------------------------------------------------
|
|
// Post generique
|
|
// -----------------------------------------------------
|
|
if ( isset($_POST['isHtml'])) {$isHtml=$_POST['isHtml'];}
|
|
|
|
// -----------------------------------------------------
|
|
// Post page
|
|
// -----------------------------------------------------
|
|
if ( isset($_SESSION['theIdPage']) && !empty($_SESSION['theIdPage']) ) $theIdPage=$_SESSION['theIdPage'] ;
|
|
if ( isset ($_GET['theIdPage']) && !empty($_GET['theIdPage']) ) $theIdPage=$_GET['theIdPage'];
|
|
if ( isset ($_POST['theIdPage']) && !empty($_POST['theIdPage']) ) $theIdPage=$_POST['theIdPage'];
|
|
$_SESSION['theIdPage'] = $theIdPage;
|
|
|
|
if ( isset($_SESSION['theNomPage']) && empty($_SESSION['theNomPage']) ) $theNomPage=$_SESSION['theNomPage'] ;
|
|
if ( isset ($_GET['theNomPage']) && !empty($_GET['theIdPage']) ) $theNomPage=$_GET['theNomPage'];
|
|
if ( isset ($_POST['theNomPage']) && !empty($_POST['theIdPage']) ) $theNomPage=$_POST['theNomPage'];
|
|
$_SESSION['theNomPage'] = $theNomPage;
|
|
|
|
if ( isset($_POST['theEmplacement'])) $theEmplacement=$_POST['theEmplacement'];
|
|
if ( isset($_POST['theFicPage'])) $theFicPage=$_POST['theFicPage'];
|
|
if ( isset($_POST['theDescPage'])) $theDescPage=$_POST['theDescPage'];
|
|
if ( isset($_POST['theTheme'])) $theTheme=$_POST['theTheme'];
|
|
if ( isset($_POST['activPage'])) $activPage=$_POST['activPage'];
|
|
|
|
// -----------------------------------------------------
|
|
// Post Item
|
|
// -----------------------------------------------------
|
|
if ( isset($_POST['propager'])) $propager=$_POST['propager'];
|
|
|
|
// assist est pas en DB
|
|
if ( isset($_POST['assist']) ) {
|
|
$assist=$_POST['assist'];$_SESSION['assist']=$assist;
|
|
}
|
|
else { $assist=2; $_SESSION['assist']=$assist;}
|
|
|
|
|
|
if ( isset($_GET['initCreaItem'])) $initCreaItem=$_GET['initCreaItem'];
|
|
if ( isset($_POST['initCreaItem'])) $initCreaItem=$_POST['initCreaItem'];
|
|
|
|
if ( isset($_SESSION['absolu'])) $absolu=$_SESSION['absolu'];
|
|
if ( isset($_POST['absolu'])) $absolu=$_POST['absolu'];
|
|
if ( isset($_POST['theIdItem'])) $theIdItem=$_POST['theIdItem'];
|
|
if ( isset($_POST['theNewIdItem'])) $theNewIdItem=$_POST['theNewIdItem'];
|
|
|
|
if (isset( $_SESSION['theItemNom']) && empty($theItemNom)) $theItemNom=$_SESSION['theItemNom'];
|
|
if ( isset($_POST['theItemNom'])) $theItemNom=$_POST['theItemNom'];
|
|
|
|
if ( isset($_POST['theMsg'])) $theMsg=$_POST['theMsg'];
|
|
if ( isset($_POST['theOrdre'])) $theOrdre=$_POST['theOrdre'];
|
|
|
|
if ( isset($_POST['theType'])) $theType=$_POST['theType'];
|
|
if ( isset($_POST['theFichier'])) $theFichier=$_POST['theFichier'];
|
|
if ( isset($_POST['theLien'])) $theLien=$_POST['theLien'];
|
|
if ( isset($_POST['theVoletCss'])) $theVoletCss=$_POST['theVoletCss'];
|
|
if ( isset($_POST['theClasse'])) $theClasse=$_POST['theClasse'];
|
|
if ( isset($_POST['theStyle'])) $theStyle=$_POST['theStyle'];
|
|
|
|
|
|
// -----------------------------------------------------
|
|
// Post
|
|
// -----------------------------------------------------
|
|
if (isset( $_SESSION['theLien']) && empty($theLien)) $theLien=$_SESSION['theLien'];
|
|
if (isset($_POST['theLien'])) $theLien=$_POST['theLien'];
|
|
|
|
// if ($propager==1 || $_SESSION['assist']==1) {
|
|
// $_SESSION['theOrdre']=$theOrdre;
|
|
// $_SESSION['theType']=$theType;
|
|
// $_SESSION['theFichier']=$theFichier;
|
|
// $_SESSION['theLien']=$theLien;
|
|
|
|
// $_SESSION['theClasse']=$theClasse;
|
|
// $_SESSION['theStyle']=$theStyle;
|
|
// }
|
|
|
|
// $jeViensDe='';
|
|
if (isset($_GET['jeViensDe'])) {$jeViensDe=$_GET['jeViensDe'];}
|
|
|
|
// -----------------------------------------------------
|
|
// Pour les appels depuis d'autres pages
|
|
// -----------------------------------------------------
|
|
switch ($jeViensDe) {
|
|
|
|
case "condtionsDV" :
|
|
$theIdPage=8; $jeViensDe='0';
|
|
if ($_SESSION['avEt4']==false ) $admMsg .= "Veuillez configurer vos conditions de vente pour activer cette étape";
|
|
break;
|
|
|
|
case "pdp" :
|
|
$theIdPage=4; $jeViensDe='0';
|
|
break;
|
|
|
|
case "news" :
|
|
$theIdPage=5; $jeViensDe='0';
|
|
break;
|
|
|
|
default:
|
|
break;
|
|
}
|
|
?>
|