[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - Filemanager Preferences * 4 * http://egroupware.org * 5 * Modified by Pim Snel <pim@egroupware.org> * 6 * -------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) * 11 \**************************************************************************/ 12 13 /* $Id: hook_settings.inc.php 18864 2005-07-23 09:44:46Z milosch $ */ 14 15 //ExecMethod('filemanager.bofilemanager.check_set_default_prefs'); 16 17 /*create_section('TESTING'); 18 19 create_check_box('Use new experimental Filemanager?','experimental_new_code','The future filemanager, now for TESTING PURPOSES ONLY, please send bugreports'); 20 21 */ 22 settype($GLOBALS['settings'],'array'); 23 24 $GLOBALS['settings']['display_attrs'] = array( 25 'type' => 'section', 26 'title' => 'Display attributes', 27 'name' => 'display_attrs', 28 'xmlrpc' => True, 29 'admin' => False 30 ); 31 32 $file_attributes = Array( 33 'name' => 'File Name', 34 'mime_type' => 'MIME Type', 35 'size' => 'Size', 36 'created' => 'Created', 37 'modified' => 'Modified', 38 'owner' => 'Owner', 39 'createdby_id' => 'Created by', 40 'modifiedby_id' => 'Created by', 41 'modifiedby_id' => 'Modified by', 42 'app' => 'Application', 43 'comment' => 'Comment', 44 'version' => 'Version' 45 ); 46 47 foreach($file_attributes as $key => $value) 48 { 49 $GLOBALS['settings'][$key] = array( 50 'type' => 'check', 51 'label' => "$value", 52 'name' => $key, 53 'xmlrpc' => True, 54 'admin' => False 55 ); 56 } 57 58 $GLOBALS['settings']['other_settings'] = array( 59 'type' => 'section', 60 'title' => 'Other settings', 61 'name' => 'other_settings', 62 'xmlrpc' => True, 63 'admin' => False 64 ); 65 66 $other_checkboxes = array ( 67 "viewinnewwin" => "View documents in new window", 68 "viewonserver" => "View documents on server (if available)", 69 "viewtextplain" => "Unknown MIME-type defaults to text/plain when viewing", 70 "dotdot" => "Show ..", 71 "dotfiles" => "Show .files", 72 ); 73 74 foreach($other_checkboxes as $key => $value) 75 { 76 $GLOBALS['settings'][$key] = array( 77 'type' => 'check', 78 'label' => "$value", 79 'name' => $key, 80 'xmlrpc' => True, 81 'admin' => False 82 ); 83 } 84 85 $upload_boxes = array( 86 '1' => '1', 87 '5' => '5', 88 '10' => '10', 89 '20' => '20', 90 '30' => '30' 91 ); 92 93 $GLOBALS['settings']['show_upload_boxes'] = array( 94 'label' => 'Default number of upload fields to show', 95 'name' => 'show_upload_boxes', 96 'values' => $upload_boxes, 97 'xmlrpc' => True, 98 'admin' => False 99 );
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |