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.
Navigation

SAFEMOD problem was solved(100% Tested)

Last updated on 5 years ago
SGT-TURKEYSGT-TURKEY
Posted 5 years ago
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++)

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


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

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


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

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


Modify 4
line 111 (notepad++)

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++)

   //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 / 178 Downloads]
You can view all discussion threads in this forum.
You cannot 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.
You cannot set up a bounty in this discussion thread.
Moderator: Support Team
Users who participated in discussion: SGT-TURKEY,