Permalink
Browse files

Fixes to point directly to index.php wherever it was assumed. This wa…

…sn't

a problem on most servers, but was causing some problems on IIS servers
  • Loading branch information...
1 parent 1a72314 commit a7b9e8bc9fff42ff352c61641be11c9f9f3a0cd1 martin committed Sep 15, 2002
Showing with 7 additions and 7 deletions.
  1. +1 −1 course/enrol.html
  2. +4 −4 lib/moodlelib.php
  3. +2 −2 login/index_form.html
View
@@ -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
@@ -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
@@ -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") ?>">

0 comments on commit a7b9e8b

Please sign in to comment.