release 1.3.0
This commit is contained in:
@@ -82,7 +82,7 @@ if($db['type'] != "type") {
|
||||
try {
|
||||
$mysqlcon = new PDO($dbserver, $db['user'], $db['pass'], $dboptions);
|
||||
} catch (PDOException $e) {
|
||||
echo "Database Connection failed: ".$e->getMessage()."\n"; $err_lvl = 3;
|
||||
echo 'Database Connection failed: <b>'.$e->getMessage().'</b><br><br>Check:<br>- You have already installed the Ranksystem? Run <a href="../install.php">install.php</a> first!<br>- Is the database reachable?<br>- You have installed all needed PHP extenstions? Have a look here for <a href="//ts-ranksystem.com/#windows">Windows</a> or <a href="//ts-ranksystem.com/#linux">Linux</a>?'; $err_lvl = 3;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -227,7 +227,7 @@ if (isset($mysqlcon) && ($newcfg = $mysqlcon->query("SELECT * FROM `$dbname`.`cf
|
||||
$cfg['logs_timezone'] = "Europe/Berlin";
|
||||
}
|
||||
date_default_timezone_set($cfg['logs_timezone']);
|
||||
|
||||
|
||||
if(empty($cfg['webinterface_admin_client_unique_id_list'])) {
|
||||
$cfg['webinterface_admin_client_unique_id_list'] = NULL;
|
||||
} else {
|
||||
@@ -307,10 +307,21 @@ if (isset($mysqlcon) && ($newcfg = $mysqlcon->query("SELECT * FROM `$dbname`.`cf
|
||||
$cfg['default_language'] = "en";
|
||||
$_SESSION[$rspathhex.'language'] = "en";
|
||||
}
|
||||
$lang = set_language($cfg['default_language']);
|
||||
if(isset($cfg['default_language'])) {
|
||||
$lang = set_language($cfg['default_language']);
|
||||
} else {
|
||||
$lang = set_language("en");
|
||||
}
|
||||
unset($addnewvalue1, $addnewvalue2, $newcfd);
|
||||
}
|
||||
} elseif(!isset($_GET["lang"])) {
|
||||
$lang = set_language("en");
|
||||
}
|
||||
|
||||
if(empty($cfg['logs_debug_level'])) {
|
||||
$cfg['logs_debug_level'] = "5";
|
||||
}
|
||||
if(empty($cfg['logs_rotation_size'])) {
|
||||
$cfg['logs_rotation_size'] = "5";
|
||||
}
|
||||
?>
|
||||
@@ -4,7 +4,7 @@ function load_addons_config($mysqlcon,$lang,$cfg,$dbname) {
|
||||
if(function_exists('enter_logfile')) {
|
||||
enter_logfile($cfg,2,"Error on loading addons config.. Database down, not reachable, corrupt or empty?");
|
||||
} else {
|
||||
echo "Error on loading addons config.. Database down, not reachable, corrupt or empty?";
|
||||
echo 'Error on loading addons config..<br><br>Check:<br>- You have already installed the Ranksystem? Run <a href="../install.php">install.php</a> first!<br>- Is the database reachable?<br>- You have installed all needed PHP extenstions? Have a look here for <a href="//ts-ranksystem.com/#windows">Windows</a> or <a href="//ts-ranksystem.com/#linux">Linux</a>?';
|
||||
}
|
||||
} else {
|
||||
return $addons_config->fetchAll(PDO::FETCH_GROUP|PDO::FETCH_UNIQUE|PDO::FETCH_ASSOC);
|
||||
|
||||
@@ -2,22 +2,28 @@
|
||||
## Uncomment the command you need to run PHP
|
||||
## This are only examples
|
||||
## If you miss one, feel free to add it
|
||||
## Only one command should be active at the same time!
|
||||
## Only one single command should be active at the same time!
|
||||
##
|
||||
## Default, which should normally working on Linux and Windows
|
||||
$phpcommand = "php";
|
||||
$phpcommand = 'php';
|
||||
##
|
||||
## Linux
|
||||
#$phpcommand = "php56";
|
||||
#$phpcommand = "php70";
|
||||
#$phpcommand = "/usr/bin/php5";
|
||||
#$phpcommand = "/usr/bin/php7.2";
|
||||
## LINUX
|
||||
#$phpcommand = 'php56';
|
||||
#$phpcommand = 'php70';
|
||||
#$phpcommand = '/usr/bin/php5';
|
||||
#$phpcommand = '/usr/bin/php7.2';
|
||||
##
|
||||
## Windows
|
||||
##
|
||||
## WINDOWS
|
||||
#$phpcommand = 'C:\PHP5\php.exe';
|
||||
#$phpcommand = 'C:\PHP7\php.exe';
|
||||
#$phpcommand = 'c:\wamp\bin\php\php.exe';
|
||||
#$phpcommand = 'c:\xampp\php\php.exe';
|
||||
#$phpcommand = 'C:\wamp\bin\php\php.exe';
|
||||
#$phpcommand = 'C:\xampp\php\php.exe';
|
||||
# On blanks inside the path you need to escape these with special marks --> \" <-- at the beginning and end of the path, see example below
|
||||
#$phpcommand = '\"C:\Program Files (x86)\PHP\php.exe\"';
|
||||
##
|
||||
##
|
||||
## OTHER
|
||||
## Synology NAS
|
||||
#$phpcommand = '/volume1/@appstore/PHP7.2/usr/local/bin/php72';
|
||||
?>
|
||||
Reference in New Issue
Block a user