Help Combining Code
Posted: Tue Jul 03, 2012 3:47 pm
Hi, I am working on a simple error system that will relay some PHP information only if debug is active (found if imported $global_debug is 1).
As you will note in my code: http://pastebin.com/03HtvpnY
I am using a ton of if else's. What I am trying to do is get it to where if $global_debug is 0 nothing is displayed (blank php file echoed) for security reasons and if it is active then the content will be displayed.
This is what it looks like without the if elses:
http://pastebin.com/V0acPdiT
So the second paste shows you what I want to have if the debug is 0 give or take.
Can someone help me combine this?
As you will note in my code: http://pastebin.com/03HtvpnY
I am using a ton of if else's. What I am trying to do is get it to where if $global_debug is 0 nothing is displayed (blank php file echoed) for security reasons and if it is active then the content will be displayed.
This is what it looks like without the if elses:
http://pastebin.com/V0acPdiT
So the second paste shows you what I want to have if the debug is 0 give or take.
Can someone help me combine this?