Jump to content


Photo

Imageshack Clone Bugs


  • Faça o login para participar
1 reply to this topic

#1 zackituh

zackituh

    Normal

  • Usuários
  • 85 posts
  • Sexo:Não informado

Posted 25/04/2007, 20:16

olá
eu instalei em meu pc(tenho um servidor easyphp(pacote apache + mysql)) imageshacke.us clone
mas isto e um exemplo
porke
muitos dos scripts que iinstalo ficam com bugs tipo este


$max_size) { echo "File Size too Big!
\n"; exit; } if (($HTTP_POST_FILES['userfile']['type']=="image/gif") || ($HTTP_POST_FILES['userfile']['type']=="image/pjpeg") || ($HTTP_POST_FILES['userfile']['type']=="image/jpeg") || ($HTTP_POST_FILES['userfile']['type']=="image/png")) { if (file_exists("./".$path . $HTTP_POST_FILES['userfile']['name'])) { echo "A File with that name exists, please rename your file.
\n"; exit; } //generate random number $zufall = rand(123,999999); $fupl = "$zufall"; $res = copy($HTTP_POST_FILES['userfile']['tmp_name'], "./".$path .$fupl .$HTTP_POST_FILES['userfile']['name']); if (!$res) { echo "Upload Failed, please try again
\n"; exit; } else { ?>
$old_y) { $thumb_w=$new_w; $thumb_h=$old_y*($new_h/$old_x); } if ($old_x < $old_y) { $thumb_w=$old_x*($new_w/$old_y); $thumb_h=$new_h; } if ($old_x == $old_y) { $thumb_w=$new_w; $thumb_h=$new_h; } $dst_img=ImageCreateTrueColor($thumb_w,$thumb_h); imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y); if (preg_match("/png/",$system[1])) { imagepng($dst_img,$filename); } if (preg_match("/gif/",$system[1])) { imagegif($dst_img,$filename); } else { imagejpeg($dst_img,$filename); } imagedestroy($dst_img); imagedestroy($src_img); } createthumb($path.$imgf,$tpath.$imgf,$tsize,$tsize); ?>

em cima da pagina
escritio mesmo na pagina nao no code
alguem ajuda ou tem o mesmo problema??

#2 GIMP

GIMP

    Novato no fórum

  • Usuários
  • 9 posts
  • Sexo:Não informado

Posted 18/05/2007, 21:05

Verifique se o Easy-PHP vem com suporte a biblioteca GD.
Aé, o Easy-PHP não vem com suporte ao PHP5, troque pelo Xampp.

Por um mundo totalmente open-source...





1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq