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.
Not a member yet? Click here to register.
Forgot Password?

Override check for safe mode

Asked Modified Viewed 1,697 times
A
Argentum
A
Graphics | Usability | Photography
  • Member, joined since
  • Contributed 72 posts on the community forums.
  • Started 12 threads in the forums
  • Started this discussions
asked
Member

Hi

It seems that the hosting company I use has changed safe mode from on to off. That brakes all photoalbums that were created before that change. Thumbnails and images don't show.

I guess that the code only checks for currekt safe mode on or off, not what that mode was as the time of album creation.

Is there a way to override this check, and pretend that safe mode is on - even though it's not?

Perhaps this should be fixed, if it's possible. That hosting companys change server configuration isn't that rare.
0 replies

4 posts

D
DwB
D
DwB 10
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
  • Started 4 threads in the forums
answered
Junior Member

I had the same problem with the creation of thumbs. I changed the creation of the files on the server in that way as I implemented a touch() of the picture just before creating/uploading it on the server.

Perhaps it might help.
0 replies
F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

in the files admin/photos.php, admin/photoalbums.php and photogallery.php, replace the line:

Quote

define("SAFEMODE", @ini_get("safe_mode"wink ? true : false);


With:

Quote

define("SAFEMODE", true);
0 replies
A
Argentum
A
Graphics | Usability | Photography
  • Member, joined since
  • Contributed 72 posts on the community forums.
  • Started 12 threads in the forums
  • Started this discussions
answered
Member

I'll already changed two out of three. Of course admin/photos.php had to be changed as well. Thanks. :)
0 replies
— 9 months later —
P
pher-d
P
pher-d 10
www.phpfusion-tr.com
PHP Fusion TransFusion Official Turkish Translator
PHP Fusion Turkey Official Support Site Administrator
PHP Fusion Official Crew Member
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

It worked thanks guys.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet