<!DOCTYPE html><link rel="stylesheet" href="data/style.css"> <h1>Nette Debugger & SQL Exceptions | dibi</h1> <p>Dibi can display and log exceptions via Nette Debugger, part of Nette Framework.</p> <ul> <li>Nette Framework: http://nette.org </ul> <?php require_once 'Nette/Debugger.php'; require_once '../dibi/dibi.php'; // enable Nette Debugger Debugger::enable(); dibi::connect(array('driver' => 'sqlite', 'database' => 'data/sample.sdb', 'profiler' => array('run' => TRUE))); // throws error because SQL is bad dibi::query('SELECT FROM customers WHERE customer_id < %i', 38);
<?php session_start(); if (!isset($_SESSION['hs__'])) { session_regenerate_id(); $_SESSION['hs__'] = true; } define('WWW_DIR', dirname(__FILE__)); require 'include/application/micka_config.php'; Debugger::enable(Debugger::PRODUCTION, CSW_LOG); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="themes/default/mickaMap.css"> <script type="text/javascript" src="scripts/overlib_mini.js"></script> <script language="javascript" src="scripts/hs_dmap.js"></script> <script language="javascript" src="scripts/micka_dmap.js"></script> <script language="javascript" src="scripts/wz_jsgraphics.js"></script> <script language="javascript"> HS_RESIZE=false; HS_RIGHT=24; HS_BOTTOM=45; HS_TIPSOFF=true; ol_fgcolor="#FFFFE0"; ol_bgcolor="#FFB000"; hs_initext="<?php echo $hs_initext; ?>
/** * @param string error log directory * @param string administrator email * @return void */ public function enableDebugger($logDirectory = NULL, $email = NULL) { Debugger::$strictMode = TRUE; Debugger::enable($this->parameters['productionMode'], $logDirectory, $email); }
// sekce map $hs_wms["cze"] = isset($config['map']['hs_wms_cze']) && $config['map']['hs_wms_cze'] != '' ? $config['map']['hs_wms_cze'] : ''; $hs_wms["eng"] = isset($config['map']['hs_wms_eng']) && $config['map']['hs_wms_eng'] != '' ? $config['map']['hs_wms_eng'] : ''; $hs_initext = isset($config['map']['hs_initext']) && $config['map']['hs_initext'] != '' ? $config['map']['hs_initext'] : ''; $wms_client_def = isset($config['map']['wmsClient']) && $config['map']['wmsClient'] != '' ? $config['map']['wmsClient'] : ''; $wms_client_cze = isset($config['map']['wmsClientCze']) && $config['map']['wmsClientCze'] != '' ? $config['map']['wmsClientCze'] : ''; $wms_client_eng = isset($config['map']['wmsClientEng']) && $config['map']['wmsClientEng'] != '' ? $config['map']['wmsClientEng'] : ''; // volitelné sekce if (isset($config['micka']['optionSections']) && $config['micka']['optionSections'] != '') { foreach (explode(',', $config['micka']['optionSections']) as $value) { // sekce HSRS if (trim($value) == 'hsrs') { if (isset($config['hsrs']['ladenka']) && $config['hsrs']['ladenka'] == 1) { error_reporting(E_ALL ^ E_NOTICE); //Debugger::$strictMode = TRUE; Debugger::enable(Debugger::DEVELOPMENT, CSW_LOG); } } // sekce LIFERAY if (trim($value) == 'liferay') { define("LIFERAY_VALIDATE_URL", isset($config['liferay']['userValidateUrl']) ? $config['liferay']['userValidateUrl'] : ''); //TODO //pathData = /web/guest/my/data //pathService = /web/guest/my/services } // sekce datatype if (trim($value) == 'datatype') { $md_data_type = isset($config['datatype']['mdDataType']) ? $config['datatype']['mdDataType'] : ''; } } }