$type = 'document'; break; case 'media.php': $type = 'media'; break; case 'link.php': $type = 'link'; break; } if (file_exists(dirname(__FILE__) . '/config.php')) { require_once dirname(__FILE__) . '/config.php'; } define('WPRO_DONT_SEND_CACHE_HEADERS', true); require_once dirname(__FILE__) . '/wysiwygPro.class.php'; $editor = new wysiwygPro(); $editor->fetchFileBrowserJS('openfilebrowser', true); $url = $EDITOR->editorLink('dialog.php?dialog=wproCore_fileBrowser&action=link&chooser=true&dirs=' . $type . '&' . (isset($editor->sess) ? $editor->sess->sessionName : 'wprosid') . '=' . (isset($editor->sess) ? $editor->sess->sessionId : '') . strip_tags('&' . session_name() . '=' . session_id()) . ($editor->appendToQueryStrings ? '&' . $editor->appendToQueryStrings : '')); $editor->sess->save($editor); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title></title> <style type="text/css"> html, body { height: 100%; width: 100%; margin: 0px; padding: 0px; }