vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   debug mode for 3.6.4? (https://vborg.vbsupport.ru/showthread.php?t=138318)

Xplorer4x4 02-03-2007 11:38 AM

debug mode for 3.6.4?
 
I want to be able to enable debug mode on vB 3.6.4

I have already tried placing the following in config.php as I used to on older versions but it does not seem to work now.
if ($REMOTE_ADDR == 'xxx.xxx.xxx.xxx')
{
$config['Misc']['debug'] = true;
}

Any help would be appreciated.

Cap'n Steve 02-03-2007 10:20 PM

$REMOTE_ADDR probably isn't set. Try $_SERVER['REMOTE_ADDR'].

akanevsky 02-03-2007 10:26 PM

Just use vBulletin's IPADDRESS.
It is already defined by the time config.php is loaded.

Xplorer4x4 02-04-2007 06:42 AM

Quote:

Originally Posted by Psionic Vision (Post 1173957)
Just use vBulletin's IPADDRESS.
It is already defined by the time config.php is loaded.

What exactly are you referring to when you say "vBulletins IP address"?

Brad 02-04-2007 12:06 PM

Quote:

Originally Posted by Xplorer4x4 (Post 1174176)
What exactly are you referring to when you say "vBulletins IP address"?

IPADDRESS is a constant defined in the file /includes/class_core.php around line 1557. :) It contains the client's ip address.

He's telling you to use that constant instead, like this;

PHP Code:

if (IPADDRESS == '0.0.0.0')
{
    
$config['Misc']['debug'] == true;



Xplorer4x4 02-05-2007 12:37 PM

So i should put that in my config file instead?


All times are GMT. The time now is 06:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01724 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete