[ Index ] |
|
Code source de CMS made simple 1.0.5 |
1 <?php 2 3 /* 4 General filetype format to allow for easy extension of file handlers 5 6 item format: 7 8 'extention' =>Array('img'=>'imagename','desc'=>'File description', 9 'link'=>Array( 10 'handler name1'=>'link1', 11 'handler name2'=>'link2' 12 ), 13 "alias"=>Array("ext1","ext2") 14 ), 15 16 note that :'extention' is without leading '.' 17 :'imagename' is without trailing '.png' 18 :'link' is parsed: {file} denotes the file name with relative directory, 19 {dir_file} denotes the file name with full directory, 20 {url_dir_file} denotes the file name wit full directory and URL, 21 */ 22 23 $filetype = Array( 24 25 'html' =>Array( 26 "img"=>"fhtml","desc"=>"Web page", 27 "link"=>Array( 28 "view"=>'{url_dir_file}', 29 "edit"=>'../filehandlers/htmledit?file={file}' 30 ), 31 "alias"=>Array("htm","shtm","shtml","hta","xhtml") 32 ), 33 "unknown" =>Array("img"=>"ffile","desc"=>"Unknown file format", 34 "link"=>Array( 35 "view"=>'{url_dir_file}' 36 ) 37 ), 38 "zip" =>Array("img"=>"fzip","desc"=>"Zip archive", 39 "link"=>Array( 40 "view"=>'{url_dir_file}' 41 ), 42 "alias"=>Array("tar","gz","rar","arc") 43 ), 44 "tar.gz" =>Array("img"=>"fzip","desc"=>"Zipped tar archive", 45 "link"=>Array( 46 "view"=>'{url_dir_file}' 47 ) 48 ), 49 "exe" =>Array("img"=>"fexe","desc"=>"Executable", 50 "link"=>Array( 51 "view"=>'{url_dir_file}' 52 ), 53 "alias"=>Array("com","pif","so","dll") 54 ), 55 "doc" =>Array("img"=>"fdoc","desc"=>"Document", 56 "link"=>Array( 57 "view"=>'{url_dir_file}' 58 ), 59 "alias"=>Array("rtf","dot") 60 ), 61 "txt" =>Array("img"=>"ftxt","desc"=>"Text document", 62 "link"=>Array( 63 "view"=>'{url_dir_file}' 64 ) 65 ), 66 "jpg" =>Array("img"=>"fpaint","desc"=>"Image file", 67 "link"=>Array( 68 "view"=>'{url_dir_file}' 69 ), 70 "alias"=>Array("gif","png","jpeg") 71 ), 72 "psd" =>Array("img"=>"fpsd","desc"=>"Photoshop", 73 "link"=>Array( 74 "view"=>'{url_dir_file}' 75 ), 76 "alias"=>Array("pdd") 77 ) 78 79 ); 80 81 /* 82 File filter following simple shell patterns 83 */ 84 $excludefilters = Array("editor_*.*","thumb_*.*"); 85 86 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Tue Apr 3 18:50:37 2007 | par Balluche grâce à PHPXref 0.7 |