mirror of
https://github.com/sigmasternchen/webcli
synced 2025-03-15 06:08:54 +00:00
added mysql credentials to config.php
This commit is contained in:
parent
fb57be30b7
commit
b6b93253c8
2 changed files with 11 additions and 2 deletions
|
@ -3,10 +3,17 @@
|
|||
|
||||
define("LOG_FILE", "/var/www/websites/webcli/internal.log");
|
||||
|
||||
define("DEFAULT_USER", 3);
|
||||
define("DB_HOST", "localhost");
|
||||
define("DB_USER", "webcli");
|
||||
define("DB_PASSWORD", "password");
|
||||
define("DB_NAME", "webcli");
|
||||
|
||||
define("DEFAULT_USER", 3); // default value: 3 (nobody)
|
||||
define("DEFAULT_HOSTNAME", "webcli");
|
||||
define("SIZE_OF_DIRECTORY", 4096);
|
||||
|
||||
// do not change anything below here
|
||||
|
||||
define("FILE_FLAG_EXECUTE", 1 << 0);
|
||||
define("FILE_FLAG_WRITE", 1 << 1);
|
||||
define("FILE_FLAG_READ", 1 << 2);
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
$db = new mysqli("localhost", "webcli", "password", "webcli");
|
||||
require_once("config.php");
|
||||
|
||||
$db = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
|
||||
if ($db->connect_error)
|
||||
die("Connect Error (" . $db->connect_errno . ") " . $db->connect_error);
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue