file uploaded for mobile dynaform and notes methods GET and Post

This commit is contained in:
Ronald Quenta
2015-04-10 11:13:04 -04:00
parent 7ca6cb9a13
commit 9e73a2f701
2 changed files with 105 additions and 0 deletions

View File

@@ -50,6 +50,22 @@ if ($actionAjax == "streaming") {
exit(0);
}
if ($actionAjax == "fileMobile") {
$app_uid = isset( $_REQUEST['a'] ) ? $_REQUEST['a'] : null;
$inp_doc_uid = isset( $_REQUEST['d'] ) ? $_REQUEST['d'] : null;
$structure = file_get_contents(PATH_HTML ."/mobile/index.json");
$structure = json_decode($structure);
foreach($structure as $build){
foreach($build as $file){
$file->lastModified = date ("D, d M Y H:i:s \G\M\T", filemtime(PATH_HTML ."/mobile/".$file->file));
}
}
G::header( 'Content-Type: application/json' );
echo G::json_encode($structure);
exit(0);
}
exit;
function rangeDownload($location,$mimeType)