AnonSec Team
Server IP : 10.111.40.2  /  Your IP : 216.73.217.145
Web Server : Apache
System : Linux webd002.cluster111.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : comimage ( 586)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/comimage/../comimage/baticlean.net/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/comimage/../comimage/baticlean.net/admin/diapo.php
<?php
require(dirname(__FILE__).'/../inc/tools/configuration.php');
?>
<!DOCTYPE html>
<html lang="<?php echo LANGUAGE; ?>">
<head>
    <title>Panneau d'administration</title>
	<meta name="description" content=""/>
	<meta name="keywords" content=""/>
	<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;" /> 
    <meta charset="UTF-8"/>
    
    <?php echo ADMIN_CSS; ?>
    <?php echo ADMIN_JQUERY; ?>
	<?php echo ADMIN_JAVASCRIPT; ?>
	<?php echo ROBOTS_NOFOLLOW; ?>
    <script type="text/javascript">
		function CocheTout(ref, name) {
			var form = ref;
		 
			while (form.parentNode && form.nodeName.toLowerCase() != 'form'){ 
				form = form.parentNode; 
			}
		 
			var elements = form.getElementsByTagName('input');
		 
			for (var i = 0; i < elements.length; i++) {
				if (elements[i].type == 'checkbox' && elements[i].name == name) {
					elements[i].checked = ref.checked;
				}
			}
		}
	</script>
</head>
<body>
<div id="admin">
	<?php
	if($_COOKIE['admin'] and $_COOKIE['admin'] == COOKIE_ADMIN){
		include("inc-menu.php");
		echo '<div class="admin-container"><div class="admin-inner">';
		echo '<h1>Panneau d\'administration</h1>';
		echo '<p style="text-align:right;padding:5px;"><a href="./diapo.php?do=add">+ ajouter une photo</a></p>';
		
		if($_GET['do'] == "mod" && is_numeric($_GET['id'])){
			echo "<h2>[modifier une photo]</h2>";
			include("inc-diapo-add.php");
		}
		elseif($_GET['do'] == "add"){
			echo "<h2>[ajouter une photo]</h2>";
			include("inc-diapo-add.php");
		}
		elseif($_GET['do'] == "del" && is_numeric($_GET['id'])){
			echo "<h2>[supprimer une photo]</h2>";
            $img = $metier->getTable($bdd,TABLE_DIAPO_ACCUEIL,"id", minuscule($_GET['id']));
            if($img->id > 0){
                $r1 = REPERTOIRE_IMAGE_ORIGINAL;
                $r2 = REPERTOIRE_IMAGE_REDIMENSIONNEE;
                $r3 = REPERTOIRE_IMAGE_MINIATURE;
                effacerPhoto($r1, $r2, $r3, $img->nom);
                $metier->deleteUnElement($bdd,TABLE_DIAPO_ACCUEIL,"id",minuscule($_GET['id']));
            }
			msg("Photo supprimée !", "ok");
			redirection(0,"diapo.php");
		}
		elseif($_GET['do'] == "delmedias" && $_GET['ids']){
			echo "<h2>[supprimer une photo]</h2>";
			$ids = $_GET['ids'];
			foreach($ids as $id){
				$img = $metier->getTable($bdd,TABLE_DIAPO_ACCUEIL,"id", minuscule($id));
				if($img->id > 0){
					$r1 = REPERTOIRE_IMAGE_ORIGINAL;
					$r2 = REPERTOIRE_IMAGE_REDIMENSIONNEE;
					$r3 = REPERTOIRE_IMAGE_MINIATURE;
					effacerPhoto($r1, $r2, $r3, $img->nom);
					$metier->deleteUnElement($bdd,TABLE_DIAPO_ACCUEIL,"id",minuscule($id));
				}
			}
			msg("Photos supprimées !", "ok");
			redirection(0,"diapo.php");
		}
		else{
			echo '<h2>[Toutes les photos]</h2>';
			include("inc-diapo.php");
		}
		echo '</div></div>';
	}
	else{
		echo loginAdmin();
	}
	?>
</div>
</body>
</html>

AnonSec - 2021