diff --git a/admin/file-upload-js.php b/admin/file-upload-js.php index e48013be..84356446 100644 --- a/admin/file-upload-js.php +++ b/admin/file-upload-js.php @@ -120,11 +120,10 @@ $(document).ready(function() { $('#tab-files').bind('init', function () { var uploader = new plupload.Uploader({ browse_button : $('.upload-file').get(0), - url : 'index('/action/upload' + url : 'index('/action/upload' . (isset($fileParentContent) ? '?cid=' . $fileParentContent->cid : '')); ?>', - runtimes : 'html5,flash,silverlight,html4', + runtimes : 'html5,flash,html4', flash_swf_url : 'adminUrl('js/Moxie.swf'); ?>', - silverlight_xap_url : 'adminUrl('js/Moxie.xap'); ?>', drop_element : $('.upload-area').get(0), filters : { max_file_size : '', diff --git a/admin/js/Moxie.xap b/admin/js/Moxie.xap deleted file mode 100644 index 3a9f389f..00000000 Binary files a/admin/js/Moxie.xap and /dev/null differ diff --git a/admin/media.php b/admin/media.php index 64cae0f1..ce6be16d 100644 --- a/admin/media.php +++ b/admin/media.php @@ -144,10 +144,9 @@ $(document).ready(function() { var uploader = new plupload.Uploader({ browse_button : $('.upload-file').get(0), - url : 'index('/action/upload?do=modify&cid=' . $attachment->cid); ?>', - runtimes : 'html5,flash,silverlight,html4', + url : 'index('/action/upload?do=modify&cid=' . $attachment->cid); ?>', + runtimes : 'html5,flash,html4', flash_swf_url : 'adminUrl('js/Moxie.swf'); ?>', - silverlight_xap_url : 'adminUrl('js/Moxie.xap'); ?>', drop_element : $('.upload-area').get(0), filters : { max_file_size : '', diff --git a/usr/plugins/HelloWorld/Plugin.php b/usr/plugins/HelloWorld/Plugin.php index d71e1f8b..6425858a 100644 --- a/usr/plugins/HelloWorld/Plugin.php +++ b/usr/plugins/HelloWorld/Plugin.php @@ -1,4 +1,5 @@ need('header.php'); ?>
diff --git a/usr/themes/default/archive.php b/usr/themes/default/archive.php index 25d2a7d6..cc5f9911 100644 --- a/usr/themes/default/archive.php +++ b/usr/themes/default/archive.php @@ -1,3 +1,4 @@ + need('header.php'); ?>
diff --git a/usr/themes/default/comments.php b/usr/themes/default/comments.php index cbd4fe7f..709d0b91 100644 --- a/usr/themes/default/comments.php +++ b/usr/themes/default/comments.php @@ -1,3 +1,4 @@ +
comments()->to($comments); ?> have()): ?> diff --git a/usr/themes/default/footer.php b/usr/themes/default/footer.php index eb9a9ad1..347cd197 100644 --- a/usr/themes/default/footer.php +++ b/usr/themes/default/footer.php @@ -1,5 +1,5 @@ + -
diff --git a/usr/themes/default/functions.php b/usr/themes/default/functions.php index 0e63bb92..77b4855f 100644 --- a/usr/themes/default/functions.php +++ b/usr/themes/default/functions.php @@ -1,4 +1,5 @@ diff --git a/usr/themes/default/index.php b/usr/themes/default/index.php index 0fb21899..495d426a 100644 --- a/usr/themes/default/index.php +++ b/usr/themes/default/index.php @@ -7,7 +7,8 @@ * @version 1.2 * @link http://typecho.org */ - + +if (!defined('__TYPECHO_ROOT_DIR__')) exit; $this->need('header.php'); ?> diff --git a/usr/themes/default/page.php b/usr/themes/default/page.php index b0f365a1..8f1cd6f6 100644 --- a/usr/themes/default/page.php +++ b/usr/themes/default/page.php @@ -1,3 +1,4 @@ + need('header.php'); ?>
diff --git a/usr/themes/default/post.php b/usr/themes/default/post.php index fe0d2e72..3732c9ff 100644 --- a/usr/themes/default/post.php +++ b/usr/themes/default/post.php @@ -1,3 +1,4 @@ + need('header.php'); ?>
diff --git a/usr/themes/default/sidebar.php b/usr/themes/default/sidebar.php index d10e8aad..d546eb69 100644 --- a/usr/themes/default/sidebar.php +++ b/usr/themes/default/sidebar.php @@ -1,3 +1,4 @@ +