From 4fb8d72cec838ef98a1780a22c742687549a73d4 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Wed, 8 Mar 2006 13:59:28 +0000 Subject: [PATCH] also support opera --- include/functions_entries_admin.inc.php | 1100 +++++++++++------------ 1 file changed, 550 insertions(+), 550 deletions(-) diff --git a/include/functions_entries_admin.inc.php b/include/functions_entries_admin.inc.php index 151b31b..0281d42 100644 --- a/include/functions_entries_admin.inc.php +++ b/include/functions_entries_admin.inc.php @@ -1,550 +1,550 @@ -' . $n; - $cat_list .= ' ' . $n; - $selected = array(); - if (is_array($entry['categories'])) { - if (count($entry['categories']) > 1) { - $categoryselector_expanded = true; - } - - foreach ($entry['categories'] as $cat) { - $selected[] = $cat['categoryid']; - } - } - - if (count($selected) > 1 || - (isset($serendipity['POST']['categories']) && is_array($serendipity['POST']['categories']) && sizeof($serendipity['POST']['categories']) > 1)) { - $categoryselector_expanded = true; - } - - if (is_array($cats = serendipity_fetchCategories())) { - $cats = serendipity_walkRecursive($cats, 'categoryid', 'parentid', VIEWMODE_THREADED); - foreach ( $cats as $cat ) { - $cat_list .= '' . "\n"; - } - } - $cat_list .= '' . $n; - - if (!empty($serendipity['GET']['title'])) { - $entry['title'] = utf8_decode(urldecode($serendipity['GET']['title'])); - } - - if (!empty($serendipity['GET']['body'])) { - $entry['body'] = utf8_decode(urldecode($serendipity['GET']['body'])); - } - - if (!empty($serendipity['GET']['url'])) { - $entry['body'] .= "\n" . '
' . $entry['title'] . ''; - } - - $hidden = ''; - foreach($hiddens as $key => $value) { - $hidden .= ' ' . $n; - } - $hidden .= ' ' . $n; - $hidden .= ' ' . $n; - $hidden .= ' '; - $hidden .= ' ' . serendipity_setFormToken(); - if (!empty($errMsg)) { -?> -
- -
action="" method="post" ="serendipityEntry" style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- : - - - - - - -
- -
-
- : - - - - <?php echo RESET_DATE ?> - - - - - : - -
- - - - - - - - -
- -
- - - - - -
- />
- /> -
-
- -
-
-
- - +/- - - - - -
- - - - -
-
-
- - -
-
-
- - - - 'serendipity[body]', - 'extended' => 'serendipity[extended]' - ); - - foreach($fields AS $f_jsname => $f_item) { - serendipity_emit_htmlarea_code($f_item, $f_jsname); - } - serendipity_plugin_api::hook_event('backend_wysiwyg_finish', $fields); - } - - echo ' '; - echo ' '; -} - -function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) { - static $init = false; - global $serendipity; - - if ($init && $spawnMulti) { - return true; - } - - if (isset($serendipity['wysiwyg']) && $serendipity['wysiwyg']) { - - $eventData = array( - 'init' => &$init, - 'item' => &$item, - 'jsname' => &$jsname, - 'skip' => false - ); - serendipity_plugin_api::hook_event('backend_wysiwyg', $eventData); - - if ($eventData['skip']) { - return true; - } - - if (!$init) { -?> - - - - - - - -' . $n; + $cat_list .= ' ' . $n; + $selected = array(); + if (is_array($entry['categories'])) { + if (count($entry['categories']) > 1) { + $categoryselector_expanded = true; + } + + foreach ($entry['categories'] as $cat) { + $selected[] = $cat['categoryid']; + } + } + + if (count($selected) > 1 || + (isset($serendipity['POST']['categories']) && is_array($serendipity['POST']['categories']) && sizeof($serendipity['POST']['categories']) > 1)) { + $categoryselector_expanded = true; + } + + if (is_array($cats = serendipity_fetchCategories())) { + $cats = serendipity_walkRecursive($cats, 'categoryid', 'parentid', VIEWMODE_THREADED); + foreach ( $cats as $cat ) { + $cat_list .= '' . "\n"; + } + } + $cat_list .= '' . $n; + + if (!empty($serendipity['GET']['title'])) { + $entry['title'] = utf8_decode(urldecode($serendipity['GET']['title'])); + } + + if (!empty($serendipity['GET']['body'])) { + $entry['body'] = utf8_decode(urldecode($serendipity['GET']['body'])); + } + + if (!empty($serendipity['GET']['url'])) { + $entry['body'] .= "\n" . '
' . $entry['title'] . ''; + } + + $hidden = ''; + foreach($hiddens as $key => $value) { + $hidden .= ' ' . $n; + } + $hidden .= ' ' . $n; + $hidden .= ' ' . $n; + $hidden .= ' '; + $hidden .= ' ' . serendipity_setFormToken(); + if (!empty($errMsg)) { +?> +
+ +
action="" method="post" ="serendipityEntry" style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ : + + + + + + +
+ +
+
+ : + + + + <?php echo RESET_DATE ?> + + + + + : + +
+ + + + + + + + +
+ +
+ + + + + +
+ />
+ /> +
+
+ +
+
+
+ + +/- + + + + +
+ + + + +
+
+
+ + +
+
+
+ + + + 'serendipity[body]', + 'extended' => 'serendipity[extended]' + ); + + foreach($fields AS $f_jsname => $f_item) { + serendipity_emit_htmlarea_code($f_item, $f_jsname); + } + serendipity_plugin_api::hook_event('backend_wysiwyg_finish', $fields); + } + + echo ' '; + echo ' '; +} + +function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) { + static $init = false; + global $serendipity; + + if ($init && $spawnMulti) { + return true; + } + + if (isset($serendipity['wysiwyg']) && $serendipity['wysiwyg']) { + + $eventData = array( + 'init' => &$init, + 'item' => &$item, + 'jsname' => &$jsname, + 'skip' => false + ); + serendipity_plugin_api::hook_event('backend_wysiwyg', $eventData); + + if ($eventData['skip']) { + return true; + } + + if (!$init) { +?> + + + + + + + +