]> git.mjollnir.org Git - moodle.git/commitdiff
auth/cas: dos2unix on index_form.html - bug #5053
authormartinlanghoff <martinlanghoff>
Tue, 25 Apr 2006 23:15:08 +0000 (23:15 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 25 Apr 2006 23:15:08 +0000 (23:15 +0000)
auth/cas/index_form.html

index 271946e06bdf0e329a187cdb72972880b8b4dc09..0616a20201652502e7efd3e9bbdccfe7add92223 100644 (file)
@@ -1 +1,92 @@
-<table width="90%" border="0" cellspacing="10" cellpadding="5" align="center">\r\r  <tr>\r\r<?php if ($show_instructions) { ?>\r\r    <td width="50%" class="headingblock">\r\r      <p align="center"><b><font size="3"><?php  print_string("returningtosite") ?></font></b></p>\r\r    </td>\r\r    <td width="50%" class="headingblock">\r\r      <p align="center"><b><font size="3"><?php  print_string("firsttime") ?></font></b></p>\r\r    </td>\r\r<?php } ?>\r\r  </tr>\r\r  <tr>\r\r    <td width="50%" align="center" valign="top" class="generalbox">\r\r      <p><?php print_string("loginusing") ?>:<br />\r\r        (<?php print_string("cookiesenabled");?>) \r\r         <?php helpbutton("cookies", get_string("cookiesenabled"))?><br /><?php formerr($errormsg) ?>\r\r      </p>\r\r\r      <form action="index.php" method="post" name="login" id="login">\r\r        <table border="0" align="center" style="font-size: small">\r\r        <tr>\r\r          <td width="100%">\r\r            <input type="hidden" name="username" value="cas" />\r\r            <input type="hidden" name="password" value="cas" />\r\r            <input type="submit" value="<?php print_string("auth_cas_logincas", "auth") ?>" />\r\r          </td>\r\r        </tr>\r\r        </table>\r\r      </form>\r\r<?php if ($CFG->guestloginbutton) {  ?>\r\r      <hr width="80%" />\r\r      <p><?php print_string("someallowguest") ?>:</p>\r\r        <form action="index.php" method="post" name="guestlogin">\r\r          <input type="hidden" name="username" value="guest" />\r\r          <input type="hidden" name="password" value="guest" />\r\r          <input type="submit" value="<?php print_string("loginguest") ?>" />\r\r        </form>\r\r<?php } ?>\r\r\r\r<?php if ($CFG->changepassword or is_internal_auth() ) {\r\r          if (is_internal_auth()) {\r\r              $changepassword = "forgot_password.php";\r\r              $changebuttonname = get_string("senddetails");\r\r          } else {\r\r              $changepassword = $CFG->changepassword;\r\r              $changebuttonname = get_string("passwordrecovery");\r\r          }\r\r?>\r\r      <hr width="80%" />\r\r      <p><?php print_string("forgotten") ?></p> \r\r        <form action="<?php p($changepassword) ?>" method="get" name="changepassword">\r\r          <input type="submit" value="<?php p($changebuttonname) ?>" />\r\r        </form>\r\r<?php } ?>\r\r\r\r    </td>\r\r\r\r<?php if ($show_instructions) { ?>\r\r    <td width="50%" valign="top" class="generalbox">\r\r<?php     switch ($CFG->auth) {\r\r              case "email":\r\r                 print_string("loginsteps", "", "signup.php");\r\r?>\r\r                 <div align="center">\r\r                   <form action="signup.php" method="get" name="signup">\r\r                   <input type="submit" value="<?php print_string("startsignup") ?>" />\r\r                   </form>\r\r                 </div>\r\r<?php            break;\r\r               case "none":\r\r                 print_string("loginstepsnone");\r\r                 break;\r\r               default:\r\r                 echo format_text($CFG->auth_instructions);\r\r                 if (!function_exists('auth_user_login')) {\r\r                    require_once("../auth/$CFG->auth/lib.php");\r\r                 }\r\r                 if (!empty($CFG->auth_user_create) and function_exists('auth_user_create') ){\r\r?>\r\r                 <div align="center">\r\r                    <form action="signup.php" method="get" name="signup">\r\r                    <input type="submit" value="<?php print_string("startsignup") ?>" />\r\r                    </form>\r\r                 </div>\r\r<?php            }\r\r          }\r\r?>\r\r    </td></tr>\r\r<?php } ?>\r\r</table>\r\r
\ No newline at end of file
+<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>
+