php forum
php mysql forum
php mysql smarty
 
Topic Options
#225628 - 09/30/02 09:25 PM [6.1.x / 6.2] Debugging Info to Admins & Mods 1.0
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC

   [6.1.x / 6.2] Debugging Info to Admins & Mods 1.0 to Del.icio.us Add to del.icio.us
  Digg [6.1.x / 6.2] Debugging Info to Admins & Mods 1.0 Digg it
Mod Name / Version: DebuggingInfo1.0 <br /> <br />Description: The mod displays the Debugging Info at the bottom of the screen for Admins and Mods Only <br /> <br />Working under: UBB.threads 6.1 (tested under 6.1... but should work fine under 6.0.x) <br /> 12/26/02 - Verified instructions under 6.2 <br /> <br />Any pre-requisites: none <br /> <br />Author(s): JoshPet www.joshuapettit.com <br />    for discussions and bugs go to www.threadsdev.com <br /> <br />Date: 9/30/02 <br /> <br />Credits: Maze for suggesting it <br /> <br />Files Altered: ubbt.inc.php <br /> <br />Database Altered: No. <br /> <br />New Files: Turn the debugging option on in the config file.... it will only appear for Admins and Mods <br />


Attachments
58057-DebuggingInfo1.0.txt (93 downloads)

_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225629 - 10/01/02 03:00 AM Re: [6.1] Debugging Info to Admins & Mods 1.0 [Re: Daine]
Maze Offline
Enthusiast

Registered: 10/13/99
Posts: 468
Cool, thanks! <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#225630 - 10/06/02 01:33 AM Re: [6.1] Debugging Info to Admins & Mods 1.0 [Re: mcse007]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25432
Loc: Texas
yes cool <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />does anyone know of there's additional server overhead by the printing of the debug info?
_________________________
- Allen wavey
- What Drives You?

Top
#225631 - 10/06/02 01:49 AM Re: [6.1] Debugging Info to Admins & Mods 1.0 [Re: SurfMinister]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I don't know... I wasn't sure.<br /><br />I made the hack only do the calcs if the person was an admin or mod.... (i.e. it doesn't just control the output of it) just in case there was server load to be saved it would save it. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225632 - 10/08/02 04:14 PM Re: [6.1] Debugging Info to Admins & Mods 1.0 [Re: SurfMinister]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8372
Loc: Olympia, WA
No additional overhead comes from printing the debug info. Basically, it does a timestamp before and after the page is finished and increments a counter by one each to do_query is called. So, it does do a couple extra things, but extremely minor.
_________________________
StogieSmokers.com

Top
#225633 - 12/26/02 02:35 AM Re: [6.1 & 6.2] Debugging Info to Admins & Mods 1.0 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Verified that this works under UBB.Threads 6.2
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225634 - 09/12/04 05:52 AM Re: [6.1.x / 6.2] Debugging Info to Admins & Mods 1.0 [Re: Daine]
PaNTerSan Offline
Journeyman

Registered: 03/19/04
Posts: 122
Loc: EU, Slovenia
There is a little bug in here <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /><br />At least if you want this to work 6.4.<br /><br />Change this<br /> [] <br /> if (!$user['U_Status']) {<br /> $userob = new user;<br /> $user = $userob -> authenticate();<br /> $Status = $user['U_Status'];<br /> }<br />[/] <br />to this:<br /> [] <br /> if (!$user['U_Status']) {<br /> $userob = new user;<br /> $user = $userob -> authenticate();<br /> <br /> }<br /> <br /> $Status = $user['U_Status'];<br />[/] <br />Since the the next if statement depends on $Status.
_________________________
Kind regards,
PaNTerSan

Top


Who's Online
0 Registered (), 38 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 12
blaaskaak 8
tackaberry 7
FREAK1 6
Mike L_dup1 4
Chris Bale 4
Ian_W 4

 

 

 
fusionbb message board php hacks