mirror of
https://github.com/sigmasternchen/webcli
synced 2025-03-15 06:08:54 +00:00
setup switch in config
This commit is contained in:
parent
b6b93253c8
commit
3512de7bc1
2 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
define("BETA", true);
|
||||
define("ENABLE_SETUP", false);
|
||||
|
||||
define("LOG_FILE", "/var/www/websites/webcli/internal.log");
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
//die(); // comment for setup
|
||||
|
||||
|
||||
require_once("mysqlConnect.php");
|
||||
require_once("config.php");
|
||||
|
||||
if (!ENABLE_SETUP)
|
||||
die("Setup disabled. Take a look at ./config.php");
|
||||
|
||||
if ($db->query("SET SESSION sql_mode='NO_AUTO_VALUE_ON_ZERO'") !== true)
|
||||
echo "seting mode <span style=\"color: red\">failed</span>.<br />";
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue