Project

General

Profile

« Previous | Next » 

Revision 20

Added by Manuela over 6 years ago

admin/interface/version.php: structure changed

View differences:

branches/main/admin/interface/version.php
43 43

  
44 44
/* -------------------------------------------------------- */
45 45
// Must include code to stop this file being accessed directly
46
//if(!defined('WB_PATH')) { header("HTTP/1.0 404 Not Found"); flush(); }
46
if (!defined('WB_PATH')) { header("HTTP/1.0 404 Not Found"); flush(); }
47 47
/* -------------------------------------------------------- */
48
$sInfo = '
49
    VERSION  = "2.10.1-dev"
50
    REVISION = "19"
51
    SP       = ""
52
';
53
//$aIni = parse_ini_string($sInfo);
54
//foreach ($aIni as $item=>$value) {
55
foreach (parse_ini_string($sInfo) as $item=>$value) {
56
    if(!defined($item)) { define($item, $value); }
57
}
58
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
59
if(!defined('VERSION')) { define('VERSION', '2.10.1-dev'); }
60
if(!defined('REVISION')) { define('REVISION', '18'); }
61
if(!defined('SP')) { define('SP', ''); }
62

  
48
if (!defined('VERSION_LOADED')) {
49
    $sInfo = '
50
        VERSION  = "2.10.1-dev"
51
        REVISION = "20"
52
        SP       = ""
53
    ';
54
    foreach (parse_ini_string($sInfo) as $item=>$value) {
55
        if(!defined($item)) { define($item, $value); }
56
    }
57
    unset($sInfo);
58
    define('VERSION_LOADED', true);
59
}

Also available in: Unified diff