PHPBB Security :: Special Not Saving Entires

Support for IntegraMOD 141

Moderator: Integra Moderator

PHPBB Security :: Special Not Saving Entires

PostAuthor: Omni-Lee » Fri Feb 09, 2007 11:22 am

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?
Last edited by Omni-Lee on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Out, out, brief candle! Life's but a walking shadow, a poor player that struts and frets his hour upon the stage and then is heard no more: it is a tale told by an idiot, full of sound and fury, signifying nothing" - Macbeth ACT V, Scene V by William Shakespeare
User avatar
Omni-Lee
Members
Members
 
Posts: 69
Likes: 0 post
Liked in: 0 post
Joined: Thu Feb 01, 2007 12:07 am
Cash on hand: 0.00

PostAuthor: tmotley » Fri Feb 09, 2007 12:26 pm

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.
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: Omni-Lee » Fri Feb 09, 2007 10:58 pm

Thanks, tmotley. That helped, I was able to fix the issues I had with the settings.
Last edited by Omni-Lee on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Out, out, brief candle! Life's but a walking shadow, a poor player that struts and frets his hour upon the stage and then is heard no more: it is a tale told by an idiot, full of sound and fury, signifying nothing" - Macbeth ACT V, Scene V by William Shakespeare
User avatar
Omni-Lee
Members
Members
 
Posts: 69
Likes: 0 post
Liked in: 0 post
Joined: Thu Feb 01, 2007 12:07 am
Cash on hand: 0.00

PostAuthor: dan0042 » Tue Apr 10, 2007 3:35 pm

Its working Thanks
Last edited by dan0042 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
:#: <img>
User avatar
dan0042
Integra Member
Integra Member
 
Posts: 170
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 21, 2006 4:06 pm
Cash on hand: 0.00

Re: PHPBB Security :: Special Not Saving Entires

PostAuthor: DaveK » Wed May 09, 2007 10:40 am

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>
Last edited by DaveK on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

DaveK
Newbie
Newbie
 
Posts: 3
Likes: 0 post
Liked in: 0 post
Joined: Sun May 06, 2007 4:57 am
Cash on hand: 0.00


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Majestic-12 [Bot]