Non-editing teachers and students cannot use them...
Ciao
If you want to modify this, you should modify course/lib.php, but I'm not sure it this is recommended...
Even the edit will not be able to see those options...
if (isadmin()) { //This line before 1153
} //This line after 1157
It isn't 100% secure (editing teachers knowing the URLs will be able to execute backups), but the backup and restore links will be showed only to administrators in the course main page.
Ciao
if (isadmin()) {
$admindata[]="<a href=\"$CFG->wwwroot/backup/backup.php?id=$course->id\">".get_string("backup")."...</a>";
$adminicon[]="<img src=\"$CFG->pixpath/i/backup.gif\" height=16 width=16 alt=\"\">";
$admindata[]="<a href=\"$CFG->wwwroot/files/index.php?id=$course->id&wdir=/backupdata\">".get_string("restore")."...</a>";
$adminicon[]="<img src=\"$CFG->pixpath/i/restore.gif\" height=16 width=16 alt=\"\">";
$admindata[]="<a href=\"scales.php?id=$course->id\">".get_string("scales")."...</a>";
$adminicon[]="<img src=\"$CFG->pixpath/i/scales.gif\" height=16 width=16 alt=\"\">";
}
For now this will do... Thanks...
you have hidden the "Scales" link too (for your information, only)
Ciao
Oppsss, your right I didnt see that... Thanks
This the correct one...
if (isadmin()) {
$admindata[]="<a href=\"$CFG->wwwroot/backup/backup.php?id=$course->id\">".get_string("backup")."...</a>";
$adminicon[]="<img src=\"$CFG->pixpath/i/backup.gif\" height=16 width=16 alt=\"\">";
$admindata[]="<a href=\"$CFG->wwwroot/files/index.php?id=$course->id&wdir=/backupdata\">".get_string("restore")."...</a>";
$adminicon[]="<img src=\"$CFG->pixpath/i/restore.gif\" height=16 width=16 alt=\"\">";
}
under 1.3 that code has been moved to the Blocks System. So you need to enclose lines 56-60 in blocks/admin/block_admin.php with the same "if" condition.
Hope this helps, ciao