forked from trippo/ResponsiveFilemanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7b3beeb
Showing
257 changed files
with
7,159 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This work is licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
session_start(); | ||
if($_SESSION["verify"] != "FileManager4TinyMCE") die('forbiden'); | ||
|
||
include('config/config.php'); | ||
include('include/utils.php'); | ||
|
||
if(isset($_GET['action'])) | ||
switch($_GET['action']){ | ||
case 'view': | ||
if(isset($_GET['type'])) | ||
$_SESSION["view_type"] =$_GET['type']; | ||
else | ||
die('view type number missing'); | ||
break; | ||
} | ||
else | ||
die('no action passed') | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?php | ||
if($_SESSION["verify"] != "FileManager4TinyMCE") die('forbidden'); | ||
|
||
$root = rtrim($_SERVER['DOCUMENT_ROOT'],'/'); // don't touch this configuration | ||
|
||
//********************** | ||
//Path configuration | ||
//********************** | ||
// In this configuration the folder tree is | ||
// root | ||
// |- site | ||
// | |- source <- upload folder | ||
// | |- js | ||
// | | |- tinymce | ||
// | | | |- plugins | ||
// | | | |- |- filemanager | ||
// | | | |- |- |- thumbs <- folder of thumbs [must have the write permission] | ||
|
||
$base_url="http://localhost"; //url base of site if you want only relative url leave empty | ||
$upload_dir = '/site/source/'; // path from base_url to upload base dir | ||
$current_path = '../../../../source/'; // relative path from filemanager folder to upload files folder | ||
|
||
$MaxSizeUpload=100; //Mb | ||
|
||
//********************** | ||
//Image config | ||
//********************** | ||
//set max width pixel or the max height pixel for all images | ||
//If you set dimension limit, automatically the images that exceed this limit are convert to limit, instead | ||
//if the images are lower the dimension is maintained | ||
//if you don't have limit set both to 0 | ||
$image_max_width=0; | ||
$image_max_height=0; | ||
|
||
//Automatic resizing // | ||
//If you set true $image_resizing the script convert all images uploaded in image_width x image_height resolution | ||
//If you set width or height to 0 the script calcolate automatically the other size | ||
$image_resizing=true; | ||
$image_width=600; | ||
$image_height=0; | ||
|
||
//****************** | ||
//Default view setting | ||
// | ||
// 0 => boxes | ||
// 1 => list (1 column) | ||
// 2 => columns list (multiple columns depending on the width of the page) | ||
// | ||
// YOU CAN ALSO PASS THIS PARAMETERS USING SESSION VAR => $_SESSION["VIEW"]= | ||
// | ||
//****************** | ||
$default_view=0; | ||
|
||
//****************** | ||
//Permits config | ||
//****************** | ||
$delete_files=true; | ||
$create_folders=true; | ||
$delete_folders=true; | ||
$upload_files=true; | ||
$rename_files=true; | ||
$rename_folders=true; | ||
|
||
//********************** | ||
//Allowed extensions | ||
//********************** | ||
$ext_img = array('jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff'); //Images | ||
$ext_file = array('doc', 'docx', 'pdf', 'xls', 'xlsx', 'txt', 'csv','html','psd','sql','log','fla','xml','ade','adp','ppt','pptx'); //Files | ||
$ext_video = array('mov', 'mpeg', 'mp4', 'avi', 'mpg','wma'); //Videos | ||
$ext_music = array('mp3', 'm4a', 'ac3', 'aiff', 'mid'); //Music | ||
$ext_misc = array('zip', 'rar','gzip'); //Archives | ||
|
||
|
||
$ext=array_merge($ext_img, $ext_file, $ext_misc, $ext_video,$ext_music); //allowed extensions | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
/* The MIT License */ | ||
.dropzone, | ||
.dropzone *, | ||
.dropzone-previews, | ||
.dropzone-previews * { | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
.dropzone { | ||
position: relative; | ||
border: 1px solid rgba(0,0,0,0.08); | ||
background: rgba(0,0,0,0.02); | ||
padding: 1em; | ||
} | ||
.dropzone.clickable { | ||
cursor: pointer; | ||
} | ||
.dropzone.clickable .message, | ||
.dropzone.clickable .message span { | ||
cursor: pointer; | ||
} | ||
.dropzone.clickable * { | ||
cursor: default; | ||
} | ||
.dropzone .message { | ||
opacity: 1; | ||
-ms-filter: none; | ||
filter: none; | ||
} | ||
.dropzone.drag-hover { | ||
border-color: rgba(0,0,0,0.15); | ||
background: rgba(0,0,0,0.04); | ||
} | ||
.dropzone.started .message { | ||
display: none; | ||
} | ||
.dropzone .preview, | ||
.dropzone-previews .preview { | ||
background: rgba(255,255,255,0.8); | ||
position: relative; | ||
display: inline-block; | ||
margin: 17px; | ||
vertical-align: top; | ||
border: 1px solid #acacac; | ||
padding: 6px 6px 6px 6px; | ||
} | ||
.dropzone .preview .details, | ||
.dropzone-previews .preview .details { | ||
width: 100px; | ||
height: 100px; | ||
position: relative; | ||
background: #ebebeb; | ||
padding: 5px; | ||
margin-bottom: 22px; | ||
} | ||
.dropzone .preview .details .filename, | ||
.dropzone-previews .preview .details .filename { | ||
overflow: hidden; | ||
height: 100%; | ||
} | ||
.dropzone .preview .details img, | ||
.dropzone-previews .preview .details img { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100px; | ||
height: 100px; | ||
} | ||
.dropzone .preview .details .size, | ||
.dropzone-previews .preview .details .size { | ||
position: absolute; | ||
bottom: -28px; | ||
left: 3px; | ||
height: 28px; | ||
line-height: 28px; | ||
} | ||
.dropzone .preview.error .error-mark, | ||
.dropzone-previews .preview.error .error-mark { | ||
display: block; | ||
} | ||
.dropzone .preview.success .success-mark, | ||
.dropzone-previews .preview.success .success-mark { | ||
display: block; | ||
} | ||
.dropzone .preview:hover .details img, | ||
.dropzone-previews .preview:hover .details img { | ||
display: none; | ||
} | ||
.dropzone .preview:hover .success-mark, | ||
.dropzone-previews .preview:hover .success-mark, | ||
.dropzone .preview:hover .error-mark, | ||
.dropzone-previews .preview:hover .error-mark { | ||
display: none; | ||
} | ||
.dropzone .preview .success-mark, | ||
.dropzone-previews .preview .success-mark, | ||
.dropzone .preview .error-mark, | ||
.dropzone-previews .preview .error-mark { | ||
display: none; | ||
position: absolute; | ||
width: 40px; | ||
height: 40px; | ||
font-size: 30px; | ||
text-align: center; | ||
right: -10px; | ||
top: -10px; | ||
} | ||
.dropzone .preview .success-mark, | ||
.dropzone-previews .preview .success-mark { | ||
color: #8cc657; | ||
} | ||
.dropzone .preview .error-mark, | ||
.dropzone-previews .preview .error-mark { | ||
color: #ee162d; | ||
} | ||
.dropzone .preview .progress, | ||
.dropzone-previews .preview .progress { | ||
position: absolute; | ||
top: 100px; | ||
left: 6px; | ||
right: 6px; | ||
height: 6px; | ||
background: #d7d7d7; | ||
display: none; | ||
} | ||
.dropzone .preview .progress .upload, | ||
.dropzone-previews .preview .progress .upload { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
width: 0%; | ||
background-color: #8cc657; | ||
} | ||
.dropzone .preview.processing .progress, | ||
.dropzone-previews .preview.processing .progress { | ||
display: block; | ||
} | ||
.dropzone .preview .error-message, | ||
.dropzone-previews .preview .error-message { | ||
display: none; | ||
position: absolute; | ||
top: -5px; | ||
left: -20px; | ||
background: rgba(245,245,245,0.8); | ||
padding: 8px 10px; | ||
color: #800; | ||
min-width: 140px; | ||
max-width: 500px; | ||
z-index: 500; | ||
} | ||
.dropzone .preview:hover.error .error-message, | ||
.dropzone-previews .preview:hover.error .error-message { | ||
display: block; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.