Skip to content

Instantly share code, notes, and snippets.

@fusco
Created May 10, 2012 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fusco/2651739 to your computer and use it in GitHub Desktop.
Save fusco/2651739 to your computer and use it in GitHub Desktop.
/* Debug only */
@ini_set('display_errors', 'on');
/*
define('_PS_DEBUG_SQL_', true);
*/
$start_time = microtime(true);
/* Compatibility warning */
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true);
/*** fusco ***/
if ($_SERVER['REMOTE_ADDR'] == 'TON_IP_PUBLIC') { error_reporting(E_ALL); ini_set('display_errors', 'On');}
if ($_SERVER['REMOTE_ADDR'] == 'TON_IP_PUBLIC') { define('_PS_DEBUG_SQL_', true);} else { define('_PS_DEBUG_SQL_', false);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment