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/TEST/../MCPRO/entetes/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/TEST/../MCPRO/entetes/../cont.php
<?php
if (!empty($_POST))
define('FERMER',true);
include_once 'code/init.php';

print_header ();


// print_r($_GET);
if(isset($_GET['client_id']))
$client_id = @getGetValue('client_id');
if(isset($_GET['id']))
{
$contact_id = @getGetValue('id');
$contact = $contact_id ? dbi_fetch_row(dbi_query("SELECT * FROM contacts_2 WHERE contact_id = $contact_id")) : array() ;
// print_r($contact);
}
// echo " $agence ? $client_id";


	if(!empty($_POST['aad']))
	{
		// exit() ; exit() ; 
		// echo '<pre>';
// print_r($_POST);
// echo '</pre>';
if($_POST['recouvrement']== 'on')
{
	$recouvrement = "1" ; 
}

if($_POST['client_env_mail']== 'on')
{
	$client_env_mail = "1" ; 
}


// exit() ; 
	$client_id = @getPostValue('client_id');
	$contact_id = @getPostValue('contact_id');
	$nom = strtoupper(getPostValue('nom'));
	$prenom = strtoupper(getPostValue('prenom'));
	$fonction = strtoupper(getPostValue('fonction'));
	$tel1 = getPostValue('tel1');
	$tel2 = getPostValue('tel2');
	$mail = getPostValue('mail');
	if(empty($contact_id))
dbi_query ( "INSERT INTO contacts_2 ( contact_id ,	client_id ,	agence_id ,	nom ,	prenom ,	fonction ,	tel1 ,	tel2 ,	mail , recouvrement,client_env_mail ) 
	VALUES ('', '$client_id', '$agence', '$nom', '$prenom', '$fonction', '$tel1', '$tel2', '$mail', '$recouvrement','$client_env_mail')");
	else
	dbi_query ( "update contacts_2 SET nom="."'$nom'"." ,	prenom="."'$prenom'"." ,	fonction="."'$fonction'"." ,tel1="."'$tel1'"." ,tel2="."'$tel2'"." ,mail="."'$mail'"." ,recouvrement="."'$recouvrement'"." ,client_env_mail="."'$client_env_mail'"."WHERE  contact_id = $contact_id ");
	
	}
?>
<table>
<tr>
<td class="tdl">
<div id="frm" style="float:left;" >
<div id="sb" >
<form  method="post" action="" > 
<?php 
if(isset($_GET['action']) && $_GET['action'] == 'new')
   echo "<h3>Ajouter un Contact</h3>";
   else
   echo "<h3>Modifier un Contact</h3>";
?>
    

   <table>
   <tr>
   <input type="hidden" name="client_id" value="<?=$client_id?>">
   <input type="hidden" name="contact_id" value="<?=$contact_id?>">
<td class="tdl"><label for="nom" >Nom : </label></td>
<td colspan="3" class="tdl"><input type="text" name="nom" id="nom" value="<?=$contact['nom']?>" class="field required"   /></td>
   </tr>
   <tr>
<td class="tdl"><label for="login_username" >Prenom :</label></td>
<td colspan="3" class="tdl"><input type="text" name="prenom" id="prenom" value="<?=$contact['prenom']?>" class="field required" size="80" maxlength="200"  /></td>
   </tr>
   <tr>
<td class="tdl"><label for="login_username" >Fonction :</label></td>
<td colspan="3" class="tdl"><input type="text" name="fonction" id="fonction" value="<?=$contact['fonction']?>" class="field required" size="80" maxlength="200" /></td>
   </tr>   
    <tr>
<td class="tdl"><label for="login_username" >Tel1 :</label></td>
<td class="tdl"><input type="text" name="tel1" id="tel1" value="<?=$contact['tel1']?>" class="field required"  /></td>
<td class="tdl"><label for="login_username" >Tel2 :</label></td>
<td class="tdl"><input type="text" name="tel2" id="tel2" value="<?=$contact['tel2']?>" class="field required"  /></td>
   </tr>
   <tr>
<td class="tdl"><label for="login_username" >Mail :</label></td>
<td colspan="3" class="tdl"><input type="text" name="mail" id="mail" value="<?=$contact['mail']?>" class="field required" size="80" maxlength="200" /></td>
</tr>
<tr>
<td class="tdl"><label for="login_username" >Recouvrement :</label></td>
<td colspan="3" class="tdl"><input type="checkbox" name="recouvrement"<?=$contact['recouvrement'] ? ' checked="checked"' : '' ?>></td>
 
 </tr>   

<tr>
<td class="tdl"><label for="login_username" >FACTURE MAIL :</label></td>
<td colspan="3" class="tdl"><input type="checkbox" name="client_env_mail"<?=$contact['client_env_mail'] ? ' checked="checked"' : '' ?>></td>
 
 </tr>  
   <tr>
	   <td class="tdl"></td>
	   <td class="tdl"></td>
	   <td class="tdl" colspan="2"><input name="aad" type="submit" value="Valider" style="float:right;padding-top:0;" class="blubutton"  /></td>
	   
   </tr>
</table>  
</form>
</div>
</div>
</td>
</tr>
</table>



</body>
</html>

AnonSec - 2021