Permalink
Browse files

*** empty log message ***

  • Loading branch information...
phoenixfr
phoenixfr committed Mar 14, 2005
1 parent ee9eb2c commit f8c330c02387f3aa66e7d07ad503a2b1b832453d
Showing with 2 additions and 2 deletions.
  1. +1 −1 auth/cas/forbidden.php
  2. +1 −1 auth/cas/index_form.html
View
@@ -2,7 +2,7 @@
// version $Id$
// Page for forbidden access from CAS
require_once("../../config.php");
- $errormsg = get_string("auth_cas_invalidcaslogin");
+ $errormsg = get_string("auth_cas_invalidcaslogin", "auth");
print_header("$site->fullname: $loginsite", "$site->fullname", $loginsite,
$focus, "", true, "<div align=right>$langmenu</div>");
include("forbidden.html");
View
@@ -1 +1 @@
-<table width="90%" border="0" cellspacing="10" cellpadding="5" align="center"> <tr><?php if ($show_instructions) { ?> <td width="50%" class="headingblock"> <p align="center"><b><font size="3"><?php print_string("returningtosite") ?></font></b></p> </td> <td width="50%" class="headingblock"> <p align="center"><b><font size="3"><?php print_string("firsttime") ?></font></b></p> </td><?php } ?> </tr> <tr> <td width="50%" align="center" valign="top" class="generalbox"> <p><?php print_string("loginusing") ?>:<br /> (<?php print_string("cookiesenabled");?>) <?php helpbutton("cookies", get_string("cookiesenabled"))?><br /><?php formerr($errormsg) ?> </p> <form action="index.php" method="post" name="login" id="login"> <table border="0" align="center" style="font-size: small"> <tr> <td width="100%"> <input type="hidden" name="username" value="cas" /> <input type="hidden" name="password" value="cas" /> <input type="submit" value="<?php print_string("auth_cas_logincas") ?>" /> </td> </tr> </table> </form><?php if ($CFG->guestloginbutton) { ?> <hr width="80%" /> <p><?php print_string("someallowguest") ?>:</p> <form action="index.php" method="post" name="guestlogin"> <input type="hidden" name="username" value="guest" /> <input type="hidden" name="password" value="guest" /> <input type="submit" value="<?php print_string("loginguest") ?>" /> </form><?php } ?><?php if ($CFG->changepassword or is_internal_auth() ) { if (is_internal_auth()) { $changepassword = "forgot_password.php"; $changebuttonname = get_string("senddetails"); } else { $changepassword = $CFG->changepassword; $changebuttonname = get_string("passwordrecovery"); }?> <hr width="80%" /> <p><?php print_string("forgotten") ?></p> <form action="<?php p($changepassword) ?>" method="get" name="changepassword"> <input type="submit" value="<?php p($changebuttonname) ?>" /> </form><?php } ?> </td><?php if ($show_instructions) { ?> <td width="50%" valign="top" class="generalbox"><?php switch ($CFG->auth) { case "email": print_string("loginsteps", "", "signup.php");?> <div align="center"> <form action="signup.php" method="get" name="signup"> <input type="submit" value="<?php print_string("startsignup") ?>" /> </form> </div><?php break; case "none": print_string("loginstepsnone"); break; default: echo format_text($CFG->auth_instructions); if (!function_exists('auth_user_login')) { require_once("../auth/$CFG->auth/lib.php"); } if (!empty($CFG->auth_user_create) and function_exists('auth_user_create') ){?> <div align="center"> <form action="signup.php" method="get" name="signup"> <input type="submit" value="<?php print_string("startsignup") ?>" /> </form> </div><?php } }?> </td></tr><?php } ?></table>
+<table width="90%" border="0" cellspacing="10" cellpadding="5" align="center"> <tr><?php if ($show_instructions) { ?> <td width="50%" class="headingblock"> <p align="center"><b><font size="3"><?php print_string("returningtosite") ?></font></b></p> </td> <td width="50%" class="headingblock"> <p align="center"><b><font size="3"><?php print_string("firsttime") ?></font></b></p> </td><?php } ?> </tr> <tr> <td width="50%" align="center" valign="top" class="generalbox"> <p><?php print_string("loginusing") ?>:<br /> (<?php print_string("cookiesenabled");?>) <?php helpbutton("cookies", get_string("cookiesenabled"))?><br /><?php formerr($errormsg) ?> </p> <form action="index.php" method="post" name="login" id="login"> <table border="0" align="center" style="font-size: small"> <tr> <td width="100%"> <input type="hidden" name="username" value="cas" /> <input type="hidden" name="password" value="cas" /> <input type="submit" value="<?php print_string("auth_cas_logincas", "auth") ?>" /> </td> </tr> </table> </form><?php if ($CFG->guestloginbutton) { ?> <hr width="80%" /> <p><?php print_string("someallowguest") ?>:</p> <form action="index.php" method="post" name="guestlogin"> <input type="hidden" name="username" value="guest" /> <input type="hidden" name="password" value="guest" /> <input type="submit" value="<?php print_string("loginguest") ?>" /> </form><?php } ?><?php if ($CFG->changepassword or is_internal_auth() ) { if (is_internal_auth()) { $changepassword = "forgot_password.php"; $changebuttonname = get_string("senddetails"); } else { $changepassword = $CFG->changepassword; $changebuttonname = get_string("passwordrecovery"); }?> <hr width="80%" /> <p><?php print_string("forgotten") ?></p> <form action="<?php p($changepassword) ?>" method="get" name="changepassword"> <input type="submit" value="<?php p($changebuttonname) ?>" /> </form><?php } ?> </td><?php if ($show_instructions) { ?> <td width="50%" valign="top" class="generalbox"><?php switch ($CFG->auth) { case "email": print_string("loginsteps", "", "signup.php");?> <div align="center"> <form action="signup.php" method="get" name="signup"> <input type="submit" value="<?php print_string("startsignup") ?>" /> </form> </div><?php break; case "none": print_string("loginstepsnone"); break; default: echo format_text($CFG->auth_instructions); if (!function_exists('auth_user_login')) { require_once("../auth/$CFG->auth/lib.php"); } if (!empty($CFG->auth_user_create) and function_exists('auth_user_create') ){?> <div align="center"> <form action="signup.php" method="get" name="signup"> <input type="submit" value="<?php print_string("startsignup") ?>" /> </form> </div><?php } }?> </td></tr><?php } ?></table>

0 comments on commit f8c330c

Please sign in to comment.