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/kersyal.fr/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/comimage/kersyal.fr/admin/users.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; ?>
</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>Administration</h1>';
		echo "<h2>[Gestion des users]</h2>";
		echo '<p style="text-align:right;padding:5px;">'.fenetrePopUp('pop.php?ad=add_user',450,400,'<u>+ ajouter un user</u>').'</p>';
	
		$total = $metier->executerRetourObjet($bdd,"SELECT COUNT(*) AS cpt FROM `".TABLE_ADMINISTRATION."`");
		$nombreDePages  = ceil($total->cpt / 20);
		$page = defautPage($_GET['page']);
		$premierElementsAafficher = ($page - 1) * 20;
		
		//---- PAGINATION RETOUR --------------
		if(is_null($page) OR $page <= 1){
			$num_retour = 0;
			$disabled = "disabled";
		}
		else{
			$num_retour = $page-1;
			$disabled = "";
		}
		//-------- BOUTON PAGINATION RETOUR --------------
		
		//---- PAGINATION AVANCER --------------
		if(is_null($page) OR $page == 0){
			$num_avancer = 1;
		}
		else{
			$num_avancer = $page+1;
		}
		//-------- BOUTON PAGINATION AVANCER --------------
	?>
		<table style="width:100%;border-top:1px solid grey;border-bottom:1px solid grey;">
			<tr>
				<td style="text-align:left;">
					<!-- PAGINATION RETOUR -->
					<form action="./users.php" method="get">
						<input type="hidden" name="page" value="<?php echo $num_retour; ?>"/>
						<input type="submit" value=" << retour " <?php echo $disabled;?>/>
					</form>
				</td>
				<td style="text-align:center;">Total (<strong><?php echo $total->cpt ;?></strong>) / page : (<strong><?php echo $page ;?></strong>)</td>
                <?php
                if($page != 1){
					if(($nombreDePages > 1 )AND ($nombreDePages <= $page)){
						$disabled = "disabled";
					}else{
						$disabled = "";
					}
				}else{
					if($nombreDePages > 1){
						$disabled = "";
					}else{
						$disabled = "disabled";
					}
				}
				?>
				<td style="text-align:right;">
					<!-- PAGINATION AVANCER -->
					<form action="./users.php" method="get">
						<input type="hidden" name="page" value="<?php echo $num_avancer; ?>"/>
						<input type="submit" value=" suivant >> " <?php echo $disabled;?>/>
					</form>
				</td>
			</tr>
		</table>
	<?php
		//liste des annonces
		echo '<table class="tableau">' ."\n".
			'<tr>' ."\n".
			'<th>Rèf</th>' ."\n".
			'<th>User</th>' ."\n".
			'<th>Date création</th>' ."\n".
			'<th style="width:600px;">Accés</th>' ."\n".
			'<th>Actions</th>' ."\n".
			'</tr>'."\n";
			
		//listing
		if($total->cpt > 0){
			echo $metier->listerComptesGestionDroitsAdmin($bdd,$premierElementsAafficher, 20);
		}
		else{
			echo '<tr>' ."\n".
					'<td colspan="5" style="padding-top:50px;padding-bottom:185px;text-align:center;font-size:16px;">Pas de résultat</td>'."\n" .
					'</tr>'."\n";
		}
		
		//fermer
		echo '</table>'."\n";
		echo '</div></div>';
	}
	else{
		echo loginAdmin();
	}
	?>
</div>
</body>
</html>

AnonSec - 2021