Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1069480
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 20, 12:50 AM
Size
4 KB
Mime Type
text/x-diff
Expires
Tue, Jul 22, 12:50 AM (12 h, 41 m)
Engine
blob
Format
Raw Data
Handle
692387
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/RC/tools/debug_sample.php
===================================================================
--- branches/RC/tools/debug_sample.php (revision 11430)
+++ branches/RC/tools/debug_sample.php (revision 11431)
@@ -1,61 +1,63 @@
<?php
// define('SILENT_LOG', 1); // Log all php errors on site to separate file (/silent_log.txt)
// define('DBG_REQUREST_LOG', '/path/to/file');// Log all user requests to site into filename specified
// define('DBG_SITE_PATH', '/relative_path/'); // set alternative BASE_PATH for old in-portal parts (where no K4 included)
// define('DBG_ZEND_PRESENT', 0); // Set to 0 to debug debugger (because debugger automatically got disabled during zend debug sessions)
// define('NPARSER', 1); // Use new parser to compile templates
// define('DBG_CAPTURE_STATISTICS', 1); // Capture performance satistics
// define('DBG_MAX_SQL_TIME', 2); // Maximal allowed sql execution time in seconds, all sqls above this become slow sqls
$dbg_options = Array (
// !!! DEBUG MODE will be off if IP does not match !!!
'DBG_IP' => '193.68.72.64/26;99.14.230.174', // !!!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_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_EDIT_HELP' => 1, // Show help filename on help screen
// 'DBG_HELP' => 1, // Show FCK editor when viewing help screen
// 'DBG_FORCE_THEME' => 1, // Use this theme_id instead of one in url
- 'DBG_PHRASES' => 1, // Add ability to translate phrases on the fly (K4 templates only)
+ 'DBG_PHRASES' => 1, // Add ability to translate phrases on the fly
+// 'DBG_PHRASES_EDIT_FRONT'=> 1, // Add ability to edit existing phrases for Front End
+// 'DBG_PHRASES_EDIT_ADMIN'=> 1, // Add ability to edit existing phrases for Admin
// '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_PRE_PARSE' => 1, // Show new compiled functions in debugger
// 'DBG_DECORATE_BLOCKS' => 1, // Decorate blocks
// '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_FAST_INSTALL' => 1, // Install Language Pack in One Step
);
// for ADODB to work: begin
define('ADODB_OUTP', 'dbg_SQLLog');
function dbg_SQLLog($msg, $new_line = false) { }
// for ADODB to work: end
function dbg_tableMatch($table_name,$sql)
{
static $prefix = '';
$prefix = defined('TABLE_PREFIX') ? TABLE_PREFIX : GetTablePrefix();
return strpos($sql, $prefix.$table_name) !== false;
}
?>
\ No newline at end of file
Property changes on: branches/RC/tools/debug_sample.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.17.2.2
\ No newline at end of property
+1.17.2.3
\ No newline at end of property
Event Timeline
Log In to Comment