Move configuration to a separate file.
This will allow replacing the main file without needing to re-add the settings. For example, settings.php can be always kept up-to-date locally via a symbolic link, without altering the configuration.
This commit is contained in:
parent
2d10bf9cc5
commit
3b8453806e
2 changed files with 15 additions and 12 deletions
|
@ -29,18 +29,7 @@ header("Content-Type: text/plain; charset=utf-8");
|
|||
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||
ini_set('display_errors', '1');
|
||||
|
||||
$dbhost = 'localhost'; // database host
|
||||
$dbuser = '?'; // database user
|
||||
$dbpass = '?'; // database password
|
||||
$dbname = '?'; // database name
|
||||
$avpos_table='avpos';
|
||||
|
||||
$email_to="you@yourmail.com"; // your email (for error reporting)
|
||||
$email_from="you@yourhost.com"; // your server's sending email (for error reporting)
|
||||
|
||||
$allow_install = false; // enable to allow action=install (clear/format database)
|
||||
|
||||
$check_ip = false; // enable to check the sim ip submitting the data is in the allowed range
|
||||
require_once("settings-config.inc.php");
|
||||
|
||||
$link = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname) or die("Error " . mysqli_error($link));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue