Fix For Adm/Admin_bb_db.php [By Informpro :D]


Subject: Fix For Adm/Admin_bb_db.php [By Informpro :D]
In the file adm/Admin_bb_db.php
Find
Code: [Download] [Hide]
  1. $allowed = $allowed_admins = ''; 
[Delete Me, U'll put code here ;D]
Code: [Download] [Hide]
  1. if (!$allowed) 

Code:
Code: [Download] [Hide]
  1. //+Informpro fix Admin_bb_db.php for use MAIN_ADMINS_ID const+
  2. if(defined('MAIN_ADMINS_ID'))
  3. {
  4. $allowed_admins = explode(',', MAIN_ADMINS_ID);
  5. for ($x = 0; $x < count($allowed_admins); $x++)
  6. {
  7. if ($userdata['user_id'] == $allowed_admins[$x])
  8. {
  9. $allowed = true;
  10. }
  11. }
  12. }
  13. else
  14. {
  15. $allowed = true;
  16. }
  17. //-Informpro fix Admin_bb_db.php for use MAIN_ADMINS_ID const

Profile PM  
Subject: 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.

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

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.5172s (PHP: 4% SQL: 96%)
SQL queries: 30 - Debug Off - GZIP Enabled