Page 1 of 1

PHPBB Security :: Special Not Saving Entires

PostPosted: Fri Feb 09, 2007 11:22 am
Author: Omni-Lee
Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: No
Your knowledge: Beginner
Board URL: [url]http://[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?
Mistakenly replaced phpbb_secuirty.php with local copy in attempt to get backup working, and I didn't backup installed copy.


What was done to try to solve the problem?
Attempted to follow instructions in a solved bug report similar to my issue.



De.scription and Message

Due to my mistake I have lost the ability to make changes to the first three entries in phpBB Security :: Special. <img>

Protect admin & moderator accounts; will not be saved if changed.

Amount of allowed admins; will not be saved and is always empty.

Amount of allowed mods; will not be saved and is always empty.

I tried to find the sec_admin field in the database, but after looking through all the tables I was unable to find it.

Is it possible to recover from this, or am I hosed?

PostPosted: Fri Feb 09, 2007 12:26 pm
Author: tmotley
From a post by Teelk:

The field names are randomly generated for those phpBB Security fields. Can you do me a favor and search your database for sec_admin and tell me what the value is? It's in the config table.

And to clear things up some more:

"Teelk";p="19795" wrote:Open includes/phpbb_security.php.

FIND
Code: Select all
    function phpBBSecurity_AdminConfigName()     {         return 'phpBBSecurity_max_admins';     }             function phpBBSecurity_ModConfigName()     {         return 'phpBBSecurity_max_mods';     }             function phpBBSecurity_UseSpecial()     {         return 'phpBBSecurity_use_max';     }


phpBBSecurity_max_admins = sec_admin value
phpBBSecurity_max_mods = sec_mod value
phpBBSecurity_use_max = sec_name value

So if the value of your sec_admin is abcdefg, then replace phpBBSecurity_max_admins with abcdefg in the phpbb_security.php file. When you updated your phpbb_security.php file probably wasn't CHMOD'd to allow the update to write to it.

PostPosted: Fri Feb 09, 2007 10:58 pm
Author: Omni-Lee
Thanks, tmotley. That helped, I was able to fix the issues I had with the settings.

PostPosted: Tue Apr 10, 2007 3:35 pm
Author: dan0042
Its working Thanks

Re: PHPBB Security :: Special Not Saving Entires

PostPosted: Wed May 09, 2007 10:40 am
Author: DaveK
Worked for me too - thanks!

Did notice in Teelk's post though, that he refers to a phpBB_config field as 'sec_mod' - which should in fact be 'sec_mods'.

ie:

"Teelk" wrote:phpBBSecurity_max_mods = sec_mod value


should read

phpBBSecurity_max_mods = sec_mods value


Hope that saves someone a couple of minutes <img>