4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Acidgod on October 11, 2005, 01:26:42 PM

Title: Is this a Bug in the download.php?
Post by: Acidgod on October 11, 2005, 01:26:42 PM
I have a Problem with the remote_url and then i try to find out what´s going wrong.
I make a few debug logs and found out that the following if give me always $remote_url=0 back.
Then i put the red line in the Code and now it works fine.


Quote
if (!empty($image_row['image_download_url'])) {
    if (is_remote_file($image_row['image_download_url']) || is_local_file($image_row['image_download_url'])) {
      ereg("(.+)\.(.+)", basename($image_row['image_download_url']), $regs);
      $file_name = $regs[1];
      $file_extension = $regs[2];

      $file['file_name'] = $file_name.(($size) ? "_".$size : "").".".$file_extension;
      $file['file_path'] = dirname($image_row['image_download_url'])."/".$file['file_name'];
      $remote_url = 1;
    }
    else {
      $file['file_path'] = $image_row['image_download_url'];
      $remote_url = 1;
    }
  }

Is this a Bug?  :?
Title: Re: Is this a Bug in the download.php?
Post by: Sonic on October 13, 2005, 07:23:48 PM
what file is this?
Title: Re: Is this a Bug in the download.php?
Post by: Acidgod on October 13, 2005, 07:28:38 PM
do you see the thread titel?
Title: Re: Is this a Bug in the download.php?
Post by: Sonic on October 13, 2005, 08:33:40 PM
yeah i see, and i did what you did, and my problem still exsists.