From 0a789a4384f44f15e34f8e1a0f8a86996834a958 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Thu, 8 Jan 2009 11:50:32 +0100 Subject: [PATCH] [svn r17585] FS#2970 - Advanced file manager, Agenda tool: Passing the setting "advanced_filemanager" to FCKEditor's javascripts. --- main/announcements/announcements.php | 56 +++++++++++++++------------- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/main/announcements/announcements.php b/main/announcements/announcements.php index 6ccc2d01fa..64a1c1f994 100644 --- a/main/announcements/announcements.php +++ b/main/announcements/announcements.php @@ -1,4 +1,4 @@ - '.api_get_path(WEB_CODE_PATH).'/survey/#page#?temp=#temp#&surveyid=#sid#&uid=#uid#&mail=#mail#&db_name=#db_name '; } - //api_disp_html_area('newContent',$content_to_modify,'250px'); - - require_once(api_get_path(LIBRARY_PATH) . "/fckeditor/fckeditor.php"); - $oFCKeditor = new FCKeditor('newContent') ; - $oFCKeditor->BasePath = api_get_path(WEB_PATH) . 'main/inc/lib/fckeditor/' ; - $oFCKeditor->Height = '250'; - $oFCKeditor->Width = '100%'; - $oFCKeditor->Value = $content_to_modify; - $oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js"; - $oFCKeditor->ToolbarSet = "Announcements"; - - $TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE); - $sql="SELECT isocode FROM ".$TBL_LANGUAGES." WHERE english_name='".$_SESSION["_course"]["language"]."'"; - $result_sql=api_sql_query($sql, __FILE__, __LINE__); - $isocode_language=Database::result($result_sql,0,0); - $oFCKeditor->Config['DefaultLanguage'] = $isocode_language; - - echo $oFCKeditor->CreateHtml(); - if(empty($_SESSION['toolgroup'])){ - echo '


'; - } - else{ - echo '


'; - } - echo '
'; + //api_disp_html_area('newContent',$content_to_modify,'250px'); + + require_once(api_get_path(LIBRARY_PATH) . "/fckeditor/fckeditor.php"); + $oFCKeditor = new FCKeditor('newContent') ; + $oFCKeditor->BasePath = api_get_path(WEB_PATH) . 'main/inc/lib/fckeditor/' ; + $oFCKeditor->Height = '250'; + $oFCKeditor->Width = '100%'; + $oFCKeditor->Value = $content_to_modify; + $oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js"; + $oFCKeditor->ToolbarSet = "Announcements"; + + $TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE); + $sql="SELECT isocode FROM ".$TBL_LANGUAGES." WHERE english_name='".$_SESSION["_course"]["language"]."'"; + $result_sql=api_sql_query($sql, __FILE__, __LINE__); + $isocode_language=Database::result($result_sql,0,0); + $oFCKeditor->Config['DefaultLanguage'] = $isocode_language; + + $oFCKeditor->Config['AdvancedFileManager'] = api_get_setting('advanced_filemanager') == 'true' ? true : false; + + echo $oFCKeditor->CreateHtml(); + + if(empty($_SESSION['toolgroup'])){ + echo '


'; + } + else{ + echo '


'; + } + echo '
'; + if((isset($_GET['action']) && isset($_GET['id']) && is_array($to))||isset($_GET['remindallinactives'])||isset($_GET['remind_inactive'])){ echo ''; }