1 <table width=
"90%" border=
"0" cellspacing=
"10" cellpadding=
"5" align=
"center" class=
"loginbox">
2 <?php if ($show_instructions) { ?>
4 <th width=
"50%" class=
"header left">
5 <?php print_string("returningtosite") ?>
7 <th width=
"50%" class=
"header right">
8 <?php print_string("firsttime") ?>
13 <td width=
"50%" align=
"center" valign=
"top" class=
"content left">
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">
22 <table align=
"center" class=
"loginform">
24 <td align=
"right" class=
"c0">
25 <?php print_string("username") ?>:
28 <input type=
"text" name=
"username" size=
"15" value=
"<?php p($frm->username) ?>" alt
="<?php print_string("username
") ?>" />
32 <td align
="right" class="c0">
33 <?php
print_string("password") ?>:
36 <input type=
"password" name=
"password" size=
"15" value=
"" alt=
"<?php print_string("password
") ?>" />
42 <input type
="submit" value
="<?php print_string("login
") ?>" />
48 <?php
if ($CFG->guestloginbutton
) { ?>
50 <p><?php print_string("someallowguest") ?>:
</p>
51 <form action=
"index.php" method=
"post" name=
"guestlogin">
52 <input type=
"hidden" name=
"username" value=
"guest" />
53 <input type=
"hidden" name=
"password" value=
"guest" />
54 <input type=
"submit" value=
"<?php print_string("loginguest
") ?>" />
58 <?php if ($CFG->changepassword
or is_internal_auth() ) {
59 if (is_internal_auth()) {
60 $changepassword = "forgot_password.php";
61 $changebuttonname = get_string("senddetails");
63 $changepassword = $CFG->changepassword
;
64 $changebuttonname = get_string("passwordrecovery");
68 <p><?php print_string("forgotten") ?></p>
69 <form action=
"<?php p($changepassword) ?>" method
="get" name
="changepassword">
70 <input type
="submit" value
="<?php p($changebuttonname) ?>" />
76 <?php if ($show_instructions) { ?>
77 <td width=
"50%" valign=
"top" class=
"content right">
78 <?php switch ($CFG->auth
) {
80 print_string("loginsteps", "", "signup.php");
83 <form action=
"signup.php" method=
"get" name=
"signup">
84 <input type=
"submit" value=
"<?php print_string("startsignup
") ?>" />
89 print_string("loginstepsnone");
92 echo format_text($CFG->auth_instructions
);
93 if (!function_exists('auth_user_login')) {
94 require_once("../auth/$CFG->auth/lib.php");
96 if (!empty($CFG->auth_user_create
) and function_exists('auth_user_create') ){
99 <form action=
"signup.php" method=
"get" name=
"signup">
100 <input type=
"submit" value=
"<?php print_string("startsignup
") ?>" />