1 <table width=
"90%" border=
"0" cellspacing=
"10" cellpadding=
"5" align=
"center" style=
"font-size: small">
3 <?php if ($show_instructions) { ?>
4 <td width=
"50%" bgcolor=
"<?php p($THEME->cellheading2) ?>" class="headingblock">
5 <p align
="center"><b
><font size
="3"><?php
print_string("returningtosite") ?></font></b></p>
7 <td width=
"50%" bgcolor=
"<?php p($THEME->cellheading2) ?>" class="headingblock">
8 <p align
="center"><b
><font size
="3"><?php
print_string("firsttime") ?></font></b></p>
13 <td width=
"50%" align=
"center" valign=
"top" bgcolor=
"<?php p($THEME->cellcontent2) ?>" class="generalbox">
14 <p
><?php
print_string("loginusing") ?>:
<br />
15 (
<?php print_string("cookiesenabled");?>)
16 <?php helpbutton("cookies", get_string("cookiesenabled"))?><br /><?php formerr($errormsg)
?>
18 <form action=
"index.php" method=
"post" name=
"login" id=
"login">
19 <table border=
"0" align=
"center" style=
"font-size: small">
22 <table align=
"center" style=
"font-size: small">
25 <p><?php print_string("username") ?>:
</p>
28 <input type=
"text" name=
"username" size=
"15" value=
"<?php p($frm->username) ?>" />
33 <p
><?php
print_string("password") ?>:
</p>
36 <input type=
"password" name=
"password" size=
"15" value=
"<?php p($frm->password) ?>" />
42 <input type
="submit" value
="<?php print_string("login
") ?>" />
48 <?php
if ($CFG->guestloginbutton
) { ?>
50 <p><?php print_string("someallowguest") ?>:
</p>
52 <form action=
"index.php" method=
"post" name=
"guestlogin">
53 <input type=
"hidden" name=
"username" value=
"guest" />
54 <input type=
"hidden" name=
"password" value=
"guest" />
55 <input type=
"submit" value=
"<?php print_string("loginguest
") ?>" />
60 <?php if ($CFG->changepassword
or is_internal_auth() ) {
61 if (is_internal_auth()) {
62 $changepassword = "forgot_password.php";
63 $changebuttonname = get_string("senddetails");
65 $changepassword = $CFG->changepassword
;
66 $changebuttonname = get_string("passwordrecovery");
70 <p><?php print_string("forgotten") ?></p>
72 <form action=
"<?php p($changepassword) ?>" method
="get" name
="changepassword">
73 <input type
="submit" value
="<?php p($changebuttonname) ?>" />
80 <?php if ($show_instructions) { ?>
81 <td width=
"50%" valign=
"top" bgcolor=
"<?php p($THEME->cellcontent2) ?>" class="generalbox">
82 <?php
switch ($CFG->auth
) {
84 echo "<p>".get_string("loginsteps", "", "signup.php")."</p>";
87 <form action=
"signup.php" method=
"get" name=
"signup">
88 <input type=
"submit" value=
"<?php print_string("startsignup
") ?>" />
93 echo "<p>".get_string("loginstepsnone")."</p>";
96 echo format_text($CFG->auth_instructions
);
97 require_once("../auth/$CFG->auth/lib.php");
98 if (!empty($CFG->auth_user_create
) and function_exists('auth_user_create') ){
101 <form action=
"signup.php" method=
"get" name=
"signup">
102 <input type=
"submit" value=
"<?php print_string("startsignup
") ?>" />