1.1 --- a/r/setup.php Tue Aug 19 19:52:27 2008 +0200
1.2 +++ b/r/setup.php Sun Oct 05 11:16:59 2008 +0200
1.3 @@ -33,8 +33,13 @@
1.4 echo "<blockquote>Login failed, your username or password is not correct.</blockquote><br>";
1.5 }
1.6
1.7 - echo '<form><span class="label">Login</span><input type="text" name="login"><br>';
1.8 - echo '<span class="label">Password</span><input type="password" name="password"><br>';
1.9 - echo '<span class="label"> </span><input type="submit" value="Login"></form>';
1.10 + // Find the most specific login page and include it to be shown to the user.
1.11 + if (file_exists($_SESSION["configLocation"]."login.html")) {
1.12 + include_once($_SESSION["configLocation"]."login.html");
1.13 + } else if (file_exists("../local/login.html")) {
1.14 + include_once("../local/login.html");
1.15 + } else {
1.16 + include_once("../share/login.html");
1.17 + }
1.18 }
1.19 ?>
1.20 \ No newline at end of file