Browse Source

[svn r17647] FS#2970 - FCKEditor + Advanced file manager: Fixing a problem with inserting mp3 audio. Resizing the file manager.

Ivan Tcholakov 16 years ago
parent
commit
f56a05f55c

+ 5 - 3
main/document/create_document.php

@@ -1,4 +1,4 @@
-<?php // $Id: create_document.php 17631 2009-01-10 18:59:07Z ivantcholakov $
+<?php // $Id: create_document.php 17647 2009-01-11 13:12:30Z ivantcholakov $
 
 /*
 ==============================================================================
@@ -404,9 +404,11 @@ if ($form->validate())
 		
 		// change the path of mp3 to absolute
 		// first regexp deals with ../../../ urls
-		$content = preg_replace("|(flashvars=\"file=)(\.+/)+|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$content);
+		// Disabled by Ivan Tcholakov.
+		//$content = preg_replace("|(flashvars=\"file=)(\.+/)+|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$content);
 		//second regexp deals with audio/ urls
-		$content = preg_replace("|(flashvars=\"file=)([^/]+)/|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/$2/',$content);		 
+		// Disabled by Ivan Tcholakov.
+		//$content = preg_replace("|(flashvars=\"file=)([^/]+)/|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/$2/',$content);		 
 		 
 		fputs($fp, $content);
 

+ 5 - 3
main/document/edit_document.php

@@ -1,4 +1,4 @@
-<?php // $Id: edit_document.php 17631 2009-01-10 18:59:07Z ivantcholakov $
+<?php // $Id: edit_document.php 17647 2009-01-11 13:12:30Z ivantcholakov $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -415,9 +415,11 @@ if($is_allowedToEdit)
 						
 						// change the path of mp3 to absolute
 						// first regexp deals with ../../../ urls
-						$texte = preg_replace("|(flashvars=\"file=)(\.+/)+|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$texte);
+						// Disabled by Ivan Tcholakov.
+						//$texte = preg_replace("|(flashvars=\"file=)(\.+/)+|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$texte);
 						//second regexp deals with audio/ urls
-						$texte = preg_replace("|(flashvars=\"file=)([^/]+)/|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/$2/',$texte);		 
+						// Disabled by Ivan Tcholakov.
+						//$texte = preg_replace("|(flashvars=\"file=)([^/]+)/|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/$2/',$texte);		 
 												
  						
  						fputs($fp,$texte);						

+ 5 - 5
main/inc/lib/fckeditor/myconfig_afm.js

@@ -121,30 +121,30 @@ FCKConfig.FontFormats	= 'p;h1;h2;h3;h4;h5' ;
 FCKConfig.LinkBrowser = true ;
 FCKConfig.LinkBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
 FCKConfig.LinkBrowserWindowWidth    = 782;
-FCKConfig.LinkBrowserWindowHeight   = 440;
+FCKConfig.LinkBrowserWindowHeight   = 490;
 
 
 FCKConfig.ImageBrowser = true ;
 FCKConfig.ImageBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
 FCKConfig.ImageBrowserWindowWidth    = 782;
-FCKConfig.ImageBrowserWindowHeight   = 440;
+FCKConfig.ImageBrowserWindowHeight   = 490;
 
 FCKConfig.FlashBrowser = true ;
 FCKConfig.FlashBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
 FCKConfig.FlashBrowserWindowWidth    = 782;
-FCKConfig.FlashBrowserWindowHeight   = 440;
+FCKConfig.FlashBrowserWindowHeight   = 490;
 
 
 FCKConfig.MediaBrowser = true ;
 FCKConfig.MediaBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
 FCKConfig.MediaBrowserWindowWidth    = 782;
-FCKConfig.MediaBrowserWindowHeight   = 440;
+FCKConfig.MediaBrowserWindowHeight   = 490;
 
 // mp3 plugin 
 FCKConfig.MP3Browser = true ;
 FCKConfig.MP3BrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
 FCKConfig.MP3BrowserWindowWidth    = 782;
-FCKConfig.MP3BrowserWindowHeight   = 440;
+FCKConfig.MP3BrowserWindowHeight   = 490;
 
 ///
 FCKConfig.LinkUpload = false ;