@@ -34,19 +34,19 @@ discard block |
||
34 | 34 | //echo "<p>admin_prefs_sidebox_hooks::all_hooks(".print_r($args,True).") appname='$appname', location='$location'</p>\n"; |
35 | 35 | $config = config::read(self::$appname); |
36 | 36 | if (!empty($config['max_folderlinks'])) self::$foldercount = (int)$config['max_folderlinks']; |
37 | - $file_prefs = &$GLOBALS['egw_info']['user']['preferences'][self::$appname]; |
|
37 | + $file_prefs = &$GLOBALS['egw_info']['user']['preferences'][self::$appname]; |
|
38 | 38 | if ($location == 'sidebox_menu') |
39 | 39 | { |
40 | - $title = $GLOBALS['egw_info']['apps'][self::$appname]['title'] . ' '. lang('Menu'); |
|
40 | + $title = $GLOBALS['egw_info']['apps'][self::$appname]['title'].' '.lang('Menu'); |
|
41 | 41 | $file = array(); |
42 | - if($GLOBALS['egw_info']['apps']['stylite']) |
|
42 | + if ($GLOBALS['egw_info']['apps']['stylite']) |
|
43 | 43 | { |
44 | 44 | // add "file a file" (upload) dialog |
45 | 45 | $file[] = array( |
46 | 46 | 'text' => 'File a file', |
47 | - 'link' => "javascript:egw_openWindowCentered2('".egw::link('/index.php',array( |
|
47 | + 'link' => "javascript:egw_openWindowCentered2('".egw::link('/index.php', array( |
|
48 | 48 | 'menuaction'=>'stylite.stylite_filemanager.upload', |
49 | - ),false)."','_blank',550,350)", |
|
49 | + ), false)."','_blank',550,350)", |
|
50 | 50 | 'app' => 'phpgwapi', |
51 | 51 | 'icon' => 'upload', |
52 | 52 | ); |
@@ -54,9 +54,9 @@ discard block |
||
54 | 54 | // add selection for available views, if we have more then one |
55 | 55 | if (count(filemanager_ui::init_views()) > 1) |
56 | 56 | { |
57 | - $index_url = egw::link('/index.php',array('menuaction' => 'filemanager.filemanager_ui.index'),false); |
|
57 | + $index_url = egw::link('/index.php', array('menuaction' => 'filemanager.filemanager_ui.index'), false); |
|
58 | 58 | $file[] = array( |
59 | - 'text' => html::select('filemanager_view',filemanager_ui::get_view(),filemanager_ui::$views,false, |
|
59 | + 'text' => html::select('filemanager_view', filemanager_ui::get_view(), filemanager_ui::$views, false, |
|
60 | 60 | ' onchange="'."egw_appWindow('filemanager').location='$index_url&view='+this.value;". |
61 | 61 | '" style="width: 100%;"'), |
62 | 62 | 'no_lang' => True, |
@@ -65,23 +65,23 @@ discard block |
||
65 | 65 | } |
66 | 66 | if ($file_prefs['showhome'] != 'no') |
67 | 67 | { |
68 | - $file['Your home directory'] = egw::link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$homepath,'ajax'=>'true')); |
|
68 | + $file['Your home directory'] = egw::link('/index.php', array('menuaction'=>self::$appname.'.filemanager_ui.index', 'path'=>$homepath, 'ajax'=>'true')); |
|
69 | 69 | } |
70 | 70 | if ($file_prefs['showusers'] != 'no') |
71 | 71 | { |
72 | - $file['Users and groups'] = egw::link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$basepath,'ajax'=>'true')); |
|
72 | + $file['Users and groups'] = egw::link('/index.php', array('menuaction'=>self::$appname.'.filemanager_ui.index', 'path'=>$basepath, 'ajax'=>'true')); |
|
73 | 73 | } |
74 | - if (!empty($file_prefs['showbase']) && $file_prefs['showbase']=='yes') |
|
74 | + if (!empty($file_prefs['showbase']) && $file_prefs['showbase'] == 'yes') |
|
75 | 75 | { |
76 | - $file['Basedirectory'] = egw::link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$rootpath,'ajax'=>'true')); |
|
76 | + $file['Basedirectory'] = egw::link('/index.php', array('menuaction'=>self::$appname.'.filemanager_ui.index', 'path'=>$rootpath, 'ajax'=>'true')); |
|
77 | 77 | } |
78 | - if (!empty($file_prefs['startfolder'])) $file['Startfolder']= egw::link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$file_prefs['startfolder'],'ajax'=>'true')); |
|
79 | - for ($i=1; $i<=self::$foldercount; $i++) |
|
78 | + if (!empty($file_prefs['startfolder'])) $file['Startfolder'] = egw::link('/index.php', array('menuaction'=>self::$appname.'.filemanager_ui.index', 'path'=>$file_prefs['startfolder'], 'ajax'=>'true')); |
|
79 | + for ($i = 1; $i <= self::$foldercount; $i++) |
|
80 | 80 | { |
81 | 81 | if (!empty($file_prefs['folderlink'.$i])) |
82 | 82 | { |
83 | - $foldername = array_pop(explode('/',$file_prefs['folderlink'.$i])); |
|
84 | - $file[lang('Link %1: %2',$i,$foldername)]= egw::link('/index.php',array( |
|
83 | + $foldername = array_pop(explode('/', $file_prefs['folderlink'.$i])); |
|
84 | + $file[lang('Link %1: %2', $i, $foldername)] = egw::link('/index.php', array( |
|
85 | 85 | 'menuaction' => self::$appname.'.filemanager_ui.index', |
86 | 86 | 'path' => $file_prefs['folderlink'.$i], |
87 | 87 | 'nolang' => true, |
@@ -89,9 +89,9 @@ discard block |
||
89 | 89 | )); |
90 | 90 | } |
91 | 91 | } |
92 | - $file['Placeholders'] = egw::link('/index.php','menuaction=filemanager.filemanager_merge.show_replacements'); |
|
93 | - $file['Shared files'] = egw::link('/index.php','menuaction=filemanager.filemanager_shares.index&ajax=true'); |
|
94 | - display_sidebox(self::$appname,$title,$file); |
|
92 | + $file['Placeholders'] = egw::link('/index.php', 'menuaction=filemanager.filemanager_merge.show_replacements'); |
|
93 | + $file['Shared files'] = egw::link('/index.php', 'menuaction=filemanager.filemanager_shares.index&ajax=true'); |
|
94 | + display_sidebox(self::$appname, $title, $file); |
|
95 | 95 | } |
96 | 96 | if ($GLOBALS['egw_info']['user']['apps']['admin']) self::admin(self::$appname); |
97 | 97 | } |
@@ -106,18 +106,18 @@ discard block |
||
106 | 106 | if (is_array($location)) $location = $location['location']; |
107 | 107 | |
108 | 108 | $file = Array( |
109 | - 'Site Configuration' => egw::link('/index.php','menuaction=admin.uiconfig.index&appname='.self::$appname), |
|
110 | - 'Custom fields' => egw::link('/index.php','menuaction=admin.customfields.index&appname='.self::$appname.'&ajax=true'), |
|
111 | - 'Check virtual filesystem' => egw::link('/index.php','menuaction=filemanager.filemanager_admin.fsck'), |
|
109 | + 'Site Configuration' => egw::link('/index.php', 'menuaction=admin.uiconfig.index&appname='.self::$appname), |
|
110 | + 'Custom fields' => egw::link('/index.php', 'menuaction=admin.customfields.index&appname='.self::$appname.'&ajax=true'), |
|
111 | + 'Check virtual filesystem' => egw::link('/index.php', 'menuaction=filemanager.filemanager_admin.fsck'), |
|
112 | 112 | 'VFS mounts and versioning' => egw::link('/index.php', 'menuaction=filemanager.filemanager_admin.index'), |
113 | 113 | ); |
114 | 114 | if ($location == 'admin') |
115 | 115 | { |
116 | - display_section(self::$appname,$file); |
|
116 | + display_section(self::$appname, $file); |
|
117 | 117 | } |
118 | 118 | else |
119 | 119 | { |
120 | - display_sidebox(self::$appname,lang('Admin'),$file); |
|
120 | + display_sidebox(self::$appname, lang('Admin'), $file); |
|
121 | 121 | } |
122 | 122 | } |
123 | 123 | |
@@ -147,15 +147,15 @@ discard block |
||
147 | 147 | 'admin' => False, |
148 | 148 | ), |
149 | 149 | ); |
150 | - for ($i=1; $i <= self::$foldercount; $i++) |
|
150 | + for ($i = 1; $i <= self::$foldercount; $i++) |
|
151 | 151 | { |
152 | - $settings['folderlink'.$i] = array( |
|
152 | + $settings['folderlink'.$i] = array( |
|
153 | 153 | 'type' => 'input', |
154 | 154 | 'name' => 'folderlink'.$i, |
155 | 155 | 'size' => 60, |
156 | 156 | 'default' => '', |
157 | 157 | 'label' => lang('Enter the complete VFS path to specify a fast access link to a folder').' ('.$i.').', |
158 | - 'run_lang' => -1, // -1 = no lang on label |
|
158 | + 'run_lang' => -1, // -1 = no lang on label |
|
159 | 159 | 'xmlrpc' => True, |
160 | 160 | 'admin' => False |
161 | 161 | ); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | 'type' => 'select', |
177 | 177 | 'name' => 'showhome', |
178 | 178 | 'values' => $yes_no, |
179 | - 'label' => lang('Show link "%1" in side box menu?',lang('Your home directory')), |
|
179 | + 'label' => lang('Show link "%1" in side box menu?', lang('Your home directory')), |
|
180 | 180 | 'xmlrpc' => True, |
181 | 181 | 'admin' => False, |
182 | 182 | 'forced' => 'yes', |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | 'type' => 'select', |
186 | 186 | 'name' => 'showusers', |
187 | 187 | 'values' => $yes_no, |
188 | - 'label' => lang('Show link "%1" in side box menu?',lang('Users and groups')), |
|
188 | + 'label' => lang('Show link "%1" in side box menu?', lang('Users and groups')), |
|
189 | 189 | 'xmlrpc' => True, |
190 | 190 | 'admin' => False, |
191 | 191 | 'forced' => 'yes', |
@@ -197,9 +197,9 @@ discard block |
||
197 | 197 | 'size' => 60, |
198 | 198 | 'label' => 'Default document to insert entries', |
199 | 199 | 'name' => 'default_document', |
200 | - 'help' => lang('If you specify a document (full vfs path) here, %1 displays an extra document icon for each entry. That icon allows to download the specified document with the data inserted.',lang('filemanager')).' '. |
|
200 | + 'help' => lang('If you specify a document (full vfs path) here, %1 displays an extra document icon for each entry. That icon allows to download the specified document with the data inserted.', lang('filemanager')).' '. |
|
201 | 201 | lang('The document can contain placeholder like {{%1}}, to be replaced with the data.', 'name').' '. |
202 | - lang('The following document-types are supported:'). implode(',',bo_merge::get_file_extensions()), |
|
202 | + lang('The following document-types are supported:').implode(',', bo_merge::get_file_extensions()), |
|
203 | 203 | 'run_lang' => false, |
204 | 204 | 'xmlrpc' => True, |
205 | 205 | 'admin' => False, |
@@ -210,8 +210,8 @@ discard block |
||
210 | 210 | 'label' => 'Directory with documents to insert entries', |
211 | 211 | 'name' => 'document_dir', |
212 | 212 | 'help' => lang('If you specify a directory (full vfs path) here, %1 displays an action for each document. That action allows to download the specified document with the %1 data inserted.', lang('filemanager')).' '. |
213 | - lang('The document can contain placeholder like {{%1}}, to be replaced with the data.','name').' '. |
|
214 | - lang('The following document-types are supported:'). implode(',',bo_merge::get_file_extensions()), |
|
213 | + lang('The document can contain placeholder like {{%1}}, to be replaced with the data.', 'name').' '. |
|
214 | + lang('The following document-types are supported:').implode(',', bo_merge::get_file_extensions()), |
|
215 | 215 | 'run_lang' => false, |
216 | 216 | 'xmlrpc' => True, |
217 | 217 | 'admin' => False, |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $context['appname'] = 'filemanager'; |
27 | 27 | |
28 | 28 | // Let parent handle the basic stuff |
29 | - parent::__construct($context,$need_reload); |
|
29 | + parent::__construct($context, $need_reload); |
|
30 | 30 | |
31 | 31 | $ui = new filemanager_ui(); |
32 | 32 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | 'get_rows' => 'filemanager.filemanager_favorite_portlet.get_rows', |
35 | 35 | 'csv_export' => true, |
36 | 36 | // Use a different template so it can be accessed from client side |
37 | - 'template' => ($this->nm_settings['view'] == 'tile' ? 'filemanager.tile' : 'filemanager.home.rows' ), |
|
37 | + 'template' => ($this->nm_settings['view'] == 'tile' ? 'filemanager.tile' : 'filemanager.home.rows'), |
|
38 | 38 | // Filemanager needs this header, it's an important component for actions, but we reduce it to the minimum |
39 | 39 | 'header_left' => 'filemanager.home.header_left', |
40 | 40 | // Use a reduced column set for home, user can change if needed |
@@ -46,11 +46,11 @@ discard block |
||
46 | 46 | 'parent_id' => 'dir', |
47 | 47 | 'is_parent' => 'mime', |
48 | 48 | 'is_parent_value'=> egw_vfs::DIR_MIME_TYPE, |
49 | - 'placeholder_actions' => array('mkdir','file_drop_mail','file_drop_move','file_drop_copy','file_drop_symlink') |
|
49 | + 'placeholder_actions' => array('mkdir', 'file_drop_mail', 'file_drop_move', 'file_drop_copy', 'file_drop_symlink') |
|
50 | 50 | ); |
51 | 51 | } |
52 | 52 | |
53 | - public function exec($id = null, etemplate_new &$etemplate = null) |
|
53 | + public function exec($id = null, etemplate_new&$etemplate = null) |
|
54 | 54 | { |
55 | 55 | |
56 | 56 | $this->context['sel_options']['filter'] = array( |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $ui = new filemanager_ui(); |
81 | 81 | $total = $ui->get_rows($query, $rows, $readonlys); |
82 | 82 | // Change template to match selected view |
83 | - if($query['view']) |
|
83 | + if ($query['view']) |
|
84 | 84 | { |
85 | 85 | $query['template'] = ($query['view'] == 'row' ? 'filemanager.home.rows' : 'filemanager.tile'); |
86 | 86 | } |
@@ -103,14 +103,14 @@ discard block |
||
103 | 103 | // the etemplate exec to fire again. |
104 | 104 | if ($content['nm']['action']) |
105 | 105 | { |
106 | - $msg = filemanager_ui::action($content['nm']['action'],$content['nm']['selected'],$content['nm']['path']); |
|
107 | - if($msg) egw_json_response::get()->apply('egw.message',array($msg)); |
|
108 | - foreach($content['nm']['selected'] as &$id) |
|
106 | + $msg = filemanager_ui::action($content['nm']['action'], $content['nm']['selected'], $content['nm']['path']); |
|
107 | + if ($msg) egw_json_response::get()->apply('egw.message', array($msg)); |
|
108 | + foreach ($content['nm']['selected'] as &$id) |
|
109 | 109 | { |
110 | 110 | $id = 'filemanager::'.$id; |
111 | 111 | } |
112 | 112 | // Directly request an update - this will get filemanager tab too |
113 | - egw_json_response::get()->apply('egw.dataRefreshUIDs',array($content['nm']['selected'])); |
|
113 | + egw_json_response::get()->apply('egw.dataRefreshUIDs', array($content['nm']['selected'])); |
|
114 | 114 | } |
115 | 115 | } |
116 | 116 | } |
117 | 117 | \ No newline at end of file |
@@ -10,9 +10,9 @@ discard block |
||
10 | 10 | * @version $Id$ |
11 | 11 | */ |
12 | 12 | |
13 | -$templ_version=1; |
|
13 | +$templ_version = 1; |
|
14 | 14 | |
15 | -$templ_data[] = array('name' => 'filemanager.file','template' => '','lang' => '','group' => '0','version' => '1.7.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:1:{s:2:"h1";s:6:",!@msg";}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItalic";s:4:"name";s:3:"msg";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:3:"tab";s:5:"label";s:54:"General|Permissions|Extended ACL|Preview|Custom fields";s:4:"name";s:38:"tabs=general|perms|eacl|preview|custom";s:4:"span";s:3:"all";}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:6:"button";s:5:"label";s:4:"Save";s:4:"name";s:12:"button[save]";}i:2;a:3:{s:4:"type";s:6:"button";s:4:"name";s:13:"button[apply]";s:5:"label";s:5:"Apply";}i:3;a:4:{s:4:"type";s:10:"buttononly";s:5:"label";s:6:"Cancel";s:4:"name";s:14:"button[cancel]";s:7:"onclick";s:15:"window.close();";}}i:2;a:6:{s:4:"type";s:10:"buttononly";s:5:"label";s:9:"Superuser";s:5:"align";s:5:"right";s:4:"help";s:48:"Enter setup user and password to get root rights";s:7:"onclick";s:121:"set_style_by_class(\'fieldset\',\'superuser\',\'display\',\'inline\'); document.getElementById(form::name(\'sudo[user]\')).focus();";s:4:"name";s:4:"sudo";}}}i:4;a:1:{s:1:"A";a:5:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:5:"label";s:29:"Enter setup user and password";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"User";s:4:"size";s:13:",,,sudo[user]";}s:1:"B";a:2:{s:4:"type";s:4:"text";s:4:"name";s:10:"sudo[user]";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:8:"Password";s:4:"size";s:15:",,,sudo[passwd]";}s:1:"B";a:2:{s:4:"type";s:6:"passwd";s:4:"name";s:12:"sudo[passwd]";}}i:3;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Submit";s:4:"name";s:13:"button[setup]";}}}s:7:"options";a:0:{}s:4:"rows";i:3;s:4:"cols";i:2;}s:4:"span";s:10:",superuser";}}}s:4:"rows";i:4;s:4:"cols";i:1;}}','size' => '','style' => '.eaclAccount select,.eaclRights select { width: 160px; } |
|
15 | +$templ_data[] = array('name' => 'filemanager.file', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.7.001', 'data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:1:{s:2:"h1";s:6:",!@msg";}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItalic";s:4:"name";s:3:"msg";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:3:"tab";s:5:"label";s:54:"General|Permissions|Extended ACL|Preview|Custom fields";s:4:"name";s:38:"tabs=general|perms|eacl|preview|custom";s:4:"span";s:3:"all";}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:6:"button";s:5:"label";s:4:"Save";s:4:"name";s:12:"button[save]";}i:2;a:3:{s:4:"type";s:6:"button";s:4:"name";s:13:"button[apply]";s:5:"label";s:5:"Apply";}i:3;a:4:{s:4:"type";s:10:"buttononly";s:5:"label";s:6:"Cancel";s:4:"name";s:14:"button[cancel]";s:7:"onclick";s:15:"window.close();";}}i:2;a:6:{s:4:"type";s:10:"buttononly";s:5:"label";s:9:"Superuser";s:5:"align";s:5:"right";s:4:"help";s:48:"Enter setup user and password to get root rights";s:7:"onclick";s:121:"set_style_by_class(\'fieldset\',\'superuser\',\'display\',\'inline\'); document.getElementById(form::name(\'sudo[user]\')).focus();";s:4:"name";s:4:"sudo";}}}i:4;a:1:{s:1:"A";a:5:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:5:"label";s:29:"Enter setup user and password";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"User";s:4:"size";s:13:",,,sudo[user]";}s:1:"B";a:2:{s:4:"type";s:4:"text";s:4:"name";s:10:"sudo[user]";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:8:"Password";s:4:"size";s:15:",,,sudo[passwd]";}s:1:"B";a:2:{s:4:"type";s:6:"passwd";s:4:"name";s:12:"sudo[passwd]";}}i:3;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Submit";s:4:"name";s:13:"button[setup]";}}}s:7:"options";a:0:{}s:4:"rows";i:3;s:4:"cols";i:2;}s:4:"span";s:10:",superuser";}}}s:4:"rows";i:4;s:4:"cols";i:1;}}', 'size' => '', 'style' => '.eaclAccount select,.eaclRights select { width: 160px; } |
|
16 | 16 | .superuser { |
17 | 17 | position: absolute; |
18 | 18 | top: 130px; |
@@ -23,28 +23,28 @@ discard block |
||
23 | 23 | display: none; |
24 | 24 | }','modified' => '1223224423',); |
25 | 25 | |
26 | -$templ_data[] = array('name' => 'filemanager.file.custom','template' => '','lang' => '','group' => '0','version' => '1.5.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:4:",top";}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:12:"customfields";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:18:"450,300,,,10,,auto";}}','size' => '450,300,,,10,,auto','style' => '','modified' => '1223224487',); |
|
26 | +$templ_data[] = array('name' => 'filemanager.file.custom', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.5.001', 'data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:4:",top";}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:12:"customfields";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:18:"450,300,,,10,,auto";}}', 'size' => '450,300,,,10,,auto', 'style' => '', 'modified' => '1223224487',); |
|
27 | 27 | |
28 | -$templ_data[] = array('name' => 'filemanager.file.eacl','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:4:{s:2:"c1";s:4:",top";s:2:"c2";s:7:",bottom";s:2:"h2";s:11:",!@is_owner";s:2:"h1";s:3:"200";}i:1;a:3:{s:1:"A";a:5:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:4:"span";s:3:"all";s:5:"label";s:28:"Extended access control list";i:1;a:7:{s:4:"type";s:4:"grid";s:4:"size";s:14:"100%,,,,,,auto";s:4:"data";a:3:{i:0;a:7:{s:1:"A";s:2:"80";s:1:"B";s:2:"80";s:1:"D";s:2:"16";s:2:"h2";s:4:",!@1";s:1:"C";s:3:"20%";s:2:"c1";s:2:"th";s:2:"c2";s:3:"row";}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Owner";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Rights";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Inherited";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:2;a:4:{s:1:"A";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:13:"${row}[owner]";s:8:"readonly";s:1:"1";}s:1:"B";a:3:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[rights]";s:8:"readonly";s:1:"1";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:4:"name";s:12:"${row}[path]";}s:1:"D";a:5:{s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:5:"label";s:6:"Delete";s:4:"name";s:39:"delete[$row_cont[ino]-$row_cont[owner]]";s:7:"onclick";s:43:"return confirm(\'Delete this extended ACL\');";}}}s:4:"name";s:4:"eacl";s:4:"rows";i:2;s:4:"cols";i:4;s:7:"options";a:2:{i:0;s:4:"100%";i:6;s:4:"auto";}}}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:2;a:3:{s:1:"A";a:5:{s:4:"type";s:14:"select-account";s:4:"size";s:15:"select one,both";s:4:"name";s:11:"eacl[owner]";s:4:"span";s:12:",eaclAccount";s:5:"label";s:5:"Owner";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:12:"eacl[rights]";s:4:"span";s:11:",eaclRights";s:5:"label";s:6:"Rights";s:4:"help";s:67:"You can only grant additional rights, you can NOT take rights away!";}s:1:"C";a:3:{s:4:"type";s:6:"button";s:5:"label";s:3:"Add";s:4:"name";s:12:"button[eacl]";}}}s:4:"rows";i:2;s:4:"cols";i:3;s:4:"size";s:12:"450,300,,,10";s:7:"options";a:3:{i:0;s:3:"450";i:1;s:3:"300";i:4;s:2:"10";}}}','size' => '450,300,,,10','style' => '','modified' => '1207724932',); |
|
28 | +$templ_data[] = array('name' => 'filemanager.file.eacl', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:4:{s:2:"c1";s:4:",top";s:2:"c2";s:7:",bottom";s:2:"h2";s:11:",!@is_owner";s:2:"h1";s:3:"200";}i:1;a:3:{s:1:"A";a:5:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:4:"span";s:3:"all";s:5:"label";s:28:"Extended access control list";i:1;a:7:{s:4:"type";s:4:"grid";s:4:"size";s:14:"100%,,,,,,auto";s:4:"data";a:3:{i:0;a:7:{s:1:"A";s:2:"80";s:1:"B";s:2:"80";s:1:"D";s:2:"16";s:2:"h2";s:4:",!@1";s:1:"C";s:3:"20%";s:2:"c1";s:2:"th";s:2:"c2";s:3:"row";}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Owner";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Rights";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Inherited";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:2;a:4:{s:1:"A";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:13:"${row}[owner]";s:8:"readonly";s:1:"1";}s:1:"B";a:3:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[rights]";s:8:"readonly";s:1:"1";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:4:"name";s:12:"${row}[path]";}s:1:"D";a:5:{s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:5:"label";s:6:"Delete";s:4:"name";s:39:"delete[$row_cont[ino]-$row_cont[owner]]";s:7:"onclick";s:43:"return confirm(\'Delete this extended ACL\');";}}}s:4:"name";s:4:"eacl";s:4:"rows";i:2;s:4:"cols";i:4;s:7:"options";a:2:{i:0;s:4:"100%";i:6;s:4:"auto";}}}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:2;a:3:{s:1:"A";a:5:{s:4:"type";s:14:"select-account";s:4:"size";s:15:"select one,both";s:4:"name";s:11:"eacl[owner]";s:4:"span";s:12:",eaclAccount";s:5:"label";s:5:"Owner";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:12:"eacl[rights]";s:4:"span";s:11:",eaclRights";s:5:"label";s:6:"Rights";s:4:"help";s:67:"You can only grant additional rights, you can NOT take rights away!";}s:1:"C";a:3:{s:4:"type";s:6:"button";s:5:"label";s:3:"Add";s:4:"name";s:12:"button[eacl]";}}}s:4:"rows";i:2;s:4:"cols";i:3;s:4:"size";s:12:"450,300,,,10";s:7:"options";a:3:{i:0;s:3:"450";i:1;s:3:"300";i:4;s:2:"10";}}}', 'size' => '450,300,,,10', 'style' => '', 'modified' => '1207724932',); |
|
29 | 29 | |
30 | -$templ_data[] = array('name' => 'filemanager.file.general','template' => '','lang' => '','group' => '0','version' => '1.7.002','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:10:{i:0;a:4:{s:1:"A";s:2:"80";s:2:"h1";s:2:"60";s:2:"h3";s:10:",!@is_link";s:2:"h6";s:9:",@is_link";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:5:"image";s:4:"name";s:4:"icon";s:4:"span";s:9:",mimeHuge";s:5:"align";s:6:"center";}s:1:"B";a:4:{s:4:"type";s:8:"vfs-name";s:4:"name";s:4:"name";s:6:"needed";s:1:"1";s:4:"span";s:9:",fileName";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"Link";s:4:"size";s:10:",,,symlink";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"span";s:9:",fileName";s:4:"name";s:7:"symlink";s:8:"readonly";s:1:"1";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Type";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:4:"name";s:4:"mime";}}i:5;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Directory";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:4:"name";s:3:"dir";}}i:6;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Size";}s:1:"B";a:3:{s:4:"type";s:8:"vfs-size";s:4:"name";s:4:"size";s:4:"size";s:1:"1";}}i:7;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Created";}s:1:"B";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:5:"ctime";s:8:"readonly";s:1:"1";}}i:8;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Modified";}s:1:"B";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:5:"mtime";s:8:"readonly";s:1:"1";}}i:9;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:10:",,,comment";s:5:"label";s:7:"Comment";}s:1:"B";a:3:{s:4:"type";s:8:"textarea";s:4:"name";s:7:"comment";s:4:"span";s:8:",comment";}}}s:4:"rows";i:9;s:4:"cols";i:2;s:4:"size";s:12:"450,300,,,10";s:7:"options";a:3:{i:0;s:3:"450";i:1;s:3:"300";i:4;s:2:"10";}}}','size' => '450,300,,,10','style' => '','modified' => '1204554817',); |
|
30 | +$templ_data[] = array('name' => 'filemanager.file.general', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.7.002', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:10:{i:0;a:4:{s:1:"A";s:2:"80";s:2:"h1";s:2:"60";s:2:"h3";s:10:",!@is_link";s:2:"h6";s:9:",@is_link";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:5:"image";s:4:"name";s:4:"icon";s:4:"span";s:9:",mimeHuge";s:5:"align";s:6:"center";}s:1:"B";a:4:{s:4:"type";s:8:"vfs-name";s:4:"name";s:4:"name";s:6:"needed";s:1:"1";s:4:"span";s:9:",fileName";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"Link";s:4:"size";s:10:",,,symlink";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"span";s:9:",fileName";s:4:"name";s:7:"symlink";s:8:"readonly";s:1:"1";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Type";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:4:"name";s:4:"mime";}}i:5;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Directory";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:4:"name";s:3:"dir";}}i:6;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Size";}s:1:"B";a:3:{s:4:"type";s:8:"vfs-size";s:4:"name";s:4:"size";s:4:"size";s:1:"1";}}i:7;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Created";}s:1:"B";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:5:"ctime";s:8:"readonly";s:1:"1";}}i:8;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Modified";}s:1:"B";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:5:"mtime";s:8:"readonly";s:1:"1";}}i:9;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:10:",,,comment";s:5:"label";s:7:"Comment";}s:1:"B";a:3:{s:4:"type";s:8:"textarea";s:4:"name";s:7:"comment";s:4:"span";s:8:",comment";}}}s:4:"rows";i:9;s:4:"cols";i:2;s:4:"size";s:12:"450,300,,,10";s:7:"options";a:3:{i:0;s:3:"450";i:1;s:3:"300";i:4;s:2:"10";}}}', 'size' => '450,300,,,10', 'style' => '', 'modified' => '1204554817',); |
|
31 | 31 | |
32 | -$templ_data[] = array('name' => 'filemanager.file.perms','template' => '','lang' => '','group' => '0','version' => '1.5.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:1:{s:2:"h3";s:9:",!@is_dir";}i:1;a:1:{s:1:"A";a:4:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:5:"label";s:12:"Accessrights";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:3:{s:1:"A";s:2:"80";s:2:"h5";s:2:",1";s:2:"h4";s:8:",@is_dir";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Owner";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"perms[owner]";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Group";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"perms[group]";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Other";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"perms[other]";}}i:4;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:10:"Executable";s:4:"name";s:17:"perms[executable]";}}i:5;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:43:"Only owner can rename or delete the content";s:4:"name";s:13:"perms[sticky]";}}}s:4:"rows";i:5;s:4:"cols";i:2;s:7:"options";a:0:{}}}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:5:"label";s:5:"Owner";i:1;a:5:{s:4:"type";s:4:"grid";s:7:"options";a:0:{}s:4:"data";a:3:{i:0;a:1:{s:1:"A";s:2:"80";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"User";}s:1:"B";a:4:{s:4:"type";s:14:"select-account";s:4:"size";s:13:"root,accounts";s:4:"name";s:3:"uid";s:5:"label";s:12:"@ro_uid_root";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Group";}s:1:"B";a:4:{s:4:"type";s:14:"select-account";s:4:"size";s:11:"root,groups";s:4:"name";s:3:"gid";s:5:"label";s:12:"@ro_gid_root";}}}s:4:"rows";i:2;s:4:"cols";i:2;}}}i:3;a:1:{s:1:"A";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:43:"Modify all Subdirectories and their content";s:4:"name";s:11:"modify_subs";}}}s:4:"rows";i:3;s:4:"cols";i:1;s:4:"size";s:12:"450,300,,,10";s:7:"options";a:3:{i:0;s:3:"450";i:1;s:3:"300";i:4;s:2:"10";}}}','size' => '450,300,,,10','style' => '','modified' => '1204567746',); |
|
32 | +$templ_data[] = array('name' => 'filemanager.file.perms', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.5.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:1:{s:2:"h3";s:9:",!@is_dir";}i:1;a:1:{s:1:"A";a:4:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:5:"label";s:12:"Accessrights";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:3:{s:1:"A";s:2:"80";s:2:"h5";s:2:",1";s:2:"h4";s:8:",@is_dir";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Owner";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"perms[owner]";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Group";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"perms[group]";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Other";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"perms[other]";}}i:4;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:10:"Executable";s:4:"name";s:17:"perms[executable]";}}i:5;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:43:"Only owner can rename or delete the content";s:4:"name";s:13:"perms[sticky]";}}}s:4:"rows";i:5;s:4:"cols";i:2;s:7:"options";a:0:{}}}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:5:"label";s:5:"Owner";i:1;a:5:{s:4:"type";s:4:"grid";s:7:"options";a:0:{}s:4:"data";a:3:{i:0;a:1:{s:1:"A";s:2:"80";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"User";}s:1:"B";a:4:{s:4:"type";s:14:"select-account";s:4:"size";s:13:"root,accounts";s:4:"name";s:3:"uid";s:5:"label";s:12:"@ro_uid_root";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Group";}s:1:"B";a:4:{s:4:"type";s:14:"select-account";s:4:"size";s:11:"root,groups";s:4:"name";s:3:"gid";s:5:"label";s:12:"@ro_gid_root";}}}s:4:"rows";i:2;s:4:"cols";i:2;}}}i:3;a:1:{s:1:"A";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:43:"Modify all Subdirectories and their content";s:4:"name";s:11:"modify_subs";}}}s:4:"rows";i:3;s:4:"cols";i:1;s:4:"size";s:12:"450,300,,,10";s:7:"options";a:3:{i:0;s:3:"450";i:1;s:3:"300";i:4;s:2:"10";}}}', 'size' => '450,300,,,10', 'style' => '', 'modified' => '1204567746',); |
|
33 | 33 | |
34 | -$templ_data[] = array('name' => 'filemanager.file.preview','template' => '','lang' => '','group' => '0','version' => '1.5.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:5:{s:2:"c1";s:4:",top";s:2:"h1";s:16:",!@mime=/^image/";s:2:"h3";s:22:",@mime=/^(image|text)/";s:2:"h2";s:18:"280,!@text_content";s:2:"c2";s:4:",top";}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:5:"image";s:4:"name";s:4:"link";s:4:"span";s:13:",previewImage";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:8:"textarea";s:4:"name";s:12:"text_content";s:4:"span";s:12:",previewText";s:8:"readonly";s:1:"1";}}i:3;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:20:"No preview available";}}}s:4:"rows";i:3;s:4:"cols";i:1;s:4:"size";s:18:"450,300,,,10,,auto";s:7:"options";a:4:{i:0;s:3:"450";i:1;s:3:"300";i:6;s:4:"auto";i:4;s:2:"10";}}}','size' => '450,300,,,10,,auto','style' => '','modified' => '1204567479',); |
|
34 | +$templ_data[] = array('name' => 'filemanager.file.preview', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.5.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:5:{s:2:"c1";s:4:",top";s:2:"h1";s:16:",!@mime=/^image/";s:2:"h3";s:22:",@mime=/^(image|text)/";s:2:"h2";s:18:"280,!@text_content";s:2:"c2";s:4:",top";}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:5:"image";s:4:"name";s:4:"link";s:4:"span";s:13:",previewImage";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:8:"textarea";s:4:"name";s:12:"text_content";s:4:"span";s:12:",previewText";s:8:"readonly";s:1:"1";}}i:3;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:20:"No preview available";}}}s:4:"rows";i:3;s:4:"cols";i:1;s:4:"size";s:18:"450,300,,,10,,auto";s:7:"options";a:4:{i:0;s:3:"450";i:1;s:3:"300";i:6;s:4:"auto";i:4;s:2:"10";}}}', 'size' => '450,300,,,10,,auto', 'style' => '', 'modified' => '1204567479',); |
|
35 | 35 | |
36 | -$templ_data[] = array('name' => 'filemanager.index','template' => '','lang' => '','group' => '0','version' => '1.9.003','data' => 'a:2:{i:0;a:3:{s:4:"name";s:3:"msg";s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";}i:1;a:3:{s:4:"name";s:2:"nm";s:4:"type";s:9:"nextmatch";s:4:"size";s:53:"filemanager.index.rows,,filemanager.index.header_left";}}','size' => '','style' => 'input[type=\'file\'] { |
|
36 | +$templ_data[] = array('name' => 'filemanager.index', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.003', 'data' => 'a:2:{i:0;a:3:{s:4:"name";s:3:"msg";s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";}i:1;a:3:{s:4:"name";s:2:"nm";s:4:"type";s:9:"nextmatch";s:4:"size";s:53:"filemanager.index.rows,,filemanager.index.header_left";}}', 'size' => '', 'style' => 'input[type=\'file\'] { |
|
37 | 37 | width: 50ex |
38 | 38 | }','modified' => '1365608331',); |
39 | 39 | |
40 | -$templ_data[] = array('name' => 'filemanager.index.header_left','template' => '','lang' => '','group' => '0','version' => '1.9.002','data' => 'a:1:{i:0;a:16:{s:4:"span";s:3:"all";s:4:"type";s:4:"hbox";s:4:"size";s:2:"13";i:1;a:4:{s:5:"label";s:2:"Up";s:7:"onclick";s:33:"app.filemanager.change_dir(\'..\');";s:4:"type";s:5:"image";s:4:"name";s:4:"goup";}i:2;a:4:{s:5:"label";s:25:"Go to your home directory";s:7:"onclick";s:32:"app.filemanager.change_dir(\'~\');";s:4:"type";s:5:"image";s:4:"name";s:6:"gohome";}i:3;a:6:{s:5:"label";s:4:"Path";s:8:"onchange";s:12:"return true;";s:4:"name";s:4:"path";s:4:"size";s:2:"80";s:4:"type";s:8:"vfs-name";s:4:"span";s:8:",address";}i:4;a:4:{s:5:"label";s:5:"Go to";s:4:"name";s:10:"button[go]";s:4:"type";s:6:"button";s:4:"size";s:9:"key_enter";}i:5;a:2:{s:4:"type";s:5:"image";s:4:"name";s:15:"buttonseparator";}i:6;a:6:{s:5:"label";s:13:"Edit settings";s:7:"onclick";s:28:"app.filemanager.editprefs();";s:4:"name";s:12:"button[edit]";s:4:"type";s:10:"buttononly";s:4:"size";s:4:"edit";s:4:"help";s:39:"Rename, change permissions or ownership";}i:7;a:5:{s:5:"label";s:16:"Create directory";s:7:"onclick";s:28:"app.filemanager.createdir();";s:4:"name";s:17:"button[createdir]";s:4:"type";s:10:"buttononly";s:4:"size";s:35:"button_createdir,createdir_disabled";}i:8;a:5:{s:5:"label";s:13:"Create a link";s:7:"onclick";s:26:"app.filemanager.symlink();";s:4:"name";s:15:"button[symlink]";s:4:"type";s:10:"buttononly";s:4:"size";s:18:"link,link_disabled";}i:9;a:4:{s:7:"onclick";s:31:"app.filemanager.paste(\'paste\');";s:4:"name";s:13:"button[paste]";s:4:"size";s:28:"editpaste,editpaste_disabled";s:4:"type";s:10:"buttononly";}i:10;a:4:{s:7:"onclick";s:35:"app.filemanager.paste(\'linkpaste\');";s:4:"name";s:17:"button[linkpaste]";s:4:"size";s:28:"linkpaste,linkpaste_disabled";s:4:"type";s:10:"buttononly";}i:11;a:4:{s:7:"onclick";s:35:"app.filemanager.paste(\'mailpaste\');";s:4:"name";s:17:"button[mailpaste]";s:4:"size";s:28:"mailpaste,mailpaste_disabled";s:4:"type";s:10:"buttononly";}i:12;a:4:{s:5:"label";s:11:"File a file";s:7:"onclick";s:171:"window.open(egw::link(\'/index.php\',\'menuaction=stylite.stylite_filemanager.upload\'),\'_blank\',\'dependent=yes,width=550,height=350,scrollbars=yes,status=yes\'); return false;";s:4:"type";s:6:"button";s:4:"size";s:6:"upload";}i:13;a:3:{s:4:"name";s:6:"upload";s:4:"type";s:4:"file";s:4:"help";s:42:"Select file to upload in current directory";}}}','size' => '','style' => '','modified' => '1365608384',); |
|
40 | +$templ_data[] = array('name' => 'filemanager.index.header_left', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.002', 'data' => 'a:1:{i:0;a:16:{s:4:"span";s:3:"all";s:4:"type";s:4:"hbox";s:4:"size";s:2:"13";i:1;a:4:{s:5:"label";s:2:"Up";s:7:"onclick";s:33:"app.filemanager.change_dir(\'..\');";s:4:"type";s:5:"image";s:4:"name";s:4:"goup";}i:2;a:4:{s:5:"label";s:25:"Go to your home directory";s:7:"onclick";s:32:"app.filemanager.change_dir(\'~\');";s:4:"type";s:5:"image";s:4:"name";s:6:"gohome";}i:3;a:6:{s:5:"label";s:4:"Path";s:8:"onchange";s:12:"return true;";s:4:"name";s:4:"path";s:4:"size";s:2:"80";s:4:"type";s:8:"vfs-name";s:4:"span";s:8:",address";}i:4;a:4:{s:5:"label";s:5:"Go to";s:4:"name";s:10:"button[go]";s:4:"type";s:6:"button";s:4:"size";s:9:"key_enter";}i:5;a:2:{s:4:"type";s:5:"image";s:4:"name";s:15:"buttonseparator";}i:6;a:6:{s:5:"label";s:13:"Edit settings";s:7:"onclick";s:28:"app.filemanager.editprefs();";s:4:"name";s:12:"button[edit]";s:4:"type";s:10:"buttononly";s:4:"size";s:4:"edit";s:4:"help";s:39:"Rename, change permissions or ownership";}i:7;a:5:{s:5:"label";s:16:"Create directory";s:7:"onclick";s:28:"app.filemanager.createdir();";s:4:"name";s:17:"button[createdir]";s:4:"type";s:10:"buttononly";s:4:"size";s:35:"button_createdir,createdir_disabled";}i:8;a:5:{s:5:"label";s:13:"Create a link";s:7:"onclick";s:26:"app.filemanager.symlink();";s:4:"name";s:15:"button[symlink]";s:4:"type";s:10:"buttononly";s:4:"size";s:18:"link,link_disabled";}i:9;a:4:{s:7:"onclick";s:31:"app.filemanager.paste(\'paste\');";s:4:"name";s:13:"button[paste]";s:4:"size";s:28:"editpaste,editpaste_disabled";s:4:"type";s:10:"buttononly";}i:10;a:4:{s:7:"onclick";s:35:"app.filemanager.paste(\'linkpaste\');";s:4:"name";s:17:"button[linkpaste]";s:4:"size";s:28:"linkpaste,linkpaste_disabled";s:4:"type";s:10:"buttononly";}i:11;a:4:{s:7:"onclick";s:35:"app.filemanager.paste(\'mailpaste\');";s:4:"name";s:17:"button[mailpaste]";s:4:"size";s:28:"mailpaste,mailpaste_disabled";s:4:"type";s:10:"buttononly";}i:12;a:4:{s:5:"label";s:11:"File a file";s:7:"onclick";s:171:"window.open(egw::link(\'/index.php\',\'menuaction=stylite.stylite_filemanager.upload\'),\'_blank\',\'dependent=yes,width=550,height=350,scrollbars=yes,status=yes\'); return false;";s:4:"type";s:6:"button";s:4:"size";s:6:"upload";}i:13;a:3:{s:4:"name";s:6:"upload";s:4:"type";s:4:"file";s:4:"help";s:42:"Select file to upload in current directory";}}}', 'size' => '', 'style' => '', 'modified' => '1365608384',); |
|
41 | 41 | |
42 | -$templ_data[] = array('name' => 'filemanager.index.rows','template' => '','lang' => '','group' => '0','version' => '1.7.002','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:6:{s:2:"c1";s:2:"th";s:2:"c2";s:20:"row $row_cont[class]";s:1:"B";s:3:"30%";s:1:"D";s:3:"120";s:1:"E";s:3:"120";s:1:"K";s:2:"70";}i:1;a:11:{s:1:"A";a:4:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Type";s:4:"name";s:4:"mime";s:5:"align";s:6:"center";}s:1:"B";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Name";s:4:"name";s:4:"name";}s:1:"C";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Size";s:4:"name";s:4:"size";}s:1:"D";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:8:"Modified";s:4:"name";s:5:"mtime";}s:1:"E";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:7:"Created";s:4:"name";s:5:"ctime";}s:1:"F";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:11:"Permissions";s:4:"name";s:4:"mode";}s:1:"G";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:3:"uid";s:5:"label";s:5:"Owner";}s:1:"H";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:3:"gid";s:5:"label";s:5:"Group";}s:1:"I";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Comment";s:4:"name";s:7:"comment";}s:1:"J";a:3:{s:4:"type";s:22:"nextmatch-customfields";s:8:"readonly";s:1:"1";s:4:"name";s:12:"customfields";}s:1:"K";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Actions";s:4:"name";s:14:"legacy_actions";}i:2;a:8:{s:4:"type";s:6:"button";s:4:"size";s:5:"check";s:5:"label";s:9:"Check all";s:4:"name";s:9:"check_all";s:4:"help";s:9:"Check all";s:7:"onclick";s:98:"egw_globalObjectManager.getObjectById(\'filemanager.index.rows\').toggleAllSelected(); return false;";s:6:"needed";s:1:"1";s:5:"align";s:5:"right";}}}i:2;a:11:{s:1:"A";a:3:{s:4:"type";s:8:"vfs-mime";s:4:"name";s:4:"$row";s:5:"align";s:6:"center";}s:1:"B";a:4:{s:4:"type";s:8:"vfs-name";s:4:"name";s:12:"${row}[name]";s:7:"no_lang";s:1:"1";s:8:"readonly";s:1:"1";}s:1:"C";a:3:{s:4:"type";s:8:"vfs-size";s:4:"name";s:12:"${row}[size]";s:5:"align";s:5:"right";}s:1:"D";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:13:"${row}[mtime]";s:8:"readonly";s:1:"1";}s:1:"E";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:13:"${row}[ctime]";s:8:"readonly";s:1:"1";}s:1:"F";a:2:{s:4:"type";s:8:"vfs-mode";s:4:"name";s:12:"${row}[mode]";}s:1:"G";a:3:{s:4:"type";s:7:"vfs-uid";s:4:"name";s:11:"${row}[uid]";s:7:"no_lang";s:1:"1";}s:1:"H";a:3:{s:4:"type";s:7:"vfs-gid";s:4:"name";s:11:"${row}[gid]";s:7:"no_lang";s:1:"1";}s:1:"I";a:2:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[comment]";}s:1:"J";a:3:{s:4:"type";s:17:"customfields-list";s:4:"name";s:4:"$row";s:4:"span";s:13:",customfields";}s:1:"K";a:7:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"4";i:1;a:6:{s:4:"type";s:6:"button";s:4:"size";s:4:"edit";s:5:"label";s:13:"Edit settings";s:4:"name";s:21:"edit[$row_cont[path]]";s:4:"help";s:39:"Rename, change permissions or ownership";s:7:"onclick";s:192:"window.open(egw::link(\'/index.php\',\'menuaction=filemanager.filemanager_ui.file&path=$row_cont[path]\'),\'fileprefs\',\'dependent=yes,width=495,height=425,scrollbars=yes,status=yes\'); return false;";}i:2;a:5:{s:4:"type";s:10:"buttononly";s:4:"size";s:12:"mail_post_to";s:4:"name";s:21:"mail[$row_cont[path]]";s:7:"onclick";s:43:"open_mail(\'$row_cont[path]\'); return false;";s:5:"align";s:6:"center";}i:3;a:7:{s:4:"type";s:6:"button";s:4:"name";s:23:"delete[$row_cont[path]]";s:4:"size";s:6:"delete";s:5:"label";s:6:"Delete";s:4:"help";s:29:"Delete this file or directory";s:7:"onclick";s:48:"return confirm(\'Delete this file or directory\');";s:5:"align";s:6:"center";}s:5:"align";s:5:"right";i:4;a:4:{s:4:"type";s:8:"checkbox";s:4:"name";s:9:"checked[]";s:5:"align";s:5:"right";s:4:"size";s:17:""$row_cont[path]"";}}}}s:4:"rows";i:2;s:4:"cols";i:11;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => '','modified' => '1259329664',); |
|
42 | +$templ_data[] = array('name' => 'filemanager.index.rows', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.7.002', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:6:{s:2:"c1";s:2:"th";s:2:"c2";s:20:"row $row_cont[class]";s:1:"B";s:3:"30%";s:1:"D";s:3:"120";s:1:"E";s:3:"120";s:1:"K";s:2:"70";}i:1;a:11:{s:1:"A";a:4:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Type";s:4:"name";s:4:"mime";s:5:"align";s:6:"center";}s:1:"B";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Name";s:4:"name";s:4:"name";}s:1:"C";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Size";s:4:"name";s:4:"size";}s:1:"D";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:8:"Modified";s:4:"name";s:5:"mtime";}s:1:"E";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:7:"Created";s:4:"name";s:5:"ctime";}s:1:"F";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:11:"Permissions";s:4:"name";s:4:"mode";}s:1:"G";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:3:"uid";s:5:"label";s:5:"Owner";}s:1:"H";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:3:"gid";s:5:"label";s:5:"Group";}s:1:"I";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Comment";s:4:"name";s:7:"comment";}s:1:"J";a:3:{s:4:"type";s:22:"nextmatch-customfields";s:8:"readonly";s:1:"1";s:4:"name";s:12:"customfields";}s:1:"K";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Actions";s:4:"name";s:14:"legacy_actions";}i:2;a:8:{s:4:"type";s:6:"button";s:4:"size";s:5:"check";s:5:"label";s:9:"Check all";s:4:"name";s:9:"check_all";s:4:"help";s:9:"Check all";s:7:"onclick";s:98:"egw_globalObjectManager.getObjectById(\'filemanager.index.rows\').toggleAllSelected(); return false;";s:6:"needed";s:1:"1";s:5:"align";s:5:"right";}}}i:2;a:11:{s:1:"A";a:3:{s:4:"type";s:8:"vfs-mime";s:4:"name";s:4:"$row";s:5:"align";s:6:"center";}s:1:"B";a:4:{s:4:"type";s:8:"vfs-name";s:4:"name";s:12:"${row}[name]";s:7:"no_lang";s:1:"1";s:8:"readonly";s:1:"1";}s:1:"C";a:3:{s:4:"type";s:8:"vfs-size";s:4:"name";s:12:"${row}[size]";s:5:"align";s:5:"right";}s:1:"D";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:13:"${row}[mtime]";s:8:"readonly";s:1:"1";}s:1:"E";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:13:"${row}[ctime]";s:8:"readonly";s:1:"1";}s:1:"F";a:2:{s:4:"type";s:8:"vfs-mode";s:4:"name";s:12:"${row}[mode]";}s:1:"G";a:3:{s:4:"type";s:7:"vfs-uid";s:4:"name";s:11:"${row}[uid]";s:7:"no_lang";s:1:"1";}s:1:"H";a:3:{s:4:"type";s:7:"vfs-gid";s:4:"name";s:11:"${row}[gid]";s:7:"no_lang";s:1:"1";}s:1:"I";a:2:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[comment]";}s:1:"J";a:3:{s:4:"type";s:17:"customfields-list";s:4:"name";s:4:"$row";s:4:"span";s:13:",customfields";}s:1:"K";a:7:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"4";i:1;a:6:{s:4:"type";s:6:"button";s:4:"size";s:4:"edit";s:5:"label";s:13:"Edit settings";s:4:"name";s:21:"edit[$row_cont[path]]";s:4:"help";s:39:"Rename, change permissions or ownership";s:7:"onclick";s:192:"window.open(egw::link(\'/index.php\',\'menuaction=filemanager.filemanager_ui.file&path=$row_cont[path]\'),\'fileprefs\',\'dependent=yes,width=495,height=425,scrollbars=yes,status=yes\'); return false;";}i:2;a:5:{s:4:"type";s:10:"buttononly";s:4:"size";s:12:"mail_post_to";s:4:"name";s:21:"mail[$row_cont[path]]";s:7:"onclick";s:43:"open_mail(\'$row_cont[path]\'); return false;";s:5:"align";s:6:"center";}i:3;a:7:{s:4:"type";s:6:"button";s:4:"name";s:23:"delete[$row_cont[path]]";s:4:"size";s:6:"delete";s:5:"label";s:6:"Delete";s:4:"help";s:29:"Delete this file or directory";s:7:"onclick";s:48:"return confirm(\'Delete this file or directory\');";s:5:"align";s:6:"center";}s:5:"align";s:5:"right";i:4;a:4:{s:4:"type";s:8:"checkbox";s:4:"name";s:9:"checked[]";s:5:"align";s:5:"right";s:4:"size";s:17:""$row_cont[path]"";}}}}s:4:"rows";i:2;s:4:"cols";i:11;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}', 'size' => '100%', 'style' => '', 'modified' => '1259329664',); |
|
43 | 43 | |
44 | -$templ_data[] = array('name' => 'filemanager.search','template' => '','lang' => '','group' => '0','version' => '1.3.001','data' => 'a:4:{i:0;a:9:{s:4:"type";s:8:"groupbox";s:4:"name";s:10:"debuginfos";s:4:"size";s:1:"4";s:5:"label";s:10:"Debuginfos";s:8:"disabled";s:1:"1";i:1;a:3:{s:4:"type";s:8:"textarea";s:4:"name";s:7:"message";s:8:"readonly";s:1:"1";}i:2;a:1:{s:4:"type";s:5:"label";}i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}}i:1;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:2:{s:1:"C";s:3:"120";s:1:"D";s:3:"120";}i:1;a:5:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:12:"searchstring";s:4:"name";s:17:"searchstringlabel";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"span";s:1:"2";s:4:"name";s:12:"searchstring";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:3:{s:4:"type";s:6:"button";s:5:"label";s:12:"start search";s:4:"name";s:12:"start_search";}s:1:"E";a:1:{s:4:"type";s:5:"label";}}i:2;a:5:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"mime type";}s:1:"B";a:2:{s:4:"type";s:8:"checkbox";s:4:"name";s:8:"checkall";}s:1:"C";a:3:{s:4:"type";s:5:"label";s:5:"label";s:3:"All";s:4:"name";s:8:"alllabel";}s:1:"D";a:4:{s:4:"type";s:5:"label";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:5:"files";s:4:"name";s:14:"checkonlyfiles";}}}s:4:"rows";i:1;s:4:"cols";i:1;}s:1:"E";a:1:{s:4:"type";s:5:"label";}}i:3;a:5:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:8:"checkbox";s:4:"name";s:14:"checkonlyfiles";}s:1:"C";a:3:{s:4:"type";s:5:"label";s:5:"label";s:5:"files";s:4:"name";s:9:"filelabel";}s:1:"D";a:4:{s:4:"type";s:6:"button";s:5:"label";s:12:"clear search";s:4:"name";s:12:"clear_search";s:7:"onclick";s:71:"menuaction=filemanager.uifilemanager.index&action=search&actioncd=clear";}s:1:"E";a:1:{s:4:"type";s:5:"label";}}i:4;a:5:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:8:"checkbox";s:4:"name";s:13:"checkonlydirs";}s:1:"C";a:3:{s:4:"type";s:5:"label";s:5:"label";s:9:"directory";s:4:"name";s:8:"dirlabel";}s:1:"D";a:4:{s:4:"type";s:8:"checkbox";s:5:"label";s:5:"Debug";s:4:"name";s:5:"debug";s:8:"disabled";s:1:"1";}s:1:"E";a:1:{s:4:"type";s:5:"label";}}i:5;a:5:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:15:"created between";s:4:"name";s:12:"createdlabel";}s:1:"B";a:2:{s:4:"type";s:8:"checkbox";s:4:"name";s:13:"searchcreated";}s:1:"C";a:3:{s:4:"type";s:4:"date";s:4:"name";s:15:"datecreatedfrom";s:4:"size";s:2:",8";}s:1:"D";a:3:{s:4:"type";s:4:"date";s:4:"name";s:13:"datecreatedto";s:4:"size";s:2:",8";}s:1:"E";a:4:{s:4:"type";s:8:"textarea";s:4:"name";s:17:"searchcreatedtext";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}}i:6;a:5:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:16:"modified between";s:4:"name";s:13:"modifiedlabel";}s:1:"B";a:2:{s:4:"type";s:8:"checkbox";s:4:"name";s:14:"searchmodified";}s:1:"C";a:3:{s:4:"type";s:4:"date";s:4:"name";s:16:"datemodifiedfrom";s:4:"size";s:2:",8";}s:1:"D";a:3:{s:4:"type";s:4:"date";s:4:"name";s:14:"datemodifiedto";s:4:"size";s:2:",8";}s:1:"E";a:4:{s:4:"type";s:8:"textarea";s:4:"name";s:18:"searchmodifiedtext";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:6;s:4:"cols";i:5;}i:2;a:1:{s:4:"type";s:5:"hrule";}i:3;a:3:{s:4:"type";s:9:"nextmatch";s:4:"size";s:4:"rows";s:4:"name";s:2:"nm";}}','size' => '','style' => '','modified' => '1173101430',); |
|
44 | +$templ_data[] = array('name' => 'filemanager.search', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.3.001', 'data' => 'a:4:{i:0;a:9:{s:4:"type";s:8:"groupbox";s:4:"name";s:10:"debuginfos";s:4:"size";s:1:"4";s:5:"label";s:10:"Debuginfos";s:8:"disabled";s:1:"1";i:1;a:3:{s:4:"type";s:8:"textarea";s:4:"name";s:7:"message";s:8:"readonly";s:1:"1";}i:2;a:1:{s:4:"type";s:5:"label";}i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}}i:1;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:2:{s:1:"C";s:3:"120";s:1:"D";s:3:"120";}i:1;a:5:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:12:"searchstring";s:4:"name";s:17:"searchstringlabel";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"span";s:1:"2";s:4:"name";s:12:"searchstring";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:3:{s:4:"type";s:6:"button";s:5:"label";s:12:"start search";s:4:"name";s:12:"start_search";}s:1:"E";a:1:{s:4:"type";s:5:"label";}}i:2;a:5:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"mime type";}s:1:"B";a:2:{s:4:"type";s:8:"checkbox";s:4:"name";s:8:"checkall";}s:1:"C";a:3:{s:4:"type";s:5:"label";s:5:"label";s:3:"All";s:4:"name";s:8:"alllabel";}s:1:"D";a:4:{s:4:"type";s:5:"label";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:5:"files";s:4:"name";s:14:"checkonlyfiles";}}}s:4:"rows";i:1;s:4:"cols";i:1;}s:1:"E";a:1:{s:4:"type";s:5:"label";}}i:3;a:5:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:8:"checkbox";s:4:"name";s:14:"checkonlyfiles";}s:1:"C";a:3:{s:4:"type";s:5:"label";s:5:"label";s:5:"files";s:4:"name";s:9:"filelabel";}s:1:"D";a:4:{s:4:"type";s:6:"button";s:5:"label";s:12:"clear search";s:4:"name";s:12:"clear_search";s:7:"onclick";s:71:"menuaction=filemanager.uifilemanager.index&action=search&actioncd=clear";}s:1:"E";a:1:{s:4:"type";s:5:"label";}}i:4;a:5:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:8:"checkbox";s:4:"name";s:13:"checkonlydirs";}s:1:"C";a:3:{s:4:"type";s:5:"label";s:5:"label";s:9:"directory";s:4:"name";s:8:"dirlabel";}s:1:"D";a:4:{s:4:"type";s:8:"checkbox";s:5:"label";s:5:"Debug";s:4:"name";s:5:"debug";s:8:"disabled";s:1:"1";}s:1:"E";a:1:{s:4:"type";s:5:"label";}}i:5;a:5:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:15:"created between";s:4:"name";s:12:"createdlabel";}s:1:"B";a:2:{s:4:"type";s:8:"checkbox";s:4:"name";s:13:"searchcreated";}s:1:"C";a:3:{s:4:"type";s:4:"date";s:4:"name";s:15:"datecreatedfrom";s:4:"size";s:2:",8";}s:1:"D";a:3:{s:4:"type";s:4:"date";s:4:"name";s:13:"datecreatedto";s:4:"size";s:2:",8";}s:1:"E";a:4:{s:4:"type";s:8:"textarea";s:4:"name";s:17:"searchcreatedtext";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}}i:6;a:5:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:16:"modified between";s:4:"name";s:13:"modifiedlabel";}s:1:"B";a:2:{s:4:"type";s:8:"checkbox";s:4:"name";s:14:"searchmodified";}s:1:"C";a:3:{s:4:"type";s:4:"date";s:4:"name";s:16:"datemodifiedfrom";s:4:"size";s:2:",8";}s:1:"D";a:3:{s:4:"type";s:4:"date";s:4:"name";s:14:"datemodifiedto";s:4:"size";s:2:",8";}s:1:"E";a:4:{s:4:"type";s:8:"textarea";s:4:"name";s:18:"searchmodifiedtext";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:6;s:4:"cols";i:5;}i:2;a:1:{s:4:"type";s:5:"hrule";}i:3;a:3:{s:4:"type";s:9:"nextmatch";s:4:"size";s:4:"rows";s:4:"name";s:2:"nm";}}', 'size' => '', 'style' => '', 'modified' => '1173101430',); |
|
45 | 45 | |
46 | -$templ_data[] = array('name' => 'filemanager.search.rows','template' => '','lang' => '','group' => '0','version' => '1.5.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:3:{s:2:"c1";s:2:"th";s:2:"c2";s:3:"row";s:1:"A";s:2:"20";}i:1;a:12:{s:1:"A";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Type";s:4:"name";s:13:"vfs_mime_type";}s:1:"B";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:2:"Id";s:4:"name";s:11:"vfs_file_id";}s:1:"C";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"File";s:4:"name";s:7:"fulldir";}s:1:"D";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:9:"Directory";s:4:"name";s:13:"vfs_directory";}s:1:"E";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"name";s:4:"name";s:8:"vfs_name";}s:1:"F";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:9:"mime type";s:4:"name";s:9:"mime_type";}s:1:"G";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Size";s:4:"name";s:8:"vfs_size";}s:1:"H";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:7:"comment";s:4:"name";s:11:"vfs_comment";}s:1:"I";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:7:"created";s:4:"name";s:11:"vfs_created";}s:1:"J";a:3:{s:4:"type";s:23:"nextmatch-accountfilter";s:4:"size";s:10:"Created by";s:4:"name";s:16:"vfs_createdby_id";}s:1:"K";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:8:"modified";s:4:"name";s:12:"vfs_modified";}s:1:"L";a:3:{s:4:"type";s:23:"nextmatch-accountfilter";s:4:"size";s:11:"Modified by";s:4:"name";s:17:"vfs_modifiedby_id";}}i:2;a:12:{s:1:"A";a:4:{s:4:"type";s:5:"image";s:5:"label";s:24:"$row_cont[vfs_mime_type]";s:4:"name";s:12:"${row}[icon]";s:5:"align";s:6:"center";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:4:"name";s:19:"${row}[vfs_file_id]";s:7:"no_lang";s:1:"1";}s:1:"C";a:4:{s:4:"type";s:5:"label";s:4:"name";s:12:"${row}[file]";s:7:"no_lang";s:1:"1";s:4:"size";s:21:",$row_cont[file_link]";}s:1:"D";a:4:{s:4:"type";s:5:"label";s:4:"name";s:21:"${row}[vfs_directory]";s:7:"no_lang";s:1:"1";s:4:"size";s:20:",$row_cont[dir_link]";}s:1:"E";a:4:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[vfs_name]";s:7:"no_lang";s:1:"1";s:4:"size";s:21:",$row_cont[file_link]";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:4:"name";s:21:"${row}[vfs_mime_type]";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[vfs_size]";s:5:"align";s:5:"right";}s:1:"H";a:3:{s:4:"type";s:5:"label";s:4:"name";s:19:"${row}[vfs_comment]";s:7:"no_lang";s:1:"1";}s:1:"I";a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:19:"${row}[vfs_created]";s:4:"size";s:11:"Y-m-d H:i:s";s:8:"readonly";s:1:"1";}s:1:"J";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:24:"${row}[vfs_createdby_id]";s:8:"readonly";s:1:"1";}s:1:"K";a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:20:"${row}[vfs_modified]";s:4:"size";s:11:"Y-m-d H:i:s";s:8:"readonly";s:1:"1";}s:1:"L";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:25:"${row}[vfs_modifiedby_id]";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:2;s:4:"cols";i:12;s:4:"size";s:9:"100%,auto";s:7:"options";a:2:{i:0;s:4:"100%";i:1;s:4:"auto";}}}','size' => '100%,auto','style' => '','modified' => '1173104345',); |
|
46 | +$templ_data[] = array('name' => 'filemanager.search.rows', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.5.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:3:{s:2:"c1";s:2:"th";s:2:"c2";s:3:"row";s:1:"A";s:2:"20";}i:1;a:12:{s:1:"A";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Type";s:4:"name";s:13:"vfs_mime_type";}s:1:"B";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:2:"Id";s:4:"name";s:11:"vfs_file_id";}s:1:"C";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"File";s:4:"name";s:7:"fulldir";}s:1:"D";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:9:"Directory";s:4:"name";s:13:"vfs_directory";}s:1:"E";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"name";s:4:"name";s:8:"vfs_name";}s:1:"F";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:9:"mime type";s:4:"name";s:9:"mime_type";}s:1:"G";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Size";s:4:"name";s:8:"vfs_size";}s:1:"H";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:7:"comment";s:4:"name";s:11:"vfs_comment";}s:1:"I";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:7:"created";s:4:"name";s:11:"vfs_created";}s:1:"J";a:3:{s:4:"type";s:23:"nextmatch-accountfilter";s:4:"size";s:10:"Created by";s:4:"name";s:16:"vfs_createdby_id";}s:1:"K";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:8:"modified";s:4:"name";s:12:"vfs_modified";}s:1:"L";a:3:{s:4:"type";s:23:"nextmatch-accountfilter";s:4:"size";s:11:"Modified by";s:4:"name";s:17:"vfs_modifiedby_id";}}i:2;a:12:{s:1:"A";a:4:{s:4:"type";s:5:"image";s:5:"label";s:24:"$row_cont[vfs_mime_type]";s:4:"name";s:12:"${row}[icon]";s:5:"align";s:6:"center";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:4:"name";s:19:"${row}[vfs_file_id]";s:7:"no_lang";s:1:"1";}s:1:"C";a:4:{s:4:"type";s:5:"label";s:4:"name";s:12:"${row}[file]";s:7:"no_lang";s:1:"1";s:4:"size";s:21:",$row_cont[file_link]";}s:1:"D";a:4:{s:4:"type";s:5:"label";s:4:"name";s:21:"${row}[vfs_directory]";s:7:"no_lang";s:1:"1";s:4:"size";s:20:",$row_cont[dir_link]";}s:1:"E";a:4:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[vfs_name]";s:7:"no_lang";s:1:"1";s:4:"size";s:21:",$row_cont[file_link]";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:4:"name";s:21:"${row}[vfs_mime_type]";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[vfs_size]";s:5:"align";s:5:"right";}s:1:"H";a:3:{s:4:"type";s:5:"label";s:4:"name";s:19:"${row}[vfs_comment]";s:7:"no_lang";s:1:"1";}s:1:"I";a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:19:"${row}[vfs_created]";s:4:"size";s:11:"Y-m-d H:i:s";s:8:"readonly";s:1:"1";}s:1:"J";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:24:"${row}[vfs_createdby_id]";s:8:"readonly";s:1:"1";}s:1:"K";a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:20:"${row}[vfs_modified]";s:4:"size";s:11:"Y-m-d H:i:s";s:8:"readonly";s:1:"1";}s:1:"L";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:25:"${row}[vfs_modifiedby_id]";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:2;s:4:"cols";i:12;s:4:"size";s:9:"100%,auto";s:7:"options";a:2:{i:0;s:4:"100%";i:1;s:4:"auto";}}}', 'size' => '100%,auto', 'style' => '', 'modified' => '1173104345',); |
|
47 | 47 | |
48 | -$templ_data[] = array('name' => 'filemanager.select','template' => '','lang' => '','group' => '0','version' => '1.9.002','data' => 'a:2:{i:0;a:4:{s:4:"type";s:5:"label";s:4:"name";s:3:"msg";s:4:"span";s:6:",error";s:5:"align";s:6:"center";}i:1;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:1:"A";s:2:"32";}i:1;a:2:{s:1:"A";a:7:{s:4:"type";s:4:"grid";s:5:"align";s:6:"center";s:4:"data";a:3:{i:0;a:2:{s:2:"h2";s:2:"40";s:2:"h1";s:4:",!@0";}i:1;a:1:{s:1:"A";a:5:{s:4:"type";s:6:"button";s:4:"size";s:9:"favorites";s:5:"label";s:9:"Favorites";s:5:"align";s:6:"center";s:4:"name";s:9:"favorites";}}i:2;a:1:{s:1:"A";a:5:{s:4:"type";s:6:"button";s:4:"size";s:16:"$row_cont/navbar";s:5:"label";s:9:"$row_cont";s:5:"align";s:6:"center";s:4:"name";s:6:"${row}";}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"name";s:4:"apps";s:7:"options";a:0:{}}s:1:"B";a:6:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:4:{s:2:"c2";s:11:"selectFiles";s:2:"h3";s:35:",@mode=/(open-multiple|select-dir)/";s:2:"h4";s:15:",!@options-mime";s:2:"h5";s:11:",@no_upload";}i:1;a:1:{s:1:"A";a:8:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"6";i:1;a:2:{s:4:"type";s:4:"html";s:4:"name";s:2:"js";}i:2;a:4:{s:4:"type";s:6:"button";s:4:"name";s:10:"button[up]";s:4:"size";s:4:"goup";s:5:"label";s:2:"Up";}i:3;a:4:{s:4:"type";s:6:"button";s:4:"name";s:12:"button[home]";s:4:"size";s:6:"gohome";s:5:"label";s:25:"Go to your home directory";}i:4;a:4:{s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:4:{s:4:"type";s:3:"vfs";s:4:"name";s:4:"path";s:7:"onclick";s:87:"path=document.getElementById(form::name(\'path\')); path.value=$path; path.form.submit();";s:4:"span";s:11:",selectPath";}s:4:"span";s:20:",selectPathContainer";}i:5;a:2:{s:4:"type";s:6:"hidden";s:4:"name";s:4:"path";}i:6;a:6:{s:4:"type";s:6:"button";s:4:"name";s:17:"button[createdir]";s:4:"size";s:35:"button_createdir,createdir_disabled";s:5:"label";s:16:"Create directory";s:7:"onclick";s:129:"var dir = prompt(egw::lang(\'New directory\')); if (!dir) return false; document.getElementById(form::name(\'path\')).value+=\'/\'+dir;";s:4:"span";s:10:",createDir";}}}i:2;a:1:{s:1:"A";a:7:{s:4:"type";s:4:"grid";s:4:"size";s:14:"100%,,,,,,auto";s:4:"name";s:3:"dir";s:4:"data";a:2:{i:0;a:3:{s:2:"c1";s:3:"row";s:1:"A";s:2:"20";s:1:"C";s:23:"1%,!@mode=open-multiple";}i:1;a:3:{s:1:"A";a:5:{s:4:"type";s:8:"vfs-mime";s:4:"name";s:4:"$row";s:4:"span";s:11:",selectIcon";s:5:"align";s:6:"center";s:4:"size";s:2:"16";}s:1:"B";a:3:{s:4:"type";s:3:"vfs";s:4:"name";s:4:"$row";s:7:"onclick";s:18:"$row_cont[onclick]";}s:1:"C";a:4:{s:4:"type";s:8:"checkbox";s:4:"size";s:17:""$row_cont[name]"";s:4:"name";s:10:"selected[]";s:5:"align";s:5:"right";}}}s:4:"rows";i:1;s:4:"cols";i:3;s:7:"options";a:2:{i:0;s:4:"100%";i:6;s:4:"auto";}}}i:3;a:1:{s:1:"A";a:3:{s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"span";s:11:",selectName";}}i:4;a:1:{s:1:"A";a:5:{s:4:"type";s:6:"select";s:4:"size";s:9:"All files";s:4:"name";s:4:"mime";s:4:"span";s:11:",selectMime";s:8:"onchange";i:1;}}i:5;a:1:{s:1:"A";a:6:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"2";s:5:"label";s:11:"File upload";s:4:"name";s:15:"upload_groupbox";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:27:"Choose a file for uploading";}i:2;a:2:{s:4:"type";s:4:"file";s:4:"name";s:11:"file_upload";}}}i:6;a:1:{s:1:"A";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"@label";s:4:"name";s:10:"button[ok]";}i:2;a:4:{s:4:"type";s:10:"buttononly";s:4:"name";s:14:"button[cancel]";s:5:"label";s:6:"Cancel";s:7:"onclick";s:15:"window.close();";}s:5:"align";s:5:"right";}}}s:4:"rows";i:6;s:4:"cols";i:1;s:7:"options";a:1:{i:0;s:4:"100%";}s:4:"size";s:4:"100%";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"size";s:3:"600";s:7:"options";a:1:{i:0;s:3:"600";}}}','size' => '600','style' => '.error{color:red; font-style:italic;} |
|
48 | +$templ_data[] = array('name' => 'filemanager.select', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.002', 'data' => 'a:2:{i:0;a:4:{s:4:"type";s:5:"label";s:4:"name";s:3:"msg";s:4:"span";s:6:",error";s:5:"align";s:6:"center";}i:1;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:1:"A";s:2:"32";}i:1;a:2:{s:1:"A";a:7:{s:4:"type";s:4:"grid";s:5:"align";s:6:"center";s:4:"data";a:3:{i:0;a:2:{s:2:"h2";s:2:"40";s:2:"h1";s:4:",!@0";}i:1;a:1:{s:1:"A";a:5:{s:4:"type";s:6:"button";s:4:"size";s:9:"favorites";s:5:"label";s:9:"Favorites";s:5:"align";s:6:"center";s:4:"name";s:9:"favorites";}}i:2;a:1:{s:1:"A";a:5:{s:4:"type";s:6:"button";s:4:"size";s:16:"$row_cont/navbar";s:5:"label";s:9:"$row_cont";s:5:"align";s:6:"center";s:4:"name";s:6:"${row}";}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"name";s:4:"apps";s:7:"options";a:0:{}}s:1:"B";a:6:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:4:{s:2:"c2";s:11:"selectFiles";s:2:"h3";s:35:",@mode=/(open-multiple|select-dir)/";s:2:"h4";s:15:",!@options-mime";s:2:"h5";s:11:",@no_upload";}i:1;a:1:{s:1:"A";a:8:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"6";i:1;a:2:{s:4:"type";s:4:"html";s:4:"name";s:2:"js";}i:2;a:4:{s:4:"type";s:6:"button";s:4:"name";s:10:"button[up]";s:4:"size";s:4:"goup";s:5:"label";s:2:"Up";}i:3;a:4:{s:4:"type";s:6:"button";s:4:"name";s:12:"button[home]";s:4:"size";s:6:"gohome";s:5:"label";s:25:"Go to your home directory";}i:4;a:4:{s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:4:{s:4:"type";s:3:"vfs";s:4:"name";s:4:"path";s:7:"onclick";s:87:"path=document.getElementById(form::name(\'path\')); path.value=$path; path.form.submit();";s:4:"span";s:11:",selectPath";}s:4:"span";s:20:",selectPathContainer";}i:5;a:2:{s:4:"type";s:6:"hidden";s:4:"name";s:4:"path";}i:6;a:6:{s:4:"type";s:6:"button";s:4:"name";s:17:"button[createdir]";s:4:"size";s:35:"button_createdir,createdir_disabled";s:5:"label";s:16:"Create directory";s:7:"onclick";s:129:"var dir = prompt(egw::lang(\'New directory\')); if (!dir) return false; document.getElementById(form::name(\'path\')).value+=\'/\'+dir;";s:4:"span";s:10:",createDir";}}}i:2;a:1:{s:1:"A";a:7:{s:4:"type";s:4:"grid";s:4:"size";s:14:"100%,,,,,,auto";s:4:"name";s:3:"dir";s:4:"data";a:2:{i:0;a:3:{s:2:"c1";s:3:"row";s:1:"A";s:2:"20";s:1:"C";s:23:"1%,!@mode=open-multiple";}i:1;a:3:{s:1:"A";a:5:{s:4:"type";s:8:"vfs-mime";s:4:"name";s:4:"$row";s:4:"span";s:11:",selectIcon";s:5:"align";s:6:"center";s:4:"size";s:2:"16";}s:1:"B";a:3:{s:4:"type";s:3:"vfs";s:4:"name";s:4:"$row";s:7:"onclick";s:18:"$row_cont[onclick]";}s:1:"C";a:4:{s:4:"type";s:8:"checkbox";s:4:"size";s:17:""$row_cont[name]"";s:4:"name";s:10:"selected[]";s:5:"align";s:5:"right";}}}s:4:"rows";i:1;s:4:"cols";i:3;s:7:"options";a:2:{i:0;s:4:"100%";i:6;s:4:"auto";}}}i:3;a:1:{s:1:"A";a:3:{s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"span";s:11:",selectName";}}i:4;a:1:{s:1:"A";a:5:{s:4:"type";s:6:"select";s:4:"size";s:9:"All files";s:4:"name";s:4:"mime";s:4:"span";s:11:",selectMime";s:8:"onchange";i:1;}}i:5;a:1:{s:1:"A";a:6:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"2";s:5:"label";s:11:"File upload";s:4:"name";s:15:"upload_groupbox";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:27:"Choose a file for uploading";}i:2;a:2:{s:4:"type";s:4:"file";s:4:"name";s:11:"file_upload";}}}i:6;a:1:{s:1:"A";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"@label";s:4:"name";s:10:"button[ok]";}i:2;a:4:{s:4:"type";s:10:"buttononly";s:4:"name";s:14:"button[cancel]";s:5:"label";s:6:"Cancel";s:7:"onclick";s:15:"window.close();";}s:5:"align";s:5:"right";}}}s:4:"rows";i:6;s:4:"cols";i:1;s:7:"options";a:1:{i:0;s:4:"100%";}s:4:"size";s:4:"100%";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"size";s:3:"600";s:7:"options";a:1:{i:0;s:3:"600";}}}', 'size' => '600', 'style' => '.error{color:red; font-style:italic;} |
|
49 | 49 | .createDir img {padding-right:30px;}','modified' => '1341261799',); |
50 | 50 |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | { |
24 | 24 | $_GET['domain'] = $_SERVER['argc'] > 1 ? $_SERVER['argv'][1] : 'default'; |
25 | 25 | } |
26 | - $path_to_egroupware = realpath(dirname(__FILE__).'/../..'); // need to be adapted if this script is moved somewhere else |
|
26 | + $path_to_egroupware = realpath(dirname(__FILE__).'/../..'); // need to be adapted if this script is moved somewhere else |
|
27 | 27 | |
28 | 28 | $phpgw_info = array( |
29 | 29 | 'flags' => array( |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | print_r($adodb->ServerInfo()); |
46 | 46 | |
47 | 47 | // creating a schema_proc instance |
48 | - $schema_proc = CreateObject('phpgwapi.schema_proc',$db->Type); |
|
49 | - $schema_proc->debug = isset($_GET['debug']) ? $_GET['debug'] : ($_SERVER['argc'] > 2 ? $_SERVER['argv'][2] : 0); |
|
48 | + $schema_proc = CreateObject('phpgwapi.schema_proc', $db->Type); |
|
49 | + $schema_proc->debug = isset($_GET['debug']) ? $_GET['debug'] : ($_SERVER['argc'] > 2 ? $_SERVER['argv'][2] : 0); |
|
50 | 50 | if ($schema_proc->debug > 1) $adodb->debug = true; |
51 | 51 | |
52 | 52 | // define a test-table to create |
@@ -54,37 +54,37 @@ discard block |
||
54 | 54 | 'schema_proc_test' => array( |
55 | 55 | 'fd' => array( |
56 | 56 | 'test_auto' => array('type' => 'auto'), |
57 | - 'test_int4' => array('type' => 'int','precision' => '4'), |
|
58 | - 'test_varchar' => array('type' => 'varchar','precision' => '128'), |
|
59 | - 'test_char' => array('type' => 'char','precision' => '10'), |
|
60 | - 'test_timestamp' => array('type' => 'timestamp','default'=>'current_timestamp'), |
|
57 | + 'test_int4' => array('type' => 'int', 'precision' => '4'), |
|
58 | + 'test_varchar' => array('type' => 'varchar', 'precision' => '128'), |
|
59 | + 'test_char' => array('type' => 'char', 'precision' => '10'), |
|
60 | + 'test_timestamp' => array('type' => 'timestamp', 'default'=>'current_timestamp'), |
|
61 | 61 | 'test_text' => array('type' => 'text'), |
62 | 62 | 'test_blob' => array('type' => 'blob'), |
63 | 63 | ), |
64 | 64 | 'pk' => array('test_auto'), |
65 | 65 | 'fk' => array(), |
66 | - 'ix' => array(array('test_char','test_varchar'),'test_varchar',array('test_text','options'=>array('mysql'=>'FULLTEXT','sapdb'=>false,'maxdb'=>false,'pgsql'=>false,'mssql'=>false))), |
|
66 | + 'ix' => array(array('test_char', 'test_varchar'), 'test_varchar', array('test_text', 'options'=>array('mysql'=>'FULLTEXT', 'sapdb'=>false, 'maxdb'=>false, 'pgsql'=>false, 'mssql'=>false))), |
|
67 | 67 | 'uc' => array('test_char') |
68 | 68 | ), |
69 | 69 | ); |
70 | - $GLOBALS['phpgw_info']['apps']['login']['table_defs'] = &$test_tables; // to be able to use db::insert and db::update |
|
70 | + $GLOBALS['phpgw_info']['apps']['login']['table_defs'] = &$test_tables; // to be able to use db::insert and db::update |
|
71 | 71 | |
72 | 72 | // droping test-tables, if they are there from a previous failed run |
73 | - foreach($adodb->MetaTables() as $table) |
|
73 | + foreach ($adodb->MetaTables() as $table) |
|
74 | 74 | { |
75 | 75 | $table = strtolower($table); |
76 | - if (strstr($table,'schema_proc')) |
|
76 | + if (strstr($table, 'schema_proc')) |
|
77 | 77 | { |
78 | 78 | $aSql = $schema_proc->dict->DropTableSQL($table); |
79 | - $schema_proc->ExecuteSqlArray($aSql,1,"DropTableSQL('%1') = %2",$table,$aSql); |
|
79 | + $schema_proc->ExecuteSqlArray($aSql, 1, "DropTableSQL('%1') = %2", $table, $aSql); |
|
80 | 80 | } |
81 | 81 | } |
82 | 82 | |
83 | 83 | echo "Creating table(s):\n"; |
84 | - foreach($test_tables as $name => $definition) |
|
84 | + foreach ($test_tables as $name => $definition) |
|
85 | 85 | { |
86 | 86 | echo "$name:\n"; |
87 | - $schema_proc->CreateTable($name,$definition); |
|
87 | + $schema_proc->CreateTable($name, $definition); |
|
88 | 88 | |
89 | 89 | $columns = $adodb->MetaColumns($name); |
90 | 90 | if (!$columns || count($columns) <= 0) |
@@ -94,9 +94,9 @@ discard block |
||
94 | 94 | else |
95 | 95 | { |
96 | 96 | // check if all columns are there |
97 | - foreach($definition['fd'] as $column => $data) |
|
97 | + foreach ($definition['fd'] as $column => $data) |
|
98 | 98 | { |
99 | - check_column($column,$columns); |
|
99 | + check_column($column, $columns); |
|
100 | 100 | if (!isset($columns[$column]) && !isset($columns[strtoupper($column)])) |
101 | 101 | { |
102 | 102 | print_r($columns); |
@@ -104,17 +104,17 @@ discard block |
||
104 | 104 | } |
105 | 105 | } |
106 | 106 | // check if all indexes are there |
107 | - $indexes = $adodb->MetaIndexes($name,true); |
|
107 | + $indexes = $adodb->MetaIndexes($name, true); |
|
108 | 108 | if ($indexes !== False) |
109 | 109 | { |
110 | - foreach(array('ix','uc') as $kind) |
|
110 | + foreach (array('ix', 'uc') as $kind) |
|
111 | 111 | { |
112 | - foreach($definition[$kind] as $key => $idx) |
|
112 | + foreach ($definition[$kind] as $key => $idx) |
|
113 | 113 | { |
114 | - check_index($idx,$kind=='uc',$indexes); |
|
114 | + check_index($idx, $kind == 'uc', $indexes); |
|
115 | 115 | } |
116 | 116 | } |
117 | - if (count($definition['pk'])) check_index($definition['pk'],True,$indexes); |
|
117 | + if (count($definition['pk'])) check_index($definition['pk'], True, $indexes); |
|
118 | 118 | } |
119 | 119 | } |
120 | 120 | echo $indexes !== False ? "==> SUCCESS\n" : "==> unchecked\n"; |
@@ -122,19 +122,19 @@ discard block |
||
122 | 122 | echo "Inserting some content:\n"; |
123 | 123 | $adodb->Execute("INSERT INTO schema_proc_test (test_int4,test_varchar,test_char) VALUES (1,'Hallo Ralf','0123456789')"); |
124 | 124 | //$adodb->Execute("INSERT INTO schema_proc_test (test_int4,test_varchar,test_char) VALUES (2,'Hallo wer noch?','9876543210')"); |
125 | - $db->insert('schema_proc_test',array( |
|
125 | + $db->insert('schema_proc_test', array( |
|
126 | 126 | 'test_int4' => 2, |
127 | 127 | 'test_varchar' => 'Hallo wer noch?', |
128 | 128 | 'test_char' => '9876543210', |
129 | 129 | 'test_text' => 'This is a test-value for the text-column, insert-value', |
130 | 130 | 'test_blob' => 'This is a test-value for the blob-column, insert-value', |
131 | - ),False,__LINE__,__FILE__); |
|
132 | - check_content($adodb->GetAll("SELECT * FROM schema_proc_test"),array( |
|
131 | + ), False, __LINE__, __FILE__); |
|
132 | + check_content($adodb->GetAll("SELECT * FROM schema_proc_test"), array( |
|
133 | 133 | array( |
134 | - 'test_auto' => 1, 'test_int4' => 1, 'test_varchar' => 'Hallo Ralf','test_char' => '0123456789', |
|
134 | + 'test_auto' => 1, 'test_int4' => 1, 'test_varchar' => 'Hallo Ralf', 'test_char' => '0123456789', |
|
135 | 135 | ), |
136 | 136 | array( |
137 | - 'test_auto' => 2, 'test_int4' => 2, 'test_varchar' => 'Hallo wer noch?','test_char' => '9876543210', |
|
137 | + 'test_auto' => 2, 'test_int4' => 2, 'test_varchar' => 'Hallo wer noch?', 'test_char' => '9876543210', |
|
138 | 138 | 'test_text' => 'This is a test-value for the text-column, insert-value', |
139 | 139 | 'test_blob' => 'This is a test-value for the blob-column, insert-value', |
140 | 140 | ), |
@@ -143,28 +143,28 @@ discard block |
||
143 | 143 | |
144 | 144 | echo "Updating the text- and blob-columns\n"; |
145 | 145 | // updating blob's and other columns |
146 | - $db->update('schema_proc_test',array( |
|
146 | + $db->update('schema_proc_test', array( |
|
147 | 147 | 'test_int4' => 99, |
148 | 148 | 'test_char' => 'abcdefghij', |
149 | 149 | 'test_text' => 'This is a test-value for the text-column', |
150 | 150 | 'test_blob' => 'This is a test-value for the blob-column', |
151 | - ),array('test_auto'=>1),__LINE__,__FILE__); |
|
151 | + ), array('test_auto'=>1), __LINE__, __FILE__); |
|
152 | 152 | // updating only the blob's |
153 | - $db->update('schema_proc_test',array( |
|
153 | + $db->update('schema_proc_test', array( |
|
154 | 154 | 'test_text' => 'This is a test-value for the text-column, 2.row', |
155 | 155 | 'test_blob' => 'This is a test-value for the blob-column, 2.row', |
156 | - ),array('test_auto'=>2),__LINE__,__FILE__); |
|
156 | + ), array('test_auto'=>2), __LINE__, __FILE__); |
|
157 | 157 | // db::update uses UpdateBlob only for MaxDB at the moment, it works for MySql too, but fails for postgres with text / CLOB's |
158 | 158 | // $adodb->UpdateBlob('schema_proc_test','test_text','This is a test-value for the text-column, 2.row','test_auto=2','CLOB'); |
159 | 159 | // $adodb->UpdateBlob('schema_proc_test','test_blob','This is a test-value for the blob-column, 2.row','test_auto=2','BLOB'); |
160 | - check_content($adodb->GetAll("SELECT * FROM schema_proc_test"),array( |
|
160 | + check_content($adodb->GetAll("SELECT * FROM schema_proc_test"), array( |
|
161 | 161 | array( |
162 | - 'test_auto' => 1, 'test_int4' => 99, 'test_varchar' => 'Hallo Ralf','test_char' => 'abcdefghij', |
|
162 | + 'test_auto' => 1, 'test_int4' => 99, 'test_varchar' => 'Hallo Ralf', 'test_char' => 'abcdefghij', |
|
163 | 163 | 'test_text' => 'This is a test-value for the text-column', |
164 | 164 | 'test_blob'=>'This is a test-value for the blob-column', |
165 | 165 | ), |
166 | 166 | array( |
167 | - 'test_auto' => 2, 'test_int4' => 2, 'test_varchar' => 'Hallo wer noch?','test_char' => '9876543210', |
|
167 | + 'test_auto' => 2, 'test_int4' => 2, 'test_varchar' => 'Hallo wer noch?', 'test_char' => '9876543210', |
|
168 | 168 | 'test_text' => 'This is a test-value for the text-column, 2.row', |
169 | 169 | 'test_blob'=>'This is a test-value for the blob-column, 2.row', |
170 | 170 | ), |
@@ -174,50 +174,50 @@ discard block |
||
174 | 174 | echo "Droping column test_blob:\n"; |
175 | 175 | $new_table_def = $test_tables['schema_proc_test']; |
176 | 176 | unset($new_table_def['fd']['test_blob']); |
177 | - $schema_proc->DropColumn('schema_proc_test',$new_table_def,'test_blob'); |
|
178 | - check_column('test_blob',$adodb->MetaColumns('schema_proc_test'),False); |
|
177 | + $schema_proc->DropColumn('schema_proc_test', $new_table_def, 'test_blob'); |
|
178 | + check_column('test_blob', $adodb->MetaColumns('schema_proc_test'), False); |
|
179 | 179 | echo "==> SUCCESS\n"; |
180 | 180 | |
181 | 181 | echo "Altering column test_char to varchar(32):\n"; |
182 | - $schema_proc->AlterColumn('schema_proc_test','test_char',array('type' => 'varchar','precision' => 32)); |
|
183 | - check_column_type('test_char','varchar',32,$adodb->MetaColumns('schema_proc_test')); |
|
182 | + $schema_proc->AlterColumn('schema_proc_test', 'test_char', array('type' => 'varchar', 'precision' => 32)); |
|
183 | + check_column_type('test_char', 'varchar', 32, $adodb->MetaColumns('schema_proc_test')); |
|
184 | 184 | echo "==> SUCCESS\n"; |
185 | 185 | |
186 | 186 | echo "Adding column test_bool bool:\n"; |
187 | - $schema_proc->AddColumn('schema_proc_test','test_bool',array('type' => 'bool')); |
|
188 | - check_column('test_bool',$adodb->MetaColumns('schema_proc_test')); |
|
187 | + $schema_proc->AddColumn('schema_proc_test', 'test_bool', array('type' => 'bool')); |
|
188 | + check_column('test_bool', $adodb->MetaColumns('schema_proc_test')); |
|
189 | 189 | echo "==> SUCCESS\n"; |
190 | 190 | |
191 | 191 | echo "Renaming column test_timestamp to test_time:\n"; |
192 | - $schema_proc->RenameColumn('schema_proc_test','test_timestamp','test_time'); |
|
193 | - check_column('test_timestamp',$adodb->MetaColumns('schema_proc_test'),false); |
|
194 | - check_column('test_time',$adodb->MetaColumns('schema_proc_test')); |
|
192 | + $schema_proc->RenameColumn('schema_proc_test', 'test_timestamp', 'test_time'); |
|
193 | + check_column('test_timestamp', $adodb->MetaColumns('schema_proc_test'), false); |
|
194 | + check_column('test_time', $adodb->MetaColumns('schema_proc_test')); |
|
195 | 195 | echo "==> SUCCESS\n"; |
196 | 196 | |
197 | 197 | echo "Renaming table schema_proc_test to schema_proc_renamed:\n"; |
198 | - $schema_proc->RenameTable('schema_proc_test','schema_proc_renamed'); |
|
198 | + $schema_proc->RenameTable('schema_proc_test', 'schema_proc_renamed'); |
|
199 | 199 | $tables = $adodb->MetaTables(); |
200 | - check_table('schema_proc_test',$tables,False); |
|
201 | - check_table('schema_proc_renamed',$tables); |
|
200 | + check_table('schema_proc_test', $tables, False); |
|
201 | + check_table('schema_proc_renamed', $tables); |
|
202 | 202 | echo "==> SUCCESS\n"; |
203 | 203 | |
204 | 204 | echo "Renaming column (with index) test_varchar to test_varchar_renamed:\n"; |
205 | - $schema_proc->RenameColumn('schema_proc_renamed','test_varchar','test_varchar_renamed'); |
|
205 | + $schema_proc->RenameColumn('schema_proc_renamed', 'test_varchar', 'test_varchar_renamed'); |
|
206 | 206 | $columns = $adodb->MetaColumns('schema_proc_renamed'); |
207 | - check_column('test_varchar',$columns,False); |
|
208 | - check_column('test_varchar_renamed',$columns); |
|
207 | + check_column('test_varchar', $columns, False); |
|
208 | + check_column('test_varchar_renamed', $columns); |
|
209 | 209 | $indexes = $adodb->MetaIndexes('schema_proc_renamed'); |
210 | 210 | if ($indexes !== False) |
211 | 211 | { |
212 | - check_index('test_varchar',False,$indexes,False); |
|
213 | - check_index('test_varchar_renamed',False,$indexes); |
|
212 | + check_index('test_varchar', False, $indexes, False); |
|
213 | + check_index('test_varchar_renamed', False, $indexes); |
|
214 | 214 | } |
215 | 215 | echo $indexes !== False ? "==> SUCCESS\n" : "==> unchecked\n"; |
216 | 216 | |
217 | 217 | echo "Droping index from renamed column (test_char,test_varchar_renamed):\n"; |
218 | - $schema_proc->DropIndex('schema_proc_renamed',array('test_char','test_varchar_renamed')); |
|
218 | + $schema_proc->DropIndex('schema_proc_renamed', array('test_char', 'test_varchar_renamed')); |
|
219 | 219 | $indexes = $adodb->MetaIndexes('schema_proc_renamed'); |
220 | - if ($indexes !== False) check_index(array('test_char','test_varchar_renamed'),False,$indexes,False); |
|
220 | + if ($indexes !== False) check_index(array('test_char', 'test_varchar_renamed'), False, $indexes, False); |
|
221 | 221 | echo $indexes !== False ? "==> SUCCESS\n" : "==> unchecked\n"; |
222 | 222 | |
223 | 223 | //print_r($adodb->MetaColumns('schema_proc_renamed')); |
@@ -225,10 +225,10 @@ discard block |
||
225 | 225 | |
226 | 226 | echo "Inserting some more content\n"; |
227 | 227 | $db->query("INSERT INTO schema_proc_renamed (test_int4,test_varchar_renamed,test_char) VALUES (10,'Hallo Hallo Hallo ...','12345678901234567890123456789012')"); |
228 | - check_content($adodb->GetAll("SELECT * FROM schema_proc_renamed"),array( |
|
229 | - array('test_auto' => 1, 'test_int4' => 99, 'test_varchar_renamed' => 'Hallo Ralf','test_char' => 'abcdefghij'), |
|
230 | - array('test_auto' => 2, 'test_int4' => 2, 'test_varchar_renamed' => 'Hallo wer noch?','test_char' => '9876543210'), |
|
231 | - array('test_auto' => 3, 'test_int4' => 10, 'test_varchar_renamed' => 'Hallo Hallo Hallo ...','test_char' => '12345678901234567890123456789012'), |
|
228 | + check_content($adodb->GetAll("SELECT * FROM schema_proc_renamed"), array( |
|
229 | + array('test_auto' => 1, 'test_int4' => 99, 'test_varchar_renamed' => 'Hallo Ralf', 'test_char' => 'abcdefghij'), |
|
230 | + array('test_auto' => 2, 'test_int4' => 2, 'test_varchar_renamed' => 'Hallo wer noch?', 'test_char' => '9876543210'), |
|
231 | + array('test_auto' => 3, 'test_int4' => 10, 'test_varchar_renamed' => 'Hallo Hallo Hallo ...', 'test_char' => '12345678901234567890123456789012'), |
|
232 | 232 | )); |
233 | 233 | echo "==> SUCCESS\n"; |
234 | 234 | |
@@ -237,13 +237,13 @@ discard block |
||
237 | 237 | //print_r($all); |
238 | 238 | |
239 | 239 | echo "\nDroping the test-tables again\n"; |
240 | - foreach($adodb->MetaTables() as $table) |
|
240 | + foreach ($adodb->MetaTables() as $table) |
|
241 | 241 | { |
242 | 242 | $table = strtolower($table); |
243 | - if (strstr($table,'schema_proc')) |
|
243 | + if (strstr($table, 'schema_proc')) |
|
244 | 244 | { |
245 | 245 | $aSql = $schema_proc->dict->DropTableSQL($table); |
246 | - $schema_proc->ExecuteSqlArray($aSql,1,"DropTableSQL('%1') = %2",$table,$aSql); |
|
246 | + $schema_proc->ExecuteSqlArray($aSql, 1, "DropTableSQL('%1') = %2", $table, $aSql); |
|
247 | 247 | } |
248 | 248 | } |
249 | 249 | echo "\n********************\n"; |
@@ -259,9 +259,9 @@ discard block |
||
259 | 259 | * @param array $tables array of table-names from call to MetaTables() |
260 | 260 | * @param boolean $existence=true should we check for existence or none-existence, default existence |
261 | 261 | */ |
262 | - function check_table($table,$tables,$existence=True) |
|
262 | + function check_table($table, $tables, $existence = True) |
|
263 | 263 | { |
264 | - $exist = in_array($table,$tables) || in_array(strtoupper($table),$tables); |
|
264 | + $exist = in_array($table, $tables) || in_array(strtoupper($table), $tables); |
|
265 | 265 | |
266 | 266 | if ($exist != $existence) |
267 | 267 | { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * @param array $columns array of adodb field objects from MetaColumns($table) |
278 | 278 | * @param boolean $existence=true should we check for existence or none-existence, default existence |
279 | 279 | */ |
280 | - function check_column($column,$columns,$existence=True) |
|
280 | + function check_column($column, $columns, $existence = True) |
|
281 | 281 | { |
282 | 282 | $exist = isset($columns[$column]) || isset($columns[strtoupper($column)]); |
283 | 283 | |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | * @param int $precision precision |
297 | 297 | * @param array $columns array of adodb field objects from MetaColumns($table) |
298 | 298 | */ |
299 | - function check_column_type($column,$type,$precision,$columns) |
|
299 | + function check_column_type($column, $type, $precision, $columns) |
|
300 | 300 | { |
301 | 301 | static $alternate_types = array( |
302 | 302 | 'varchar' => array('C'), |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | die ("\n\n!!! Column '$column' does NOT exist !!!\n\n"); |
312 | 312 | } |
313 | 313 | $data->type = strtolower($data->type); |
314 | - if ($data->type != $type && !in_array($data->type,$alternate_types[$type])) |
|
314 | + if ($data->type != $type && !in_array($data->type, $alternate_types[$type])) |
|
315 | 315 | { |
316 | 316 | print_r($columns); |
317 | 317 | die ("\n\n!!! Column '$column' is NOT of type '$type', but '$data->type' !!!\n\n"); |
@@ -331,16 +331,16 @@ discard block |
||
331 | 331 | * @param array $indexes array of index-describtions from call to MetaIndexes($table) |
332 | 332 | * @param boolean $existence=true should we check for existence or none-existence, default existence |
333 | 333 | */ |
334 | - function check_index($columns,$unique,$indexes,$existence=True) |
|
334 | + function check_index($columns, $unique, $indexes, $existence = True) |
|
335 | 335 | { |
336 | 336 | if (!is_array($columns)) $columns = array($columns); |
337 | 337 | $existence = $existence && $columns['options'][$GLOBALS['db']->Type] !== False; |
338 | 338 | unset($columns['options']); |
339 | 339 | |
340 | 340 | $exist = False; |
341 | - foreach($indexes as $idx_data) |
|
341 | + foreach ($indexes as $idx_data) |
|
342 | 342 | { |
343 | - if (implode(':',$columns) == strtolower(implode(':',$idx_data['columns']))) |
|
343 | + if (implode(':', $columns) == strtolower(implode(':', $idx_data['columns']))) |
|
344 | 344 | { |
345 | 345 | $exist = true; |
346 | 346 | break; |
@@ -349,12 +349,12 @@ discard block |
||
349 | 349 | if ($exist != $existence) |
350 | 350 | { |
351 | 351 | print_r($indexes); |
352 | - die ("\n\n!!! Index (".implode(', ',$columns).") is ".($existence ? 'missing' : 'still there')." !!!\n\n"); |
|
352 | + die ("\n\n!!! Index (".implode(', ', $columns).") is ".($existence ? 'missing' : 'still there')." !!!\n\n"); |
|
353 | 353 | } |
354 | 354 | if ($existence && $unique != !!$idx_data['unique']) |
355 | 355 | { |
356 | 356 | print_r($indexes); |
357 | - die ("\n\n!!! Index (".implode(', ',$columns).") is ".($unique ? 'NOT ' : '')."unique !!!\n\n"); |
|
357 | + die ("\n\n!!! Index (".implode(', ', $columns).") is ".($unique ? 'NOT ' : '')."unique !!!\n\n"); |
|
358 | 358 | } |
359 | 359 | } |
360 | 360 | |
@@ -365,12 +365,12 @@ discard block |
||
365 | 365 | * @param array $should content against which we test |
366 | 366 | * @param boolean $return_false=false return false if the check fails or die with an error-msg, default die |
367 | 367 | */ |
368 | - function check_content($is,$should,$return_false=false) |
|
368 | + function check_content($is, $should, $return_false = false) |
|
369 | 369 | { |
370 | - foreach($should as $key => $val) |
|
370 | + foreach ($should as $key => $val) |
|
371 | 371 | { |
372 | 372 | if (!isset($is[$key]) && isset($is[strtoupper($key)])) $key = strtoupper($key); |
373 | - if (is_array($val) && !check_content($is[$key],$val,True) || !is_array($val) && $is[$key] != $val) |
|
373 | + if (is_array($val) && !check_content($is[$key], $val, True) || !is_array($val) && $is[$key] != $val) |
|
374 | 374 | { |
375 | 375 | echo "key='$key', is="; print_r($is[$key]); echo ", should="; print_r($val); echo "\n"; |
376 | 376 | if ($return_false) return False; |
@@ -19,18 +19,18 @@ |
||
19 | 19 | $addresses = array( |
20 | 20 | 'Joe Doe <[email protected]>', |
21 | 21 | '"Doe, Joe" <[email protected]>', |
22 | - '"\\\'Joe Doe\\\'" <[email protected]>', // "\'Joe Doe\'" <[email protected]> |
|
22 | + '"\\\'Joe Doe\\\'" <[email protected]>', // "\'Joe Doe\'" <[email protected]> |
|
23 | 23 | '[email protected]', |
24 | 24 | 'root', |
25 | 25 | '"Joe on its way Down Under :-\)" <[email protected]>', |
26 | - '"Giant; \\"Big\\" Box" <[email protected]>', // "Giant; \"Big\" Box" <[email protected]> |
|
26 | + '"Giant; \\"Big\\" Box" <[email protected]>', // "Giant; \"Big\" Box" <[email protected]> |
|
27 | 27 | '"[email protected]" <[email protected]>', |
28 | 28 | ); |
29 | 29 | $addresses[] = implode(', ', $addresses); |
30 | 30 | |
31 | 31 | $default_host = 'default.host'; |
32 | 32 | |
33 | -foreach($addresses as $address) |
|
33 | +foreach ($addresses as $address) |
|
34 | 34 | { |
35 | 35 | echo "\n\n$address:\n"; |
36 | 36 | $parsed = my_imap_rfc822_parse_adrlist($address, $default_host); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $etag = '"'.md5($config.$link_registry).'"'; |
31 | 31 | |
32 | 32 | // headers to allow caching, egw_framework specifies etag on url to force reload, even with Expires header |
33 | -egw_session::cache_control(86400); // cache for one day |
|
33 | +egw_session::cache_control(86400); // cache for one day |
|
34 | 34 | Header('Content-Type: text/javascript; charset=utf-8'); |
35 | 35 | Header('ETag: '.$etag); |
36 | 36 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $content .= 'egw.set_link_registry('.$link_registry.", undefined, egw && egw.window !== window);\n"; |
46 | 46 | |
47 | 47 | // we run our own gzip compression, to set a correct Content-Length of the encoded content |
48 | -if (in_array('gzip', explode(',',$_SERVER['HTTP_ACCEPT_ENCODING'])) && function_exists('gzencode')) |
|
48 | +if (in_array('gzip', explode(',', $_SERVER['HTTP_ACCEPT_ENCODING'])) && function_exists('gzencode')) |
|
49 | 49 | { |
50 | 50 | $content = gzencode($content); |
51 | 51 | header('Content-Encoding: gzip'); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | <h1>Form submitted</h1> |
48 | 48 | |
49 | 49 | <?php foreach ($_REQUEST as $key => $val) { |
50 | - echo htmlspecialchars($key) . ' = ' . htmlspecialchars($val) . '<br />'; |
|
50 | + echo htmlspecialchars($key).' = '.htmlspecialchars($val).'<br />'; |
|
51 | 51 | } ?> |
52 | 52 | |
53 | 53 | <?php } else { ?> |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $display = $l; |
68 | 68 | if ($l == 'en') |
69 | 69 | $display = 'EN'; |
70 | - echo '<option ' . $selected . 'value="' . $l . '">' . $display . '</option>'; |
|
70 | + echo '<option '.$selected.'value="'.$l.'">'.$display.'</option>'; |
|
71 | 71 | } |
72 | 72 | ?> |
73 | 73 | </select> |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $this->calendar_file = 'calendar.js'; |
33 | 33 | $this->calendar_setup_file = 'calendar-setup.js'; |
34 | 34 | } |
35 | - $this->calendar_lang_file = 'lang/calendar-' . $lang . '.js'; |
|
35 | + $this->calendar_lang_file = 'lang/calendar-'.$lang.'.js'; |
|
36 | 36 | $this->calendar_theme_file = $theme.'.css'; |
37 | 37 | $this->calendar_lib_path = preg_replace('/\/+$/', '/', $calendar_lib_path); |
38 | 38 | $this->calendar_options = array('ifFormat' => '%Y/%m/%d', |
@@ -48,26 +48,26 @@ discard block |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | function get_load_files_code() { |
51 | - $code = ( '<link rel="stylesheet" type="text/css" media="all" href="' . |
|
52 | - $this->calendar_lib_path . $this->calendar_theme_file . |
|
53 | - '" />' . NEWLINE ); |
|
54 | - $code .= ( '<script type="text/javascript" src="' . |
|
55 | - $this->calendar_lib_path . $this->calendar_file . |
|
56 | - '"></script>' . NEWLINE ); |
|
57 | - $code .= ( '<script type="text/javascript" src="' . |
|
58 | - $this->calendar_lib_path . $this->calendar_lang_file . |
|
59 | - '"></script>' . NEWLINE ); |
|
60 | - $code .= ( '<script type="text/javascript" src="' . |
|
61 | - $this->calendar_lib_path . $this->calendar_setup_file . |
|
62 | - '"></script>' ); |
|
51 | + $code = ('<link rel="stylesheet" type="text/css" media="all" href="'. |
|
52 | + $this->calendar_lib_path.$this->calendar_theme_file. |
|
53 | + '" />'.NEWLINE); |
|
54 | + $code .= ('<script type="text/javascript" src="'. |
|
55 | + $this->calendar_lib_path.$this->calendar_file. |
|
56 | + '"></script>'.NEWLINE); |
|
57 | + $code .= ('<script type="text/javascript" src="'. |
|
58 | + $this->calendar_lib_path.$this->calendar_lang_file. |
|
59 | + '"></script>'.NEWLINE); |
|
60 | + $code .= ('<script type="text/javascript" src="'. |
|
61 | + $this->calendar_lib_path.$this->calendar_setup_file. |
|
62 | + '"></script>'); |
|
63 | 63 | return $code; |
64 | 64 | } |
65 | 65 | |
66 | 66 | function _make_calendar($other_options = array()) { |
67 | 67 | $js_options = $this->_make_js_hash(array_merge($this->calendar_options, $other_options)); |
68 | - $code = ( '<script type="text/javascript">Calendar.setup({' . |
|
69 | - $js_options . |
|
70 | - '});</script>' ); |
|
68 | + $code = ('<script type="text/javascript">Calendar.setup({'. |
|
69 | + $js_options. |
|
70 | + '});</script>'); |
|
71 | 71 | return $code; |
72 | 72 | } |
73 | 73 | |
@@ -76,9 +76,9 @@ discard block |
||
76 | 76 | $attrstr = $this->_make_html_attr(array_merge($field_attributes, |
77 | 77 | array('id' => $this->_field_id($id), |
78 | 78 | 'type' => 'text'))); |
79 | - echo '<input ' . $attrstr .'/>'; |
|
80 | - echo '<a href="#" id="'. $this->_trigger_id($id) . '">' . |
|
81 | - '<img align="middle" border="0" src="' . $this->calendar_lib_path . 'img.gif" alt="" /></a>'; |
|
79 | + echo '<input '.$attrstr.'/>'; |
|
80 | + echo '<a href="#" id="'.$this->_trigger_id($id).'">'. |
|
81 | + '<img align="middle" border="0" src="'.$this->calendar_lib_path.'img.gif" alt="" /></a>'; |
|
82 | 82 | |
83 | 83 | $options = array_merge($cal_options, |
84 | 84 | array('inputField' => $this->_field_id($id), |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | |
89 | 89 | /// PRIVATE SECTION |
90 | 90 | |
91 | - function _field_id($id) { return 'f-calendar-field-' . $id; } |
|
92 | - function _trigger_id($id) { return 'f-calendar-trigger-' . $id; } |
|
91 | + function _field_id($id) { return 'f-calendar-field-'.$id; } |
|
92 | + function _trigger_id($id) { return 'f-calendar-trigger-'.$id; } |
|
93 | 93 | function _gen_id() { static $id = 0; return ++$id; } |
94 | 94 | |
95 | 95 | function _make_js_hash($array) { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | else if (!is_numeric($val)) |
102 | 102 | $val = '"'.$val.'"'; |
103 | 103 | if ($jstr) $jstr .= ','; |
104 | - $jstr .= '"' . $key . '":' . $val; |
|
104 | + $jstr .= '"'.$key.'":'.$val; |
|
105 | 105 | } |
106 | 106 | return $jstr; |
107 | 107 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $attrstr = ''; |
111 | 111 | reset($array); |
112 | 112 | while (list($key, $val) = each($array)) { |
113 | - $attrstr .= $key . '="' . $val . '" '; |
|
113 | + $attrstr .= $key.'="'.$val.'" '; |
|
114 | 114 | } |
115 | 115 | return $attrstr; |
116 | 116 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | function check_domain($url) |
23 | 23 | { |
24 | 24 | $whitelisted = array( |
25 | - $_SERVER['HTTP_HOST'], // can contain :port |
|
25 | + $_SERVER['HTTP_HOST'], // can contain :port |
|
26 | 26 | // add additional domains-names (just full qualified hostnames) here |
27 | 27 | |
28 | 28 | ); |
@@ -50,13 +50,13 @@ discard block |
||
50 | 50 | |
51 | 51 | if (isset($_SERVER['REMOTE_USER']) && $_SERVER['REMOTE_USER'] && isset($_SERVER['AUTH_TYPE']) && |
52 | 52 | isset($GLOBALS['egw_info']['server']['http_auth_types']) && $GLOBALS['egw_info']['server']['http_auth_types'] && |
53 | - in_array(strtoupper($_SERVER['AUTH_TYPE']),explode(',',strtoupper($GLOBALS['egw_info']['server']['http_auth_types'])))) |
|
53 | + in_array(strtoupper($_SERVER['AUTH_TYPE']), explode(',', strtoupper($GLOBALS['egw_info']['server']['http_auth_types'])))) |
|
54 | 54 | { |
55 | - if (strpos($account=$_SERVER['REMOTE_USER'],'\\') !== false) |
|
55 | + if (strpos($account = $_SERVER['REMOTE_USER'], '\\') !== false) |
|
56 | 56 | { |
57 | - list(,$account) = explode('\\',$account,2); |
|
57 | + list(,$account) = explode('\\', $account, 2); |
|
58 | 58 | } |
59 | - $sessionid = $GLOBALS['egw']->session->create($account,null,'ntlm',false,false); // false=no auth check |
|
59 | + $sessionid = $GLOBALS['egw']->session->create($account, null, 'ntlm', false, false); // false=no auth check |
|
60 | 60 | //error_log("create('$account',null,'ntlm',false,false)=$sessionid ({$GLOBALS['egw']->session->reason})"); |
61 | 61 | } |
62 | 62 | if (!$sessionid) |