[svn r17787] FS#2867 - FCKEditor, configuration options for the tool introduction sections: Clearing the global variable $fck_attribute immediatelly after its use to ensure that the concrete settings will not interfere in other places.

skala
Ivan Tcholakov 16 years ago
parent edcbdda6ed
commit 333dd58cf7
  1. 4
      main/announcements/announcements.php
  2. 4
      main/calendar/agenda.php
  3. 4
      main/course_home/course_home.php
  4. 4
      main/document/document.php
  5. 1
      main/dropbox/index.php
  6. 3
      main/exercice/exercice.php
  7. 2
      main/exercice/export/exercise_import.php
  8. 2
      main/forum/forumsearch.php
  9. 3
      main/forum/index.php
  10. 4
      main/group/group.php
  11. 4
      main/group/group_space.php
  12. 3
      main/link/link.php
  13. 3
      main/newscorm/document.php
  14. 2
      main/newscorm/lp_list.php
  15. 6
      main/survey/survey_list.php
  16. 4
      main/user/user.php
  17. 2
      main/wiki/index.php
  18. 4
      main/work/work.php

@ -1,4 +1,4 @@
<?php //$Id: announcements.php 17768 2009-01-16 04:05:43Z ivantcholakov $
<?php //$Id: announcements.php 17787 2009-01-17 00:41:06Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -866,6 +866,8 @@ if (empty($_GET['origin']) || $_GET['origin'] !== 'learnpath')
Display::display_introduction_section(TOOL_ANNOUNCEMENT);
}
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
/*
==============================================================================
MAIN SECTION

@ -1,4 +1,4 @@
<?php //$Id: agenda.php 17768 2009-01-16 04:05:43Z ivantcholakov $
<?php //$Id: agenda.php 17787 2009-01-17 00:41:06Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -245,6 +245,8 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(TOOL_CALENDAR_EVENT);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
// insert an anchor (top) so one can jump back to the top of the page
echo '<a name="top"></a>';

@ -1,4 +1,4 @@
<?php // $Id: course_home.php 17768 2009-01-16 04:05:43Z ivantcholakov $
<?php // $Id: course_home.php 17787 2009-01-17 00:41:06Z ivantcholakov $
/*
==============================================================================
@ -191,6 +191,8 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(TOOL_COURSE_HOMEPAGE);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
/*
-----------------------------------------------------------
SWITCH TO A DIFFERENT HOMEPAGE VIEW

@ -1,4 +1,4 @@
<?php // $Id: document.php 17768 2009-01-16 04:05:43Z ivantcholakov $
<?php // $Id: document.php 17787 2009-01-17 00:41:06Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -357,6 +357,8 @@ else
Display::display_introduction_section(TOOL_DOCUMENT,'left');
}
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
/*============================================================================*/
if($is_allowed_to_edit || $group_member_with_upload_rights) // TEACHER ONLY

@ -155,6 +155,7 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(TOOL_DROPBOX,'left');
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
/*
-----------------------------------------------------------

@ -1,4 +1,4 @@
<?php // $Id: exercice.php 17779 2009-01-16 17:06:30Z yannoo $
<?php // $Id: exercice.php 17787 2009-01-17 00:41:06Z ivantcholakov $
/*
==============================================================================
@ -394,6 +394,7 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(TOOL_QUIZ);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
// selects $limitExPage exercises at the same time
$from=$page*$limitExPage;

@ -111,6 +111,8 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(TOOL_QUIZ);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
//Display Forms or dialog box(if needed)
if ( isset($dialogBox) ) echo Display::display_normal_message($dialogBox,false);

@ -118,6 +118,8 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(TOOL_FORUM,'left');
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
// tracking
event_access_tool(TOOL_FORUM);

@ -137,6 +137,9 @@ $fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_
$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/';
Display::display_introduction_section(TOOL_FORUM,'left');
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
$form_count=0;

@ -1,4 +1,4 @@
<?php // $Id: group.php 17769 2009-01-16 04:07:35Z ivantcholakov $
<?php // $Id: group.php 17787 2009-01-17 00:41:06Z ivantcholakov $
/*
==============================================================================
@ -100,6 +100,8 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(TOOL_GROUP,'left');
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
/*
* Self-registration and unregistration
*/

@ -1,4 +1,4 @@
<?php //$Id: group_space.php 17769 2009-01-16 04:07:35Z ivantcholakov $
<?php //$Id: group_space.php 17787 2009-01-17 00:41:06Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -109,6 +109,8 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(group_space_.$_SESSION['_gid']);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
/*
-----------------------------------------------------------
Actions and Action links

@ -1,4 +1,4 @@
<?php // $Id: link.php 17769 2009-01-16 04:07:35Z ivantcholakov $
<?php // $Id: link.php 17787 2009-01-17 00:41:06Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -197,6 +197,7 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(TOOL_LINK,'left');
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
if (is_allowed_to_edit() and isset($_GET['action']))
{

@ -207,6 +207,9 @@ if($my_version=='1.8'){
}else{
api_introductionsection(TOOL_LEARNPATH);
}
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
if(api_is_allowed_to_edit())
{
/*--------------------------------------

@ -99,6 +99,8 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(TOOL_LEARNPATH);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
if(api_is_allowed_to_edit())
{

@ -1,4 +1,4 @@
<?php // $Id: survey_list.php 17769 2009-01-16 04:07:35Z ivantcholakov $
<?php // $Id: survey_list.php 17787 2009-01-17 00:41:06Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -27,7 +27,7 @@
* @author unknown, the initial survey that did not make it in 1.8 because of bad code
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts of the code
* @author Julio Montoya Armas <gugli100@gmail.com>, Dokeos: Personality Test modification and rewriting large parts of the code
* @version $Id: survey_list.php 17769 2009-01-16 04:07:35Z ivantcholakov $
* @version $Id: survey_list.php 17787 2009-01-17 00:41:06Z ivantcholakov $
*
* @todo use quickforms for the forms
*/
@ -92,6 +92,8 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section('survey', 'left');
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
// Action handling: searching
if (isset ($_GET['search']) AND $_GET['search'] == 'advanced')
{

@ -1,4 +1,4 @@
<?php // $Id: user.php 17769 2009-01-16 04:07:35Z ivantcholakov $
<?php // $Id: user.php 17787 2009-01-17 00:41:06Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -339,6 +339,8 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(TOOL_USER, 'left');
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
if ( api_is_allowed_to_edit()) {
echo "<div class=\"actions\">";

@ -185,6 +185,8 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display::display_introduction_section(TOOL_WIKI);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
/*
-----------------------------------------------------------
ACTIONS

@ -27,7 +27,7 @@
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University - ability for course admins to specify wether uploaded documents are visible or invisible by default.
* @author Roan Embrechts, code refactoring and virtual course support
* @author Frederic Vauthier, directories management
* @version $Id: work.php 17769 2009-01-16 04:07:35Z ivantcholakov $
* @version $Id: work.php 17787 2009-01-17 00:41:06Z ivantcholakov $
*
* @todo refactor more code into functions, use quickforms, coding standards, ...
*/
@ -402,6 +402,8 @@ $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_c
Display :: display_introduction_section(TOOL_STUDENTPUBLICATION,'left');
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
/*
-----------------------------------------------------------
COMMANDS SECTION (reserved for course administrator)

Loading…
Cancel
Save