diff --git a/module/extension/control.php b/module/extension/control.php index d0d2b2873c..7f636f13a9 100644 --- a/module/extension/control.php +++ b/module/extension/control.php @@ -427,6 +427,13 @@ class extension extends control */ public function upload() { + $statusFile = $this->loadModel('upgrade')->checkSafeFile(); + if($statusFile) + { + $this->view->error = sprintf($this->lang->extension->noticeOkFile, $statusFile); + die($this->display()); + } + if($_FILES) { $tmpName = $_FILES['file']['tmp_name']; diff --git a/module/extension/view/upload.html.php b/module/extension/view/upload.html.php index 32a6635fc9..3a3f40dd5b 100644 --- a/module/extension/view/upload.html.php +++ b/module/extension/view/upload.html.php @@ -17,11 +17,21 @@ extension->upload;?> + +
+
+

+
+
+ extension->refreshPage, 'onclick=location.href=location.href');?> +
+
extension->install);?>
+ diff --git a/module/file/view/buildform.html.php b/module/file/view/buildform.html.php index a41a2abaf6..7a88b651c4 100644 --- a/module/file/view/buildform.html.php +++ b/module/file/view/buildform.html.php @@ -4,6 +4,8 @@ table.fileBox td {padding: 0!important} .fileBox .input-control > input[type='file'] {width: 100%; height: 100%; height: 26px; line-height: 26px; border: none; position: relative;} .fileBox td .btn {border-radius: 0; border-left: none} .file-wrapper.form-control {border-right: 0} +.file-wrapper.form-control .fileControl {width:100%;} +@-moz-document url-prefix(){.file-wrapper.form-control .fileControl {margin-top:-3px;}}
.content table, fieldset > .article-content table{table-layout: initi .form-condensed .chosen-container-single .chosen-single {padding: 5px 10px} .form-condensed .chosen-container-single .chosen-search:before {top: 10px} -@-moz-document url-prefix(){.form-condensed textarea.form-control {height: 30px;min-height: 30px;}} +@-moz-document url-prefix() +{ +.form-condensed textarea.form-control {height: 30px;min-height: 30px;} +.form-control[type='file']{padding:0px;} +} /* chosen container in col-side */ .col-side .chosen-single {max-width: 218px}