<?php /** * @version $Id: debug_sample.php 16171 2015-05-13 19:21:22Z alex $ * @package In-Portal * @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved. * @license GNU/GPL * In-Portal is Open Source software. * This means that this software may have been modified pursuant * the GNU General Public License, and as distributed it includes * or is derivative of works licensed under the GNU General Public License * or other free or open source software licenses. * See http://www.in-portal.org/license for copyright notices and details. */ // define('MAINTENANCE_MODE_FRONT', MaintenanceMode::NONE); // Set to MaintenanceMode::SOFT for SOFT Maintenance mode, set to MaintenanceMode::HARD for HARD Maintenance mode (no DB load) // define('MAINTENANCE_MODE_ADMIN', MaintenanceMode::NONE); // Set to MaintenanceMode::SOFT for SOFT Maintenance mode, set to MaintenanceMode::HARD for HARD Maintenance mode (no DB load) // define('MAINTENANCE_MODE_IPS', ''); // Define IP addresses/hosts, which will be able to continue accessing website // define('DBG_REQUEST_LOG', 1);// Log all user requests to site into "System Log" // define('DBG_ZEND_PRESENT', 0); // Set to 0 to debug debugger (because debugger automatically got disabled during zend debug sessions) // define('SA_IP', '173.9.192.210'); // Define IP addresses, from which super admin are allowed to login // define('DBG_CAPTURE_STATISTICS', 1); // Capture performance statistics // define('DBG_MAX_SQL_TIME', 2); // Maximal allowed sql execution time in seconds, all sqls above this become slow sqls // define('DBG_CURL', 1); // Log all curl requests to CurlLog database table // define('OVERRIDE_EMAIL_RECIPIENTS', ''); // Overwrites email recipients with some-email@domain-name.com or @domain-name.com $dbg_options = Array ( // !!! DEBUG MODE will be off if IP does not match !!! 'DBG_IP' => '192.168.1.1/24;192.168.2.1/24;173.9.192.210', // !!!REQUIRED!!! Define IP addreses, which are allowed to use debugger (semicolon separated) 'DEBUG_MODE' => 1, // Debug mode is allowed/disabled (note: set DBG_IP to use this one) // 'DBG_LOCAL_BASE_PATH' => 'w:', // Folder name on mapped drive, where site resides // 'DBG_TOOLBAR_BUTTONS' => 1, // Show "Show Debugger" & "Refresh Frame" buttons (on front) // 'DBG_USE_HIGHLIGHT' => 0, // Use "highlight_string" php function for debugger output formatting // 'DBG_RAISE_ON_WARNINGS' => 1, // Show debugger output in case of any non-fatal error 'DBG_SQL_PROFILE' => defined('IS_INSTALL') && IS_INSTALL ? 0 : 1, // Profile SQL queries // 'DBG_SQL_EXPLAIN' => 1, // Explain every SQL query, that is retrieving data 'DBG_SQL_FAILURE' => isset($GLOBALS['pathtoroot']) && defined('IS_INSTALL') && IS_INSTALL ? 0 : 1, // treat sql errors as fatal errors except for installation process // 'DBG_SQL_SERVERINFO' => 1, // Display database server info next each sql query in debugger 'DBG_SHOW_HTTPQUERY' => 1, // Show http query content (parsed user submit, GPC) 'DBG_SHOW_SESSIONDATA' => 1, // Show session data (at script finish) // 'DBG_SHOW_PERSISTENTDATA' => 1, // Show persistent session data (at script finish) // 'DBG_FORCE_THEME' => 1, // Use this theme_id instead of one in url 'DBG_PHRASES' => 1, // Add ability to translate phrases on the fly // 'DBG_WINDOW_WIDTH' => 700, // Set custom debugger layer width (in pixels) // 'DBG_REDIRECT' => 1, // Show links with redirect url instead of performing it (useful in events debugging) // 'DBG_VALIDATE_CONFIGS' => 1, // Check that config fields match ones from database // 'DBG_SHOW_TAGS' => 1, // Show tags beeing processed // 'DBG_SHOW_TREE_PRIORITY'=> 1, // Show tree node priority // 'DBG_SKIP_AJAX' => 1, // Don't debug AJAX requests // 'DBG_PAYMENT_GW' => 1, // All requests to payment gateways goes in TEST MODE // 'DBG_IMAGE_RECOVERY' => 1, // Don't replace missing images with noimage.gif // 'DBG_SQL_MODE' => 'TRADITIONAL', // Extra control over sql syntax & data from MySQL server side // 'DBG_RESET_ROOT' => 1, // Shows "root" user password reset link on Admin Console login screen // 'DBG_CACHE_URLS' => 0, // Cache urls, that are build by routers // 'DBG_SHORTCUT' => 'F12' // Defines debugger activation shortcut (any symbols or Ctrl/Alt/Shift are allowed, e.g. Ctrl+Alt+F12) );