/* FILE ARCHIVED ON 22:07:09 фев 17, 2010 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 5:06:17 янв 12, 2014. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ function tinyBrowser (field_name, url, type, win) { /* If you work with sessions in PHP and your client doesn't accept cookies you might need to carry the session name and session ID in the request string (can look like this: "?PHPSESSID=88p0n70s9dsknra96qhuk6etm5"). These lines of code extract the necessary parameters and add them back to the filebrowser URL again. */ var cmsURL = "/wp-content/plugins/simple-forum/editors/tinymce/plugins/tinybrowser/tinybrowser.php"; // script URL - use an absolute path! if (cmsURL.indexOf("?") < 0) { //add the type as the only query parameter cmsURL = cmsURL + "?type=" + type; } else { //add the type as an additional query parameter // (PHP session ID is now included if there is one at all) cmsURL = cmsURL + "&type=" + type; } tinyMCE.activeEditor.windowManager.open({ file : cmsURL, title : 'Tiny Browser', width : 770, height : 480, resizable : "yes", scrollbars : "yes", inline : "yes", // This parameter only has an effect if you use the inlinepopups plugin! close_previous : "no" }, { window : win, input : field_name }); return false; }