<?php

$colspan = 3;
$rows = get_settings('default_post_edit_rows');
if ($rows < 3 || $rows > 100) {
    $rows = 10;
}
$category_select = categories_nested_select(array($default_post_cat));
$use_quicktags = get_settings('use_quicktags') && !($is_macIE || $is_lynx) && $mode != 'bookmarklet';
if ($GLOBALS['wp_use_spaw']) {
    if ($is_gecko || $is_winIE) {
        if (file_exists(dirname(__FILE__) . '/spaw/spaw_control.class.php')) {
            $use_spaw = true;
            $spaw_root = dirname(__FILE__) . '/spaw/';
        } else {
            if (file_exists(XOOPS_ROOT_PATH . '/common/spaw/spaw_control.class.php')) {
                $use_spaw = true;
                $spaw_root = XOOPS_ROOT_PATH . '/common/spaw/';
            }
        }
        if (!file_exists($spaw_root . 'class/script_gecko.js.php') && $is_gecko) {
            $use_spaw = false;
        }
    }
} else {
    $use_spaw = false;
}
// $use_koivi = $GLOBALS['wp_use_koivi'];
$smilies = array();
foreach ($GLOBALS['wpsmiliestrans'][wp_id()] as $smiley => $img) {
    $smile['id'] = str_replace("'", "\\'", $smiley);
Ejemplo n.º 2
0
<?php

require_once 'admin.php';
$mode = 'sidebar';
$standalone = 1;
$title = "";
require_once 'admin-header.php';
if ($user_level <= 0) {
    redirect_header(wp_siteurl() . '/wp-admin/', 5, _LANG_P_CHEATING_ERROR);
}
init_param('GET', 'action', 'string', '');
require_once XOOPS_ROOT_PATH . '/class/template.php';
$wpTpl =& new XoopsTpl();
$wpTpl->error_reporting = error_reporting();
$wpTpl->assign('action', $action);
$wpTpl->assign('admin_area_charset', $admin_area_charset);
if ($action != 'done') {
    $category_select = categories_nested_select(array(get_settings('default_post_category')));
    $ticket = $xoopsWPTicket->getTicketHtml(__LINE__, 10800);
    $wpTpl->assign('user_ID', $user_ID);
    $wpTpl->assign('category_select', $category_select);
    $wpTpl->assign('ticket', $ticket);
}
$wpTpl->template_dir = wp_base() . '/wp-admin/templates/';
$wpTpl->display('sidebar.html');
require_once 'admin-footer.php';
<?php

$rows = get_settings('default_post_edit_rows');
if ($rows < 3 || $rows > 100) {
    $rows = 10;
}
$category_select = categories_nested_select($post_categories);
$comment_check_open = checked($comment_status, 'open', false);
$comment_check_close = checked($comment_status, 'closed', false);
$ping_check_open = checked($ping_status, 'open', false);
$ping_check_close = checked($ping_status, 'closed', false);
$use_quicktags = get_settings('use_quicktags') && !($is_macIE || $is_lynx) && $mode != 'bookmarklet';
if ($GLOBALS['wp_use_spaw']) {
    if ($is_gecko || $is_winIE) {
        if (file_exists(dirname(__FILE__) . '/spaw/spaw_control.class.php')) {
            $use_spaw = true;
            $spaw_root = dirname(__FILE__) . '/spaw/';
        } else {
            if (file_exists(XOOPS_ROOT_PATH . '/common/spaw/spaw_control.class.php')) {
                $use_spaw = true;
                $spaw_root = XOOPS_ROOT_PATH . '/common/spaw/';
            }
        }
        if (!file_exists($spaw_root . 'class/script_gecko.js.php') && $is_gecko) {
            $use_spaw = false;
        }
    }
} else {
    $use_spaw = false;
}
// $use_koivi = $GLOBALS['wp_use_koivi'];