AnonSec Team
Server IP : 10.128.40.6  /  Your IP : 216.73.216.233
Web Server : Apache
System : Linux webd006.cluster128.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 : logmcpe ( 111175)
PHP Version : 7.3.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/logmcpe/www/MC/temp/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/MC/temp/../gereagence.php
<?php
include_once 'code/init.php' ;



if(!empty($_POST['nom_agence'])) {
	$sql = "INSERT INTO ".TABLE_BURO." (agence_id, nom_agence) 
	VALUES (
	'".$agence."', '".($_POST['nom_agence'])."')";
	dbi_query ( $sql );
} else if (!empty($_GET['action']) && $_GET['action']=='sup') {
	dbi_query("DELETE FROM ".TABLE_BURO." WHERE  id_bureau='".(int)$_GET['id_bureau']."' LIMIT 1");
}


print_header();

//list($cles_nb)=dbi_fetch_row(dbi_query("SELECT cles_nb FROM ".TABLE_INTERDI." WHERE agence_id='".(int)$agence."' AND client_id='".(int)$client_id."' ORDER BY cles_date DESC LIMIT 1"));
//list($cles_nb_telecommande)=dbi_fetch_row(dbi_query("SELECT cles_nb_telecommande FROM ".TABLE_INTERDI." WHERE agence_id='".(int)$agence."' AND client_id='".(int)$client_id."' ORDER BY cles_date DESC LIMIT 1"));
?>
<table width="300" border="0" cellpadding="0" cellspacing="0" class="td_normal" style="margin-top:10px">
    <tr>
      <td width="170" align="left" valign="top" class="td_listing1b">Nom Agence</td>
	  <td width="170" align="left" valign="top" class="td_listing1b">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gere</td>
	</tr>
    <tr>
<?
$q = dbi_query("SELECT * FROM ".TABLE_BURO." WHERE  agence_id='".$agence."' ") ;
	while ($abs = dbi_fetch_row($q))
	{
		if (!($compteur % 2)) $style='td_listing0';
		else $style='td_listing1';
?>
    <tr>
     <td align="left" valign="top" class="td_listing1"><A ><?=ucwords($abs['nom_agence'])?></A></td>	
 <td align="left" valign="top" class="td_listing1"><A /><b>
<a href="gereagence.php?action=sup&id_bureau=<?=$abs['id_bureau']?>" onclick="return warning();">Supprimer</a></td>

	     </tr>
    <?php
	}
?>
	
          </tr>
		  <tr>
	<body>
        
    </body>
		  </tr>
  </table>
<form method="post" action="gereagence.php?">
<table>

<p>
<tr>
<td><h3>Nom Agence : </td>
<td><input type="text" name="nom_agence" id="nom" value="" size="20" /></td>
</tr>
</table>
<p><input type="submit" value="Enregistrer" /></p>
<input type="hidden" name="MM_insert" value="form1" />
</form>
</body></html>

AnonSec - 2021