Fixes to point directly to index.php wherever it was assumed. This wasn't

a problem on most servers, but was causing some problems on IIS servers
This commit is contained in:
martin 2002-09-15 06:06:32 +00:00
parent 1a72314d0f
commit a7b9e8bc9f
3 changed files with 7 additions and 7 deletions

View File

@ -30,7 +30,7 @@
<td width=50%>
<table cellpadding=1 cellspacing=0><tr>
<td><input type=submit value="<? print_string("login") ?>"></form></td>
<td><form action="<?=$CFG->wwwroot?>/" method=post>
<td><form action="<?=$CFG->wwwroot?>/index.php" method=post>
<input type=submit value="<? print_string("cancel") ?>"></form></td>
</tr></table>

View File

@ -31,7 +31,7 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
if (isset($USER->id)) {
$button = "<FONT SIZE=2><A HREF=\"$CFG->wwwroot/login/logout.php\">".get_string("logout")."</A></FONT>";
} else {
$button = "<FONT SIZE=2><A HREF=\"$CFG->wwwroot/login/\">".get_string("login")."</A></FONT>";
$button = "<FONT SIZE=2><A HREF=\"$CFG->wwwroot/login/index.php\">".get_string("login")."</A></FONT>";
}
}
@ -76,7 +76,7 @@ function print_footer ($course=NULL) {
" (<A HREF=\"$CFG->wwwroot/login/logout.php\">".get_string("logout")."</A>)";
} else {
$loggedinas = get_string("loggedinnot", "moodle").
" (<A HREF=\"$CFG->wwwroot/login/\">".get_string("login")."</A>)";
" (<A HREF=\"$CFG->wwwroot/login/index.php\">".get_string("login")."</A>)";
}
include ("$CFG->dirroot/theme/$CFG->theme/footer.html");
@ -971,9 +971,9 @@ function require_login($courseid=0) {
$USER = NULL;
save_session("USER");
if ($PHPSESSID) { // Cookies not enabled.
redirect("$CFG->wwwroot/login/?PHPSESSID=$PHPSESSID");
redirect("$CFG->wwwroot/login/index.php?PHPSESSID=$PHPSESSID");
} else {
redirect("$CFG->wwwroot/login/");
redirect("$CFG->wwwroot/login/index.php");
}
die;
}

View File

@ -15,7 +15,7 @@
(<? print_string("cookiesenabled") ?>)<BR>
<? formerr($errormsg) ?>
</p></font>
<FORM NAME="form" ACTION="<?=$CFG->wwwroot?>/login/" METHOD=post>
<FORM NAME="form" ACTION="<?=$CFG->wwwroot?>/login/index.php" METHOD=post>
<table border="0" align="center">
<tr>
<td width="80%"><FONT SIZE=2>
@ -43,7 +43,7 @@
<HR>
<P ALIGN=CENTER><? print_string("someallowguest") ?>:</P>
<CENTER>
<FORM NAME="form2" ACTION="<?=$CFG->wwwroot?>/login/" METHOD=post>
<FORM NAME="form2" ACTION="<?=$CFG->wwwroot?>/login/index.php" METHOD=post>
<INPUT TYPE="hidden" NAME="username" VALUE="guest">
<INPUT TYPE="hidden" NAME="password" VALUE="guest">
<INPUT type="submit" NAME="Submit" VALUE="<? print_string("loginguest") ?>">