From c43cb5ad4f939000797410f8ec816cdd88816bd9 Mon Sep 17 00:00:00 2001 From: fiedorow Date: Sat, 5 Feb 2005 16:58:28 +0000 Subject: [PATCH] Presents login as guest button if course allows guests. --- enrol/internal/enrol.html | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/enrol/internal/enrol.html b/enrol/internal/enrol.html index d10af05b5d..127239be8c 100644 --- a/enrol/internal/enrol.html +++ b/enrol/internal/enrol.html @@ -17,7 +17,7 @@ - + guest==1 ?'"noticebox"':'"generalbox"'); ?> bgcolor="cellcontent) ?>">
errormsg)) {formerr($this->errormsg);} ?>
@@ -41,5 +41,29 @@
- - \ No newline at end of file +guest==1) { +$strallowguests = get_string("allowguests"); +$strloginguest = get_string("loginguest"); +$bgcolor = $THEME->cellcontent; +$viewasguest = << + + + + + + + + + +
$strallowguests:  + + +    +
+ + + +view_as_guest; +echo $viewasguest;} ?> + -- 2.39.5