function tinymce_admin_head_main() { //Display main code. tinymce_display_code(); ?> <script type="text/javascript"> <!-- function insert_page_link() { var id = document.getElementById('insert_pages'); var page = id.selectedIndex; var file = id.options[page].value; var title = id.options[page].text; //Remove indent space. //@fixme Not the best way to do it, but it works. title = escape(title); title = title.replace(/%u2003/g, ''); title = title.replace(/%A0/g, ''); title = unescape(title); tinyMCE.execCommand('mceInsertContent', false, '<a href="?file=' + file + '" title="' + title + '">' + title + '<\/a>'); } function insert_file_link(dir) { var id = document.getElementById('insert_files'); var sel_opt = id.selectedIndex; var file = id.options[sel_opt].value; var title = id.options[sel_opt].text; //Remove indent space. //@fixme Not the best way to do it, but it works. title = escape(title); title = title.replace(/%u2003/g, ''); title = title.replace(/%A0/g, ''); title = unescape(title); tinyMCE.execCommand('mceInsertContent', false, '<a href="' + dir + '/' + file + '" title="' + title + '">' + title + '<\/a>'); } function insert_image_link(dir) { var id = document.getElementById('insert_images'); var image = id.selectedIndex; var file = id.options[image].text; tinyMCE.execCommand('mceInsertContent', false, '<img src="' + dir + '/' + file + '" alt="" \/>'); } function insert_module(dir) { var id = document.getElementById('insert_modules'); var module = id.selectedIndex; var code = id.options[module].value; tinyMCE.execCommand('mceInsertContent', false, '<div class="module_' + code.replace(' ', '_') + '">{pluck show_module(' + code + ')}</div>'); } </script> <?php }
?> - <?php echo $titelkop; ?> </title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <?php if (DIRECTION_RTL) { echo '<link href="data/styleadmin-rtl.css" rel="stylesheet" type="text/css" media="screen" />'; } else { echo '<link href="data/styleadmin.css" rel="stylesheet" type="text/css" media="screen" />'; } //Include TinyMCE, but not on the login page. if (!strpos($_SERVER['SCRIPT_FILENAME'], 'login.php') && file_exists('data/modules/tinymce')) { require_once 'data/modules/tinymce/tinymce.php'; tinymce_display_code(); } ?> <link rel="icon" type="image/vnd.microsoft.icon" href="data/image/favicon.ico" /> <meta name="robots" content="noindex" /> <script type="text/javascript"> function refresh() { window.location.reload(false); } </script> </head> <body> <div id="menuheader"> <h1>pluck</h1> <ul id="menu2">