FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Add a - using safe mode - option to lock/unlock files
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Add a - using safe mode - option to lock/unlock files [message #37681 is a reply to message #37678] Fri, 15 June 2007 01:32 Go to previous messageGo to previous message
Astoria is currently offline  Astoria   United States
Messages: 227
Registered: April 2004
Karma:
Senior Member
I'd like to see a different set of permissions applied for lock/unlock, that were compatible with safe mode.

- Scripts with 777 permissions won't execute in safe mode; 755 is the maximum permission it will allow to be run. So if an admin uses Unlock on a site that's in safe mode, the forum will immediately go down and start throwing errors.

I had a problem when I locked the files as well -- the forum gets a different kind of permissions error, or it might have just been the admin functions. Sorry I don't remember the details; right now I just have everything set to 755. I am not sure which feature of safe mode causes the "locked" permission error to occur.

Rummaging around trying to figure it out, I ran across a code snippet someone posted to automatically check for safe mode. Doing something like that would probably work better than relying on the admin to configure it:

<?php
// Check for safe mode
if( ini_get('safe_mode') ){
    // Do it the safe mode way
}else{
    // Do it the regular way
}

?>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Images only for registered users
Next Topic: From header when sending to mailing list
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 13 00:50:44 GMT 2024

Total time taken to generate the page: 0.10908 seconds