| 31 | | // load Smarty library |
| 32 | | require_once(BASEPATH.'lib/smarty/Smarty.class.php'); |
| | 31 | # Check if Smarty installed, if not redirect user to web-base installation |
| | 32 | if (file_exists(BASEPATH.'lib/smarty/Smarty.class.php')) { |
| | 33 | require_once(BASEPATH.'lib/smarty/Smarty.class.php'); # load Smarty library |
| | 34 | } else { |
| | 35 | $exploded_path = explode("/", $_SERVER['SCRIPT_NAME']); # Split directories in token |
| | 36 | array_pop($exploded_path); # Remove install.php from the list |
| | 37 | $system_path = implode("/", $exploded_path); # Build the system_path for the auth-server |
| | 38 | print "Redirection to Wifidog web-base install <META HTTP-EQUIV=Refresh CONTENT=\"1; URL=$system_path/install.php\">"; |
| | 39 | exit(); |
| | 40 | } |