Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* COPYRIGHT 2008-2016 - BENOIT MAIRE - TOUS DROITS RESERVES * CE LOGICIEL EST UN..

Decoded Output download

<?php 
/* COPYRIGHT 2008-2016 - BENOIT MAIRE - TOUS DROITS RESERVES 
 * CE LOGICIEL EST UN LOGICIEL PROPRIETAIRE.  
 * VOUS N'AVEZ PAS LE DROIT DE MODIFIER CE CODE. 
 * VOUS N'AVEZ PAS LE DROIT DE COPIER CE CODE. 
 */ 	 
/* COPYRIGHT 2008-2016 - BENOIT MAIRE - ALL RIGHTS RESERVED 
 * THIS SOFTWARE IS PROPRIETARY.  
 * YOU ARE NOT ALLOWED TO MODIFY THIS CODE. 
 * YOU ARE NOT ALLOWED TO COPY THIS CODE. 
 */ 	 
?> 
<?php 
require_once('Common.php');  
class apropos extends common  
{  
function displayHtml()  
{  
?> 
 
<div style="font-size: 12px; font-family: verdana,helvetica; width:700px"> 
<br> 
<span align="left" style="position: relative;" class="titre0">A propos de <?php echo $GLOBALS['$ditrib_nom_logiciel']; ?></span><br><br> 
<div class="normal"> 
Copyright (c) 2008-2016 &nbsp;&nbsp;Benoit Maire - Tous droits rservs<br><br> 
</div> 
<span align="left" style="position: relative;" class="titre2">Version</span><br><br> 
<div class="normal"> 
<?php 
 $this->mysqlConnect();  
$vb4a88417 = mysql_query("update `variables` SET last_indice = 0 where id=1;");  
$vb4a88417 = mysql_query("update `variables` SET last_sauv_internet = 0 where id=1;");  
$v702663d5 = (isset($_POST['version_maj'])) ? '' : $GLOBALS['version'] ;  
$v8b09fc98 = "update variables set version='$v702663d5' WHERE id=1";  
$v1804956a = mysql_query($v8b09fc98);  
$v8b09fc98 = "select * from variables WHERE id=1 LIMIT 1";  
$v1804956a = mysql_query($v8b09fc98);  
$ve674db5d = mysql_fetch_assoc($v1804956a);  
$v96b8c78d = $ve674db5d['stamp'] ;  
$v9e3669d1 = ($v96b8c78d == 0) ? $GLOBALS['$ditrib_gratuite'] : $GLOBALS['$ditrib_illim'] ;  
if (($v96b8c78d != '') && ($v96b8c78d != '0') && (( $v96b8c78d < 1271000000 ) || ($v96b8c78d > 7000000000) )) {$v9e3669d1 = $GLOBALS['$ditrib_multi'] ;}  
if ($v96b8c78d > 8300000000) {$v9e3669d1 = $GLOBALS['$ditrib_grc'] ;}  
echo $GLOBALS['$ditrib_nom_logiciel'].' version '.$v9e3669d1.' '.$v702663d5;  
$v1739f7c0 = $ve674db5d['abo'] ;  
if ($v1739f7c0 != '0') {  
if ($_SESSION['perime']) {  
echo '<br><br>Abonnement prim depuis le ';  
} else {  
$this->maj_auto();  
echo '<br>Abonnement actif jusqu\'au ';  
}  
$va3852758 = ($GLOBALS['$ditrib_mode'] == 'logiciel') ? 380 : 365 ;  
$v7082a74b = $v1739f7c0 + $va3852758 * 24 * 3600 ;  
echo date($GLOBALS['dateformat_d_m_Y'], $v7082a74b).'.';  
}  
?> 
<br><br></div> 
<?php 
if ($v9e3669d1 != $GLOBALS['$ditrib_gratuite'])  
{  
?> 
<span align="left" style="position: relative;" class="titre2">Contact</span><br><br> 
<div class="normal"> 
Vos remarques et suggestions sont les bienvenues !<br><br> 
<strong>Avant d'envoyer une question sur le logiciel, merci de consulter <a href="aide.php">la page d'aide</a></strong><br><br> 
Contactez-nous via 
<?php	if ($GLOBALS['$ditrib_os'] == 'windows') { ?> 
		   <a href="?redir=f" >le forum</a> 
<?php  } else { ?> 
		  <a href="<?php echo $GLOBALS['$ditrib_url_forum'] ; ?>" target="_blank">le forum</a> 
<?php  } ?> 
 
<?php if (($GLOBALS['global_stamp'])&&($GLOBALS['$ditrib_distrib'] == 'Rocher Digital')) { echo " ou par email <a href='mailto:". $GLOBALS['$ditrib_email'] ."?subject=Logiciel ".$GLOBALS['$ditrib_nom_logiciel']."'>". $GLOBALS['$ditrib_email']. "</a>"; }?> 
<br><br> 
Pour un support efficace, indiquez dans votre question : une description dtaille du problme rencontr, la version du logiciel utilise, votre systme d'exploitation, et si possible une copie d'cran du problme rencontr. 
</div><br> 
<?php 
if ($GLOBALS['distrib_url_recup']) {  
echo smart_link('Pour rcuprer une sauvegarde internet cliquez sur ce lien et suivez la procdure.',$GLOBALS['distrib_url_recup'],'recup').'<br><br>';  
}  
}  
?> 
 
<?php	if (($GLOBALS['$ditrib_mode'] <> 'hosting')&&(!$GLOBALS['demo'] )) { ?> 
<div class="titre2">Configurations supportes</div><br> 
<div class="normal" ><table border="2" cellpadding="3"> 
  <tr> 
    <td width="200" align="center" ><strong>Systme d'exploitation</strong></td> 
  </tr> 
  <tr> 
    <td align="center" >Windows 10<br>Windows 8<br>Windows 7<br>Windows Vista<br><br>Macintosh MAC OSX</td> 
  </tr> 
</table> 
</div> 
<br><br> 
<form action="apropos.php?repair=1" method="post" > 
    <input type="submit" value="Rparer la base de donnes" ><br>( utiliser si le logiciel vous indique un message d'erreur) 
</form> 
<?php	} ?> 
 
 
<br> 
</div> 
 
<?php 
 }  
function apropos()  
{  
$this->mysqlConnect();  
if (isset($_GET['start'])) {  
$this->displayHeaderBlank();  
$this->maj_auto();  
$this->displayFooterBlank();  
} else {  
$this->displayHeaderHtml();  
$this->displayHtml();  
$this->displayFooterHtml();  
}  
}  
function maj_auto()  
{  
if (($GLOBALS['$ditrib_mode'] <> 'hosting')&&(!$GLOBALS['demo'] )) {  
$vfd070eca = $GLOBALS['version'] ;  
$v78b97d0b = '<input type="submit" name="etape"  value="Vrifier les mises  jour">';  
echo '<br><br><form action="" method="post" >';  
if (isset($_GET['start'])) echo "<table border=1 cellpadding=10 style='border-collapse: collapse; width:198px; background:#EEE; ' ><tr><td style='font-family: Verdana;font-size: 12px;'>";  
$v816e11d0 = isset($_GET['etape']) ? $_GET['etape'] : $_POST['etape'];  
if (($v816e11d0=="")&&(isset($_GET['start']))) {  
echo "<b>Vrification des mises  jour</b><br><br><br>";  
$v816e11d0 = "verif_auto";  
}  
if (($_POST['etape']=='Mettre  jour')&&(isset($_GET['base']))) {  
echo "<b>Vrification des mises  jour</b><br><br><br>";  
$v816e11d0 = "Mettre  jour";  
}  
switch ($v816e11d0) {  
case "Mettre  jour":  
if ($_SERVER['DOCUMENT_ROOT'] == 'D:/IMS/ImmobilierLoyer/rocherdigital/htdocs') {  
echo 'Evitons de dgommer le code !';  
} else {  
$v634f9516 = $_POST['debug'] ;  
if (isset($_GET['start'])) echo "<b>Mise  jour automatique</b><br><br><br>";  
echo ' - Dmarrage de la mise  jour...<br>';  
$v5429319c = 0 ;  
$vac5c74b6 = explode ( ";", $_POST['sql'] );  
foreach ( $vac5c74b6 AS $v1b1cc7f0 ) {  
$v1b1cc7f0 = stripslashes(html_entity_decode($v1b1cc7f0,ENT_COMPAT,"UTF-8")) ;  
if ((trim($v1b1cc7f0)!='')){  
$vb4a88417 = mysql_query($v1b1cc7f0);  
if (!$vb4a88417) {  
$v5429319c++;  
if ($v634f9516) echo $v1b1cc7f0.'<br><br>';  
}  
}  
}  
if ($v5429319c) {  
$v667da56c = $v5429319c ." erreur(s) lors de la mise  jour de la base de donnes. ";  
} else {  
echo ' - Mise  jour de la base de donnes...<br>';  
}  
$v720a494d = $_POST['url_zip'] ;  
$v1df1429e = $_POST['url_distrib'] ;  
$v11096495 = $_POST['version_maj'] ;  
$v9623497a = $_POST['add_to_distrib'] ;  
$vff5b8020 = $_POST['nb_zip'] ;  
if ($v11096495 !='') {  
$v5ae22535 = $this->unzip($v720a494d);  
echo " - Copie de $v5ae22535 fichier(s)...<br>";  
if ($vff5b8020 != $v5ae22535) {  
}  
if (($v1df1429e == '') || ($v1df1429e == 'pas_de_modif')) {  
$v9322fe07 = 'php/distrib.php';  
$v39b01133 = file_get_contents($v9322fe07);  
$v39b01133 = str_replace($vfd070eca,$v11096495,$v39b01133,$v9b207167);  
file_put_contents($v9322fe07,$v39b01133);  
} else {  
$v9b207167 = copy($GLOBALS['http_s'].'://'.$v1df1429e, 'php/distrib.php' );  
}  
$v8b09fc98 = "update variables set version='$v11096495' WHERE id=1";  
$v1804956a = mysql_query($v8b09fc98);  
if ($v9b207167) {  
echo ' - Mise  jour de la version...<br>';  
} else {  
$v667da56c .= "Erreur lors de la mise  jour de la version. ";  
}  
if ($v667da56c) {  
$vce11ea44 = "erreur" ;  
$this->affich_message($v667da56c,$vce11ea44 );  
} else {  
$vce11ea44 = "ok" ;  
$vf33f45bd = 'Le logiciel a t mis  jour en version '. $v11096495;  
$this->affich_message($vf33f45bd,$vce11ea44 );  
}  
} else {  
$v667da56c = "Erreur lors de la mise  jour : problme de version. ";  
$vce11ea44 = "erreur" ;  
$this->affich_message($vf33f45bd,$vce11ea44 );  
}  
}  
break;  
case "Vrifier les mises  jour":  
case "verif_auto":  
$v06aa6fa8 = @fsockopen("www.immobilierloyer.com", 80, $v70106d0d, $v809b1abe, 30);  
if ($v06aa6fa8) {  
fclose($v06aa6fa8);  
$vfd070eca = (isset($_GET['base'])) ? urlencode($_GET['base']) : urlencode($vfd070eca);  
$v33c89759 = urlencode(str_replace (" ", "", $GLOBALS['$ditrib_distrib'])) ;  
$v365f9394 = $GLOBALS['grc'] ;  
$vab348700 = $GLOBALS['compte'] ;  
$v96b8c78d = $GLOBALS['global_stamp'] ;  
$vd1fc8eaf = file_get_contents($GLOBALS['http_s']."://www.immobilierloyer.com/6maj/maj_auto.php?version_actuelle=$vfd070eca&distrib=$v33c89759&grc=$v365f9394&stamp=$v96b8c78d&compte=$vab348700");  
if ($vd1fc8eaf) {  
echo $vd1fc8eaf;  
} else {  
$v667da56c = "Erreur lors de la connexion au serveur. Vrifiez votre connexion Internet ou votre pare-feu.";  
$_SESSION['http_s'] = 'http' ;  
echo $v78b97d0b ;  
}  
} else {  
$v667da56c = "Impossible de se connecter au serveur. Vrifiez votre connexion Internet.";  
echo $v78b97d0b ;  
}  
if ($v667da56c) {  
$vce11ea44 = "erreur" ;  
$this->affich_message($v667da56c,$vce11ea44 );  
}  
break;  
default:  
echo $v78b97d0b ;  
}  
if ($v667da56c) $v667da56c = "<br><br><img src='images/icons/exclamation.png'><br><br><span style='color:red;'><b>".$v667da56c."</b></span><br>";  
if ($vf33f45bd) $vf33f45bd = "<br><br><img src='images/icons/accept.png'><br><br><span style='color:green;'><b>".$vf33f45bd."</b></span><br>";  
if ($vd1fc8eaf) {  
$vf33f45bd = (strpos($vd1fc8eaf, '<input')!== false) ? "<br><br><img src='images/icons/information.png'>" : "<br><br><img src='images/icons/accept.png'>" ;  
}  
if (isset($_GET['start'])) echo $v667da56c.$vf33f45bd."<br>&nbsp;</td></tr></table>";  
echo '</form>';  
} else {  
echo '<br>';  
}  
}  
function unzip($v572d4e42){  
$v8c7dd922 = 'temp_zip.zip' ;  
$v9c59153d = 0 ;  
copy($GLOBALS['http_s'].'://'.$v572d4e42, $v8c7dd922 );  
$vadcdbd79 = zip_open(realpath(".").DIRECTORY_SEPARATOR.$v8c7dd922);  
if(is_resource($vadcdbd79)){  
$ve1671797='';  
while($vb6e43960=zip_read($vadcdbd79)) {  
$vc953b9e5=dirname(zip_entry_name($vb6e43960));  
$v4b35b437=zip_entry_name($vb6e43960);  
if(!zip_entry_open($vadcdbd79,$vb6e43960,"r")) {$ve1671797.="Unable to proccess file '{$v4b35b437}'";continue;}  
if(!is_dir($vc953b9e5)) $this->mkdirr($vc953b9e5,0777);  
$v8634f28a=zip_entry_filesize($vb6e43960);  
if(empty($v8634f28a)) continue;  
$v25ed1bcb=zip_entry_read($vb6e43960,$v8634f28a);  
$vfbade9e3=fopen($v4b35b437,"w");  
$vb4a88417 = fwrite($vfbade9e3,$v25ed1bcb);  
if ($vb4a88417) $v9c59153d++;  
fclose($vfbade9e3);  
zip_entry_close($vb6e43960);  
}  
zip_close($vadcdbd79);  
} else {  
}  
return $v9c59153d;  
}  
function mkdirr($vded0804c,$v15d61712=null) {  
if(is_dir($vded0804c)||empty($vded0804c)) return true;  
$vded0804c=str_replace(array('/', ''),DIRECTORY_SEPARATOR,$vded0804c);  
if(is_file($vded0804c)) {trigger_error('mkdirr() File exists', E_USER_WARNING);return false;}  
$v6a91eccf=substr($vded0804c,0,strrpos($vded0804c,DIRECTORY_SEPARATOR));  
if($this->mkdirr($v6a91eccf,$v15d61712)) {if(!file_exists($vded0804c)) {return mkdir($vded0804c,$v15d61712);} }  
return false;  
}  
function zipFileErrMsg($v70106d0d) {  
$vbc536699 = array(  
'ZIPARCHIVE::ER_MULTIDISK' => 'Multi-disk zip archives not supported.',  
'ZIPARCHIVE::ER_RENAME' => 'Renaming temporary file failed.',  
'ZIPARCHIVE::ER_CLOSE' => 'Closing zip archive failed',  
'ZIPARCHIVE::ER_SEEK' => 'Seek error',  
'ZIPARCHIVE::ER_READ' => 'Read error',  
'ZIPARCHIVE::ER_WRITE' => 'Write error',  
'ZIPARCHIVE::ER_CRC' => 'CRC error',  
'ZIPARCHIVE::ER_ZIPCLOSED' => 'Containing zip archive was closed',  
'ZIPARCHIVE::ER_NOENT' => 'No such file.',  
'ZIPARCHIVE::ER_EXISTS' => 'File already exists',  
'ZIPARCHIVE::ER_OPEN' => 'Can\'t open file',  
'ZIPARCHIVE::ER_TMPOPEN' => 'Failure to create temporary file.',  
'ZIPARCHIVE::ER_ZLIB' => 'Zlib error',  
'ZIPARCHIVE::ER_MEMORY' => 'Memory allocation failure',  
'ZIPARCHIVE::ER_CHANGED' => 'Entry has been changed',  
'ZIPARCHIVE::ER_COMPNOTSUPP' => 'Compression method not supported.',  
'ZIPARCHIVE::ER_EOF' => 'Premature EOF',  
'ZIPARCHIVE::ER_INVAL' => 'Invalid argument',  
'ZIPARCHIVE::ER_NOZIP' => 'Not a zip archive',  
'ZIPARCHIVE::ER_INTERNAL' => 'Internal error',  
'ZIPARCHIVE::ER_INCONS' => 'Zip archive inconsistent',  
'ZIPARCHIVE::ER_REMOVE' => 'Can\'t remove file',  
'ZIPARCHIVE::ER_DELETED' => 'Entry has been deleted',  
);  
$vc5591d1a = 'unknown';  
foreach ($vbc536699 as $v447589fd => $vd83a5a80) {  
if (defined($v447589fd) and constant($v447589fd) === $v70106d0d) {  
return 'Zip File Function error: '.$vd83a5a80;  
}  
}  
return 'Zip File Function error: unknown';  
}  
}  
$v099fc18a = new apropos();  
?>

Did this file decode correctly?

Original Code

<?php
/* COPYRIGHT 2008-2016 - BENOIT MAIRE - TOUS DROITS RESERVES
 * CE LOGICIEL EST UN LOGICIEL PROPRIETAIRE. 
 * VOUS N'AVEZ PAS LE DROIT DE MODIFIER CE CODE.
 * VOUS N'AVEZ PAS LE DROIT DE COPIER CE CODE.
 */ 	
/* COPYRIGHT 2008-2016 - BENOIT MAIRE - ALL RIGHTS RESERVED
 * THIS SOFTWARE IS PROPRIETARY. 
 * YOU ARE NOT ALLOWED TO MODIFY THIS CODE.
 * YOU ARE NOT ALLOWED TO COPY THIS CODE.
 */ 	
?>
<?php
require_once('Common.php'); 
class apropos extends common 
{ 
function displayHtml() 
{ 
?>

<div style="font-size: 12px; font-family: verdana,helvetica; width:700px">
<br>
<span align="left" style="position: relative;" class="titre0">A propos de <?php echo $GLOBALS['$ditrib_nom_logiciel']; ?></span><br><br>
<div class="normal">
Copyright (c) 2008-2016 &nbsp;&nbsp;Benoit Maire - Tous droits rservs<br><br>
</div>
<span align="left" style="position: relative;" class="titre2">Version</span><br><br>
<div class="normal">
<?php
 $this->mysqlConnect(); 
$vb4a88417 = mysql_query("update `variables` SET last_indice = 0 where id=1;"); 
$vb4a88417 = mysql_query("update `variables` SET last_sauv_internet = 0 where id=1;"); 
$v702663d5 = (isset($_POST['version_maj'])) ? '' : $GLOBALS['version'] ; 
$v8b09fc98 = "update variables set version='$v702663d5' WHERE id=1"; 
$v1804956a = mysql_query($v8b09fc98); 
$v8b09fc98 = "select * from variables WHERE id=1 LIMIT 1"; 
$v1804956a = mysql_query($v8b09fc98); 
$ve674db5d = mysql_fetch_assoc($v1804956a); 
$v96b8c78d = $ve674db5d['stamp'] ; 
$v9e3669d1 = ($v96b8c78d == 0) ? $GLOBALS['$ditrib_gratuite'] : $GLOBALS['$ditrib_illim'] ; 
if (($v96b8c78d != '') && ($v96b8c78d != '0') && (( $v96b8c78d < 1271000000 ) || ($v96b8c78d > 7000000000) )) {$v9e3669d1 = $GLOBALS['$ditrib_multi'] ;} 
if ($v96b8c78d > 8300000000) {$v9e3669d1 = $GLOBALS['$ditrib_grc'] ;} 
echo $GLOBALS['$ditrib_nom_logiciel'].' version '.$v9e3669d1.' '.$v702663d5; 
$v1739f7c0 = $ve674db5d['abo'] ; 
if ($v1739f7c0 != '0') { 
if ($_SESSION['perime']) { 
echo '<br><br>Abonnement prim depuis le '; 
} else { 
$this->maj_auto(); 
echo '<br>Abonnement actif jusqu\'au '; 
} 
$va3852758 = ($GLOBALS['$ditrib_mode'] == 'logiciel') ? 380 : 365 ; 
$v7082a74b = $v1739f7c0 + $va3852758 * 24 * 3600 ; 
echo date($GLOBALS['dateformat_d_m_Y'], $v7082a74b).'.'; 
} 
?>
<br><br></div>
<?php
if ($v9e3669d1 != $GLOBALS['$ditrib_gratuite']) 
{ 
?>
<span align="left" style="position: relative;" class="titre2">Contact</span><br><br>
<div class="normal">
Vos remarques et suggestions sont les bienvenues !<br><br>
<strong>Avant d'envoyer une question sur le logiciel, merci de consulter <a href="aide.php">la page d'aide</a></strong><br><br>
Contactez-nous via
<?php	if ($GLOBALS['$ditrib_os'] == 'windows') { ?>
		   <a href="?redir=f" >le forum</a>
<?php  } else { ?>
		  <a href="<?php echo $GLOBALS['$ditrib_url_forum'] ; ?>" target="_blank">le forum</a>
<?php  } ?>

<?php if (($GLOBALS['global_stamp'])&&($GLOBALS['$ditrib_distrib'] == 'Rocher Digital')) { echo " ou par email <a href='mailto:". $GLOBALS['$ditrib_email'] ."?subject=Logiciel ".$GLOBALS['$ditrib_nom_logiciel']."'>". $GLOBALS['$ditrib_email']. "</a>"; }?>
<br><br>
Pour un support efficace, indiquez dans votre question : une description dtaille du problme rencontr, la version du logiciel utilise, votre systme d'exploitation, et si possible une copie d'cran du problme rencontr.
</div><br>
<?php
if ($GLOBALS['distrib_url_recup']) { 
echo smart_link('Pour rcuprer une sauvegarde internet cliquez sur ce lien et suivez la procdure.',$GLOBALS['distrib_url_recup'],'recup').'<br><br>'; 
} 
} 
?>

<?php	if (($GLOBALS['$ditrib_mode'] <> 'hosting')&&(!$GLOBALS['demo'] )) { ?>
<div class="titre2">Configurations supportes</div><br>
<div class="normal" ><table border="2" cellpadding="3">
  <tr>
    <td width="200" align="center" ><strong>Systme d'exploitation</strong></td>
  </tr>
  <tr>
    <td align="center" >Windows 10<br>Windows 8<br>Windows 7<br>Windows Vista<br><br>Macintosh MAC OSX</td>
  </tr>
</table>
</div>
<br><br>
<form action="apropos.php?repair=1" method="post" >
    <input type="submit" value="Rparer la base de donnes" ><br>( utiliser si le logiciel vous indique un message d'erreur)
</form>
<?php	} ?>


<br>
</div>

<?php
 } 
function apropos() 
{ 
$this->mysqlConnect(); 
if (isset($_GET['start'])) { 
$this->displayHeaderBlank(); 
$this->maj_auto(); 
$this->displayFooterBlank(); 
} else { 
$this->displayHeaderHtml(); 
$this->displayHtml(); 
$this->displayFooterHtml(); 
} 
} 
function maj_auto() 
{ 
if (($GLOBALS['$ditrib_mode'] <> 'hosting')&&(!$GLOBALS['demo'] )) { 
$vfd070eca = $GLOBALS['version'] ; 
$v78b97d0b = '<input type="submit" name="etape"  value="Vrifier les mises  jour">'; 
echo '<br><br><form action="" method="post" >'; 
if (isset($_GET['start'])) echo "<table border=1 cellpadding=10 style='border-collapse: collapse; width:198px; background:#EEE; ' ><tr><td style='font-family: Verdana;font-size: 12px;'>"; 
$v816e11d0 = isset($_GET['etape']) ? $_GET['etape'] : $_POST['etape']; 
if (($v816e11d0=="")&&(isset($_GET['start']))) { 
echo "<b>Vrification des mises  jour</b><br><br><br>"; 
$v816e11d0 = "verif_auto"; 
} 
if (($_POST['etape']=='Mettre  jour')&&(isset($_GET['base']))) { 
echo "<b>Vrification des mises  jour</b><br><br><br>"; 
$v816e11d0 = "Mettre  jour"; 
} 
switch ($v816e11d0) { 
case "Mettre  jour": 
if ($_SERVER['DOCUMENT_ROOT'] == 'D:/IMS/ImmobilierLoyer/rocherdigital/htdocs') { 
echo 'Evitons de dgommer le code !'; 
} else { 
$v634f9516 = $_POST['debug'] ; 
if (isset($_GET['start'])) echo "<b>Mise  jour automatique</b><br><br><br>"; 
echo ' - Dmarrage de la mise  jour...<br>'; 
$v5429319c = 0 ; 
$vac5c74b6 = explode ( ";", $_POST['sql'] ); 
foreach ( $vac5c74b6 AS $v1b1cc7f0 ) { 
$v1b1cc7f0 = stripslashes(html_entity_decode($v1b1cc7f0,ENT_COMPAT,"UTF-8")) ; 
if ((trim($v1b1cc7f0)!='')){ 
$vb4a88417 = mysql_query($v1b1cc7f0); 
if (!$vb4a88417) { 
$v5429319c++; 
if ($v634f9516) echo $v1b1cc7f0.'<br><br>'; 
} 
} 
} 
if ($v5429319c) { 
$v667da56c = $v5429319c ." erreur(s) lors de la mise  jour de la base de donnes. "; 
} else { 
echo ' - Mise  jour de la base de donnes...<br>'; 
} 
$v720a494d = $_POST['url_zip'] ; 
$v1df1429e = $_POST['url_distrib'] ; 
$v11096495 = $_POST['version_maj'] ; 
$v9623497a = $_POST['add_to_distrib'] ; 
$vff5b8020 = $_POST['nb_zip'] ; 
if ($v11096495 !='') { 
$v5ae22535 = $this->unzip($v720a494d); 
echo " - Copie de $v5ae22535 fichier(s)...<br>"; 
if ($vff5b8020 != $v5ae22535) { 
} 
if (($v1df1429e == '') || ($v1df1429e == 'pas_de_modif')) { 
$v9322fe07 = 'php/distrib.php'; 
$v39b01133 = file_get_contents($v9322fe07); 
$v39b01133 = str_replace($vfd070eca,$v11096495,$v39b01133,$v9b207167); 
file_put_contents($v9322fe07,$v39b01133); 
} else { 
$v9b207167 = copy($GLOBALS['http_s'].'://'.$v1df1429e, 'php/distrib.php' ); 
} 
$v8b09fc98 = "update variables set version='$v11096495' WHERE id=1"; 
$v1804956a = mysql_query($v8b09fc98); 
if ($v9b207167) { 
echo ' - Mise  jour de la version...<br>'; 
} else { 
$v667da56c .= "Erreur lors de la mise  jour de la version. "; 
} 
if ($v667da56c) { 
$vce11ea44 = "erreur" ; 
$this->affich_message($v667da56c,$vce11ea44 ); 
} else { 
$vce11ea44 = "ok" ; 
$vf33f45bd = 'Le logiciel a t mis  jour en version '. $v11096495; 
$this->affich_message($vf33f45bd,$vce11ea44 ); 
} 
} else { 
$v667da56c = "Erreur lors de la mise  jour : problme de version. "; 
$vce11ea44 = "erreur" ; 
$this->affich_message($vf33f45bd,$vce11ea44 ); 
} 
} 
break; 
case "Vrifier les mises  jour": 
case "verif_auto": 
$v06aa6fa8 = @fsockopen("www.immobilierloyer.com", 80, $v70106d0d, $v809b1abe, 30); 
if ($v06aa6fa8) { 
fclose($v06aa6fa8); 
$vfd070eca = (isset($_GET['base'])) ? urlencode($_GET['base']) : urlencode($vfd070eca); 
$v33c89759 = urlencode(str_replace (" ", "", $GLOBALS['$ditrib_distrib'])) ; 
$v365f9394 = $GLOBALS['grc'] ; 
$vab348700 = $GLOBALS['compte'] ; 
$v96b8c78d = $GLOBALS['global_stamp'] ; 
$vd1fc8eaf = file_get_contents($GLOBALS['http_s']."://www.immobilierloyer.com/6maj/maj_auto.php?version_actuelle=$vfd070eca&distrib=$v33c89759&grc=$v365f9394&stamp=$v96b8c78d&compte=$vab348700"); 
if ($vd1fc8eaf) { 
echo $vd1fc8eaf; 
} else { 
$v667da56c = "Erreur lors de la connexion au serveur. Vrifiez votre connexion Internet ou votre pare-feu."; 
$_SESSION['http_s'] = 'http' ; 
echo $v78b97d0b ; 
} 
} else { 
$v667da56c = "Impossible de se connecter au serveur. Vrifiez votre connexion Internet."; 
echo $v78b97d0b ; 
} 
if ($v667da56c) { 
$vce11ea44 = "erreur" ; 
$this->affich_message($v667da56c,$vce11ea44 ); 
} 
break; 
default: 
echo $v78b97d0b ; 
} 
if ($v667da56c) $v667da56c = "<br><br><img src='images/icons/exclamation.png'><br><br><span style='color:red;'><b>".$v667da56c."</b></span><br>"; 
if ($vf33f45bd) $vf33f45bd = "<br><br><img src='images/icons/accept.png'><br><br><span style='color:green;'><b>".$vf33f45bd."</b></span><br>"; 
if ($vd1fc8eaf) { 
$vf33f45bd = (strpos($vd1fc8eaf, '<input')!== false) ? "<br><br><img src='images/icons/information.png'>" : "<br><br><img src='images/icons/accept.png'>" ; 
} 
if (isset($_GET['start'])) echo $v667da56c.$vf33f45bd."<br>&nbsp;</td></tr></table>"; 
echo '</form>'; 
} else { 
echo '<br>'; 
} 
} 
function unzip($v572d4e42){ 
$v8c7dd922 = 'temp_zip.zip' ; 
$v9c59153d = 0 ; 
copy($GLOBALS['http_s'].'://'.$v572d4e42, $v8c7dd922 ); 
$vadcdbd79 = zip_open(realpath(".").DIRECTORY_SEPARATOR.$v8c7dd922); 
if(is_resource($vadcdbd79)){ 
$ve1671797=''; 
while($vb6e43960=zip_read($vadcdbd79)) { 
$vc953b9e5=dirname(zip_entry_name($vb6e43960)); 
$v4b35b437=zip_entry_name($vb6e43960); 
if(!zip_entry_open($vadcdbd79,$vb6e43960,"r")) {$ve1671797.="Unable to proccess file '{$v4b35b437}'";continue;} 
if(!is_dir($vc953b9e5)) $this->mkdirr($vc953b9e5,0777); 
$v8634f28a=zip_entry_filesize($vb6e43960); 
if(empty($v8634f28a)) continue; 
$v25ed1bcb=zip_entry_read($vb6e43960,$v8634f28a); 
$vfbade9e3=fopen($v4b35b437,"w"); 
$vb4a88417 = fwrite($vfbade9e3,$v25ed1bcb); 
if ($vb4a88417) $v9c59153d++; 
fclose($vfbade9e3); 
zip_entry_close($vb6e43960); 
} 
zip_close($vadcdbd79); 
} else { 
} 
return $v9c59153d; 
} 
function mkdirr($vded0804c,$v15d61712=null) { 
if(is_dir($vded0804c)||empty($vded0804c)) return true; 
$vded0804c=str_replace(array('/', ''),DIRECTORY_SEPARATOR,$vded0804c); 
if(is_file($vded0804c)) {trigger_error('mkdirr() File exists', E_USER_WARNING);return false;} 
$v6a91eccf=substr($vded0804c,0,strrpos($vded0804c,DIRECTORY_SEPARATOR)); 
if($this->mkdirr($v6a91eccf,$v15d61712)) {if(!file_exists($vded0804c)) {return mkdir($vded0804c,$v15d61712);} } 
return false; 
} 
function zipFileErrMsg($v70106d0d) { 
$vbc536699 = array( 
'ZIPARCHIVE::ER_MULTIDISK' => 'Multi-disk zip archives not supported.', 
'ZIPARCHIVE::ER_RENAME' => 'Renaming temporary file failed.', 
'ZIPARCHIVE::ER_CLOSE' => 'Closing zip archive failed', 
'ZIPARCHIVE::ER_SEEK' => 'Seek error', 
'ZIPARCHIVE::ER_READ' => 'Read error', 
'ZIPARCHIVE::ER_WRITE' => 'Write error', 
'ZIPARCHIVE::ER_CRC' => 'CRC error', 
'ZIPARCHIVE::ER_ZIPCLOSED' => 'Containing zip archive was closed', 
'ZIPARCHIVE::ER_NOENT' => 'No such file.', 
'ZIPARCHIVE::ER_EXISTS' => 'File already exists', 
'ZIPARCHIVE::ER_OPEN' => 'Can\'t open file', 
'ZIPARCHIVE::ER_TMPOPEN' => 'Failure to create temporary file.', 
'ZIPARCHIVE::ER_ZLIB' => 'Zlib error', 
'ZIPARCHIVE::ER_MEMORY' => 'Memory allocation failure', 
'ZIPARCHIVE::ER_CHANGED' => 'Entry has been changed', 
'ZIPARCHIVE::ER_COMPNOTSUPP' => 'Compression method not supported.', 
'ZIPARCHIVE::ER_EOF' => 'Premature EOF', 
'ZIPARCHIVE::ER_INVAL' => 'Invalid argument', 
'ZIPARCHIVE::ER_NOZIP' => 'Not a zip archive', 
'ZIPARCHIVE::ER_INTERNAL' => 'Internal error', 
'ZIPARCHIVE::ER_INCONS' => 'Zip archive inconsistent', 
'ZIPARCHIVE::ER_REMOVE' => 'Can\'t remove file', 
'ZIPARCHIVE::ER_DELETED' => 'Entry has been deleted', 
); 
$vc5591d1a = 'unknown'; 
foreach ($vbc536699 as $v447589fd => $vd83a5a80) { 
if (defined($v447589fd) and constant($v447589fd) === $v70106d0d) { 
return 'Zip File Function error: '.$vd83a5a80; 
} 
} 
return 'Zip File Function error: unknown'; 
} 
} 
$v099fc18a = new apropos(); 
?>

Function Calls

None

Variables

None

Stats

MD5 780c0757eec3fc8321100146b0b8ced8
Eval Count 0
Decode Time 153 ms