125 lines
4.2 KiB
PHP
Executable File
125 lines
4.2 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// -----------------------------------------------------
|
|
// Cartouche
|
|
// -----------------------------------------------------
|
|
// auteur : eric
|
|
// date maj : 22/03/2025
|
|
// fonction : Apres selection des items par l'utilisateur
|
|
// => creation d'un fichier dump // ou x fichiers dump
|
|
// => lancement d'un script mysql import sur db.prod
|
|
// => execution d'un script de copie des fichiers images ou css vers projet.prod
|
|
// => affichage utilisateur
|
|
|
|
// -----------------------------------------------------
|
|
// Etre admin
|
|
// -----------------------------------------------------
|
|
if (isset($_SESSION['isAdmin']) && $_SESSION['isAdmin']=='O' ) {
|
|
|
|
$publierAff=1;
|
|
global $bdd1;
|
|
global $bddProd;
|
|
global $idPdo;
|
|
global $idPdoProd;
|
|
global $tablesListe;
|
|
|
|
// Post
|
|
include ("publier.post.php");
|
|
|
|
// Debug
|
|
if (isset($debug[1]) && $debug[1] == '1') {include ("publier.debug.php");}
|
|
|
|
|
|
// -----------------------------------------------------
|
|
// Titre de la page
|
|
// -----------------------------------------------------
|
|
echo '<div id="zonePageWbm" >';
|
|
echo '<div id="zoneTitreWbm" >';
|
|
echo '<span id="resize" class="jsResize fad fa-arrow-circle-left" onClick="jsResize();"></span> ';
|
|
echo '<span class="titreWbm" >';
|
|
echo '<img border="0" valign="middle" align="center" src="' .$includeAdminDesign. '/maj.png" alt="publier" title="publier" /> ';
|
|
switch ($publierAff) {
|
|
// Exportation
|
|
case 1:
|
|
$wbmTitle="Publication vers le site public";
|
|
break;
|
|
|
|
// Importation
|
|
case 2:
|
|
$wbmTitle="Importation";
|
|
break;
|
|
|
|
default:
|
|
$wbmTitle="Publication vers le site public";
|
|
break;
|
|
}
|
|
echo '<span id="titrePagePublier">' .$wbmTitle. '</span>';
|
|
echo '</span>';
|
|
include($includePathAdmin. "/zoneMonCompte.php");
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Menu
|
|
// -----------------------------------------------------
|
|
echo '<div id="zoneMenuWbmContainer" style="height:auto" >';
|
|
echo '<div id="zoneMenuWbm" >';
|
|
require_once("publier.menu.php");
|
|
echo '</div>';
|
|
echo '</div>';
|
|
|
|
echo '<div id="zoneRechercheWbm">';
|
|
// -----------------------------------------------------
|
|
// Boite aide
|
|
// -----------------------------------------------------
|
|
echo '<div id="bandeauAideInfo" >';
|
|
if ($publierAff==1) {
|
|
echo '<span class="info-icon fad fa-info-circle" onMouseOver="openPopup(\'T\');" onMouseLeave="closePopup(\'T\');"></span>';
|
|
echo '<div id="popupInfoT" class="popup">';
|
|
echo '<div class="popup-content">';
|
|
echo '<span class="popup-close" onClick="closePopup(\'T\');">×</span>';
|
|
echo '<img src="./adminInclude/designAdmin/info.png" alt="Info" class="popup-icon" />';
|
|
echo '<p>Si vous êtes satisfaits de la prévisualisation publiez vers le site public vos modifications : cela va mettre à jour le site public à partir du site de test. <br><br>Assurez-vous d\'avoir positionné vos moyens de paiement et de livraison en environnement de production.</p>';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
}
|
|
echo '</div>';
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Afficher details selon
|
|
// -----------------------------------------------------
|
|
echo '<div id="zoneFormWbm" style="grid-template-columns:10% *" >';
|
|
switch ($publierAff) {
|
|
// Exportation
|
|
case 1:
|
|
$src="./publier/export.php";
|
|
break;
|
|
|
|
// Importation
|
|
case 2:
|
|
$src="./publier/import.php";
|
|
break;
|
|
|
|
default:
|
|
$src="./publier/export.php";
|
|
break;
|
|
}
|
|
include ($src);
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Afficher messages webmaster
|
|
// -----------------------------------------------------
|
|
if (!empty($admMsg) || !empty($debugMsg) ) {
|
|
echo '<div id="zoneMsgWbm">';
|
|
include ($includePathAdmin. "/adminMsg.php");
|
|
echo '</div>'; //zoneMsg
|
|
}
|
|
|
|
echo '</div>';
|
|
}
|
|
else {
|
|
$confPath="../_conf";
|
|
include ("./adminInclude/redirectionAdmin.php");
|
|
}
|
|
?>
|