]*>|$!','',$geshi->parse_code()),"\n\r"); io_saveFile($cache,$highlighted_code); } // add a wrapper element if required if ($wrapper) { return "<$wrapper class=\"code $language\">$highlighted_code$wrapper>"; } else { return $highlighted_code; } } farm.php 0000644 00000014471 15233462216 0006215 0 ustar 00 /subdir/ will need the subdirectory '$farm/subdir/'. * * A virtual host based setup needs animal directory names which have to reflect * the domain name: If an animal resides in http://www.example.org:8080/mysite/test/, * directories that will match range from '$farm/8080.www.example.org.mysite.test/' * to a simple '$farm/domain/'. * * @author Anika Henke
'.hsc(noNS($id)).''.hsc($lang['ref_inuse']).'
'; $hidden=0; //count of hits without read permission foreach($data as $row){ if(auth_quickaclcheck($row) >= AUTH_READ && isVisiblePage($row)){ echo '' . $lang['mediaupload'] . '
'; } media_uploadform($ns, $auth, true); echo '| '; media_preview($image, $auth, $l_rev, $l_meta); echo ' | '; echo ''; media_preview($image, $auth, $r_rev, $r_meta); echo ' | '; echo ''.NL; echo '
| '; media_preview_buttons($image, $auth, $l_rev); echo ' | '; echo ''; media_preview_buttons($image, $auth, $r_rev); echo ' | '; echo '
| '.NL; echo ''.NL; echo ' | '; } echo '
';
// mediamanager button
$link = wl('',array('do'=>'media','image'=>$item['id'],'ns'=>getNS($item['id'])));
echo '
';
// delete button
if($item['writable'] && $auth >= AUTH_DELETE){
$link = DOKU_BASE.'lib/exe/mediamanager.php?delete='.rawurlencode($item['id']).
'§ok='.getSecurityToken();
echo ' '.
'
';
}
echo '{{:'.$item['id'].'}}';
echo '';
if($t) echo ''.hsc($t).'
';
if($d) echo hsc($d).'
';
if($t) echo ''.hsc($k).'';
echo '
'; printf($lang['maxuploadsize'],filesize_h(media_getuploadsize())); echo ' ' . $lang['allowedmime'] . ''; echo ' ' . implode(', ', array_keys(getMimeTypes())) .''; echo '
'.NL; } /** * Returns the size uploaded files may have * * This uses a conservative approach using the lowest number found * in any of the limiting ini settings * * @returns int size in bytes */ function media_getuploadsize(){ $okay = 0; $post = (int) php_to_byte(@ini_get('post_max_size')); $suho = (int) php_to_byte(@ini_get('suhosin.post.max_value_length')); $upld = (int) php_to_byte(@ini_get('upload_max_filesize')); if($post && ($post < $okay || $okay == 0)) $okay = $post; if($suho && ($suho < $okay || $okay == 0)) $okay = $suho; if($upld && ($upld < $okay || $okay == 0)) $okay = $upld; return $okay; } /** * Print the search field form * * @author Tobias Sarnowski$msg