|
|
|
@ -146,21 +146,6 @@ else |
|
|
|
// some titles are not allowed |
|
|
|
// some titles are not allowed |
|
|
|
//$not_allowed_titles=array("Index", "RecentChanges","AllPages", "Categories"); //not used for now |
|
|
|
//$not_allowed_titles=array("Index", "RecentChanges","AllPages", "Categories"); //not used for now |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
----------------------------------------------------------- |
|
|
|
|
|
|
|
Configuration settings |
|
|
|
|
|
|
|
----------------------------------------------------------- |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$fck_attribute['Width'] = '100%'; |
|
|
|
|
|
|
|
$fck_attribute['ToolbarSet'] = 'Wiki'; |
|
|
|
|
|
|
|
if(!api_is_allowed_to_edit()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$fck_attribute['Config']['UserStatus'] = 'student'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
|
============================================================================== |
|
|
|
============================================================================== |
|
|
|
MAIN CODE |
|
|
|
MAIN CODE |
|
|
|
@ -175,18 +160,27 @@ if(!api_is_allowed_to_edit()) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
$fck_attribute['Width'] = '100%'; |
|
|
|
$fck_attribute['Width'] = '100%'; |
|
|
|
$fck_attribute['Height'] = '400'; |
|
|
|
$fck_attribute['Height'] = '300'; |
|
|
|
|
|
|
|
$fck_attribute['ToolbarSet'] = 'Full'; |
|
|
|
|
|
|
|
|
|
|
|
$fck_attribute['Config']['InDocument'] = false; |
|
|
|
|
|
|
|
$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/'; |
|
|
|
|
|
|
|
$fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_path().'/document/'; |
|
|
|
|
|
|
|
$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Display::display_introduction_section(TOOL_WIKI); |
|
|
|
Display::display_introduction_section(TOOL_WIKI); |
|
|
|
|
|
|
|
|
|
|
|
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used. |
|
|
|
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
----------------------------------------------------------- |
|
|
|
|
|
|
|
Wiki configuration settings |
|
|
|
|
|
|
|
----------------------------------------------------------- |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$fck_attribute['Width'] = '100%'; |
|
|
|
|
|
|
|
$fck_attribute['ToolbarSet'] = 'Wiki'; |
|
|
|
|
|
|
|
if(!api_is_allowed_to_edit()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$fck_attribute['Config']['UserStatus'] = 'student'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
|
----------------------------------------------------------- |
|
|
|
----------------------------------------------------------- |
|
|
|
ACTIONS |
|
|
|
ACTIONS |
|
|
|
|