From: fiedorow Date: Sat, 5 Feb 2005 16:58:28 +0000 (+0000) Subject: Presents login as guest button if course allows guests. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c43cb5ad4f939000797410f8ec816cdd88816bd9;p=moodle.git Presents login as guest button if course allows guests. --- 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;} ?> +