SHARE
TWEET

Untitled

a guest Jul 21st, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?
  2. $senhia="suasenha";
  3. $euu="seuuser";
  4. $xx=$_POST;
  5.  while (list ($key, $val) = each ($xx) ){
  6.        $$key=$val;
  7.  
  8.  
  9. }
  10. $jj=$_GET;
  11.  while (list ($key, $val) = each ($jj) ){
  12.        $$key=$val;
  13.  
  14. }
  15. $uu=$_FILES;
  16. while (list ($key, $val) = each ($uu) ){
  17.        $$key=$val['tmp_name'];
  18.        $kkay=$key."_name";
  19.        $$kkay=$val['name'];
  20.  
  21. }
  22.  
  23.  
  24. if (($pass=="")&&($uuser=="")){
  25. print("<center>
  26. <form method='POST' action='admin.php'>
  27.  <p align='center'>Usu&aacute;rio: <input type='text' name='uuser' size='15'></p>
  28.  <p align='center'>Senha: <input type='password' name='pass' size='15'></p>
  29.  <p align='center'><input type='submit' value='Submeter' name='B1'></p>
  30. </form></center>
  31. ");
  32. }
  33. if (($pass=="$senhia")&&($uuser=="$euu")){
  34. if ($del!='') {
  35. unlink("img/$del");
  36.  
  37. }
  38.  
  39.  
  40.  
  41. Print("<center>
  42. <FORM ACTION='admin.php' METHOD='POST' ENCTYPE='multipart/form-data'>
  43. <INPUT TYPE='file' NAME='img1' SIZE='20'>
  44. <br>
  45. <INPUT TYPE='SUBMIT' NAME='Submit' VALUE='Upload'>
  46. <input type='hidden' name='pass' value='$pass'><input type='hidden' name='uuser' value='$uuser'><input type='hidden' name='act' value='upload2'>
  47.  
  48. </form></center><br><hr><center> Deletar Imagens </center>
  49.  
  50. ");
  51.  
  52. if ($act==upload2){
  53.  
  54. if ($img1_name != "") {
  55. $oi = date("HisYdm");
  56.  $fot=md5("$oi");
  57.  
  58.         @copy("$img1" , "img/$fot.jpg")
  59.  
  60.                 or die("Couldn't Upload Your File.");
  61.  
  62.  
  63. } else {
  64.  
  65.        die("No File Specified");
  66.  
  67. }
  68.  
  69. };
  70.  
  71. $od = opendir("img/");
  72.  
  73. $test=count($od);
  74. $oi=$test;
  75.  
  76.  
  77.  
  78. while($foto = readdir($od)){
  79. $oi++;
  80. if ($oi>3) {
  81. if ($foto!='Thumbs.db' and $foto!='fotos.php' and $foto!='.') {
  82.  
  83.  
  84. $ImageSize = GetImageSize ("img/$foto");
  85. $a = $ImageSize[0];
  86. $b = $ImageSize[1];
  87. $x = $a+20;
  88. $y = $b+20;
  89.  
  90.  
  91.     echo "<a href='admin.php?del=$foto&pass=$pass&uuser=$uuser'><img border='no' border='0' src='img/$foto' height='50' width='50'></a>&nbsp;&nbsp;";
  92. }}
  93.  
  94.  
  95. }
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111. }
  112.  
  113. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top