Jump to content
php.lv forumi

Weba Galerija


ervains

Recommended Posts

Kad mēģinu bildi ielikt man izmet shito!!

 

 

Fatal error: Call to undefined function imagecreatefromgif() in

C:\wamp\www\includes\photo_functions_include.php on line 18

 

un te kods:

 

<?php

$imagetypes = array(

".bmp",

".gif",

".iff",

".jpg",

".JPEG",

".png",

".psd",

".tiff",

".wbmp"

);

 

function attach_exists($file) {

$dir = FORUM."attachments/";

$i = 1;

$file_name = substr($file, 0, strrpos($file, "."));

$file_ext = strrchr($file,".");

while (file_exists($dir.$file)) {

$file = $file_name."_".$i.$file_ext;

$i++;

}

return $file;

}

 

if (isset($getfile)) {

if (!isNum($getfile)) $getfile = 0;

require_once INCLUDES."class.httpdownload.php";

$result = dbquery("SELECT * FROM ".$db_prefix."forum_attachments WHERE post_id='$getfile'");

if (dbrows($result)) {

ob_end_clean();

$data = dbarray($result);

$object = new httpdownload;

$object->set_byfile(FORUM."attachments/".$data['attach_name']);

$object->use_resume = true;

$object->download();

}

exit;

}

?>

Link to comment
Share on other sites

×
×
  • Create New...