diff --git a/e107_plugins/tinymce/plugins/ibrowser/ibrowser.php b/e107_plugins/tinymce/plugins/ibrowser/ibrowser.php index 623d78083..e21b805c6 100644 --- a/e107_plugins/tinymce/plugins/ibrowser/ibrowser.php +++ b/e107_plugins/tinymce/plugins/ibrowser/ibrowser.php @@ -9,12 +9,12 @@ // ------------------------------------------------ // www.j-cons.com // ================================================ -// $Revision: 1.4 $Date: 2004/10/04 +// $Revision: 1.5 $Date: 2004/10/04 // ================================================ // // $Source: /cvs_backup/e107_0.8/e107_plugins/tinymce/plugins/ibrowser/ibrowser.php,v $ -// $Revision: 1.4 $ -// $Date: 2009-07-02 00:13:13 $ +// $Revision: 1.5 $ +// $Date: 2009-07-02 03:24:14 $ // $Author: e107coders $ // +----------------------------------------------------------------------------+ // Major Re-work by CaMer0n @@ -76,6 +76,11 @@ else { include_once("langs/English.php"); } + + $_root = e_BASE; + $d = @dir(e_BASE.$imglib); + + echo " @@ -131,8 +136,8 @@ echo " } // } - // validate input values - function validateParams() { + + function validateParams() { // validate input values // check numeric values for attributes if (isNaN(parseInt(document.getElementById("width").value)) && document.getElementById("width").value != '') { alert(tinyMCE.getLang('lang_ibrowser_error')+ ' : '+ tinyMCE.getLang('lang_ibrowser_error_width_nan')); @@ -163,8 +168,8 @@ echo " } - // delete image - function deleteClick() + + function deleteClick() // delete image { if (document.libbrowser.imglist.selectedIndex>=0) { @@ -176,64 +181,59 @@ echo " } } -// set picture attributes on change - function selectChange(obj) + + function selectChange(obj) // set picture attributes on change { var formObj = document.forms[0]; -// formObj.src.value = ''+obj.options[obj.selectedIndex].value; -// formObj.width.value = obj.options[obj.selectedIndex].img_width; -// formObj.height.value = obj.options[obj.selectedIndex].img_height; -// formObj.size.value = obj.options[obj.selectedIndex].f_size; -// formObj.alt.value = obj.options[obj.selectedIndex].value; - var splitvar = obj.options[obj.selectedIndex].value.split("|"); - formObj.src.value = ''+splitvar[3]; - formObj.width.value = splitvar[0]; - formObj.height.value = splitvar[1]; - formObj.size.value = splitvar[2]; - formObj.alt.value = splitvar[3]; + + var splitvar = obj.options[obj.selectedIndex].value.split("|"); + formObj.src.value = ''+splitvar[3]; + formObj.width.value = splitvar[0]; + formObj.height.value = splitvar[1]; + formObj.size.value = splitvar[2]; + formObj.alt.value = splitvar[3]; owidth = eval(formObj.width.value); oheight = eval(formObj.height.value); - updateStyle() + updateStyle(); } - // init functions - function init() - { - // if existing image (image properties) - if (tinyMCE.getWindowArg('src') != '') { - var formObj = document.forms[0]; - for (var i=0; i   - "; + - $_root = e_BASE; - $d = @dir(e_BASE.$imglib); - - - echo " - - + @@ -432,7 +426,11 @@ echo " ".$lang_ibrowser_height.": - \"".$lang_ibrowser_reset."\" + + + \"".$lang_ibrowser_reset."\" + +