|
|
|
@ -32,6 +32,25 @@ |
|
|
|
|
* $allowed_tags_XXXX['tagname']['attributename'] = array(); |
|
|
|
|
* - please keep the content of this file alphabetically structured |
|
|
|
|
*/ |
|
|
|
|
//============================================================ |
|
|
|
|
// INIT GLOBAL ARRAYS |
|
|
|
|
//============================================================ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
global $tag_student,$attribute_student,$tag_teacher,$attribute_teacher,$tag_anonymous,$attribute_anonymous; |
|
|
|
|
|
|
|
|
|
// In choose is STUDENT |
|
|
|
|
$tag_student=array(); |
|
|
|
|
$attribute_student=array(); |
|
|
|
|
|
|
|
|
|
// In choose is COURSEMANAGER |
|
|
|
|
$tag_teacher=array(); |
|
|
|
|
$attribute_teacher=array(); |
|
|
|
|
|
|
|
|
|
// In choose is ANONYMOUS |
|
|
|
|
$tag_anonymous=array(); |
|
|
|
|
$attribute_anonymous=array(); |
|
|
|
|
|
|
|
|
|
//============================================================ |
|
|
|
|
// ALLOWED HTML FOR STUDENTS |
|
|
|
|
//============================================================ |
|
|
|
@ -470,5 +489,54 @@ $allowed_tags_teacher['body']['text'] = array(); |
|
|
|
|
$allowed_tags_teacher['body']['vlink'] = array(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//============================================================ |
|
|
|
|
// ALLOWED HTML FOR TEACHERS FOR HTMLPURIFIER |
|
|
|
|
//============================================================ |
|
|
|
|
// NOSCRIPT |
|
|
|
|
$allowed_tags_teachers['noscript'] = array(); |
|
|
|
|
// SCRIPT |
|
|
|
|
$allowed_tags_teachers['script'] = array(); |
|
|
|
|
$allowed_tags_teachers['script']['type'] = array(); |
|
|
|
|
|
|
|
|
|
$allowed_tags_teachers['html'] = array(); |
|
|
|
|
$allowed_tags_teachers['html']['xmlns'] = array(); |
|
|
|
|
|
|
|
|
|
$allowed_tags_teachers['head'] = array(); |
|
|
|
|
$allowed_tags_teachers['head']['profile'] = array(); |
|
|
|
|
|
|
|
|
|
// BODY |
|
|
|
|
$allowed_tags_teachers['body'] = array(); |
|
|
|
|
$allowed_tags_teachers['body']['alink'] = array(); |
|
|
|
|
$allowed_tags_teachers['body']['background'] = array(); |
|
|
|
|
$allowed_tags_teachers['body']['bgcolor'] = array(); |
|
|
|
|
$allowed_tags_teachers['body']['link'] = array(); |
|
|
|
|
$allowed_tags_teachers['body']['text'] = array(); |
|
|
|
|
$allowed_tags_teachers['body']['vlink'] = array(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($allowed_tags_student as $student_index =>$student_value) { |
|
|
|
|
if (count($allowed_tags_student[$student_index])==0) { |
|
|
|
|
$tag_student[]=$student_index; |
|
|
|
|
} else { |
|
|
|
|
$tag_student[]=$student_index; |
|
|
|
|
foreach ($allowed_tags_student[$student_index] as $my_student_attribute_index => $my_student_value_index) { |
|
|
|
|
$attribute_student[]=$student_index.'.'.$my_student_attribute_index; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$tag_teacher=$tag_student; |
|
|
|
|
$attribute_teacher=$attribute_student; |
|
|
|
|
foreach ($allowed_tags_teachers as $teacher_index =>$teacher_value) { |
|
|
|
|
if (count($allowed_tags_teachers[$teacher_index])==0) { |
|
|
|
|
$tag_teacher[]=$teacher_index; |
|
|
|
|
} else { |
|
|
|
|
$tag_teacher[]=$teacher_index; |
|
|
|
|
foreach ($allowed_tags_teachers[$teacher_index] as $my_teacher_attribute_index => $my_teacher_value_index) { |
|
|
|
|
$attribute_teacher[]=$teacher_index.'.'.$my_teacher_attribute_index; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$allowed_tags_teacher_full_page = $allowed_tags_student_full_page; |
|
|
|
|
?> |