56 lines
1.2 KiB
PHP
Executable File
56 lines
1.2 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// gerer la profondeur entre creation et modif
|
|
if (!isset($niveau)) $niveau=1;
|
|
if ($niveau==0) $profondeur = "../";
|
|
if ($niveau==1) $profondeur = "../../";
|
|
if ($niveau==2) $profondeur = "../../../";
|
|
|
|
switch (strtolower($theNomPage)) {
|
|
case 'accueil':
|
|
$_SESSION['absolu']=1;
|
|
$target_dir =$profondeur. "Design/_pageAccueil/";
|
|
break;
|
|
|
|
case 'pieddepage':
|
|
case 'newsletter':
|
|
$_SESSION['absolu']=1;
|
|
$target_dir =$profondeur. "Design/_mails/";
|
|
break;
|
|
|
|
case 'pub 1':
|
|
case 'pub 2':
|
|
case 'pub 3':
|
|
case 'pub1':
|
|
case 'pub2':
|
|
case 'pub3':
|
|
$target_dir =$profondeur. "Design/pub/";
|
|
break;
|
|
|
|
case 'contactez-nous':
|
|
case 'menuContact':
|
|
case 'menu qui sommes nous':
|
|
case 'menuKisn':
|
|
case 'conditions de vente':
|
|
case 'menuCdv':
|
|
case 'menu mode de livraison':
|
|
case 'modeLiv':
|
|
case 'modePaie':
|
|
$target_dir =$profondeur. "Design/_menus/";
|
|
break;
|
|
|
|
default :
|
|
$target_dir =$profondeur. "Design/_images/";
|
|
break;
|
|
}
|
|
|
|
$targetExtension =['jpeg', 'jpg', 'png', 'svg', 'bmp', 'mp3','mp4','ogg','webM'];
|
|
$targetSize ='104857600'; //100M
|
|
$largeurMax = 0;
|
|
$hauteurMax = 0;
|
|
$largeurMin = 0;
|
|
$hauteurMin = 0;
|
|
|
|
include ($includePathAdmin. "/_fonctions/uploadGenerique.php");
|
|
?>
|