Move version number to config.inc.php in /common, and include in overboard.php
This commit is contained in:
parent
ca0a7053fa
commit
2d5c4d40b7
|
@ -1,8 +1,11 @@
|
|||
<?php
|
||||
|
||||
/* Version */
|
||||
$rslight_version = "0.7.2";
|
||||
|
||||
/* Location of configuration and spool */
|
||||
$config_dir = "<config_dir>";
|
||||
$spooldir = "<spooldir>";
|
||||
$config_dir = "/etc/rslight/";
|
||||
$spooldir = "/var/spool/rslight/";
|
||||
|
||||
if(isset($config_name) && file_exists($config_dir.$config_name.'.inc.php')) {
|
||||
$config_file = $config_dir.$config_name.'.inc.php';
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
include "../common/config.inc.php";
|
||||
|
||||
$rslight_version = "0.7.2";
|
||||
|
||||
ini_set('memory_limit','1536M');
|
||||
|
||||
/* Config file name should be the basename
|
||||
|
|
|
@ -382,7 +382,7 @@ if (isset($_GET['thisgroup'])) {
|
|||
}
|
||||
|
||||
function show_overboard_footer($stats, $results, $iscached) {
|
||||
global $user_time;
|
||||
global $user_time,$rslight_version;
|
||||
if(isset($user_time)) {
|
||||
$recent = 'new';
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue