'; echo '
'; echo ''; $errors = MyError::getCollectedErrors(); foreach ($errors as $category => $items) { echo ''; } echo '
'.$category.''; foreach ($items as $error) { echo $error . "
"; } echo '

'; echo '
$_GET
'.  print_r($_GET, true).'
$_POST
'.  print_r($_POST, true).'
$_SEVER
'.  print_r($_SERVER, true).'
$_COOKIE
'.  print_r($_COOKIE, true).'

'; echo '
Време за изпълнение(сек)
Общо' . round($total_script_time, 5) . '
SQL' . round($GLOBALS['mysqlDebug']['totalTime'], 5) . '
Memcache' . round($GLOBALS['memcachedDebugTime']['total']['secs'], 5) . '
Всичко останало(php)' . round($total_script_time - $GLOBALS['mysqlDebug']['totalTime'] - $GLOBALS['memcachedDebugTime']['total']['secs'], 5) . '

'; echo '
'; echo '
Master connections:
' . print_r($GLOBALS['mysqlDebug']['masterConnections'], true) . '
Slave connections:
' . print_r($GLOBALS['mysqlDebug']['slaveConnections'], true) . '
'; echo '
'; echo ' '; $i = 0; foreach ($GLOBALS['mysqlDebug']['queries'] AS $value) { $i++; echo ' '; } echo '
N Tree db_specified query error сек
' . $i . ' ' . $value['tree'] . ' ' . $value['db_specified'] . ' ' . $value['query'] . ' ' . $value['error'] . ' ' . $value['time'] . '
' . round($GLOBALS['mysqlDebug']['totalTime'], 4) . '
'; if (isset($GLOBALS['mysqlDebug']['other'])) { if (is_array($GLOBALS['mysqlDebug']['other'])) { echo ' '; foreach ($GLOBALS['mysqlDebug']['other'] AS $key => $value) { echo ' '; } echo '
key value
' . $key . ' ' . var_export($value, true) . '
'; } else { echo '
' . var_export($GLOBALS['mysqlDebug']['other'], true); } } //debug на счупени заявки if (false == $GLOBALS['enableDebug']) { echo "
";

		echo "
GET = "; var_dump($_GET); echo "\nPOST = "; var_dump($_POST); echo "\nSESSION = "; var_dump($_SESSION); echo "\nSERVER = "; var_dump($_SERVER); echo "\nCOOKIE = "; var_dump($_COOKIE); echo "
"; $messages = ob_get_contents(); ob_end_clean(); $GetPageCount_sql = " SELECT error FROM " . MAIN_DB . ".intranet_mysql_debug WHERE file = " . quote_smart($_SERVER['SCRIPT_NAME']) . " "; list($error) = moon_mysql_fetch_row(moon_mysql_query($GetPageCount_sql, $GLOBALS['db_main'])); if ($error <= 1 OR is_on_dev_server()) { $headers = 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-type: text/html; charset=utf8' . "\n"; $srv = $_SERVER["HTTP_HOST"]; $srv = explode(".", $srv); if (isset($srv[0])) { $srv = "[" . strtoupper($srv[0]) . "]"; } else { $srv = ""; } mail("debug@vbox7.com", "Vbox7 - MySQL ERROR - " . $srv , $messages, $headers); } $SetPageError_sql = " INSERT INTO " . MAIN_DB . ".intranet_mysql_debug (file, error, dt) VALUES (" . quote_smart($_SERVER['SCRIPT_NAME']) . ", 1, NOW()) ON DUPLICATE KEY UPDATE error = error + 1, dt = NOW() "; moon_mysql_query($SetPageError_sql, $GLOBALS['db_main']); } } ?>