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:
parent
676e168ba6
commit
1bc77f88d2
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
error_reporting(6135); // errors and warnings
|
||||||
include dirname(__FILE__) . "/adminer/include/version.inc.php";
|
include dirname(__FILE__) . "/adminer/include/version.inc.php";
|
||||||
include dirname(__FILE__) . "/externals/jsmin-php/jsmin.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]"));
|
return call_user_func($match[2], file_get_contents(dirname(__FILE__) . "/$project/$match[1]"));
|
||||||
}
|
}
|
||||||
|
|
||||||
error_reporting(4343); // errors and warnings
|
|
||||||
$project = "adminer";
|
$project = "adminer";
|
||||||
if (file_exists(dirname(__FILE__) . "/" . $_SERVER["argv"][1] . "/index.php")) {
|
if (file_exists(dirname(__FILE__) . "/" . $_SERVER["argv"][1] . "/index.php")) {
|
||||||
$project = $_SERVER["argv"][1];
|
$project = $_SERVER["argv"][1];
|
||||||
|
|
2
lang.php
2
lang.php
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
error_reporting(4343); // errors and warnings
|
error_reporting(6135); // errors and warnings
|
||||||
if (isset($_SERVER["argv"][1])) {
|
if (isset($_SERVER["argv"][1])) {
|
||||||
$_COOKIE["adminer_lang"] = $_SERVER["argv"][1]; // Adminer functions read language from cookie
|
$_COOKIE["adminer_lang"] = $_SERVER["argv"][1]; // Adminer functions read language from cookie
|
||||||
include dirname(__FILE__) . "/adminer/include/lang.inc.php";
|
include dirname(__FILE__) . "/adminer/include/lang.inc.php";
|
||||||
|
|
Loading…
Reference in a new issue