Permalink
Browse files

Filebrowser off for students :-) at the moment...

  • Loading branch information...
1 parent 145292a commit 15153dc088a976a1d662961827cdafde8527e2d3 julmis committed Feb 23, 2004
Showing with 14 additions and 4 deletions.
  1. +7 −2 lib/editor/popups/insert_image.php
  2. +7 −2 lib/editor/popups/link.php
@@ -260,10 +260,15 @@ function submit_form(dothis) {
</table></form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
- <td width="55%" valign="top"><?php print_string("filebrowser","editor");?>:<br>
+ <td width="55%" valign="top"><?php
+ if(isteacher($id)) {
+ print_string("filebrowser","editor");
+ } else {
+ print "";
+ }?><br>
<?php print(isteacher($id))?
"<iframe id=\"ibrowser\" name=\"ibrowser\" src=\"".$CFG->wwwroot."/lib/editor/coursefiles.php?usecheckboxes=true&id=".$course->id."\" style=\"width: 100%; height: 200px;\"></iframe>":
- "<iframe src=\"about:blank\" style=\"width: 100%; height: 200px;\"></iframe>";?>
+ "";?>
</td>
<td width="45%" valign="top"><?php print_string("preview","editor");?>:<br>
<iframe id="ipreview" name="ipreview" src="about:blank" style="width: 100%; height: 200px;"></iframe>
@@ -160,12 +160,17 @@ function indexFrom() {
<table width="660" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="380" valign="top"><fieldset>
- <legend><?php print_string("filebrowser","editor");?></legend>
+ <legend><?php
+ if(isteacher($id)) {
+ print_string("filebrowser","editor");
+ } else {
+ print "";
+ }?></legend>
<div class="space"></div>
<?php print(isteacher($id))?
"<iframe id=\"fbrowser\" name=\"fbrowser\" src=\"../coursefiles.php?id=".$course->id."\" width=\"360\" height=\"260\"></iframe>":
- "<iframe src=\"blank.html\" width=\"360\" height=\"260\"></iframe>"; ?>
+ ""; ?>
<p>
</p>
<div class="space"></div>

0 comments on commit 15153dc

Please sign in to comment.