Report user errors

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1031 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-08-28 10:56:54 +00:00
parent 676e168ba6
commit 1bc77f88d2
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,5 @@
<?php
error_reporting(6135); // errors and warnings
include dirname(__FILE__) . "/adminer/include/version.inc.php";
include dirname(__FILE__) . "/externals/jsmin-php/jsmin.php";
@ -158,7 +159,6 @@ function compile_file($match) {
return call_user_func($match[2], file_get_contents(dirname(__FILE__) . "/$project/$match[1]"));
}
error_reporting(4343); // errors and warnings
$project = "adminer";
if (file_exists(dirname(__FILE__) . "/" . $_SERVER["argv"][1] . "/index.php")) {
$project = $_SERVER["argv"][1];

View file

@ -1,5 +1,5 @@
<?php
error_reporting(4343); // errors and warnings
error_reporting(6135); // errors and warnings
if (isset($_SERVER["argv"][1])) {
$_COOKIE["adminer_lang"] = $_SERVER["argv"][1]; // Adminer functions read language from cookie
include dirname(__FILE__) . "/adminer/include/lang.inc.php";