Changeset 925
- Timestamp:
- 01/24/06 23:37:19 (7 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 3 modified
-
CHANGELOG (modified) (1 diff)
-
wifidog/classes/Dependencies.php (modified) (4 diffs)
-
wifidog/classes/SmartyWifidog.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/CHANGELOG
r921 r925 1 2006-01-24 Benoit Grégoire <bock@step.polymtl.ca> 2 * Dependencies.php: We missed one more instance of non-unifrom code for path detection. 3 The Dependencies class now uses the code in include/path_defines_base.php like the rest of the system. 4 Also make it return more usefull error messages. 5 * SmartyWifidog.php: Output the error returned by Dependencies if Smarty cannot be found for some reason. 6 1 7 2006-01-23 Max Horváth <max.horvath@maxspot.de> 2 8 * Removed compiled PHPdoc documentation -
trunk/wifidog-auth/wifidog/classes/Dependencies.php
r915 r925 46 46 47 47 /** 48 * This class checks the existence of components required by WiFiDog 48 * This class checks the existence of components required by WiFiDog. 49 * Note that it implicitely depends on the defines in include/path_defines_base.php 49 50 * 50 51 * @package WiFiDogAuthServer … … 124 125 if (self :: $_components[$component]["localLib"]) 125 126 { 126 if (file_exists($_SERVER["DOCUMENT_ROOT"]. (defined('SYSTEM_PATH') ? SYSTEM_PATH : '/').self :: $_components[$component]["file"])) 127 $filepath = WIFIDOG_ABS_FILE_PATH.self :: $_components[$component]["file"]; 128 if (file_exists($filepath)) 127 129 { 128 130 // The component has been found. … … 134 136 require_once ('Locale.php'); 135 137 136 $errmsg = s elf :: $_components[$component]["name"]._(" is not installed");138 $errmsg = sprintf(_("Component %s is not installed (not found in %s)"), self :: $_components[$component]["name"], $filepath); 137 139 } 138 140 } … … 149 151 // The component has NOT been found. Return error message. 150 152 require_once ('Locale.php'); 151 152 $errmsg = self :: $_components[$component]["name"]._(" is not installed"); 153 $errmsg = sprintf(_("Component %s is not installed (not found in %s)"), self :: $_components[$component]["name"], get_include_path()); 154 153 155 } 154 156 } -
trunk/wifidog-auth/wifidog/classes/SmartyWifidog.php
r915 r925 55 55 } else { 56 56 // Build the system_path for the auth-server 57 print "Redirecti on to Wifidog web-base install since Smarty is missing<META HTTP-EQUIV=Refresh CONTENT=\"5; URL=".BASE_URL_PATH."/install.php\">";57 print "Redirecting to Wifidog web-based install script since Smarty is missing (Error was: $errmsg)<META HTTP-EQUIV=Refresh CONTENT=\"5; URL=".BASE_URL_PATH."/install.php\">"; 58 58 exit(); 59 59 }
