Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
url upload toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
trippo committed Feb 4, 2017
1 parent 706f4ff commit fd44c6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion filemanager/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
'create_text_files' => true, // only create files with exts. defined in $editable_text_file_exts

// you can preview these type of files if $preview_text_files is true
'previewable_text_file_exts' => array( 'txt', 'log', 'xml', 'html', 'css', 'htm', 'js' ),
'previewable_text_file_exts' => array( "bsh", "c","css", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html", "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh", "xhtml", "xml","xsl" ),
'previewable_text_file_exts_no_prettify' => array( 'txt', 'log' ),

// you can edit these type of files if $edit_text_files is true (only text based files)
Expand Down Expand Up @@ -367,6 +367,11 @@
// set the names of any files you want hidden. Remember these names will be hidden in all folders (eg "this_document.pdf", "that_image.jpg" )
'hidden_files' => array( 'config.php' ),

/*******************
* URL upload
*******************/
'url_upload' => true,

/*******************
* JAVA upload
*******************/
Expand Down
4 changes: 4 additions & 0 deletions filemanager/dialog.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,9 @@
<div class="tabbable upload-tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs">
<li class="active"><a href="#tab1" data-toggle="tab"><?php echo trans('Upload_base');?></a></li>
<?php if($url_upload){ ?>
<li><a href="#taburl" data-toggle="tab"><?php echo trans('Upload_url');?></a></li>
<?php } ?>
<?php if($java_upload){ ?>
<li><a href="#tab2" id="uploader-btn" data-toggle="tab"><?php echo trans('Upload_java');?></a></li>
<?php } ?>
Expand All @@ -488,6 +490,7 @@
</form>
<div class="upload-help"><?php echo trans('Upload_base_help');?></div>
</div>
<?php if($url_upload){ ?>
<div class="tab-pane" id="taburl">
<br/>
<form class="form-horizontal">
Expand All @@ -504,6 +507,7 @@
</div>
</form>
</div>
<?php } ?>
<?php if($java_upload){ ?>
<div class="tab-pane" id="tab2">
<div id="iframe-container"></div>
Expand Down

0 comments on commit fd44c6a

Please sign in to comment.