mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-23 23:17:05 +08:00
update install
This commit is contained in:
parent
ef7d122464
commit
0ca2dc2029
1 changed files with 13 additions and 1 deletions
|
@ -22,12 +22,24 @@ catch(PDOException $ex){
|
|||
|
||||
if ($cn == '1') {
|
||||
$input = '<?php
|
||||
|
||||
$db_host = \'' . $db_host . '\';
|
||||
$db_user = \'' . $db_user . '\';
|
||||
$db_password = \'' . $db_password . '\';
|
||||
$db_name = \'' . $db_name . '\';
|
||||
define(\'APP_URL\', \'' . $appurl . '\');
|
||||
$_app_stage = \'Live\';';
|
||||
$_app_stage = \'Live\';
|
||||
|
||||
if($_app_stage!=\'Live\'){
|
||||
error_reporting(E_ERROR);
|
||||
ini_set(\'display_errors\', 1);
|
||||
ini_set(\'display_startup_errors\', 1);
|
||||
}else{
|
||||
error_reporting(E_ERROR);
|
||||
ini_set(\'display_errors\', 0);
|
||||
ini_set(\'display_startup_errors\', 0);
|
||||
}
|
||||
';
|
||||
$wConfig = "../config.php";
|
||||
$fh = fopen($wConfig, 'w') or die("Can't create config file, your server does not support 'fopen' function,
|
||||
please create a file named - config.php with following contents- <br/>$input");
|
||||
|
|
Loading…
Reference in a new issue