https://www.icyphoenix.com/viewtopic.php?f=35&t=5847
-----------------------------------
Informpro
Sat 16 May, 2009 21:52

Fix For Adm/Admin_bb_db.php [By Informpro :D]
-----------------------------------
In the file adm/Admin_bb_db.php
Find
[code]$allowed = $allowed_admins = '';[/code][Delete Me, U'll put code here ;D][code]
if (!$allowed)[/code]
Code:
[code syntax="php"]//+Informpro fix Admin_bb_db.php for use MAIN_ADMINS_ID const+
if(defined('MAIN_ADMINS_ID'))
	{
		$allowed_admins = explode(',', MAIN_ADMINS_ID);
		for ($x = 0; $x < count($allowed_admins); $x++)
		{
			if ($userdata['user_id'] == $allowed_admins[$x])
				{
					$allowed = true;
				}
		}
}
else
	{
		$allowed = true;
	}
//-Informpro fix Admin_bb_db.php for use MAIN_ADMINS_ID const[/code]


-----------------------------------
Mighty Gorgon
Sat 16 May, 2009 22:45

Re: Fix For Adm/Admin_bb_db.php [By Informpro :D]
-----------------------------------
Thanks for pointing me to that part of that file which is buggy.

I have fixed it.


-----------------------------------
Informpro
Sat 16 May, 2009 22:59

Re: Fix For Adm/Admin_bb_db.php [By Informpro :D]
-----------------------------------
Ok thx, I'm happy to know that I've help MG lol ^^


