-->
</script>
</head>
<body></body>
</html><?php 
} else {
    init_param('GET', 'popuptitle', 'string', '');
    init_param('GET', 'popupurl', 'string', '');
    init_param('GET', 'text', 'html', '');
    init_param('GET', 'post_pingback', 'integer', 0);
    $action = 'post';
    $pinged = '';
    $default_post_cat = get_settings('default_post_category');
    /* big funky fixes for browsers' javascript bugs */
    $_popuptitle = fix_js_param(get_param('popuptitle'));
    $_text = fix_js_param(get_param('text'));
    $_popuptitle = sanitize_text($_popuptitle);
    $_text = sanitize_text($_text, true);
    $_popupurl = sanitize_text(get_param('popupurl'), true, true);
    $post_title = $_popuptitle;
    $edited_post_title = $post_title;
    $content = '<a href="' . $_popupurl . '">' . $_popuptitle . '</a>' . "\n{$_text}";
    // autodetect Trackback
    $tb_obj = new WP_TrackBack_XML_collection();
    $trackback_url = $tb_obj->get($_popupurl);
    $target_charset = $tb_obj->charset;
    $_css_file = get_custom_url('wp-admin.css');
    $_xoops_css = xoops_getcss($GLOBALS['xoopsConfig']['theme_set']);
    ?>
<!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">
require_once 'admin.php';
$title = 'Add Link';
$this_file = 'link-add.php';
$parent_file = 'link-manager.php';
$xfn = true;
$standalone = 0;
require 'admin-header.php';
$myts =& MyTextSanitizer::getInstance();
if ($user_level < get_settings('links_minadminlevel')) {
    redirect_header($siteurl . '/wp-admin/', 5, "You have no right to add the links for this blog.<br />Ask for a promotion to your <a href='mailto:" . get_settings('admin_email') . "'>blog admin</a>. :)");
    exit;
}
init_param('GET', 'action', 'string', '');
$link_url = init_param('GET', 'linkurl', 'string', '');
$link_name = init_param('GET', 'name', 'string', '');
$link_name = fix_js_param($link_name);
$form_title = _LANG_WLA_LINK_TITLE;
$form_id = "addlink";
$link_url = $myts->makeTboxData4Edit($link_url);
$link_name = $myts->makeTboxData4Edit($link_name);
$link_rss = "";
$link_image = "";
$link_description = "";
$link_rel = "";
$friendship = "";
$physical = "";
$professional = "";
$geographical = "";
$family = "";
$romantic = "";
$link_notes = "";
-->
</script>
</head>
<body></body>
</html><?php 
} else {
    param('popuptitle', 'string', '');
    param('popupurl', 'string', '');
    param('text', 'html', '');
    param('post_pingback', 'integer', 0);
    $action = 'post';
    $pinged = "";
    $default_post_cat = get_settings('default_post_category');
    /* big funky fixes for browsers' javascript bugs */
    $popuptitle = fix_js_param($popuptitle);
    $text = fix_js_param($text);
    $popuptitle = sanitize_text($popuptitle);
    $text = sanitize_text($text, true);
    $popupurl = sanitize_text($popupurl, true, true);
    $post_title = $popuptitle;
    $edited_post_title = $post_title;
    $content = '<a href="' . $popupurl . '">' . $popuptitle . '</a>' . "\n{$text}";
    // autodetect Trackback
    $tb_obj = new TrackBack_XMS_collection();
    $trackback_url = $tb_obj->get($popupurl);
    $target_charset = $tb_obj->charset;
    $css_file = get_custom_url('wp-admin.css');
    $xoops_css = xoops_getcss($xoopsConfig['theme_set']);
    ?>
<!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">