4 if(
$_SESSION[
'RF'][
"verify"] !=
"RESPONSIVEfilemanager") die(
'Access Denied!');
7 if (isset(
$_SESSION[
'RF'][
'language_file']) && file_exists(
$_SESSION[
'RF'][
'language_file'])){
11 die(
'Language file is missing!');
14 if(isset($_GET[
'action']))
16 switch($_GET[
'action'])
19 if(isset($_GET[
'type'])) {
20 $_SESSION[
'RF'][
"view_type"] = $_GET[
'type'];
23 die(
'view type number missing');
27 if(isset($_GET[
'sort_by'])) {
28 $_SESSION[
'RF'][
"sort_by"] = $_GET[
'sort_by'];
31 if(isset($_GET[
'descending'])) {
32 $_SESSION[
'RF'][
"descending"] = $_GET[
'descending'] ===
"TRUE";
40 echo json_encode(
$info);
44 $info=pathinfo($_POST[
'name']);
46 if (strpos($_POST[
'path'],
'/') === 0
47 || strpos($_POST[
'path'],
'../') !== FALSE
48 || strpos($_POST[
'path'],
'./') === 0
49 || strpos($_POST[
'url'],
'http://featherfiles.aviary.com/') !== 0
51 || !in_array(strtolower(
$info[
'extension']), array(
'jpg',
'jpeg',
'png')))
57 if ($image_data === FALSE)
62 file_put_contents(
$current_path.$_POST[
'path'].$_POST[
'name'],$image_data);
66 new_thumbnails_creation(
$current_path.$_POST[
'path'],
$current_path.$_POST[
'path'].$_POST[
'name'],$_POST[
'name'],
$current_path,
$relative_image_creation,
$relative_path_from_current_pos,
$relative_image_creation_name_to_prepend,
$relative_image_creation_name_to_append,
$relative_image_creation_width,
$relative_image_creation_height,
$fixed_image_creation,
$fixed_path_from_filemanager,
$fixed_image_creation_name_to_prepend,
$fixed_image_creation_to_append,
$fixed_image_creation_width,
$fixed_image_creation_height);
69 if(strpos($_POST[
'path'],
'/')===0 || strpos($_POST[
'path'],
'../')!==FALSE || strpos($_POST[
'path'],
'./')===0) {
77 switch(
$info[
'extension'])
80 $zip =
new ZipArchive;
81 if ($zip->open(
$path) === TRUE) {
83 for(
$i = 0;
$i < $zip->numFiles;
$i++)
85 $OnlyFileName = $zip->getNameIndex(
$i);
86 $FullFileName = $zip->statIndex(
$i);
87 if (substr($FullFileName[
'name'], -1, 1) ==
"/")
93 for(
$i = 0;
$i < $zip->numFiles;
$i++)
95 $OnlyFileName = $zip->getNameIndex(
$i);
96 $FullFileName = $zip->statIndex(
$i);
98 if (!(substr($FullFileName[
'name'], -1, 1) ==
"/"))
100 $fileinfo = pathinfo($OnlyFileName);
101 if(in_array(strtolower($fileinfo[
'extension']),
$ext))
103 copy(
'zip://'.
$path .
'#'. $OnlyFileName , $base_folder.$FullFileName[
'name'] );
116 $p =
new PharData(
$path);
123 $phar =
new PharData(
$path);
124 $phar->decompressFiles();
135 case 'media_preview':
136 $preview_file = $_GET[
"file"];
137 $info = pathinfo($preview_file);
139 <div
id=
"jp_container_1" class=
"jp-video " style=
"margin:0 auto;">
140 <div
class=
"jp-type-single">
141 <div
id=
"jquery_jplayer_1" class=
"jp-jplayer"></div>
143 <div
class=
"jp-video-play">
144 <a href=
"javascript:;" class=
"jp-video-play-icon" tabindex=
"1">play</a>
146 <div
class=
"jp-interface">
147 <div
class=
"jp-progress">
148 <div
class=
"jp-seek-bar">
149 <div
class=
"jp-play-bar"></div>
152 <div
class=
"jp-current-time"></div>
153 <div
class=
"jp-duration"></div>
154 <div
class=
"jp-controls-holder">
155 <ul
class=
"jp-controls">
156 <li><a href=
"javascript:;" class=
"jp-play" tabindex=
"1">play</a></li>
157 <li><a href=
"javascript:;" class=
"jp-pause" tabindex=
"1">pause</a></li>
158 <li><a href=
"javascript:;" class=
"jp-stop" tabindex=
"1">stop</a></li>
159 <li><a href=
"javascript:;" class=
"jp-mute" tabindex=
"1" title=
"mute">mute</a></li>
160 <li><a href=
"javascript:;" class=
"jp-unmute" tabindex=
"1" title=
"unmute">unmute</a></li>
161 <li><a href=
"javascript:;" class=
"jp-volume-max" tabindex=
"1" title=
"max volume">max volume</a></li>
163 <div
class=
"jp-volume-bar">
164 <div
class=
"jp-volume-bar-value"></div>
166 <ul
class=
"jp-toggles">
167 <li><a href=
"javascript:;" class=
"jp-full-screen" tabindex=
"1" title=
"full screen">full screen</a></li>
168 <li><a href=
"javascript:;" class=
"jp-restore-screen" tabindex=
"1" title=
"restore screen">restore screen</a></li>
169 <li><a href=
"javascript:;" class=
"jp-repeat" tabindex=
"1" title=
"repeat">repeat</a></li>
170 <li><a href=
"javascript:;" class=
"jp-repeat-off" tabindex=
"1" title=
"repeat off">repeat off</a></li>
173 <div
class=
"jp-title" style=
"display:none;">
180 <div
class=
"jp-no-solution">
181 <span>Update Required</span>
182 To play the media you will need to either update your browser to a recent version or update your <a href=
"http://get.adobe.com/flashplayer/" target=
"_blank">Flash plugin</a>.
190 <script type=
"text/javascript">
191 $(document).ready(
function(){
193 $(
"#jquery_jplayer_1").jPlayer({
195 $(
this).jPlayer(
"setMedia", {
196 title:
"<?php $_GET['title']; ?>",
197 mp3:
"<?php echo $preview_file; ?>",
198 m4a:
"<?php echo $preview_file; ?>",
199 oga:
"<?php echo $preview_file; ?>",
200 wav:
"<?php echo $preview_file; ?>"
204 solution:
"html,flash",
205 supplied:
"mp3, m4a, midi, mid, oga,webma, ogg, wav",
216 <script type=
"text/javascript">
217 $(document).ready(
function(){
219 $(
"#jquery_jplayer_1").jPlayer({
221 $(
this).jPlayer(
"setMedia", {
222 title:
"<?php $_GET['title']; ?>",
223 m4v:
"<?php echo $preview_file; ?>",
224 ogv:
"<?php echo $preview_file; ?>"
228 solution:
"html,flash",
229 supplied:
"mp4, m4v, ogv, flv, webmv, webm",
241 if ($_POST[
'sub_action'] !=
'copy' && $_POST[
'sub_action'] !=
'cut') {
242 die(
'wrong sub-action');
245 if (trim($_POST[
'path']) ==
'' || trim($_POST[
'path_thumb']) ==
'') {
251 $base_folder =
$current_path.fix_dirname($_POST[
'path']).
"/";
282 $_SESSION[
'RF'][
'clipboard'][
'path_thumb'] = $_POST[
'path_thumb'];
283 $_SESSION[
'RF'][
'clipboard_action'] = $_POST[
'sub_action'];
285 case 'clear_clipboard':
287 $_SESSION[
'RF'][
'clipboard_action'] = NULL;
289 default: die(
'no action passed');
294 die(
'no action passed');
$fixed_image_creation_height
$relative_image_creation_name_to_prepend
$_SESSION['RF']["verify"]
$relative_image_creation_height
const lang_Copy_Cut_Count_Limit
new_thumbnails_creation($targetPath, $targetFile, $name, $current_path, $relative_image_creation, $relative_path_from_current_pos, $relative_image_creation_name_to_prepend, $relative_image_creation_name_to_append, $relative_image_creation_width, $relative_image_creation_height, $fixed_image_creation, $fixed_path_from_filemanager, $fixed_image_creation_name_to_prepend, $fixed_image_creation_to_append, $fixed_image_creation_width, $fixed_image_creation_height)
const lang_Copy_Cut_Not_Allowed
create_img_gd($imgfile, $imgthumb, $newwidth, $newheight="")
const lang_Aviary_No_Save
$relative_path_from_current_pos
create_folder($path=false, $path_thumbs=false)
const lang_Zip_No_Extract
$relative_image_creation_name_to_append
if($xoopsUser) $copy_cut_max_size
$fixed_image_creation_name_to_prepend
$fixed_image_creation_to_append
if(isset($_POST['name'])) $info
$relative_image_creation_width
fix_filename($str, $transliteration)
$fixed_path_from_filemanager
check_files_extensions_on_phar($phar, &$files, $basepath, $ext)
$fixed_image_creation_width
const lang_Copy_Cut_Size_Limit