Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

SAFEMOD problem was solved(100% Tested)

Hi everybody;

If we change our PHOTODIR, all photoalbums photos will work correctly.

Changes Files

BASEDIR.photo.php
BASEDRI.photogallery.php
ADMIN.photos.php


Modify 1
photos.php line 36 (notepad++)
CodeDownload  

//define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$_GET['album_id']."/" : ""));
define("PHOTODIR", IMAGES."photoalbum/");



Modify 2
photo.php line 64 (notepad++)
CodeDownload  

      //define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$data['album_id']."/" : ""));
      define("PHOTODIR", IMAGES."photoalbum/");



Modify 3
photogallery.php line 42 (notepad++)
CodeDownload  

      //define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$data['album_id']."/" : ""));
      define("PHOTODIR", IMAGES."photoalbum/");



Modify 4
line 111 (notepad++)
CodeDownload  

echo "<img src='".(isset($photo_thumb) && !empty($photo_thumb) ? PHOTODIR.$data['photo_thumb2'] : PHOTODIR.$data['photo_filename'])."' alt='".(!empty($data['photo_title']) ? $data['photo_title'] : $data['photo_filename'])."' style='border:0px' class='photogallery_photo' />



line 131 (notepad++)
CodeDownload  

   //define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$_GET['album_id']."/" : ""));
   define("PHOTODIR", IMAGES."photoalbum/");



Get well soon

There are the addition at attachment
SGT-TURKEY attached the following file:
safemodcouzm.rar [13.49kB / 163 Downloads]
Thread Information
Author
Replies
1 post
Views
1,060 times
Last Post
Last updated on 4 years ago
Related Threads
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: SGT-TURKEY