Index: branches/RC/admin/editor/editor_new.php =================================================================== diff -u -r8929 -r9389 --- branches/RC/admin/editor/editor_new.php (.../editor_new.php) (revision 8929) +++ branches/RC/admin/editor/editor_new.php (.../editor_new.php) (revision 9389) @@ -5,15 +5,15 @@ ## In-portal ## ## Intechnic Corporation ## ## All Rights Reserved, 1998-2002 ## -## ## -## No portion of this code may be copied, reproduced or ## +## ## +## No portion of this code may be copied, reproduced or ## ## otherwise redistributed without proper written ## ## consent of Intechnic Corporation. Violation will ## ## result in revocation of the license and support ## ## privileges along maximum prosecution allowed by law. ## ############################################################## -define('IS_POPUP', 1); +define('IS_POPUP', 1); // new startup: begin define('REL_PATH', 'admin/editor'); @@ -22,8 +22,8 @@ require_once FULL_PATH.'/kernel/startup.php'; // new startup: end -require_once ($pathtoroot.$admin."/include/elements.php"); -require_once ($pathtoroot."kernel/admin/include/navmenu.php"); +require_once ($pathtoroot.$admin."/include/elements.php"); +require_once ($pathtoroot."kernel/admin/include/navmenu.php"); require_once($pathtoroot.$admin."/toolbar.php"); require_once($pathtoroot.$admin."/editor/cmseditor/fckeditor.php"); @@ -51,7 +51,7 @@ $objListToolBar->Set("section",$section); $objListToolBar->Set("load_menu_func",""); $objListToolBar->Set("CheckClass",""); - + $listImages = array(); //$img, $alt, $link, $onMouseOver, $onMouseOut, $onClick @@ -71,9 +71,9 @@ echo $objListToolBar->Build(); ?>
-BasePath = 'cmseditor/' ; $oFCKeditor->Width = '100%' ; $oFCKeditor->Height = '500' ; @@ -82,12 +82,12 @@ $oFCKeditor->Config = Array( //'UserFilesPath' => $pathtoroot.'kernel/user_files', 'ProjectPath' => $objConfig->Get("Site_Path"), - 'CustomConfigurationsPath' => $rootURL.'admin/editor/inp_fckconfig.js', + 'CustomConfigurationsPath' => $rootURL.$admin.'/editor/inp_fckconfig.js', 'EditorAreaCSS' => GetThemeCSS(), //'StylesXmlPath' => '../../inp_styles.xml', //'Debug' => 1, ); - + function GetThemeCSS() { $query = 'SELECT LastCompiled, '.GetTablePrefix().'Stylesheets.Name as StyleName FROM '.GetTablePrefix().'Theme @@ -96,31 +96,31 @@ WHERE ThemeId = 4'; $conn =& GetADODBConnection(); - + $res = $conn->GetRow($query); - + $last_compiled = $res['LastCompiled']; - + $style_name = strtolower( $res['StyleName'] ); - + global $pathtoroot,$rootURL; - + $css_path = $pathtoroot.'kernel/stylesheets'; - + $css_url = $rootURL.'kernel/stylesheets'; - + if( file_exists($css_path.'/'.$style_name.'-'.$last_compiled.'.css') ) { $ret = $css_url.'/'.$style_name.'-'.$last_compiled.'.css'; } return $ret; } - - echo $oFCKeditor->CreateHtml() ; -?> -
+ + echo $oFCKeditor->CreateHtml() ; +?> + - + @@ -143,36 +143,36 @@ //f = document.getElementById('editform'); d = document.getElementById('Content'); d.value = current; - } - else + } + else window.close() } - else + else window.close() } - + function update_opener() - { - d = document.getElementById('Content'); + { + d = document.getElementById('Content'); if (d.form) if (d.form.onsubmit) d.form.onsubmit() if (!window.opener) return; if (!window.opener.closed) - + // if (typeof (bf.$TargetField.value) != 'undefined') { // current = bf.$TargetField; // } // else { current = window.opener.document.getElementById('$TargetField'); // } - + current.value = d.value; - //alert('Setting bf.$TargetField.value to'+d.value); + //alert('Setting bf.$TargetField.value to'+d.value); window.close(); } - + END; ?> // setTimeout('update_content();',100);