Lines Matching refs:auth

53  * @param int $auth permission level
57 function media_metasave($id,$auth,$data){ argument
58 if($auth < AUTH_UPLOAD) return false;
135 * @param int $auth permission level
138 function media_metaform($id, $auth) { argument
141 if ($auth < AUTH_UPLOAD) {
235 * @param int $auth no longer used
242 function media_delete($id,$auth){ argument
244 $auth = auth_quickaclcheck(ltrim(getNS($id).':*', ':'));
245 if($auth < AUTH_DELETE) return DOKU_MEDIA_NOT_AUTH;
289 * @param int $auth current auth check result
292 function media_upload_xhr($ns,$auth){ argument
316 $auth,
335 * @param int $auth current auth check result
339 function media_upload($ns,$auth,$file=false){ argument
367 $INPUT->post->bool('ow'), $auth, 'copy_uploaded_file');
411 * @param int $auth permission level
415 function media_save($file, $id, $ow, $auth, $move) { argument
416 if($auth < AUTH_UPLOAD) {
454 if($overwrite && (!$ow || $auth < $auth_ow)) {
676 * @param null|int $auth permission level
681 function media_filelist($ns,$auth=null,$jump='',$fullscreenview=false,$sort=false){ argument
687 if(is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
691 if($auth < AUTH_READ){
696 media_uploadform($ns, $auth);
882 * @param null|int $auth permission level
885 function media_tab_files($ns,$auth=null,$jump='') { argument
887 if(is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
889 if($auth < AUTH_READ){
892 media_filelist($ns,$auth,$jump,true,_media_get_sort_type());
902 * @param null|int $auth permission level
905 function media_tab_upload($ns,$auth=null,$jump='') { argument
907 if(is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
910 if ($auth >= AUTH_UPLOAD) {
913 media_uploadform($ns, $auth, true);
923 * @param null|int $auth permission level
925 function media_tab_search($ns,$auth=null) { argument
934 media_searchlist($query,$ns,$auth,true,_media_get_sort_type());
946 * @param null|int $auth permission level
949 function media_tab_view($image, $ns, $auth=null, $rev='') { argument
951 if(is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
953 if ($image && $auth >= AUTH_READ) {
955 media_preview($image, $auth, $rev, $meta);
956 media_preview_buttons($image, $auth, $rev);
957 media_details($image, $auth, $rev, $meta);
971 * @param null|int $auth permission level
973 function media_tab_edit($image, $ns, $auth=null) { argument
974 if(is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
978 if ($mime == 'image/jpeg') media_metaform($image,$auth);
989 * @param null|int $auth permission level
991 function media_tab_history($image, $ns, $auth=null) { argument
995 if(is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
998 if ($auth >= AUTH_READ && $image) {
1000 media_diff($image, $ns, $auth);
1014 * @param int $auth permission level
1020 function media_preview($image, $auth, $rev='', $meta=false) { argument
1054 * @param int $auth permission level
1057 function media_preview_buttons($image, $auth, $rev = '') { argument
1062 if ($auth >= AUTH_DELETE && !$rev && file_exists(mediaFN($image))) {
1078 if ($auth >= $auth_ow && !$rev) {
1093 …if ($auth >= AUTH_UPLOAD && $rev && $conf['mediarevisions'] && file_exists(mediaFN($image, $rev)))…
1192 * @param int $auth permission level
1196 function media_details($image, $auth, $rev='', $meta=false) { argument
1234 * @param int $auth permission level
1238 function media_diff($image, $ns, $auth, $fromajax = false) { argument
1242 if ($auth < AUTH_READ || !$image || !$conf['mediarevisions']) return '';
1291 $data[4] = $auth;
1321 * @param int $auth permission level
1324 function media_file_diff($image, $l_rev, $r_rev, $ns, $auth, $fromajax) { argument
1376 media_preview($image, $auth, $l_rev, $l_meta);
1380 media_preview($image, $auth, $r_rev, $r_meta);
1386 media_preview_buttons($image, $auth, $l_rev);
1390 media_preview_buttons($image, $auth, $r_rev);
1484 * @param int $auth
1489 function media_restore($image, $rev, $auth){ argument
1491 if ($auth < AUTH_UPLOAD || !$conf['mediarevisions']) return false;
1519 * @param null|int $auth
1523 function media_searchlist($query,$ns,$auth=null,$fullscreen=false,$sort='natural'){ argument
1648 * @param int $auth permission level
1651 function media_uploadform($ns, $auth, $fullscreen = false) { argument
1656 if ($auth < AUTH_UPLOAD) {
1664 if ($auth >= $auth_ow && $fullscreen && $INPUT->str('mediado') == 'update') {
1688 if ($auth >= $auth_ow){