Project

General

Profile

« Previous | Next » 

Revision 1533

Added by Dietmar over 12 years ago

new backend theme handling (Tks to Stefek)
some fixes in install

View differences:

index.php
23 23
}
24 24

  
25 25
$mod_path = dirname(str_replace('\\', '/', __FILE__));
26
$doc_root = rtrim(str_replace('\\', '/',$_SERVER['DOCUMENT_ROOT']),'/');
26
$doc_root = rtrim(realpath($_SERVER['DOCUMENT_ROOT']),'/');
27 27
$mod_name = basename($mod_path);
28
$wb_path = dirname(dirname(str_replace('\\', '/', __FILE__)));
28
$wb_path = dirname(dirname(realpath( __FILE__)));
29 29
$wb_root = str_replace(realpath($doc_root),'',$wb_path);
30 30

  
31 31
// Function to highlight input fields which contain wrong/missing data
......
198 198
				$installFlag = false;
199 199
				$config = '<font class="bad">Not empty!!?</font>';
200 200
			} elseif( is_writeable($wb_path.$configFile)==true ) {
201
				$config = '<font class="good">isWriteable</font>';
201
				$config = '<font class="good">Writeable</font>';
202 202
				$_SESSION['config_rename'] = true;
203 203
			}
204 204
		} elseif((file_exists($wb_path.'/config.php.new')==true)) {

Also available in: Unified diff