@@ -12,45 +12,45 @@ discard block |
||
12 | 12 | $phpgw_baseline = array( |
13 | 13 | 'egw_cal' => array( |
14 | 14 | 'fd' => array( |
15 | - 'cal_id' => array('type' => 'auto','nullable' => False,'comment' => 'calendar id'), |
|
16 | - 'cal_uid' => array('type' => 'ascii','precision' => '128','nullable' => False,'comment' => 'unique id of event(-series)'), |
|
17 | - 'cal_owner' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False,'comment' => 'event owner / calendar'), |
|
18 | - 'cal_category' => array('type' => 'ascii','meta' => 'category','precision' => '64','comment' => 'category id(s)'), |
|
19 | - 'cal_modified' => array('type' => 'int','meta' => 'timestamp','precision' => '8','comment' => 'ts of last modification'), |
|
20 | - 'cal_priority' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '2','comment' => 'priority: 1=Low, 2=Normal, 3=High'), |
|
21 | - 'cal_public' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '1','comment' => '1=public, 0=private event'), |
|
22 | - 'cal_title' => array('type' => 'varchar','precision' => '255','nullable' => False,'comment' => 'title of event'), |
|
23 | - 'cal_description' => array('type' => 'varchar','precision' => '16384','comment' => 'description'), |
|
24 | - 'cal_location' => array('type' => 'varchar','precision' => '255','comment' => 'location'), |
|
25 | - 'cal_reference' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0','comment' => 'cal_id of series for exception'), |
|
26 | - 'cal_modifier' => array('type' => 'int','meta' => 'user','precision' => '4','comment' => 'user who last modified event'), |
|
27 | - 'cal_non_blocking' => array('type' => 'int','precision' => '2','default' => '0','comment' => '1 for non-blocking events'), |
|
28 | - 'cal_special' => array('type' => 'int','precision' => '2','default' => '0'), |
|
29 | - 'cal_etag' => array('type' => 'int','precision' => '4','default' => '0','comment' => 'etag for optimistic locking'), |
|
30 | - 'cal_creator' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False,'comment' => 'creating user'), |
|
31 | - 'cal_created' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'comment' => 'creation time of event'), |
|
32 | - 'cal_recurrence' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'default' => '0','comment' => 'cal_start of original recurrence for exception'), |
|
33 | - 'tz_id' => array('type' => 'int','precision' => '4','comment' => 'key into egw_cal_timezones'), |
|
34 | - 'cal_deleted' => array('type' => 'int','precision' => '8','comment' => 'ts when event was deleted'), |
|
35 | - 'caldav_name' => array('type' => 'ascii','precision' => '128','comment' => 'name part of CalDAV URL, if specified by client'), |
|
36 | - 'range_start' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'comment' => 'startdate (of range)'), |
|
37 | - 'range_end' => array('type' => 'int','meta' => 'timestamp','precision' => '8','comment' => 'enddate (of range, UNTIL of RRULE)') |
|
15 | + 'cal_id' => array('type' => 'auto', 'nullable' => False, 'comment' => 'calendar id'), |
|
16 | + 'cal_uid' => array('type' => 'ascii', 'precision' => '128', 'nullable' => False, 'comment' => 'unique id of event(-series)'), |
|
17 | + 'cal_owner' => array('type' => 'int', 'meta' => 'user', 'precision' => '4', 'nullable' => False, 'comment' => 'event owner / calendar'), |
|
18 | + 'cal_category' => array('type' => 'ascii', 'meta' => 'category', 'precision' => '64', 'comment' => 'category id(s)'), |
|
19 | + 'cal_modified' => array('type' => 'int', 'meta' => 'timestamp', 'precision' => '8', 'comment' => 'ts of last modification'), |
|
20 | + 'cal_priority' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '2', 'comment' => 'priority: 1=Low, 2=Normal, 3=High'), |
|
21 | + 'cal_public' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '1', 'comment' => '1=public, 0=private event'), |
|
22 | + 'cal_title' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False, 'comment' => 'title of event'), |
|
23 | + 'cal_description' => array('type' => 'varchar', 'precision' => '16384', 'comment' => 'description'), |
|
24 | + 'cal_location' => array('type' => 'varchar', 'precision' => '255', 'comment' => 'location'), |
|
25 | + 'cal_reference' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0', 'comment' => 'cal_id of series for exception'), |
|
26 | + 'cal_modifier' => array('type' => 'int', 'meta' => 'user', 'precision' => '4', 'comment' => 'user who last modified event'), |
|
27 | + 'cal_non_blocking' => array('type' => 'int', 'precision' => '2', 'default' => '0', 'comment' => '1 for non-blocking events'), |
|
28 | + 'cal_special' => array('type' => 'int', 'precision' => '2', 'default' => '0'), |
|
29 | + 'cal_etag' => array('type' => 'int', 'precision' => '4', 'default' => '0', 'comment' => 'etag for optimistic locking'), |
|
30 | + 'cal_creator' => array('type' => 'int', 'meta' => 'user', 'precision' => '4', 'nullable' => False, 'comment' => 'creating user'), |
|
31 | + 'cal_created' => array('type' => 'int', 'meta' => 'timestamp', 'precision' => '8', 'nullable' => False, 'comment' => 'creation time of event'), |
|
32 | + 'cal_recurrence' => array('type' => 'int', 'meta' => 'timestamp', 'precision' => '8', 'nullable' => False, 'default' => '0', 'comment' => 'cal_start of original recurrence for exception'), |
|
33 | + 'tz_id' => array('type' => 'int', 'precision' => '4', 'comment' => 'key into egw_cal_timezones'), |
|
34 | + 'cal_deleted' => array('type' => 'int', 'precision' => '8', 'comment' => 'ts when event was deleted'), |
|
35 | + 'caldav_name' => array('type' => 'ascii', 'precision' => '128', 'comment' => 'name part of CalDAV URL, if specified by client'), |
|
36 | + 'range_start' => array('type' => 'int', 'meta' => 'timestamp', 'precision' => '8', 'nullable' => False, 'comment' => 'startdate (of range)'), |
|
37 | + 'range_end' => array('type' => 'int', 'meta' => 'timestamp', 'precision' => '8', 'comment' => 'enddate (of range, UNTIL of RRULE)') |
|
38 | 38 | ), |
39 | 39 | 'pk' => array('cal_id'), |
40 | 40 | 'fk' => array(), |
41 | - 'ix' => array('cal_uid','cal_owner','cal_modified','cal_reference','cal_deleted','caldav_name'), |
|
41 | + 'ix' => array('cal_uid', 'cal_owner', 'cal_modified', 'cal_reference', 'cal_deleted', 'caldav_name'), |
|
42 | 42 | 'uc' => array() |
43 | 43 | ), |
44 | 44 | 'egw_cal_holidays' => array( |
45 | 45 | 'fd' => array( |
46 | - 'hol_id' => array('type' => 'auto','nullable' => False), |
|
47 | - 'hol_locale' => array('type' => 'char','precision' => '2','nullable' => False), |
|
48 | - 'hol_name' => array('type' => 'varchar','precision' => '50','nullable' => False), |
|
49 | - 'hol_mday' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
50 | - 'hol_month_num' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
51 | - 'hol_occurence' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
52 | - 'hol_dow' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
53 | - 'hol_observance_rule' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0') |
|
46 | + 'hol_id' => array('type' => 'auto', 'nullable' => False), |
|
47 | + 'hol_locale' => array('type' => 'char', 'precision' => '2', 'nullable' => False), |
|
48 | + 'hol_name' => array('type' => 'varchar', 'precision' => '50', 'nullable' => False), |
|
49 | + 'hol_mday' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
50 | + 'hol_month_num' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
51 | + 'hol_occurence' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
52 | + 'hol_dow' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
53 | + 'hol_observance_rule' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0') |
|
54 | 54 | ), |
55 | 55 | 'pk' => array('hol_id'), |
56 | 56 | 'fk' => array(), |
@@ -59,10 +59,10 @@ discard block |
||
59 | 59 | ), |
60 | 60 | 'egw_cal_repeats' => array( |
61 | 61 | 'fd' => array( |
62 | - 'cal_id' => array('type' => 'int','precision' => '4','nullable' => False), |
|
63 | - 'recur_type' => array('type' => 'int','precision' => '2','nullable' => False), |
|
64 | - 'recur_interval' => array('type' => 'int','precision' => '2','default' => '1'), |
|
65 | - 'recur_data' => array('type' => 'int','precision' => '2','default' => '1') |
|
62 | + 'cal_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
63 | + 'recur_type' => array('type' => 'int', 'precision' => '2', 'nullable' => False), |
|
64 | + 'recur_interval' => array('type' => 'int', 'precision' => '2', 'default' => '1'), |
|
65 | + 'recur_data' => array('type' => 'int', 'precision' => '2', 'default' => '1') |
|
66 | 66 | ), |
67 | 67 | 'pk' => array('cal_id'), |
68 | 68 | 'fk' => array(), |
@@ -71,53 +71,53 @@ discard block |
||
71 | 71 | ), |
72 | 72 | 'egw_cal_user' => array( |
73 | 73 | 'fd' => array( |
74 | - 'cal_id' => array('type' => 'int','precision' => '4','nullable' => False), |
|
75 | - 'cal_recur_date' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'default' => '0'), |
|
76 | - 'cal_user_type' => array('type' => 'ascii','precision' => '1','nullable' => False,'default' => 'u','comment' => 'u=user, g=group, c=contact, r=resource, e=email'), |
|
77 | - 'cal_user_id' => array('type' => 'ascii','meta' => array("cal_user_type='u'" => 'account'),'precision' => '32','nullable' => False,'comment' => 'id or md5(email-address) for type=e'), |
|
78 | - 'cal_status' => array('type' => 'ascii','precision' => '1','default' => 'A','comment' => 'U=unknown, A=accepted, R=rejected, T=tentative'), |
|
79 | - 'cal_quantity' => array('type' => 'int','precision' => '4','default' => '1','comment' => 'only for certain types (eg. resources)'), |
|
80 | - 'cal_role' => array('type' => 'ascii','precision' => '64','default' => 'REQ-PARTICIPANT','comment' => 'CHAIR, REQ-PARTICIPANT, OPT-PARTICIPANT, NON-PARTICIPANT, X-CAT-$cat_id'), |
|
81 | - 'cal_user_modified' => array('type' => 'timestamp','default' => 'current_timestamp','comment' => 'automatic timestamp of last update'), |
|
82 | - 'cal_user_auto' => array('type' => 'auto','nullable' => False), |
|
83 | - 'cal_user_attendee' => array('type' => 'varchar','precision' => '255','comment' => 'email or json object with attr. cn, url, ...') |
|
74 | + 'cal_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
75 | + 'cal_recur_date' => array('type' => 'int', 'meta' => 'timestamp', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
76 | + 'cal_user_type' => array('type' => 'ascii', 'precision' => '1', 'nullable' => False, 'default' => 'u', 'comment' => 'u=user, g=group, c=contact, r=resource, e=email'), |
|
77 | + 'cal_user_id' => array('type' => 'ascii', 'meta' => array("cal_user_type='u'" => 'account'), 'precision' => '32', 'nullable' => False, 'comment' => 'id or md5(email-address) for type=e'), |
|
78 | + 'cal_status' => array('type' => 'ascii', 'precision' => '1', 'default' => 'A', 'comment' => 'U=unknown, A=accepted, R=rejected, T=tentative'), |
|
79 | + 'cal_quantity' => array('type' => 'int', 'precision' => '4', 'default' => '1', 'comment' => 'only for certain types (eg. resources)'), |
|
80 | + 'cal_role' => array('type' => 'ascii', 'precision' => '64', 'default' => 'REQ-PARTICIPANT', 'comment' => 'CHAIR, REQ-PARTICIPANT, OPT-PARTICIPANT, NON-PARTICIPANT, X-CAT-$cat_id'), |
|
81 | + 'cal_user_modified' => array('type' => 'timestamp', 'default' => 'current_timestamp', 'comment' => 'automatic timestamp of last update'), |
|
82 | + 'cal_user_auto' => array('type' => 'auto', 'nullable' => False), |
|
83 | + 'cal_user_attendee' => array('type' => 'varchar', 'precision' => '255', 'comment' => 'email or json object with attr. cn, url, ...') |
|
84 | 84 | ), |
85 | 85 | 'pk' => array('cal_user_auto'), |
86 | 86 | 'fk' => array(), |
87 | - 'ix' => array('cal_user_modified',array('cal_user_type','cal_user_id')), |
|
88 | - 'uc' => array(array('cal_id','cal_recur_date','cal_user_type','cal_user_id')) |
|
87 | + 'ix' => array('cal_user_modified', array('cal_user_type', 'cal_user_id')), |
|
88 | + 'uc' => array(array('cal_id', 'cal_recur_date', 'cal_user_type', 'cal_user_id')) |
|
89 | 89 | ), |
90 | 90 | 'egw_cal_extra' => array( |
91 | 91 | 'fd' => array( |
92 | - 'cal_id' => array('type' => 'int','precision' => '4','nullable' => False), |
|
93 | - 'cal_extra_name' => array('type' => 'varchar','meta' => 'cfname','precision' => '40','nullable' => False), |
|
94 | - 'cal_extra_value' => array('type' => 'varchar','meta' => 'cfvalue','precision' => '255','nullable' => False,'default' => '') |
|
92 | + 'cal_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
93 | + 'cal_extra_name' => array('type' => 'varchar', 'meta' => 'cfname', 'precision' => '40', 'nullable' => False), |
|
94 | + 'cal_extra_value' => array('type' => 'varchar', 'meta' => 'cfvalue', 'precision' => '255', 'nullable' => False, 'default' => '') |
|
95 | 95 | ), |
96 | - 'pk' => array('cal_id','cal_extra_name'), |
|
96 | + 'pk' => array('cal_id', 'cal_extra_name'), |
|
97 | 97 | 'fk' => array(), |
98 | 98 | 'ix' => array(), |
99 | 99 | 'uc' => array() |
100 | 100 | ), |
101 | 101 | 'egw_cal_dates' => array( |
102 | 102 | 'fd' => array( |
103 | - 'cal_id' => array('type' => 'int','precision' => '4','nullable' => False), |
|
104 | - 'cal_start' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'comment' => 'starttime in server time'), |
|
105 | - 'cal_end' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'comment' => 'endtime in server time'), |
|
106 | - 'recur_exception' => array('type' => 'bool','nullable' => False,'default' => '','comment' => 'date is an exception') |
|
103 | + 'cal_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
104 | + 'cal_start' => array('type' => 'int', 'meta' => 'timestamp', 'precision' => '8', 'nullable' => False, 'comment' => 'starttime in server time'), |
|
105 | + 'cal_end' => array('type' => 'int', 'meta' => 'timestamp', 'precision' => '8', 'nullable' => False, 'comment' => 'endtime in server time'), |
|
106 | + 'recur_exception' => array('type' => 'bool', 'nullable' => False, 'default' => '', 'comment' => 'date is an exception') |
|
107 | 107 | ), |
108 | - 'pk' => array('cal_id','cal_start'), |
|
108 | + 'pk' => array('cal_id', 'cal_start'), |
|
109 | 109 | 'fk' => array(), |
110 | - 'ix' => array(array('recur_exception','cal_id')), |
|
110 | + 'ix' => array(array('recur_exception', 'cal_id')), |
|
111 | 111 | 'uc' => array() |
112 | 112 | ), |
113 | 113 | 'egw_cal_timezones' => array( |
114 | 114 | 'fd' => array( |
115 | - 'tz_id' => array('type' => 'auto','nullable' => False), |
|
116 | - 'tz_tzid' => array('type' => 'ascii','precision' => '128','nullable' => False), |
|
117 | - 'tz_alias' => array('type' => 'int','precision' => '4','comment' => 'tz_id for data'), |
|
118 | - 'tz_latitude' => array('type' => 'int','precision' => '4'), |
|
119 | - 'tz_longitude' => array('type' => 'int','precision' => '4'), |
|
120 | - 'tz_component' => array('type' => 'ascii','precision' => '8192','comment' => 'iCal VTIMEZONE component') |
|
115 | + 'tz_id' => array('type' => 'auto', 'nullable' => False), |
|
116 | + 'tz_tzid' => array('type' => 'ascii', 'precision' => '128', 'nullable' => False), |
|
117 | + 'tz_alias' => array('type' => 'int', 'precision' => '4', 'comment' => 'tz_id for data'), |
|
118 | + 'tz_latitude' => array('type' => 'int', 'precision' => '4'), |
|
119 | + 'tz_longitude' => array('type' => 'int', 'precision' => '4'), |
|
120 | + 'tz_component' => array('type' => 'ascii', 'precision' => '8192', 'comment' => 'iCal VTIMEZONE component') |
|
121 | 121 | ), |
122 | 122 | 'pk' => array('tz_id'), |
123 | 123 | 'fk' => array(), |
@@ -10,55 +10,55 @@ 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' => 'calendar.cat_acl','template' => '','lang' => '','group' => '0','version' => '1.7.001','data' => 'a:3:{i:0;a:4:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:5:"label";s:12:"Category ACL";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:140:"Category ACL only restrict adding a category to an event or changing status of a participant. It does NOT change the visibility of an event!";}}i:1;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{s:2:"c1";s:2:"th";s:2:"c2";s:7:"row,top";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Category";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:24:"Restrict add category to";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:22:"Restrict set status to";}}i:2;a:3:{s:1:"A";a:3:{s:4:"type";s:10:"select-cat";s:4:"name";s:14:"${row}[cat_id]";s:4:"size";s:10:"Select one";}s:1:"B";a:3:{s:4:"type";s:14:"select-account";s:4:"size";s:6:"5,both";s:4:"name";s:11:"${row}[add]";}s:1:"C";a:3:{s:4:"type";s:14:"select-account";s:4:"size";s:6:"5,both";s:4:"name";s:14:"${row}[status]";}}}s:4:"rows";i:2;s:4:"cols";i:3;s:4:"name";s:4:"rows";s:7:"options";a:0:{}}i:2;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:3:{s:4:"type";s:6:"button";s:4:"name";s:14:"button[cancel]";s:5:"label";s:6:"Cancel";}}}','size' => '','style' => '','modified' => '1259850038',); |
|
15 | +$templ_data[] = array('name' => 'calendar.cat_acl', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.7.001', 'data' => 'a:3:{i:0;a:4:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:5:"label";s:12:"Category ACL";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:140:"Category ACL only restrict adding a category to an event or changing status of a participant. It does NOT change the visibility of an event!";}}i:1;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{s:2:"c1";s:2:"th";s:2:"c2";s:7:"row,top";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Category";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:24:"Restrict add category to";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:22:"Restrict set status to";}}i:2;a:3:{s:1:"A";a:3:{s:4:"type";s:10:"select-cat";s:4:"name";s:14:"${row}[cat_id]";s:4:"size";s:10:"Select one";}s:1:"B";a:3:{s:4:"type";s:14:"select-account";s:4:"size";s:6:"5,both";s:4:"name";s:11:"${row}[add]";}s:1:"C";a:3:{s:4:"type";s:14:"select-account";s:4:"size";s:6:"5,both";s:4:"name";s:14:"${row}[status]";}}}s:4:"rows";i:2;s:4:"cols";i:3;s:4:"name";s:4:"rows";s:7:"options";a:0:{}}i:2;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:3:{s:4:"type";s:6:"button";s:4:"name";s:14:"button[cancel]";s:5:"label";s:6:"Cancel";}}}', 'size' => '', 'style' => '', 'modified' => '1259850038',); |
|
16 | 16 | |
17 | -$templ_data[] = array('name' => 'calendar.confirm_edit_series','template' => '','lang' => '','group' => '0','version' => '1.7.003','data' => 'a:1:{i:0;a:7:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:4:"name";s:20:"#confirm_edit_series";s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:5:{s:5:"class";s:12:"promptheader";s:4:"name";s:14:"#dialogHeader";s:4:"type";s:4:"hbox";s:4:"size";s:1:"1";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:30:"This event is part of a series";}}i:2;a:6:{s:5:"class";s:6:"prompt";s:4:"name";s:14:"dialog-content";s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:189:"Do you really want to change the start of this series? If you do, the original series will be terminated as of today and a new series for the future reflecting your changes will be created.";}i:2;a:6:{s:5:"align";s:6:"center";s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:19:"Create a new series";s:4:"name";s:27:"button[confirm_edit_series]";s:4:"type";s:6:"button";s:4:"help";s:73:"The original series will be terminated today and a new series be created.";}i:2;a:4:{s:5:"label";s:13:"Re-Edit event";s:4:"name";s:14:"button[reedit]";s:4:"type";s:6:"button";s:4:"help";s:30:"Allows to edit the event again";}i:3;a:4:{s:5:"label";s:6:"Cancel";s:4:"name";s:14:"button[cancel]";s:4:"type";s:6:"button";s:4:"help";s:26:"Keep the series unchanged.";}}}}}','size' => '','style' => '','modified' => '1276104491',); |
|
17 | +$templ_data[] = array('name' => 'calendar.confirm_edit_series', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.7.003', 'data' => 'a:1:{i:0;a:7:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:4:"name";s:20:"#confirm_edit_series";s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:5:{s:5:"class";s:12:"promptheader";s:4:"name";s:14:"#dialogHeader";s:4:"type";s:4:"hbox";s:4:"size";s:1:"1";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:30:"This event is part of a series";}}i:2;a:6:{s:5:"class";s:6:"prompt";s:4:"name";s:14:"dialog-content";s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:189:"Do you really want to change the start of this series? If you do, the original series will be terminated as of today and a new series for the future reflecting your changes will be created.";}i:2;a:6:{s:5:"align";s:6:"center";s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:19:"Create a new series";s:4:"name";s:27:"button[confirm_edit_series]";s:4:"type";s:6:"button";s:4:"help";s:73:"The original series will be terminated today and a new series be created.";}i:2;a:4:{s:5:"label";s:13:"Re-Edit event";s:4:"name";s:14:"button[reedit]";s:4:"type";s:6:"button";s:4:"help";s:30:"Allows to edit the event again";}i:3;a:4:{s:5:"label";s:6:"Cancel";s:4:"name";s:14:"button[cancel]";s:4:"type";s:6:"button";s:4:"help";s:26:"Keep the series unchanged.";}}}}}', 'size' => '', 'style' => '', 'modified' => '1276104491',); |
|
18 | 18 | |
19 | -$templ_data[] = array('name' => 'calendar.conflicts','template' => '','lang' => '','group' => '0','version' => '1.0.1.001','data' => 'a:3:{i:0;a:3:{s:4:"type";s:5:"label";s:5:"label";s:20:" Scheduling conflict";s:4:"span";s:9:",calendar_size120b";}i:1;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:4:",top";}i:1;a:4:{s:1:"A";a:4:{s:4:"type";s:5:"image";s:4:"name";s:34:"conflicts[$row][icon_participants]";s:5:"label";s:38:"@conflicts[$row][tooltip_participants]";s:7:"no_lang";s:1:"1";}s:1:"B";a:4:{s:4:"type";s:5:"image";s:4:"name";s:27:"conflicts[$row][icon_recur]";s:5:"label";s:28:"@conflicts[$row][text_recur]";s:7:"no_lang";s:1:"1";}s:1:"C";a:3:{s:4:"type";s:5:"label";s:4:"name";s:21:"conflicts[$row][time]";s:7:"no_lang";s:1:"1";}s:1:"D";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:5:"label";s:4:"name";s:22:"conflicts[$row][title]";s:7:"no_lang";s:1:"1";s:4:"size";s:1:"b";}i:2;a:3:{s:4:"type";s:5:"label";s:4:"name";s:41:"conflicts[$row][conflicting_participants]";s:7:"no_lang";s:1:"1";}s:4:"help";s:23:"conflict[$row][tooltip]";}}}s:4:"rows";i:1;s:4:"cols";i:4;}i:2;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:15:"Ignore conflict";s:4:"name";s:14:"button[ignore]";s:4:"help";s:37:"Saves the event ignoring the conflict";}i:2;a:4:{s:4:"type";s:6:"button";s:4:"name";s:14:"button[reedit]";s:5:"label";s:13:"Re-Edit event";s:4:"help";s:30:"Allows to edit the event again";}i:3;a:4:{s:4:"type";s:6:"button";s:5:"label";s:15:"Freetime search";s:4:"name";s:16:"button[freetime]";s:4:"help";s:88:"Find free timeslots where the selected participants are availible for the given timespan";}}}','size' => '','style' => '','modified' => '1119080124',); |
|
19 | +$templ_data[] = array('name' => 'calendar.conflicts', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.0.1.001', 'data' => 'a:3:{i:0;a:3:{s:4:"type";s:5:"label";s:5:"label";s:20:" Scheduling conflict";s:4:"span";s:9:",calendar_size120b";}i:1;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:4:",top";}i:1;a:4:{s:1:"A";a:4:{s:4:"type";s:5:"image";s:4:"name";s:34:"conflicts[$row][icon_participants]";s:5:"label";s:38:"@conflicts[$row][tooltip_participants]";s:7:"no_lang";s:1:"1";}s:1:"B";a:4:{s:4:"type";s:5:"image";s:4:"name";s:27:"conflicts[$row][icon_recur]";s:5:"label";s:28:"@conflicts[$row][text_recur]";s:7:"no_lang";s:1:"1";}s:1:"C";a:3:{s:4:"type";s:5:"label";s:4:"name";s:21:"conflicts[$row][time]";s:7:"no_lang";s:1:"1";}s:1:"D";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:5:"label";s:4:"name";s:22:"conflicts[$row][title]";s:7:"no_lang";s:1:"1";s:4:"size";s:1:"b";}i:2;a:3:{s:4:"type";s:5:"label";s:4:"name";s:41:"conflicts[$row][conflicting_participants]";s:7:"no_lang";s:1:"1";}s:4:"help";s:23:"conflict[$row][tooltip]";}}}s:4:"rows";i:1;s:4:"cols";i:4;}i:2;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:15:"Ignore conflict";s:4:"name";s:14:"button[ignore]";s:4:"help";s:37:"Saves the event ignoring the conflict";}i:2;a:4:{s:4:"type";s:6:"button";s:4:"name";s:14:"button[reedit]";s:5:"label";s:13:"Re-Edit event";s:4:"help";s:30:"Allows to edit the event again";}i:3;a:4:{s:4:"type";s:6:"button";s:5:"label";s:15:"Freetime search";s:4:"name";s:16:"button[freetime]";s:4:"help";s:88:"Find free timeslots where the selected participants are availible for the given timespan";}}}', 'size' => '', 'style' => '', 'modified' => '1119080124',); |
|
20 | 20 | |
21 | -$templ_data[] = array('name' => 'calendar.delete_series','template' => '','lang' => '','group' => '0','version' => '1.7.003','data' => 'a:1:{i:0;a:8:{s:4:"type";s:4:"vbox";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"1";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:30:"This event is part of a series";}s:4:"name";s:14:"#dialogHeader";s:4:"span";s:13:",promptheader";}i:2;a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:59:"Do you want to keep the series exceptions in your calendar?";}s:4:"span";s:7:",prompt";s:4:"name";s:14:"dialog-content";i:2;a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:15:"Keep exceptions";s:4:"help";s:48:"All exceptions are converted into single events.";s:4:"name";s:30:"button[delete_keep_exceptions]";}i:2;a:4:{s:4:"type";s:6:"button";s:5:"label";s:17:"Delete exceptions";s:4:"help";s:52:"The exceptions are deleted together with the series.";s:4:"name";s:25:"button[delete_exceptions]";}i:3;a:3:{s:4:"type";s:10:"buttononly";s:5:"label";s:6:"Cancel";s:7:"onclick";s:64:"document.getElementById(\'delete_series\').style.display = \'none\';";}s:5:"align";s:6:"center";}}s:4:"name";s:14:"#delete_series";}}','size' => '','style' => '','modified' => '1273136129',); |
|
21 | +$templ_data[] = array('name' => 'calendar.delete_series', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.7.003', 'data' => 'a:1:{i:0;a:8:{s:4:"type";s:4:"vbox";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"1";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:30:"This event is part of a series";}s:4:"name";s:14:"#dialogHeader";s:4:"span";s:13:",promptheader";}i:2;a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:59:"Do you want to keep the series exceptions in your calendar?";}s:4:"span";s:7:",prompt";s:4:"name";s:14:"dialog-content";i:2;a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:15:"Keep exceptions";s:4:"help";s:48:"All exceptions are converted into single events.";s:4:"name";s:30:"button[delete_keep_exceptions]";}i:2;a:4:{s:4:"type";s:6:"button";s:5:"label";s:17:"Delete exceptions";s:4:"help";s:52:"The exceptions are deleted together with the series.";s:4:"name";s:25:"button[delete_exceptions]";}i:3;a:3:{s:4:"type";s:10:"buttononly";s:5:"label";s:6:"Cancel";s:7:"onclick";s:64:"document.getElementById(\'delete_series\').style.display = \'none\';";}s:5:"align";s:6:"center";}}s:4:"name";s:14:"#delete_series";}}', 'size' => '', 'style' => '', 'modified' => '1273136129',); |
|
22 | 22 | |
23 | -$templ_data[] = array('name' => 'calendar.edit','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:7:{i:0;a:7:{s:1:"A";s:3:"100";s:1:"B";s:3:"300";s:2:"h1";s:6:",!@msg";s:2:"c2";s:2:"th";s:2:"h2";s:2:"28";s:2:"h4";s:8:",!@owner";s:2:"h6";s:13:",!@recur_type";}i:1;a:4:{s:1:"A";a:5:{s:4:"span";s:13:"all,message";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:3:"msg";s:4:"type";s:4:"html";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:2;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Title";}s:1:"B";a:74:{s:4:"size";s:6:"2,,0,0";s:4:"span";s:3:"all";s:6:"needed";s:1:"1";s:4:"type";s:4:"hbox";i:1;a:5:{s:4:"size";s:6:"75,255";s:6:"needed";s:1:"1";s:4:"name";s:5:"title";s:4:"type";s:4:"text";s:8:"tabindex";i:1;}i:2;a:4:{s:4:"type";s:5:"label";s:5:"label";s:3:"#%s";s:4:"name";s:2:"id";s:4:"size";s:1:"b";}i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}i:46;a:1:{s:4:"type";s:5:"label";}i:47;a:1:{s:4:"type";s:5:"label";}i:48;a:1:{s:4:"type";s:5:"label";}i:49;a:1:{s:4:"type";s:5:"label";}i:50;a:1:{s:4:"type";s:5:"label";}i:51;a:1:{s:4:"type";s:5:"label";}i:52;a:1:{s:4:"type";s:5:"label";}i:53;a:1:{s:4:"type";s:5:"label";}i:54;a:1:{s:4:"type";s:5:"label";}i:55;a:1:{s:4:"type";s:5:"label";}i:56;a:1:{s:4:"type";s:5:"label";}i:57;a:1:{s:4:"type";s:5:"label";}i:58;a:1:{s:4:"type";s:5:"label";}i:59;a:1:{s:4:"type";s:5:"label";}i:60;a:1:{s:4:"type";s:5:"label";}i:61;a:1:{s:4:"type";s:5:"label";}i:62;a:1:{s:4:"type";s:5:"label";}i:63;a:1:{s:4:"type";s:5:"label";}i:64;a:1:{s:4:"type";s:5:"label";}i:65;a:1:{s:4:"type";s:5:"label";}i:66;a:1:{s:4:"type";s:5:"label";}i:67;a:1:{s:4:"type";s:5:"label";}i:68;a:1:{s:4:"type";s:5:"label";}i:69;a:1:{s:4:"type";s:5:"label";}i:70;a:1:{s:4:"type";s:5:"label";}}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:3;a:4:{s:1:"A";a:5:{s:4:"span";s:3:"all";s:4:"name";s:76:"tabs=general|description|participants|recurrence|custom|links|alarms|history";s:4:"type";s:3:"tab";s:5:"label";s:71:"General|Description|Participants|Recurrence|Custom|Links|Alarms|History";s:4:"help";s:173:"Location, Start- and Endtimes, ...|Full description|Participants, Resources, ...|Repeating Event Information|Custom fields|Links, Attachments|Alarm management|Change history";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:4;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Owner";}s:1:"B";a:3:{s:4:"type";s:14:"select-account";s:8:"readonly";s:4:"true";s:4:"name";s:5:"owner";}s:1:"C";a:7:{s:5:"label";s:7:"Updated";s:8:"readonly";s:4:"true";s:7:"no_lang";s:1:"1";s:5:"align";s:5:"right";s:4:"name";s:8:"modified";s:4:"type";s:9:"date-time";s:4:"span";s:8:",noBreak";}s:1:"D";a:6:{s:5:"class";s:7:"noBreak";s:4:"type";s:14:"select-account";s:5:"label";s:2:"by";s:8:"readonly";s:4:"true";s:5:"align";s:5:"right";s:4:"name";s:8:"modifier";}}i:5;a:4:{s:1:"A";a:8:{s:4:"span";s:1:"3";s:4:"type";s:4:"hbox";s:4:"size";s:1:"5";i:1;a:4:{s:5:"label";s:4:"Save";s:4:"name";s:12:"button[save]";s:4:"type";s:6:"button";s:4:"help";s:22:"saves the changes made";}i:2;a:4:{s:5:"label";s:5:"Apply";s:4:"name";s:13:"button[apply]";s:4:"type";s:6:"button";s:4:"help";s:17:"apply the changes";}i:3;a:5:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:15:"window.close();";s:4:"name";s:14:"button[cancel]";s:4:"type";s:6:"button";s:4:"help";s:16:"Close the window";}i:4;a:5:{s:8:"onchange";s:34:"this.form.submit(); this.value=\'\';";s:4:"name";s:6:"action";s:4:"size";s:10:"Actions...";s:4:"type";s:6:"select";s:4:"help";s:39:"Execute a further action for this entry";}i:5;a:4:{s:4:"type";s:8:"checkbox";s:5:"label";s:30:"Do not notify of these changes";s:4:"name";s:16:"no_notifications";s:4:"span";s:1:"2";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:6:{s:5:"label";s:6:"Delete";s:7:"onclick";s:150:"if ($cont[query_delete_exceptions]) { getElementById(\'delete_series\').style.display=\'block\'; return false; } else return confirm(\'Delete this event\');";s:5:"align";s:5:"right";s:4:"name";s:14:"button[delete]";s:4:"type";s:6:"button";s:4:"help";s:17:"Delete this event";}}i:6;a:4:{s:1:"A";a:3:{s:4:"type";s:8:"template";s:4:"span";s:3:"all";s:4:"name";s:22:"calendar.delete_series";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:4;s:4:"rows";i:6;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => '.end_hide { display: block; white-space: nowrap; margin-left: 10px; } |
|
23 | +$templ_data[] = array('name' => 'calendar.edit', '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:7:{i:0;a:7:{s:1:"A";s:3:"100";s:1:"B";s:3:"300";s:2:"h1";s:6:",!@msg";s:2:"c2";s:2:"th";s:2:"h2";s:2:"28";s:2:"h4";s:8:",!@owner";s:2:"h6";s:13:",!@recur_type";}i:1;a:4:{s:1:"A";a:5:{s:4:"span";s:13:"all,message";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:3:"msg";s:4:"type";s:4:"html";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:2;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Title";}s:1:"B";a:74:{s:4:"size";s:6:"2,,0,0";s:4:"span";s:3:"all";s:6:"needed";s:1:"1";s:4:"type";s:4:"hbox";i:1;a:5:{s:4:"size";s:6:"75,255";s:6:"needed";s:1:"1";s:4:"name";s:5:"title";s:4:"type";s:4:"text";s:8:"tabindex";i:1;}i:2;a:4:{s:4:"type";s:5:"label";s:5:"label";s:3:"#%s";s:4:"name";s:2:"id";s:4:"size";s:1:"b";}i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}i:46;a:1:{s:4:"type";s:5:"label";}i:47;a:1:{s:4:"type";s:5:"label";}i:48;a:1:{s:4:"type";s:5:"label";}i:49;a:1:{s:4:"type";s:5:"label";}i:50;a:1:{s:4:"type";s:5:"label";}i:51;a:1:{s:4:"type";s:5:"label";}i:52;a:1:{s:4:"type";s:5:"label";}i:53;a:1:{s:4:"type";s:5:"label";}i:54;a:1:{s:4:"type";s:5:"label";}i:55;a:1:{s:4:"type";s:5:"label";}i:56;a:1:{s:4:"type";s:5:"label";}i:57;a:1:{s:4:"type";s:5:"label";}i:58;a:1:{s:4:"type";s:5:"label";}i:59;a:1:{s:4:"type";s:5:"label";}i:60;a:1:{s:4:"type";s:5:"label";}i:61;a:1:{s:4:"type";s:5:"label";}i:62;a:1:{s:4:"type";s:5:"label";}i:63;a:1:{s:4:"type";s:5:"label";}i:64;a:1:{s:4:"type";s:5:"label";}i:65;a:1:{s:4:"type";s:5:"label";}i:66;a:1:{s:4:"type";s:5:"label";}i:67;a:1:{s:4:"type";s:5:"label";}i:68;a:1:{s:4:"type";s:5:"label";}i:69;a:1:{s:4:"type";s:5:"label";}i:70;a:1:{s:4:"type";s:5:"label";}}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:3;a:4:{s:1:"A";a:5:{s:4:"span";s:3:"all";s:4:"name";s:76:"tabs=general|description|participants|recurrence|custom|links|alarms|history";s:4:"type";s:3:"tab";s:5:"label";s:71:"General|Description|Participants|Recurrence|Custom|Links|Alarms|History";s:4:"help";s:173:"Location, Start- and Endtimes, ...|Full description|Participants, Resources, ...|Repeating Event Information|Custom fields|Links, Attachments|Alarm management|Change history";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:4;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Owner";}s:1:"B";a:3:{s:4:"type";s:14:"select-account";s:8:"readonly";s:4:"true";s:4:"name";s:5:"owner";}s:1:"C";a:7:{s:5:"label";s:7:"Updated";s:8:"readonly";s:4:"true";s:7:"no_lang";s:1:"1";s:5:"align";s:5:"right";s:4:"name";s:8:"modified";s:4:"type";s:9:"date-time";s:4:"span";s:8:",noBreak";}s:1:"D";a:6:{s:5:"class";s:7:"noBreak";s:4:"type";s:14:"select-account";s:5:"label";s:2:"by";s:8:"readonly";s:4:"true";s:5:"align";s:5:"right";s:4:"name";s:8:"modifier";}}i:5;a:4:{s:1:"A";a:8:{s:4:"span";s:1:"3";s:4:"type";s:4:"hbox";s:4:"size";s:1:"5";i:1;a:4:{s:5:"label";s:4:"Save";s:4:"name";s:12:"button[save]";s:4:"type";s:6:"button";s:4:"help";s:22:"saves the changes made";}i:2;a:4:{s:5:"label";s:5:"Apply";s:4:"name";s:13:"button[apply]";s:4:"type";s:6:"button";s:4:"help";s:17:"apply the changes";}i:3;a:5:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:15:"window.close();";s:4:"name";s:14:"button[cancel]";s:4:"type";s:6:"button";s:4:"help";s:16:"Close the window";}i:4;a:5:{s:8:"onchange";s:34:"this.form.submit(); this.value=\'\';";s:4:"name";s:6:"action";s:4:"size";s:10:"Actions...";s:4:"type";s:6:"select";s:4:"help";s:39:"Execute a further action for this entry";}i:5;a:4:{s:4:"type";s:8:"checkbox";s:5:"label";s:30:"Do not notify of these changes";s:4:"name";s:16:"no_notifications";s:4:"span";s:1:"2";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:6:{s:5:"label";s:6:"Delete";s:7:"onclick";s:150:"if ($cont[query_delete_exceptions]) { getElementById(\'delete_series\').style.display=\'block\'; return false; } else return confirm(\'Delete this event\');";s:5:"align";s:5:"right";s:4:"name";s:14:"button[delete]";s:4:"type";s:6:"button";s:4:"help";s:17:"Delete this event";}}i:6;a:4:{s:1:"A";a:3:{s:4:"type";s:8:"template";s:4:"span";s:3:"all";s:4:"name";s:22:"calendar.delete_series";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:4;s:4:"rows";i:6;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}', 'size' => '100%', 'style' => '.end_hide { display: block; white-space: nowrap; margin-left: 10px; } |
|
24 | 24 | .noBreak { white-space: nowrap; } |
25 | 25 | .CatTree { width:200px; height:200px; overflow: auto;}','modified' => '1292883792',); |
26 | 26 | |
27 | -$templ_data[] = array('name' => 'calendar.edit.alarms','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:5:{s:2:"c1";s:3:"row";s:1:"A";s:5:"120px";s:2:"h1";s:16:"20,@no_add_alarm";s:2:"c2";s:4:",top";s:2:"h2";s:8:",!@alarm";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:6:"select";s:4:"name";s:12:"before_after";s:5:"label";s:12:"%s the event";}s:1:"B";a:10:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"8";i:1;a:4:{s:4:"type";s:13:"select-number";s:4:"size";s:4:",0,7";s:4:"name";s:15:"new_alarm[days]";s:4:"help";s:4:"days";}i:2;a:3:{s:4:"type";s:5:"label";s:4:"size";s:18:",,,new_alarm[days]";s:5:"label";s:4:"days";}i:3;a:4:{s:4:"type";s:13:"select-number";s:4:"name";s:16:"new_alarm[hours]";s:4:"size";s:5:",0,23";s:4:"help";s:5:"hours";}i:4;a:3:{s:4:"type";s:5:"label";s:4:"size";s:19:",,,new_alarm[hours]";s:5:"label";s:5:"hours";}i:5;a:4:{s:4:"type";s:13:"select-number";s:4:"name";s:15:"new_alarm[mins]";s:4:"size";s:7:",0,55,5";s:4:"help";s:7:"Minutes";}i:6;a:3:{s:4:"type";s:5:"label";s:4:"size";s:18:",,,new_alarm[mins]";s:5:"label";s:7:"Minutes";}i:7;a:5:{s:4:"type";s:6:"select";s:4:"name";s:16:"new_alarm[owner]";s:7:"no_lang";s:1:"1";s:5:"label";s:3:"for";s:4:"help";s:31:"Select who should get the alarm";}i:8;a:3:{s:4:"type";s:6:"button";s:4:"name";s:17:"button[add_alarm]";s:5:"label";s:9:"Add alarm";}}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Alarms";}s:1:"B";a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{s:2:"c1";s:2:"th";s:2:"c2";s:3:"row";}i:1;a:5:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Time";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:16:"before the event";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:16:"All participants";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Owner";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Action";}}i:2;a:5:{s:1:"A";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:12:"${row}[time]";s:8:"readonly";s:1:"1";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:4:"name";s:14:"${row}[offset]";s:7:"no_lang";s:1:"1";}s:1:"C";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:11:"${row}[all]";s:8:"readonly";s:1:"1";}s:1:"D";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:13:"${row}[owner]";s:8:"readonly";s:1:"1";}s:1:"E";a:7:{s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:5:"label";s:6:"Delete";s:5:"align";s:6:"center";s:4:"name";s:27:"delete_alarm[$row_cont[id]]";s:4:"help";s:17:"Delete this alarm";s:7:"onclick";s:36:"return confirm(\'Delete this alarm\');";}}}s:4:"rows";i:2;s:4:"cols";i:5;s:4:"name";s:5:"alarm";s:7:"options";a:0:{}}}}s:4:"rows";i:2;s:4:"cols";i:2;s:4:"size";s:17:"100%,210,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"210";i:6;s:4:"auto";}}}','size' => '100%,210,,,,,auto','style' => '','modified' => '1286382659',); |
|
27 | +$templ_data[] = array('name' => 'calendar.edit.alarms', '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:5:{s:2:"c1";s:3:"row";s:1:"A";s:5:"120px";s:2:"h1";s:16:"20,@no_add_alarm";s:2:"c2";s:4:",top";s:2:"h2";s:8:",!@alarm";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:6:"select";s:4:"name";s:12:"before_after";s:5:"label";s:12:"%s the event";}s:1:"B";a:10:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"8";i:1;a:4:{s:4:"type";s:13:"select-number";s:4:"size";s:4:",0,7";s:4:"name";s:15:"new_alarm[days]";s:4:"help";s:4:"days";}i:2;a:3:{s:4:"type";s:5:"label";s:4:"size";s:18:",,,new_alarm[days]";s:5:"label";s:4:"days";}i:3;a:4:{s:4:"type";s:13:"select-number";s:4:"name";s:16:"new_alarm[hours]";s:4:"size";s:5:",0,23";s:4:"help";s:5:"hours";}i:4;a:3:{s:4:"type";s:5:"label";s:4:"size";s:19:",,,new_alarm[hours]";s:5:"label";s:5:"hours";}i:5;a:4:{s:4:"type";s:13:"select-number";s:4:"name";s:15:"new_alarm[mins]";s:4:"size";s:7:",0,55,5";s:4:"help";s:7:"Minutes";}i:6;a:3:{s:4:"type";s:5:"label";s:4:"size";s:18:",,,new_alarm[mins]";s:5:"label";s:7:"Minutes";}i:7;a:5:{s:4:"type";s:6:"select";s:4:"name";s:16:"new_alarm[owner]";s:7:"no_lang";s:1:"1";s:5:"label";s:3:"for";s:4:"help";s:31:"Select who should get the alarm";}i:8;a:3:{s:4:"type";s:6:"button";s:4:"name";s:17:"button[add_alarm]";s:5:"label";s:9:"Add alarm";}}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Alarms";}s:1:"B";a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{s:2:"c1";s:2:"th";s:2:"c2";s:3:"row";}i:1;a:5:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Time";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:16:"before the event";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:16:"All participants";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Owner";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Action";}}i:2;a:5:{s:1:"A";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:12:"${row}[time]";s:8:"readonly";s:1:"1";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:4:"name";s:14:"${row}[offset]";s:7:"no_lang";s:1:"1";}s:1:"C";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:11:"${row}[all]";s:8:"readonly";s:1:"1";}s:1:"D";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:13:"${row}[owner]";s:8:"readonly";s:1:"1";}s:1:"E";a:7:{s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:5:"label";s:6:"Delete";s:5:"align";s:6:"center";s:4:"name";s:27:"delete_alarm[$row_cont[id]]";s:4:"help";s:17:"Delete this alarm";s:7:"onclick";s:36:"return confirm(\'Delete this alarm\');";}}}s:4:"rows";i:2;s:4:"cols";i:5;s:4:"name";s:5:"alarm";s:7:"options";a:0:{}}}}s:4:"rows";i:2;s:4:"cols";i:2;s:4:"size";s:17:"100%,210,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"210";i:6;s:4:"auto";}}}', 'size' => '100%,210,,,,,auto', 'style' => '', 'modified' => '1286382659',); |
|
28 | 28 | |
29 | -$templ_data[] = array('name' => 'calendar.edit.custom','template' => '','lang' => '','group' => '0','version' => '1.4.001','data' => 'a:1:{i:0;a:6:{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:17:"100%,210,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"210";i:6;s:4:"auto";}}}','size' => '100%,210,,,,,auto','style' => '','modified' => '1184167751',); |
|
29 | +$templ_data[] = array('name' => 'calendar.edit.custom', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.4.001', 'data' => 'a:1:{i:0;a:6:{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:17:"100%,210,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"210";i:6;s:4:"auto";}}}', 'size' => '100%,210,,,,,auto', 'style' => '', 'modified' => '1184167751',); |
|
30 | 30 | |
31 | -$templ_data[] = array('name' => 'calendar.edit.description','template' => '','lang' => '','group' => '0','version' => '1.0.1.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:7:"row,top";s:1:"A";s:2:"95";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:14:",,,description";s:5:"label";s:11:"Description";}s:1:"B";a:3:{s:4:"type";s:8:"textarea";s:4:"size";s:5:"12,70";s:4:"name";s:11:"description";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"size";s:8:"100%,210";s:7:"options";a:2:{i:0;s:4:"100%";i:1;s:3:"210";}}}','size' => '100%,210','style' => '','modified' => '1118480337',); |
|
31 | +$templ_data[] = array('name' => 'calendar.edit.description', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.0.1.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:7:"row,top";s:1:"A";s:2:"95";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:14:",,,description";s:5:"label";s:11:"Description";}s:1:"B";a:3:{s:4:"type";s:8:"textarea";s:4:"size";s:5:"12,70";s:4:"name";s:11:"description";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"size";s:8:"100%,210";s:7:"options";a:2:{i:0;s:4:"100%";i:1;s:3:"210";}}}', 'size' => '100%,210', 'style' => '', 'modified' => '1118480337',); |
|
32 | 32 | |
33 | -$templ_data[] = array('name' => 'calendar.edit.general','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"hbox";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:8:{i:0;a:7:{s:1:"A";s:2:"95";s:2:"c1";s:3:"row";s:2:"c2";s:3:"row";s:2:"c4";s:3:"row";s:2:"c5";s:7:"row_off";s:2:"c6";s:3:"row";s:2:"c7";s:3:"row";}i:1;a:2:{s:1:"A";a:4:{s:3:"for";s:5:"start";s:5:"width";s:2:"95";s:4:"type";s:5:"label";s:5:"label";s:5:"Start";}s:1:"B";a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"hbox";i:1;a:3:{s:6:"needed";s:1:"1";s:4:"name";s:5:"start";s:4:"type";s:9:"date-time";}i:2;a:6:{s:5:"align";s:6:"center";s:5:"label";s:9:"whole day";s:4:"name";s:9:"whole_day";s:4:"size";s:11:",, ,disable";s:4:"type";s:8:"checkbox";s:4:"help";s:31:"Event will occupy the whole day";}}}i:2;a:2:{s:1:"A";a:4:{s:3:"for";s:8:"duration";s:5:"width";s:1:"0";s:4:"type";s:5:"label";s:5:"label";s:8:"Duration";}s:1:"B";a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"hbox";i:1;a:6:{s:7:"no_lang";s:1:"1";s:8:"onchange";s:220:"set_style_by_class(\'table\',\'end_hide\',\'display\',this.value == \'\' ? \'block\' : \'none\'); if (this.value == \'\') document.getElementById(form::name(\'end[str]\')).value = document.getElementById(form::name(\'start[str]\')).value;";s:4:"name";s:8:"duration";s:4:"size";s:12:"Use end date";s:4:"type";s:6:"select";s:4:"help";s:23:"Duration of the meeting";}i:2;a:3:{s:4:"name";s:3:"end";s:4:"type";s:9:"date-time";s:4:"span";s:9:",end_hide";}}}i:3;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:5:{s:5:"label";s:15:"Freetime search";s:7:"onclick";s:85:"ajax_submit(this.form,\'calendar.calendar_uiforms.ajax_freetimesearch\'); return false;";s:4:"name";s:8:"freetime";s:4:"type";s:10:"buttononly";s:4:"help";s:88:"Find free timeslots where the selected participants are availible for the given timespan";}}i:4;a:2:{s:1:"A";a:4:{s:3:"for";s:8:"location";s:5:"width";s:1:"0";s:4:"type";s:5:"label";s:5:"label";s:8:"Location";}s:1:"B";a:4:{s:4:"name";s:8:"location";s:4:"type";s:4:"text";s:4:"size";s:4:",255";s:4:"span";s:15:",calendar_inputFullWidth";}}i:5;a:2:{s:1:"A";a:4:{s:3:"for";s:8:"priority";s:5:"width";s:1:"0";s:4:"type";s:5:"label";s:5:"label";s:8:"Priority";}s:1:"B";a:2:{s:4:"type";s:15:"select-priority";s:4:"name";s:8:"priority";}}i:6;a:2:{s:1:"A";a:3:{s:5:"width";s:1:"0";s:4:"type";s:5:"label";s:5:"label";s:7:"Options";}s:1:"B";a:5:{s:5:"label";s:12:"non blocking";s:4:"name";s:12:"non_blocking";s:4:"size";s:11:",, ,disable";s:4:"type";s:8:"checkbox";s:4:"help";s:56:"A non blocking event will not conflict with other events";}}i:7;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:4:{s:5:"label";s:7:"Private";s:4:"name";s:6:"public";s:4:"size";s:3:"0,1";s:4:"type";s:8:"checkbox";}}}s:4:"cols";i:2;s:4:"rows";i:7;s:4:"size";s:8:"100%,210";}i:2;a:6:{s:5:"align";s:5:"right";s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"vbox";s:4:"span";s:7:",row_on";i:1;a:4:{s:3:"for";s:8:"category";s:4:"type";s:5:"label";s:5:"label";s:10:"Categories";s:4:"span";s:7:",row_on";}i:2;a:3:{s:4:"type";s:8:"tree-cat";s:4:"name";s:8:"category";s:4:"span";s:8:",CatTree";}}}}','size' => '','style' => '','modified' => '1343065389',); |
|
33 | +$templ_data[] = array('name' => 'calendar.edit.general', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"hbox";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:8:{i:0;a:7:{s:1:"A";s:2:"95";s:2:"c1";s:3:"row";s:2:"c2";s:3:"row";s:2:"c4";s:3:"row";s:2:"c5";s:7:"row_off";s:2:"c6";s:3:"row";s:2:"c7";s:3:"row";}i:1;a:2:{s:1:"A";a:4:{s:3:"for";s:5:"start";s:5:"width";s:2:"95";s:4:"type";s:5:"label";s:5:"label";s:5:"Start";}s:1:"B";a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"hbox";i:1;a:3:{s:6:"needed";s:1:"1";s:4:"name";s:5:"start";s:4:"type";s:9:"date-time";}i:2;a:6:{s:5:"align";s:6:"center";s:5:"label";s:9:"whole day";s:4:"name";s:9:"whole_day";s:4:"size";s:11:",, ,disable";s:4:"type";s:8:"checkbox";s:4:"help";s:31:"Event will occupy the whole day";}}}i:2;a:2:{s:1:"A";a:4:{s:3:"for";s:8:"duration";s:5:"width";s:1:"0";s:4:"type";s:5:"label";s:5:"label";s:8:"Duration";}s:1:"B";a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"hbox";i:1;a:6:{s:7:"no_lang";s:1:"1";s:8:"onchange";s:220:"set_style_by_class(\'table\',\'end_hide\',\'display\',this.value == \'\' ? \'block\' : \'none\'); if (this.value == \'\') document.getElementById(form::name(\'end[str]\')).value = document.getElementById(form::name(\'start[str]\')).value;";s:4:"name";s:8:"duration";s:4:"size";s:12:"Use end date";s:4:"type";s:6:"select";s:4:"help";s:23:"Duration of the meeting";}i:2;a:3:{s:4:"name";s:3:"end";s:4:"type";s:9:"date-time";s:4:"span";s:9:",end_hide";}}}i:3;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:5:{s:5:"label";s:15:"Freetime search";s:7:"onclick";s:85:"ajax_submit(this.form,\'calendar.calendar_uiforms.ajax_freetimesearch\'); return false;";s:4:"name";s:8:"freetime";s:4:"type";s:10:"buttononly";s:4:"help";s:88:"Find free timeslots where the selected participants are availible for the given timespan";}}i:4;a:2:{s:1:"A";a:4:{s:3:"for";s:8:"location";s:5:"width";s:1:"0";s:4:"type";s:5:"label";s:5:"label";s:8:"Location";}s:1:"B";a:4:{s:4:"name";s:8:"location";s:4:"type";s:4:"text";s:4:"size";s:4:",255";s:4:"span";s:15:",calendar_inputFullWidth";}}i:5;a:2:{s:1:"A";a:4:{s:3:"for";s:8:"priority";s:5:"width";s:1:"0";s:4:"type";s:5:"label";s:5:"label";s:8:"Priority";}s:1:"B";a:2:{s:4:"type";s:15:"select-priority";s:4:"name";s:8:"priority";}}i:6;a:2:{s:1:"A";a:3:{s:5:"width";s:1:"0";s:4:"type";s:5:"label";s:5:"label";s:7:"Options";}s:1:"B";a:5:{s:5:"label";s:12:"non blocking";s:4:"name";s:12:"non_blocking";s:4:"size";s:11:",, ,disable";s:4:"type";s:8:"checkbox";s:4:"help";s:56:"A non blocking event will not conflict with other events";}}i:7;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:4:{s:5:"label";s:7:"Private";s:4:"name";s:6:"public";s:4:"size";s:3:"0,1";s:4:"type";s:8:"checkbox";}}}s:4:"cols";i:2;s:4:"rows";i:7;s:4:"size";s:8:"100%,210";}i:2;a:6:{s:5:"align";s:5:"right";s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"vbox";s:4:"span";s:7:",row_on";i:1;a:4:{s:3:"for";s:8:"category";s:4:"type";s:5:"label";s:5:"label";s:10:"Categories";s:4:"span";s:7:",row_on";}i:2;a:3:{s:4:"type";s:8:"tree-cat";s:4:"name";s:8:"category";s:4:"span";s:8:",CatTree";}}}}', 'size' => '', 'style' => '', 'modified' => '1343065389',); |
|
34 | 34 | |
35 | -$templ_data[] = array('name' => 'calendar.edit.history','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:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:10:"historylog";s:4:"name";s:7:"history";s:4:"size";s:14:"history_status";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:17:"100%,210,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"210";i:6;s:4:"auto";}}}','size' => '100%,210,,,,,auto','style' => '','modified' => '1265901708',); |
|
35 | +$templ_data[] = array('name' => 'calendar.edit.history', '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:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:10:"historylog";s:4:"name";s:7:"history";s:4:"size";s:14:"history_status";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:17:"100%,210,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"210";i:6;s:4:"auto";}}}', 'size' => '100%,210,,,,,auto', 'style' => '', 'modified' => '1265901708',); |
|
36 | 36 | |
37 | -$templ_data[] = array('name' => 'calendar.edit.links','template' => '','lang' => '','group' => '0','version' => '1.0.1.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:7:{s:1:"A";s:2:"95";s:2:"c1";s:2:"th";s:2:"h1";s:6:",@view";s:2:"c2";s:3:"row";s:2:"h2";s:6:",@view";s:2:"c3";s:2:"th";s:2:"c4";s:11:"row_off,top";}i:1;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"type";s:5:"label";s:5:"label";s:16:"Create new links";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"name";s:7:"link_to";s:4:"type";s:7:"link-to";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"type";s:5:"label";s:5:"label";s:14:"Existing links";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:4;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"name";s:7:"link_to";s:4:"type";s:9:"link-list";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:2;s:4:"rows";i:4;s:4:"size";s:17:"100%,210,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"210";i:6;s:4:"auto";}}}','size' => '100%,210,,,,,auto','style' => '','modified' => '1231922193',); |
|
37 | +$templ_data[] = array('name' => 'calendar.edit.links', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.0.1.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:7:{s:1:"A";s:2:"95";s:2:"c1";s:2:"th";s:2:"h1";s:6:",@view";s:2:"c2";s:3:"row";s:2:"h2";s:6:",@view";s:2:"c3";s:2:"th";s:2:"c4";s:11:"row_off,top";}i:1;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"type";s:5:"label";s:5:"label";s:16:"Create new links";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"name";s:7:"link_to";s:4:"type";s:7:"link-to";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"type";s:5:"label";s:5:"label";s:14:"Existing links";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:4;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"name";s:7:"link_to";s:4:"type";s:9:"link-list";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:2;s:4:"rows";i:4;s:4:"size";s:17:"100%,210,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"210";i:6;s:4:"auto";}}}', 'size' => '100%,210,,,,,auto', 'style' => '', 'modified' => '1231922193',); |
|
38 | 38 | |
39 | -$templ_data[] = array('name' => 'calendar.edit.participants','template' => '','lang' => '','group' => '0','version' => '1.7.001','data' => 'a:1:{i:0;a:7:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:6:{s:1:"A";s:2:"95";s:2:"c3";s:4:",top";s:2:"c1";s:3:"row";s:2:"c2";s:2:"th";s:2:"h1";s:8:",@no_add";s:1:"D";s:2:"70";}i:1;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"New";}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:14:"select-account";s:4:"size";s:27:"User or group,calendar+,,10";s:4:"name";s:7:"account";s:4:"help";s:13:"User or group";}i:2;a:3:{s:4:"type";s:10:"link-entry";s:4:"name";s:8:"resource";s:4:"size";s:14:"@cal_resources";}}s:1:"C";a:4:{s:4:"type";s:3:"int";s:4:"size";s:4:"1,,3";s:4:"name";s:8:"quantity";s:5:"align";s:6:"center";}s:1:"D";a:3:{s:4:"type";s:6:"select";s:4:"name";s:4:"role";s:4:"span";s:11:",selectRole";}s:1:"E";a:4:{s:4:"type";s:6:"button";s:5:"label";s:3:"Add";s:4:"name";s:3:"add";s:5:"align";s:6:"center";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:2;a:6:{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:5:"label";s:12:"Participants";}s:1:"C";a:3:{s:4:"type";s:5:"label";s:5:"label";s:8:"Quantity";s:5:"align";s:6:"center";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Role";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Status";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Actions";}}i:3;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:11:"${row}[app]";}s:1:"B";a:6:{s:4:"type";s:5:"label";s:4:"data";a:2:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:6:"${row}";s:8:"readonly";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:26:"accounts_status[$row_cont]";s:8:"onchange";s:1:"1";s:4:"help";s:30:"Accept or reject an invitation";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"name";s:13:"${row}[title]";s:7:"no_lang";s:1:"1";}s:1:"C";a:5:{s:4:"type";s:3:"int";s:4:"name";s:16:"${row}[quantity]";s:4:"size";s:4:"1,,3";s:8:"readonly";s:1:"1";s:5:"align";s:6:"center";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:4:"name";s:18:"${row}[role_label]";}s:1:"E";a:3:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[status]";s:8:"onchange";i:1;}s:1:"F";a:9:{s:4:"type";s:6:"button";s:4:"data";a:2:{i:0;a:1:{s:2:"h1";s:19:",!@resources_status";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:16:"resources_select";s:4:"name";s:6:"${row}";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:27:"resources_status[$row_cont]";s:8:"onchange";s:1:"1";s:4:"help";s:30:"Accept or reject an invitation";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"name";s:28:"delete[$row_cont[delete_id]]";s:5:"align";s:6:"center";s:5:"label";s:6:"Delete";s:8:"onchange";i:1;s:4:"size";s:6:"delete";}}}s:4:"rows";i:3;s:4:"cols";i:6;s:4:"size";s:17:"100%,210,,,,,auto";s:4:"name";s:12:"participants";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"210";i:6;s:4:"auto";}}}','size' => '100%,210,,,,,auto','style' => '.selectRole select { width: 100%; }','modified' => '1248274661',); |
|
39 | +$templ_data[] = array('name' => 'calendar.edit.participants', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.7.001', 'data' => 'a:1:{i:0;a:7:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:6:{s:1:"A";s:2:"95";s:2:"c3";s:4:",top";s:2:"c1";s:3:"row";s:2:"c2";s:2:"th";s:2:"h1";s:8:",@no_add";s:1:"D";s:2:"70";}i:1;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"New";}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:14:"select-account";s:4:"size";s:27:"User or group,calendar+,,10";s:4:"name";s:7:"account";s:4:"help";s:13:"User or group";}i:2;a:3:{s:4:"type";s:10:"link-entry";s:4:"name";s:8:"resource";s:4:"size";s:14:"@cal_resources";}}s:1:"C";a:4:{s:4:"type";s:3:"int";s:4:"size";s:4:"1,,3";s:4:"name";s:8:"quantity";s:5:"align";s:6:"center";}s:1:"D";a:3:{s:4:"type";s:6:"select";s:4:"name";s:4:"role";s:4:"span";s:11:",selectRole";}s:1:"E";a:4:{s:4:"type";s:6:"button";s:5:"label";s:3:"Add";s:4:"name";s:3:"add";s:5:"align";s:6:"center";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:2;a:6:{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:5:"label";s:12:"Participants";}s:1:"C";a:3:{s:4:"type";s:5:"label";s:5:"label";s:8:"Quantity";s:5:"align";s:6:"center";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Role";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Status";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Actions";}}i:3;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:11:"${row}[app]";}s:1:"B";a:6:{s:4:"type";s:5:"label";s:4:"data";a:2:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:6:"${row}";s:8:"readonly";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:26:"accounts_status[$row_cont]";s:8:"onchange";s:1:"1";s:4:"help";s:30:"Accept or reject an invitation";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"name";s:13:"${row}[title]";s:7:"no_lang";s:1:"1";}s:1:"C";a:5:{s:4:"type";s:3:"int";s:4:"name";s:16:"${row}[quantity]";s:4:"size";s:4:"1,,3";s:8:"readonly";s:1:"1";s:5:"align";s:6:"center";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:4:"name";s:18:"${row}[role_label]";}s:1:"E";a:3:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[status]";s:8:"onchange";i:1;}s:1:"F";a:9:{s:4:"type";s:6:"button";s:4:"data";a:2:{i:0;a:1:{s:2:"h1";s:19:",!@resources_status";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:16:"resources_select";s:4:"name";s:6:"${row}";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:27:"resources_status[$row_cont]";s:8:"onchange";s:1:"1";s:4:"help";s:30:"Accept or reject an invitation";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"name";s:28:"delete[$row_cont[delete_id]]";s:5:"align";s:6:"center";s:5:"label";s:6:"Delete";s:8:"onchange";i:1;s:4:"size";s:6:"delete";}}}s:4:"rows";i:3;s:4:"cols";i:6;s:4:"size";s:17:"100%,210,,,,,auto";s:4:"name";s:12:"participants";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"210";i:6;s:4:"auto";}}}', 'size' => '100%,210,,,,,auto', 'style' => '.selectRole select { width: 100%; }', 'modified' => '1248274661',); |
|
40 | 40 | |
41 | -$templ_data[] = array('name' => 'calendar.edit.print','template' => '','lang' => '','group' => '0','version' => '1.6.001','data' => 'a:1:{i:0;a:7:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:6:{s:1:"A";s:2:"95";s:2:"c3";s:4:",top";s:2:"c1";s:3:"row";s:2:"c2";s:2:"th";s:2:"h1";s:8:",@no_add";s:1:"D";s:24:",@hide_status_recurrence";}i:1;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"New";}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:14:"select-account";s:4:"size";s:27:"User or group,calendar+,,10";s:4:"name";s:7:"account";s:4:"help";s:13:"User or group";}i:2;a:3:{s:4:"type";s:10:"link-entry";s:4:"name";s:8:"resource";s:4:"size";s:14:"@cal_resources";}}s:1:"C";a:3:{s:4:"type";s:3:"int";s:4:"size";s:4:"1,,3";s:4:"name";s:8:"quantity";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:3:{s:4:"type";s:6:"button";s:5:"label";s:3:"Add";s:4:"name";s:3:"add";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:2;a:6:{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:5:"label";s:12:"Participants";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Quantity";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"All future";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Status";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Actions";}}i:3;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:11:"${row}[app]";}s:1:"B";a:6:{s:4:"type";s:5:"label";s:4:"data";a:2:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:6:"${row}";s:8:"readonly";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:26:"accounts_status[$row_cont]";s:8:"onchange";s:1:"1";s:4:"help";s:30:"Accept or reject an invitation";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"name";s:13:"${row}[title]";s:7:"no_lang";s:1:"1";}s:1:"C";a:3:{s:4:"type";s:3:"int";s:4:"name";s:16:"${row}[quantity]";s:4:"size";s:4:"1,,3";}s:1:"D";a:3:{s:4:"type";s:8:"checkbox";s:4:"name";s:25:"${row}[status_recurrence]";s:5:"align";s:6:"center";}s:1:"E";a:4:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[status]";s:7:"no_lang";s:1:"1";s:8:"onchange";i:1;}s:1:"F";a:9:{s:4:"type";s:6:"button";s:4:"data";a:2:{i:0;a:1:{s:2:"h1";s:19:",!@resources_status";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:16:"resources_select";s:4:"name";s:6:"${row}";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:27:"resources_status[$row_cont]";s:8:"onchange";s:1:"1";s:4:"help";s:30:"Accept or reject an invitation";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"name";s:22:"delete[$row_cont[uid]]";s:5:"align";s:6:"center";s:5:"label";s:6:"Delete";s:8:"onchange";i:1;s:4:"size";s:6:"delete";}}}s:4:"rows";i:3;s:4:"cols";i:6;s:4:"size";s:17:"100%,200,,,,,auto";s:4:"name";s:12:"participants";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"200";i:6;s:4:"auto";}}}','size' => '100%,200,,,,,auto','style' => '','modified' => '1229280346',); |
|
41 | +$templ_data[] = array('name' => 'calendar.edit.print', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.6.001', 'data' => 'a:1:{i:0;a:7:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:6:{s:1:"A";s:2:"95";s:2:"c3";s:4:",top";s:2:"c1";s:3:"row";s:2:"c2";s:2:"th";s:2:"h1";s:8:",@no_add";s:1:"D";s:24:",@hide_status_recurrence";}i:1;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"New";}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:14:"select-account";s:4:"size";s:27:"User or group,calendar+,,10";s:4:"name";s:7:"account";s:4:"help";s:13:"User or group";}i:2;a:3:{s:4:"type";s:10:"link-entry";s:4:"name";s:8:"resource";s:4:"size";s:14:"@cal_resources";}}s:1:"C";a:3:{s:4:"type";s:3:"int";s:4:"size";s:4:"1,,3";s:4:"name";s:8:"quantity";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:3:{s:4:"type";s:6:"button";s:5:"label";s:3:"Add";s:4:"name";s:3:"add";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:2;a:6:{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:5:"label";s:12:"Participants";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Quantity";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"All future";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Status";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Actions";}}i:3;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:11:"${row}[app]";}s:1:"B";a:6:{s:4:"type";s:5:"label";s:4:"data";a:2:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:6:"${row}";s:8:"readonly";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:26:"accounts_status[$row_cont]";s:8:"onchange";s:1:"1";s:4:"help";s:30:"Accept or reject an invitation";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"name";s:13:"${row}[title]";s:7:"no_lang";s:1:"1";}s:1:"C";a:3:{s:4:"type";s:3:"int";s:4:"name";s:16:"${row}[quantity]";s:4:"size";s:4:"1,,3";}s:1:"D";a:3:{s:4:"type";s:8:"checkbox";s:4:"name";s:25:"${row}[status_recurrence]";s:5:"align";s:6:"center";}s:1:"E";a:4:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[status]";s:7:"no_lang";s:1:"1";s:8:"onchange";i:1;}s:1:"F";a:9:{s:4:"type";s:6:"button";s:4:"data";a:2:{i:0;a:1:{s:2:"h1";s:19:",!@resources_status";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:16:"resources_select";s:4:"name";s:6:"${row}";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:27:"resources_status[$row_cont]";s:8:"onchange";s:1:"1";s:4:"help";s:30:"Accept or reject an invitation";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"name";s:22:"delete[$row_cont[uid]]";s:5:"align";s:6:"center";s:5:"label";s:6:"Delete";s:8:"onchange";i:1;s:4:"size";s:6:"delete";}}}s:4:"rows";i:3;s:4:"cols";i:6;s:4:"size";s:17:"100%,200,,,,,auto";s:4:"name";s:12:"participants";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"200";i:6;s:4:"auto";}}}', 'size' => '100%,200,,,,,auto', 'style' => '', 'modified' => '1229280346',); |
|
42 | 42 | |
43 | -$templ_data[] = array('name' => 'calendar.edit.recurrence','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:11:{s:1:"A";s:2:"95";s:1:"D";s:3:"50%";s:2:"c1";s:3:"row";s:2:"h1";s:12:",!@reference";s:2:"c2";s:2:"th";s:2:"h2";s:2:"12";s:2:"c3";s:3:"row";s:2:"h3";s:2:"12";s:2:"c4";s:3:"row";s:2:"h4";s:2:"12";s:2:"c5";s:7:"row,top";}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Exception";}s:1:"B";a:4:{s:8:"readonly";s:4:"true";s:4:"name";s:10:"recurrence";s:4:"type";s:9:"date-time";s:4:"span";s:5:",gray";}s:1:"C";a:3:{s:4:"name";s:9:"reference";s:4:"type";s:5:"label";s:4:"span";s:5:",gray";}s:1:"D";a:3:{s:4:"name";s:3:"uid";s:4:"type";s:5:"label";s:4:"span";s:5:",gray";}}i:2;a:4:{s:1:"A";a:3:{s:4:"span";s:8:"all,gray";s:4:"type";s:5:"label";s:5:"label";s:27:"Repeating Event Information";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:3;a:4:{s:1:"A";a:3:{s:4:"size";s:13:",,,recur_type";s:4:"type";s:5:"label";s:5:"label";s:11:"Repeat type";}s:1:"B";a:3:{s:8:"onchange";s:34:"check_recur_type(\'recur_type\', 2);";s:4:"name";s:10:"recur_type";s:4:"type";s:6:"select";}s:1:"C";a:3:{s:4:"size";s:17:",,,recur_interval";s:4:"type";s:5:"label";s:5:"label";s:8:"Interval";}s:1:"D";a:4:{s:4:"type";s:13:"select-number";s:4:"name";s:14:"recur_interval";s:4:"size";s:9:"None,2,31";s:4:"help";s:53:"repeating interval, eg. 2 to repeat every second week";}}i:4;a:4:{s:1:"A";a:3:{s:4:"size";s:16:",,,recur_enddate";s:4:"type";s:5:"label";s:5:"label";s:8:"End date";}s:1:"B";a:4:{s:4:"name";s:13:"recur_enddate";s:4:"type";s:4:"date";s:4:"help";s:57:"repeat the event until which date (empty means unlimited)";s:7:"onclick";s:136:"if(window.calendar.params.inputField.value == \'\') window.calendar.parseDate(document.getElementById(form::name(\'start\')+\'[str]\').value);";}s:1:"C";a:3:{s:4:"size";s:7:",,,tzid";s:4:"type";s:5:"label";s:5:"label";s:8:"Timezone";}s:1:"D";a:3:{s:4:"type";s:15:"select-timezone";s:4:"name";s:4:"tzid";s:4:"help";s:49:"Timezone in which recurrences have identical time";}}i:5;a:4:{s:1:"A";a:3:{s:4:"size";s:13:",,,recur_data";s:4:"type";s:5:"label";s:5:"label";s:11:"Repeat days";}s:1:"B";a:4:{s:4:"type";s:10:"select-dow";s:4:"name";s:10:"recur_data";s:4:"size";s:3:"6,1";s:4:"help";s:44:"Days of the week for a weekly repeated event";}s:1:"C";a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"vbox";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Exceptions";}i:2;a:5:{s:5:"label";s:16:"@exception_label";s:7:"no_lang";s:1:"1";s:4:"name";s:17:"button[exception]";s:4:"type";s:6:"button";s:4:"help";s:38:"Create an exception for the given date";}}s:1:"D";a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:8:"readonly";s:4:"true";s:4:"name";s:4:"$row";s:4:"type";s:9:"date-time";}s:1:"B";a:6:{s:5:"label";s:6:"Delete";s:7:"onclick";s:40:"return confirm(\'Delete this exception\');";s:4:"name";s:27:"delete_exception[$row_cont]";s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:4:"help";s:21:"Delete this exception";}}}s:4:"cols";i:2;s:4:"rows";i:1;s:4:"name";s:15:"recur_exception";s:7:"options";a:0:{}}}}s:4:"cols";i:4;s:4:"rows";i:5;s:4:"size";s:8:"100%,210";}}','size' => '100%,210','style' => '','modified' => '1350420142',); |
|
43 | +$templ_data[] = array('name' => 'calendar.edit.recurrence', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:11:{s:1:"A";s:2:"95";s:1:"D";s:3:"50%";s:2:"c1";s:3:"row";s:2:"h1";s:12:",!@reference";s:2:"c2";s:2:"th";s:2:"h2";s:2:"12";s:2:"c3";s:3:"row";s:2:"h3";s:2:"12";s:2:"c4";s:3:"row";s:2:"h4";s:2:"12";s:2:"c5";s:7:"row,top";}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Exception";}s:1:"B";a:4:{s:8:"readonly";s:4:"true";s:4:"name";s:10:"recurrence";s:4:"type";s:9:"date-time";s:4:"span";s:5:",gray";}s:1:"C";a:3:{s:4:"name";s:9:"reference";s:4:"type";s:5:"label";s:4:"span";s:5:",gray";}s:1:"D";a:3:{s:4:"name";s:3:"uid";s:4:"type";s:5:"label";s:4:"span";s:5:",gray";}}i:2;a:4:{s:1:"A";a:3:{s:4:"span";s:8:"all,gray";s:4:"type";s:5:"label";s:5:"label";s:27:"Repeating Event Information";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:3;a:4:{s:1:"A";a:3:{s:4:"size";s:13:",,,recur_type";s:4:"type";s:5:"label";s:5:"label";s:11:"Repeat type";}s:1:"B";a:3:{s:8:"onchange";s:34:"check_recur_type(\'recur_type\', 2);";s:4:"name";s:10:"recur_type";s:4:"type";s:6:"select";}s:1:"C";a:3:{s:4:"size";s:17:",,,recur_interval";s:4:"type";s:5:"label";s:5:"label";s:8:"Interval";}s:1:"D";a:4:{s:4:"type";s:13:"select-number";s:4:"name";s:14:"recur_interval";s:4:"size";s:9:"None,2,31";s:4:"help";s:53:"repeating interval, eg. 2 to repeat every second week";}}i:4;a:4:{s:1:"A";a:3:{s:4:"size";s:16:",,,recur_enddate";s:4:"type";s:5:"label";s:5:"label";s:8:"End date";}s:1:"B";a:4:{s:4:"name";s:13:"recur_enddate";s:4:"type";s:4:"date";s:4:"help";s:57:"repeat the event until which date (empty means unlimited)";s:7:"onclick";s:136:"if(window.calendar.params.inputField.value == \'\') window.calendar.parseDate(document.getElementById(form::name(\'start\')+\'[str]\').value);";}s:1:"C";a:3:{s:4:"size";s:7:",,,tzid";s:4:"type";s:5:"label";s:5:"label";s:8:"Timezone";}s:1:"D";a:3:{s:4:"type";s:15:"select-timezone";s:4:"name";s:4:"tzid";s:4:"help";s:49:"Timezone in which recurrences have identical time";}}i:5;a:4:{s:1:"A";a:3:{s:4:"size";s:13:",,,recur_data";s:4:"type";s:5:"label";s:5:"label";s:11:"Repeat days";}s:1:"B";a:4:{s:4:"type";s:10:"select-dow";s:4:"name";s:10:"recur_data";s:4:"size";s:3:"6,1";s:4:"help";s:44:"Days of the week for a weekly repeated event";}s:1:"C";a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"vbox";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Exceptions";}i:2;a:5:{s:5:"label";s:16:"@exception_label";s:7:"no_lang";s:1:"1";s:4:"name";s:17:"button[exception]";s:4:"type";s:6:"button";s:4:"help";s:38:"Create an exception for the given date";}}s:1:"D";a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:8:"readonly";s:4:"true";s:4:"name";s:4:"$row";s:4:"type";s:9:"date-time";}s:1:"B";a:6:{s:5:"label";s:6:"Delete";s:7:"onclick";s:40:"return confirm(\'Delete this exception\');";s:4:"name";s:27:"delete_exception[$row_cont]";s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:4:"help";s:21:"Delete this exception";}}}s:4:"cols";i:2;s:4:"rows";i:1;s:4:"name";s:15:"recur_exception";s:7:"options";a:0:{}}}}s:4:"cols";i:4;s:4:"rows";i:5;s:4:"size";s:8:"100%,210";}}', 'size' => '100%,210', 'style' => '', 'modified' => '1350420142',); |
|
44 | 44 | |
45 | -$templ_data[] = array('name' => 'calendar.edit_series','template' => '','lang' => '','group' => '0','version' => '1.7.003','data' => 'a:1:{i:0;a:8:{s:4:"type";s:4:"vbox";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"1";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:30:"This event is part of a series";}s:4:"name";s:13:"dialogHeader";s:4:"span";s:13:",promptheader";}i:2;a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:67:"Do you want to edit this event as an exception or the whole series?";}s:4:"span";s:7:",prompt";s:4:"name";s:14:"dialog-content";i:2;a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:10:"buttononly";s:5:"label";s:14:"Edit exception";s:7:"onclick";s:17:"open_edit(false);";}i:2;a:3:{s:4:"type";s:10:"buttononly";s:5:"label";s:11:"Edit series";s:7:"onclick";s:16:"open_edit(true);";}i:3;a:3:{s:4:"type";s:10:"buttononly";s:5:"label";s:6:"Cancel";s:7:"onclick";s:62:"document.getElementById(\'edit_series\').style.display = \'none\';";}s:5:"align";s:6:"center";}}s:4:"name";s:11:"edit_series";}}','size' => '','style' => '','modified' => '1272449924',); |
|
45 | +$templ_data[] = array('name' => 'calendar.edit_series', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.7.003', 'data' => 'a:1:{i:0;a:8:{s:4:"type";s:4:"vbox";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"1";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:30:"This event is part of a series";}s:4:"name";s:13:"dialogHeader";s:4:"span";s:13:",promptheader";}i:2;a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:67:"Do you want to edit this event as an exception or the whole series?";}s:4:"span";s:7:",prompt";s:4:"name";s:14:"dialog-content";i:2;a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:10:"buttononly";s:5:"label";s:14:"Edit exception";s:7:"onclick";s:17:"open_edit(false);";}i:2;a:3:{s:4:"type";s:10:"buttononly";s:5:"label";s:11:"Edit series";s:7:"onclick";s:16:"open_edit(true);";}i:3;a:3:{s:4:"type";s:10:"buttononly";s:5:"label";s:6:"Cancel";s:7:"onclick";s:62:"document.getElementById(\'edit_series\').style.display = \'none\';";}s:5:"align";s:6:"center";}}s:4:"name";s:11:"edit_series";}}', 'size' => '', 'style' => '', 'modified' => '1272449924',); |
|
46 | 46 | |
47 | -$templ_data[] = array('name' => 'calendar.export','template' => '','lang' => '','group' => '0','version' => '1.0.1.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:8:{i:0;a:2:{s:2:"h5";s:2:",1";s:2:"h1";s:6:",!@msg";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:11:"all,message";s:4:"name";s:3:"msg";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:8:",,,start";s:5:"label";s:5:"Start";}s:1:"B";a:3:{s:4:"type";s:4:"date";s:4:"name";s:5:"start";s:4:"help";s:23:"Startdate of the export";}}i:3;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:6:",,,end";s:5:"label";s:3:"End";}s:1:"B";a:3:{s:4:"type";s:4:"date";s:4:"name";s:3:"end";s:4:"help";s:21:"Enddate of the export";}}i:4;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:7:",,,file";s:5:"label";s:8:"Filename";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"name";s:4:"file";s:4:"help";s:24:"Filename of the download";}}i:5;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:10:",,,version";s:5:"label";s:7:"Version";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:7:"version";}}i:6;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:8:"Download";s:4:"name";s:8:"download";}}i:7;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:7;s:4:"cols";i:2;s:5:"align";s:6:"center";s:7:"options";a:0:{}}}','size' => '','style' => '','modified' => '1130738737',); |
|
47 | +$templ_data[] = array('name' => 'calendar.export', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.0.1.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:8:{i:0;a:2:{s:2:"h5";s:2:",1";s:2:"h1";s:6:",!@msg";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:11:"all,message";s:4:"name";s:3:"msg";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:8:",,,start";s:5:"label";s:5:"Start";}s:1:"B";a:3:{s:4:"type";s:4:"date";s:4:"name";s:5:"start";s:4:"help";s:23:"Startdate of the export";}}i:3;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:6:",,,end";s:5:"label";s:3:"End";}s:1:"B";a:3:{s:4:"type";s:4:"date";s:4:"name";s:3:"end";s:4:"help";s:21:"Enddate of the export";}}i:4;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:7:",,,file";s:5:"label";s:8:"Filename";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"name";s:4:"file";s:4:"help";s:24:"Filename of the download";}}i:5;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:10:",,,version";s:5:"label";s:7:"Version";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:7:"version";}}i:6;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:8:"Download";s:4:"name";s:8:"download";}}i:7;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:7;s:4:"cols";i:2;s:5:"align";s:6:"center";s:7:"options";a:0:{}}}', 'size' => '', 'style' => '', 'modified' => '1130738737',); |
|
48 | 48 | |
49 | -$templ_data[] = array('name' => 'calendar.export_csv_select','template' => '','lang' => '','group' => '0','version' => '1.9.003','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:2:{s:2:"h1";s:6:",!@msg";s:1:"A";s:3:"150";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:11:"all,message";s:4:"name";s:3:"msg";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:5:{s:4:"type";s:5:"radio";s:4:"size";s:14:"search_results";s:4:"span";s:3:"all";s:5:"label";s:18:"Use search results";s:4:"name";s:9:"selection";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:6:{s:4:"type";s:5:"radio";s:4:"size";s:6:"filter";s:4:"span";s:3:"all";s:5:"label";s:21:"Use definition filter";s:4:"name";s:9:"selection";s:7:"onclick";s:50:"\\$j(\'div.filters\').show();\\$j(\'.criteria\').hide();";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:4;a:2:{s:1:"A";a:6:{s:4:"type";s:5:"radio";s:4:"size";s:8:"criteria";s:4:"span";s:3:"all";s:5:"label";s:19:"Use given criteria:";s:4:"name";s:9:"selection";s:8:"onchange";s:50:"\\$j(\'.criteria\').show();\\$j(\'div.filters\').hide();";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:5;a:2:{s:1:"A";a:8:{s:4:"type";s:4:"grid";s:4:"name";s:8:"criteria";s:4:"data";a:4:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"size";s:1:"1";s:5:"label";s:5:"Start";i:1;a:1:{s:4:"type";s:3:"box";}}s:1:"B";a:3:{s:4:"type";s:4:"date";s:4:"name";s:5:"start";s:4:"help";s:23:"Startdate of the export";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"End";}s:1:"B";a:3:{s:4:"type";s:4:"date";s:4:"name";s:3:"end";s:4:"help";s:21:"Enddate of the export";}}i:3;a:2:{s:1:"A";a:4:{s:4:"type";s:14:"select-account";s:4:"span";s:9:"2,shorter";s:4:"name";s:5:"owner";s:4:"size";s:6:"5,both";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:3;s:4:"cols";i:2;s:4:"span";s:3:"all";s:4:"size";s:11:",,,criteria";s:7:"options";a:1:{i:3;s:8:"criteria";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:6;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:6;s:4:"cols";i:2;s:5:"align";s:6:"center";s:7:"options";a:0:{}}}','size' => '','style' => '.shorter select { |
|
49 | +$templ_data[] = array('name' => 'calendar.export_csv_select', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.003', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:2:{s:2:"h1";s:6:",!@msg";s:1:"A";s:3:"150";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:11:"all,message";s:4:"name";s:3:"msg";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:5:{s:4:"type";s:5:"radio";s:4:"size";s:14:"search_results";s:4:"span";s:3:"all";s:5:"label";s:18:"Use search results";s:4:"name";s:9:"selection";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:6:{s:4:"type";s:5:"radio";s:4:"size";s:6:"filter";s:4:"span";s:3:"all";s:5:"label";s:21:"Use definition filter";s:4:"name";s:9:"selection";s:7:"onclick";s:50:"\\$j(\'div.filters\').show();\\$j(\'.criteria\').hide();";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:4;a:2:{s:1:"A";a:6:{s:4:"type";s:5:"radio";s:4:"size";s:8:"criteria";s:4:"span";s:3:"all";s:5:"label";s:19:"Use given criteria:";s:4:"name";s:9:"selection";s:8:"onchange";s:50:"\\$j(\'.criteria\').show();\\$j(\'div.filters\').hide();";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:5;a:2:{s:1:"A";a:8:{s:4:"type";s:4:"grid";s:4:"name";s:8:"criteria";s:4:"data";a:4:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"size";s:1:"1";s:5:"label";s:5:"Start";i:1;a:1:{s:4:"type";s:3:"box";}}s:1:"B";a:3:{s:4:"type";s:4:"date";s:4:"name";s:5:"start";s:4:"help";s:23:"Startdate of the export";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"End";}s:1:"B";a:3:{s:4:"type";s:4:"date";s:4:"name";s:3:"end";s:4:"help";s:21:"Enddate of the export";}}i:3;a:2:{s:1:"A";a:4:{s:4:"type";s:14:"select-account";s:4:"span";s:9:"2,shorter";s:4:"name";s:5:"owner";s:4:"size";s:6:"5,both";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:3;s:4:"cols";i:2;s:4:"span";s:3:"all";s:4:"size";s:11:",,,criteria";s:7:"options";a:1:{i:3;s:8:"criteria";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:6;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:6;s:4:"cols";i:2;s:5:"align";s:6:"center";s:7:"options";a:0:{}}}', 'size' => '', 'style' => '.shorter select { |
|
50 | 50 | width: 170px; |
51 | 51 | }','modified' => '1358792945',); |
52 | 52 | |
53 | -$templ_data[] = array('name' => 'calendar.freetimesearch','template' => '','lang' => '','group' => '0','version' => '1.3.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:9:",calendar_size120b";s:5:"label";s:15:"Freetime Search";}s:1:"B";a:4:{s:4:"type";s:5:"label";s:4:"span";s:10:",message";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:17:"Startdate / -time";}s:1:"B";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:5:"start";s:4:"help";s:33:"Startdate and -time of the search";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Duration";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:6:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:8:"duration";s:4:"help";s:23:"Duration of the meeting";s:8:"onchange";s:92:"set_style_by_class(\'table\',\'end_hide\',\'visibility\',this.value == \'\' ? \'visible\' : \'hidden\');";s:4:"size";s:12:"Use end date";}i:2;a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:3:"end";s:4:"help";s:57:"Enddate / -time of the meeting, eg. for more then one day";s:4:"span";s:9:",end_hide";}}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Timeframe";}s:1:"B";a:7:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"5";i:1;a:3:{s:4:"type";s:13:"date-houronly";s:4:"name";s:10:"start_time";s:4:"help";s:19:"Timeframe to search";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"til";}i:3;a:3:{s:4:"type";s:13:"date-houronly";s:4:"name";s:8:"end_time";s:4:"help";s:19:"Timeframe to search";}i:4;a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Weekdays";}i:5;a:4:{s:4:"type";s:10:"select-dow";s:4:"size";s:1:"3";s:4:"name";s:8:"weekdays";s:4:"help";s:25:"Weekdays to use in search";}}}i:5;a:2:{s:1:"A";a:4:{s:4:"type";s:6:"button";s:5:"label";s:10:"New search";s:4:"name";s:6:"search";s:4:"help";s:36:"new search with the above parameters";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"search_window";s:4:"help";s:34:"how far to search (from startdate)";}i:2;a:5:{s:4:"type";s:6:"button";s:4:"name";s:6:"cancel";s:5:"label";s:6:"Cancel";s:4:"help";s:16:"Close the window";s:7:"onclick";s:15:"window.close();";}}}i:6;a:2:{s:1:"A";a:4:{s:4:"type";s:8:"template";s:4:"size";s:8:"freetime";s:4:"span";s:3:"all";s:4:"name";s:4:"rows";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:6;s:4:"cols";i:2;}}','size' => '','style' => '.calendar_size120b { text-size: 120%; font-weight: bold; } |
|
53 | +$templ_data[] = array('name' => 'calendar.freetimesearch', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.3.001', 'data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:9:",calendar_size120b";s:5:"label";s:15:"Freetime Search";}s:1:"B";a:4:{s:4:"type";s:5:"label";s:4:"span";s:10:",message";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:17:"Startdate / -time";}s:1:"B";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:5:"start";s:4:"help";s:33:"Startdate and -time of the search";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Duration";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:6:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:8:"duration";s:4:"help";s:23:"Duration of the meeting";s:8:"onchange";s:92:"set_style_by_class(\'table\',\'end_hide\',\'visibility\',this.value == \'\' ? \'visible\' : \'hidden\');";s:4:"size";s:12:"Use end date";}i:2;a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:3:"end";s:4:"help";s:57:"Enddate / -time of the meeting, eg. for more then one day";s:4:"span";s:9:",end_hide";}}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Timeframe";}s:1:"B";a:7:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"5";i:1;a:3:{s:4:"type";s:13:"date-houronly";s:4:"name";s:10:"start_time";s:4:"help";s:19:"Timeframe to search";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"til";}i:3;a:3:{s:4:"type";s:13:"date-houronly";s:4:"name";s:8:"end_time";s:4:"help";s:19:"Timeframe to search";}i:4;a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Weekdays";}i:5;a:4:{s:4:"type";s:10:"select-dow";s:4:"size";s:1:"3";s:4:"name";s:8:"weekdays";s:4:"help";s:25:"Weekdays to use in search";}}}i:5;a:2:{s:1:"A";a:4:{s:4:"type";s:6:"button";s:5:"label";s:10:"New search";s:4:"name";s:6:"search";s:4:"help";s:36:"new search with the above parameters";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"search_window";s:4:"help";s:34:"how far to search (from startdate)";}i:2;a:5:{s:4:"type";s:6:"button";s:4:"name";s:6:"cancel";s:5:"label";s:6:"Cancel";s:4:"help";s:16:"Close the window";s:7:"onclick";s:15:"window.close();";}}}i:6;a:2:{s:1:"A";a:4:{s:4:"type";s:8:"template";s:4:"size";s:8:"freetime";s:4:"span";s:3:"all";s:4:"name";s:4:"rows";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:6;s:4:"cols";i:2;}}', 'size' => '', 'style' => '.calendar_size120b { text-size: 120%; font-weight: bold; } |
|
54 | 54 | .message { color: red; font-style: italic; } |
55 | 55 | .end_hide { visibility: hidden; }','modified' => '1149297367',); |
56 | 56 | |
57 | -$templ_data[] = array('name' => 'calendar.freetimesearch.rows','template' => '','lang' => '','group' => '0','version' => '1.0.1.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{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:4:"Date";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Time";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Select";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Enddate";}}i:2;a:4:{s:1:"A";a:4:{s:4:"type";s:4:"date";s:4:"size";s:3:",16";s:4:"name";s:13:"${row}[start]";s:8:"readonly";s:1:"1";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[start]";s:4:"help";s:13:"select a time";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Select";s:4:"name";s:12:"select[$row]";s:4:"help";s:41:"use the selected time and close the popup";}s:1:"D";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:11:"${row}[end]";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:2;s:4:"cols";i:4;}}','size' => '','style' => '','modified' => '1097183756',); |
|
57 | +$templ_data[] = array('name' => 'calendar.freetimesearch.rows', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.0.1.001', 'data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{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:4:"Date";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Time";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Select";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Enddate";}}i:2;a:4:{s:1:"A";a:4:{s:4:"type";s:4:"date";s:4:"size";s:3:",16";s:4:"name";s:13:"${row}[start]";s:8:"readonly";s:1:"1";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[start]";s:4:"help";s:13:"select a time";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Select";s:4:"name";s:12:"select[$row]";s:4:"help";s:41:"use the selected time and close the popup";}s:1:"D";a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:11:"${row}[end]";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:2;s:4:"cols";i:4;}}', 'size' => '', 'style' => '', 'modified' => '1097183756',); |
|
58 | 58 | |
59 | -$templ_data[] = array('name' => 'calendar.import','template' => '','lang' => '','group' => '0','version' => '1.0.1.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:5:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,message";s:4:"name";s:3:"msg";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"iCal file";}s:1:"B";a:3:{s:4:"type";s:4:"file";s:4:"name";s:9:"ical_file";s:6:"needed";s:1:"1";}}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:"Import";s:4:"name";s:6:"import";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:4;s:4:"cols";i:2;s:5:"align";s:6:"center";s:7:"options";a:0:{}}}','size' => '','style' => '','modified' => '1131469789',); |
|
59 | +$templ_data[] = array('name' => 'calendar.import', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.0.1.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:5:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,message";s:4:"name";s:3:"msg";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"iCal file";}s:1:"B";a:3:{s:4:"type";s:4:"file";s:4:"name";s:9:"ical_file";s:6:"needed";s:1:"1";}}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:"Import";s:4:"name";s:6:"import";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:4;s:4:"cols";i:2;s:5:"align";s:6:"center";s:7:"options";a:0:{}}}', 'size' => '', 'style' => '', 'modified' => '1131469789',); |
|
60 | 60 | |
61 | -$templ_data[] = array('name' => 'calendar.list','template' => '','lang' => '','group' => '0','version' => '1.9.003','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:5:{s:2:"h2";s:6:",!@msg";s:2:"h1";s:6:",!@css";s:2:"c4";s:7:"noPrint";s:1:"B";s:3:"30%";s:2:"h4";s:34:",!@nm[selectcols]=/legacy_actions/";}i:1;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:4:"html";s:4:"span";s:3:"all";s:4:"name";s:3:"css";}}i:2;a:2:{s:1:"A";a:5:{s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"type";s:5:"label";s:4:"span";s:13:"all,message";}s:1:"B";a:5:{s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"type";s:5:"label";s:4:"span";s:10:",message";}}i:3;a:2:{s:1:"A";a:4:{s:4:"name";s:2:"nm";s:4:"size";s:18:"calendar.list.rows";s:4:"type";s:9:"nextmatch";s:4:"span";s:3:"all";}s:1:"B";a:3:{s:4:"name";s:2:"nm";s:4:"size";s:18:"calendar.list.rows";s:4:"type";s:9:"nextmatch";}}i:4;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:5:"label";s:13:"Select action";s:7:"onclick";s:183:"if (!egw_globalObjectManager.getObjectById(\'calendar.list.rows\').executeActionImplementation(this, \'popup\')) alert(egw::lang(\'You need to select some entries first!\')); return false;;";s:4:"name";s:14:"legacy_actions";s:4:"type";s:10:"buttononly";s:4:"help";s:13:"Select action";}i:2;a:8:{s:5:"label";s:9:"Check all";s:7:"onclick";s:94:"egw_globalObjectManager.getObjectById(\'calendar.list.rows\').toggleAllSelected(); return false;";s:6:"needed";s:1:"1";s:4:"name";s:9:"check_all";s:4:"type";s:6:"button";s:4:"size";s:9:"arrow_ltr";s:4:"help";s:9:"Check all";s:4:"span";s:14:",checkAllArrow";}s:5:"align";s:5:"right";}}i:5;a:2:{s:1:"A";a:6:{s:5:"class";s:12:"action_popup";s:4:"name";s:12:"delete_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:6:{s:5:"class";s:6:"prompt";s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"Delete";s:4:"span";s:13:",promptheader";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:77:"Do you want to delete this event as an exception, or delete the whole series?";}i:3;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:16:"Delete exception";s:7:"onclick";s:36:"nm_submit_popup(this); return false;";s:4:"name";s:6:"delete";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:13:"Delete series";s:7:"onclick";s:74:"nm_popup_action.id = \'delete_series\'; nm_submit_popup(this); return false;";s:4:"name";s:13:"delete_series";s:4:"type";s:6:"button";}i:3;a:3:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:35:"nm_hide_popup(this,\'delete_popup\');";s:4:"type";s:10:"buttononly";}}}s:4:"span";s:20:",action_popup prompt";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:6;a:2:{s:1:"A";a:6:{s:5:"class";s:12:"action_popup";s:4:"name";s:14:"undelete_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:6:{s:5:"class";s:6:"prompt";s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:9:"Un-delete";s:4:"span";s:13:",promptheader";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:83:"Do you want to Un-delete this event as an exception, or un-delete the whole series?";}i:3;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:19:"Un-delete exception";s:7:"onclick";s:36:"nm_submit_popup(this); return false;";s:4:"name";s:8:"undelete";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:16:"Un-delete series";s:7:"onclick";s:76:"nm_popup_action.id = \'undelete_series\'; nm_submit_popup(this); return false;";s:4:"name";s:15:"undelete_series";s:4:"type";s:6:"button";}i:3;a:3:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:37:"nm_hide_popup(this,\'undelete_popup\');";s:4:"type";s:10:"buttononly";}}}s:4:"span";s:20:",action_popup prompt";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:2;s:4:"rows";i:6;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '.noWrap { white-space: nowrap; } |
|
61 | +$templ_data[] = array('name' => 'calendar.list', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.003', 'data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:5:{s:2:"h2";s:6:",!@msg";s:2:"h1";s:6:",!@css";s:2:"c4";s:7:"noPrint";s:1:"B";s:3:"30%";s:2:"h4";s:34:",!@nm[selectcols]=/legacy_actions/";}i:1;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:4:"html";s:4:"span";s:3:"all";s:4:"name";s:3:"css";}}i:2;a:2:{s:1:"A";a:5:{s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"type";s:5:"label";s:4:"span";s:13:"all,message";}s:1:"B";a:5:{s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"type";s:5:"label";s:4:"span";s:10:",message";}}i:3;a:2:{s:1:"A";a:4:{s:4:"name";s:2:"nm";s:4:"size";s:18:"calendar.list.rows";s:4:"type";s:9:"nextmatch";s:4:"span";s:3:"all";}s:1:"B";a:3:{s:4:"name";s:2:"nm";s:4:"size";s:18:"calendar.list.rows";s:4:"type";s:9:"nextmatch";}}i:4;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:5:"label";s:13:"Select action";s:7:"onclick";s:183:"if (!egw_globalObjectManager.getObjectById(\'calendar.list.rows\').executeActionImplementation(this, \'popup\')) alert(egw::lang(\'You need to select some entries first!\')); return false;;";s:4:"name";s:14:"legacy_actions";s:4:"type";s:10:"buttononly";s:4:"help";s:13:"Select action";}i:2;a:8:{s:5:"label";s:9:"Check all";s:7:"onclick";s:94:"egw_globalObjectManager.getObjectById(\'calendar.list.rows\').toggleAllSelected(); return false;";s:6:"needed";s:1:"1";s:4:"name";s:9:"check_all";s:4:"type";s:6:"button";s:4:"size";s:9:"arrow_ltr";s:4:"help";s:9:"Check all";s:4:"span";s:14:",checkAllArrow";}s:5:"align";s:5:"right";}}i:5;a:2:{s:1:"A";a:6:{s:5:"class";s:12:"action_popup";s:4:"name";s:12:"delete_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:6:{s:5:"class";s:6:"prompt";s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"Delete";s:4:"span";s:13:",promptheader";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:77:"Do you want to delete this event as an exception, or delete the whole series?";}i:3;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:16:"Delete exception";s:7:"onclick";s:36:"nm_submit_popup(this); return false;";s:4:"name";s:6:"delete";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:13:"Delete series";s:7:"onclick";s:74:"nm_popup_action.id = \'delete_series\'; nm_submit_popup(this); return false;";s:4:"name";s:13:"delete_series";s:4:"type";s:6:"button";}i:3;a:3:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:35:"nm_hide_popup(this,\'delete_popup\');";s:4:"type";s:10:"buttononly";}}}s:4:"span";s:20:",action_popup prompt";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:6;a:2:{s:1:"A";a:6:{s:5:"class";s:12:"action_popup";s:4:"name";s:14:"undelete_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:6:{s:5:"class";s:6:"prompt";s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:9:"Un-delete";s:4:"span";s:13:",promptheader";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:83:"Do you want to Un-delete this event as an exception, or un-delete the whole series?";}i:3;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:19:"Un-delete exception";s:7:"onclick";s:36:"nm_submit_popup(this); return false;";s:4:"name";s:8:"undelete";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:16:"Un-delete series";s:7:"onclick";s:76:"nm_popup_action.id = \'undelete_series\'; nm_submit_popup(this); return false;";s:4:"name";s:15:"undelete_series";s:4:"type";s:6:"button";}i:3;a:3:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:37:"nm_hide_popup(this,\'undelete_popup\');";s:4:"type";s:10:"buttononly";}}}s:4:"span";s:20:",action_popup prompt";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:2;s:4:"rows";i:6;s:4:"size";s:4:"100%";}}', 'size' => '100%', 'style' => '.noWrap { white-space: nowrap; } |
|
62 | 62 | |
63 | 63 | .image16 img { |
64 | 64 | height: 16px; |
@@ -72,11 +72,11 @@ discard block |
||
72 | 72 | display:none; |
73 | 73 | }','modified' => '1357766044',); |
74 | 74 | |
75 | -$templ_data[] = array('name' => 'calendar.list.dates','template' => '','lang' => '','group' => '0','version' => '1.3.001','data' => 'a:1:{i:0;a:10:{s:4:"type";s:4:"hbox";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:1:"4";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Start";}i:2;a:2:{s:4:"type";s:4:"date";s:4:"name";s:9:"startdate";}i:3;a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"End";}i:4;a:2:{s:4:"type";s:4:"date";s:4:"name";s:7:"enddate";}s:4:"span";s:12:",custom_hide";}}','size' => '','style' => '.custom_hide { visibility: hidden; }','modified' => '1173420675',); |
|
75 | +$templ_data[] = array('name' => 'calendar.list.dates', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.3.001', 'data' => 'a:1:{i:0;a:10:{s:4:"type";s:4:"hbox";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:1:"4";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Start";}i:2;a:2:{s:4:"type";s:4:"date";s:4:"name";s:9:"startdate";}i:3;a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"End";}i:4;a:2:{s:4:"type";s:4:"date";s:4:"name";s:7:"enddate";}s:4:"span";s:12:",custom_hide";}}', 'size' => '', 'style' => '.custom_hide { visibility: hidden; }', 'modified' => '1173420675',); |
|
76 | 76 | |
77 | -$templ_data[] = array('name' => 'calendar.list.rows','template' => '','lang' => '','group' => '0','version' => '1.9.004','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:3:{s:1:"B";s:3:"40%";s:2:"c1";s:2:"th";s:2:"c2";s:40:"$row_cont[category] $row_cont[class],top";}i:1;a:13:{s:1:"A";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:3:{s:5:"label";s:5:"Start";s:4:"name";s:9:"cal_start";s:4:"type";s:20:"nextmatch-sortheader";}i:2;a:3:{s:5:"label";s:3:"End";s:4:"name";s:7:"cal_end";s:4:"type";s:20:"nextmatch-sortheader";}}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:3:{s:5:"label";s:5:"Title";s:4:"name";s:9:"cal_title";s:4:"type";s:20:"nextmatch-sortheader";}i:2;a:3:{s:5:"label";s:11:"Description";s:4:"name";s:15:"cal_description";s:4:"type";s:20:"nextmatch-sortheader";}}s:1:"C";a:3:{s:5:"label";s:5:"Title";s:4:"name";s:9:"cal_title";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"D";a:3:{s:5:"label";s:11:"Description";s:4:"name";s:15:"cal_description";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"E";a:3:{s:5:"label";s:10:"Recurrence";s:4:"name";s:6:"recure";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"F";a:3:{s:5:"label";s:8:"Category";s:4:"name";s:6:"cat_id";s:4:"type";s:16:"nextmatch-header";}s:1:"G";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:4:{s:5:"label";s:5:"Owner";s:8:"readonly";s:4:"true";s:4:"name";s:9:"cal_owner";s:4:"type";s:20:"nextmatch-sortheader";}i:2;a:3:{s:5:"label";s:8:"Location";s:4:"name";s:12:"cal_location";s:4:"type";s:20:"nextmatch-sortheader";}}s:1:"H";a:4:{s:5:"label";s:5:"Owner";s:8:"readonly";s:4:"true";s:4:"name";s:9:"cal_owner";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"I";a:3:{s:5:"label";s:8:"Location";s:4:"name";s:12:"cal_location";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"J";a:4:{s:5:"label";s:12:"Participants";s:4:"name";s:11:"participant";s:4:"size";s:3:"All";s:4:"type";s:23:"nextmatch-accountfilter";}s:1:"K";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:7:"Created";s:4:"name";s:11:"cal_created";}i:2;a:4:{s:4:"type";s:16:"nextmatch-header";s:4:"name";s:11:"cal_creator";s:4:"size";s:7:"Creator";s:5:"label";s:7:"Creator";}i:3;a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Last changed";}}s:1:"L";a:4:{s:5:"label";s:13:"Custom fields";s:8:"readonly";s:4:"true";s:4:"name";s:3:"cfs";s:4:"type";s:22:"nextmatch-customfields";}s:1:"M";a:7:{s:5:"label";s:7:"Actions";s:5:"class";s:7:"noPrint";s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Actions";s:4:"help";s:9:"Check all";s:4:"span";s:8:",noPrint";s:4:"name";s:14:"legacy_actions";}i:2;a:8:{s:5:"label";s:9:"Check all";s:7:"onclick";s:94:"egw_globalObjectManager.getObjectById(\'calendar.list.rows\').toggleAllSelected(); return false;";s:6:"needed";s:1:"1";s:5:"align";s:5:"right";s:4:"name";s:9:"check_all";s:4:"type";s:6:"button";s:4:"size";s:5:"check";s:4:"help";s:9:"Check all";}s:4:"span";s:8:",noPrint";}}i:2;a:13:{s:1:"A";a:5:{s:4:"name";s:5:"start";s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:5:{s:8:"readonly";s:4:"true";s:4:"name";s:13:"${row}[start]";s:4:"size";s:14:",$cont[format]";s:4:"type";s:9:"date-time";s:4:"span";s:7:",noWrap";}i:2;a:5:{s:8:"readonly";s:4:"true";s:4:"name";s:11:"${row}[end]";s:4:"size";s:14:",$cont[format]";s:4:"type";s:9:"date-time";s:4:"span";s:7:",noWrap";}}s:1:"B";a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:6:{s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";s:4:"size";s:1:"2";s:4:"type";s:4:"hbox";i:1;a:5:{s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[title]";s:4:"size";s:1:"b";s:4:"type";s:5:"label";}i:2;a:5:{s:4:"type";s:5:"label";s:5:"label";s:3:"#%s";s:4:"name";s:10:"${row}[id]";s:4:"size";s:1:"b";s:5:"align";s:5:"right";}}i:2;a:5:{s:7:"no_lang";s:1:"1";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:19:"${row}[description]";s:4:"type";s:5:"label";}s:4:"span";s:16:",listDescription";}i:3;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:14:"${row}[recure]";s:4:"type";s:5:"label";}s:4:"span";s:9:",listVbox";}s:1:"C";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"name";s:13:"${row}[title]";s:4:"type";s:5:"label";}i:2;a:5:{s:4:"type";s:5:"label";s:5:"label";s:3:"#%s";s:4:"name";s:10:"${row}[id]";s:4:"size";s:1:"b";s:5:"align";s:5:"right";}}s:1:"D";a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:19:"${row}[description]";s:4:"type";s:5:"label";}s:1:"E";a:2:{s:4:"name";s:14:"${row}[recure]";s:4:"type";s:5:"label";}s:1:"F";a:3:{s:4:"type";s:10:"select-cat";s:8:"readonly";s:1:"1";s:4:"name";s:16:"${row}[category]";}s:1:"G";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:14:"select-account";s:5:"class";s:6:"noWrap";s:8:"readonly";s:4:"true";s:4:"name";s:13:"${row}[owner]";}i:2;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:16:"${row}[location]";s:4:"type";s:5:"label";}}s:1:"H";a:4:{s:4:"type";s:14:"select-account";s:5:"class";s:6:"noWrap";s:8:"readonly";s:4:"true";s:4:"name";s:13:"${row}[owner]";}s:1:"I";a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:16:"${row}[location]";s:4:"type";s:5:"label";}s:1:"J";a:4:{s:8:"readonly";s:4:"true";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[parts]";s:4:"type";s:4:"html";}s:1:"K";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:15:"${row}[created]";s:8:"readonly";s:1:"1";}i:2;a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:15:"${row}[creator]";s:8:"readonly";s:1:"1";}i:3;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:16:"${row}[modified]";s:8:"readonly";s:1:"1";}}s:1:"L";a:2:{s:4:"name";s:4:"$row";s:4:"type";s:17:"customfields-list";}s:1:"M";a:5:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"vbox";i:1;a:7:{s:5:"class";s:7:"noPrint";s:4:"type";s:4:"hbox";s:4:"size";s:1:"4";i:1;a:6:{s:5:"label";s:4:"View";s:7:"onclick";s:206:"window.open(egw::link(\'/index.php\',\'menuaction=calendar.calendar_uiforms.edit&cal_id=$row_cont[id]&date=$row_cont[date]\'),\'425\',\'dependent=yes,width=750,height=450,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:19:"view[$row_cont[id]]";s:4:"type";s:6:"button";s:4:"size";s:4:"view";s:4:"help";s:15:"View this event";}i:2;a:6:{s:5:"label";s:4:"Edit";s:7:"onclick";s:20:"$row_cont[edit_link]";s:4:"name";s:19:"edit[$row_cont[id]]";s:4:"type";s:6:"button";s:4:"size";s:4:"edit";s:4:"help";s:15:"Edit this event";}i:3;a:6:{s:5:"label";s:6:"Delete";s:7:"onclick";s:36:"return confirm(\'Delete this event\');";s:4:"name";s:21:"delete[$row_cont[id]]";s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:4:"help";s:17:"Delete this event";}i:4;a:5:{s:5:"align";s:5:"right";s:4:"name";s:9:"checked[]";s:4:"size";s:35:"$row_cont[id]:$row_cont[recur_date]";s:4:"type";s:8:"checkbox";s:4:"help";s:45:"Select multiple contacts for a further action";}}i:2;a:5:{s:4:"size";s:6:"3,,0,0";s:4:"type";s:4:"hbox";i:1;a:4:{s:4:"type";s:6:"button";s:4:"size";s:15:"etemplate/merge";s:5:"label";s:5:"merge";s:4:"name";s:45:"document[$row_cont[id]:$row_cont[recur_date]]";}i:2;a:6:{s:5:"label";s:11:"Filemanager";s:4:"size";s:18:"filemanager/navbar";s:4:"type";s:6:"button";s:4:"name";s:26:"filemanager[$row_cont[id]]";s:4:"span";s:8:",image16";s:7:"onclick";s:139:"window.location.href=egw::link(\'/index.php\',\'menuaction=filemanager.filemanager_ui.index&path=/apps/calendar/$row_cont[id]\'); return false;";}i:3;a:5:{s:4:"type";s:6:"button";s:4:"size";s:9:"timesheet";s:5:"label";s:19:"Add timesheet entry";s:4:"name";s:29:"timesheet[$row_cont[info_id]]";s:7:"onclick";s:267:"window.open(egw::link(\'/index.php\',\'menuaction=timesheet.timesheet_ui.edit&link_app[]=$row_cont[app]&cat_id=$row_cont[category]&link_id[]=$row_cont[app_id]$row_cont[extra_links]\'),\'_blank\',\'dependent=yes,width=600,height=400,scrollbars=yes,status=yes\'); return false;";}}s:4:"span";s:8:",noPrint";}}}s:4:"cols";i:13;s:4:"rows";i:2;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => '','modified' => '1298450177',); |
|
77 | +$templ_data[] = array('name' => 'calendar.list.rows', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.004', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:3:{s:1:"B";s:3:"40%";s:2:"c1";s:2:"th";s:2:"c2";s:40:"$row_cont[category] $row_cont[class],top";}i:1;a:13:{s:1:"A";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:3:{s:5:"label";s:5:"Start";s:4:"name";s:9:"cal_start";s:4:"type";s:20:"nextmatch-sortheader";}i:2;a:3:{s:5:"label";s:3:"End";s:4:"name";s:7:"cal_end";s:4:"type";s:20:"nextmatch-sortheader";}}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:3:{s:5:"label";s:5:"Title";s:4:"name";s:9:"cal_title";s:4:"type";s:20:"nextmatch-sortheader";}i:2;a:3:{s:5:"label";s:11:"Description";s:4:"name";s:15:"cal_description";s:4:"type";s:20:"nextmatch-sortheader";}}s:1:"C";a:3:{s:5:"label";s:5:"Title";s:4:"name";s:9:"cal_title";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"D";a:3:{s:5:"label";s:11:"Description";s:4:"name";s:15:"cal_description";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"E";a:3:{s:5:"label";s:10:"Recurrence";s:4:"name";s:6:"recure";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"F";a:3:{s:5:"label";s:8:"Category";s:4:"name";s:6:"cat_id";s:4:"type";s:16:"nextmatch-header";}s:1:"G";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:4:{s:5:"label";s:5:"Owner";s:8:"readonly";s:4:"true";s:4:"name";s:9:"cal_owner";s:4:"type";s:20:"nextmatch-sortheader";}i:2;a:3:{s:5:"label";s:8:"Location";s:4:"name";s:12:"cal_location";s:4:"type";s:20:"nextmatch-sortheader";}}s:1:"H";a:4:{s:5:"label";s:5:"Owner";s:8:"readonly";s:4:"true";s:4:"name";s:9:"cal_owner";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"I";a:3:{s:5:"label";s:8:"Location";s:4:"name";s:12:"cal_location";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"J";a:4:{s:5:"label";s:12:"Participants";s:4:"name";s:11:"participant";s:4:"size";s:3:"All";s:4:"type";s:23:"nextmatch-accountfilter";}s:1:"K";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:7:"Created";s:4:"name";s:11:"cal_created";}i:2;a:4:{s:4:"type";s:16:"nextmatch-header";s:4:"name";s:11:"cal_creator";s:4:"size";s:7:"Creator";s:5:"label";s:7:"Creator";}i:3;a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Last changed";}}s:1:"L";a:4:{s:5:"label";s:13:"Custom fields";s:8:"readonly";s:4:"true";s:4:"name";s:3:"cfs";s:4:"type";s:22:"nextmatch-customfields";}s:1:"M";a:7:{s:5:"label";s:7:"Actions";s:5:"class";s:7:"noPrint";s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Actions";s:4:"help";s:9:"Check all";s:4:"span";s:8:",noPrint";s:4:"name";s:14:"legacy_actions";}i:2;a:8:{s:5:"label";s:9:"Check all";s:7:"onclick";s:94:"egw_globalObjectManager.getObjectById(\'calendar.list.rows\').toggleAllSelected(); return false;";s:6:"needed";s:1:"1";s:5:"align";s:5:"right";s:4:"name";s:9:"check_all";s:4:"type";s:6:"button";s:4:"size";s:5:"check";s:4:"help";s:9:"Check all";}s:4:"span";s:8:",noPrint";}}i:2;a:13:{s:1:"A";a:5:{s:4:"name";s:5:"start";s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:5:{s:8:"readonly";s:4:"true";s:4:"name";s:13:"${row}[start]";s:4:"size";s:14:",$cont[format]";s:4:"type";s:9:"date-time";s:4:"span";s:7:",noWrap";}i:2;a:5:{s:8:"readonly";s:4:"true";s:4:"name";s:11:"${row}[end]";s:4:"size";s:14:",$cont[format]";s:4:"type";s:9:"date-time";s:4:"span";s:7:",noWrap";}}s:1:"B";a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:6:{s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";s:4:"size";s:1:"2";s:4:"type";s:4:"hbox";i:1;a:5:{s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[title]";s:4:"size";s:1:"b";s:4:"type";s:5:"label";}i:2;a:5:{s:4:"type";s:5:"label";s:5:"label";s:3:"#%s";s:4:"name";s:10:"${row}[id]";s:4:"size";s:1:"b";s:5:"align";s:5:"right";}}i:2;a:5:{s:7:"no_lang";s:1:"1";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:19:"${row}[description]";s:4:"type";s:5:"label";}s:4:"span";s:16:",listDescription";}i:3;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:14:"${row}[recure]";s:4:"type";s:5:"label";}s:4:"span";s:9:",listVbox";}s:1:"C";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"name";s:13:"${row}[title]";s:4:"type";s:5:"label";}i:2;a:5:{s:4:"type";s:5:"label";s:5:"label";s:3:"#%s";s:4:"name";s:10:"${row}[id]";s:4:"size";s:1:"b";s:5:"align";s:5:"right";}}s:1:"D";a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:19:"${row}[description]";s:4:"type";s:5:"label";}s:1:"E";a:2:{s:4:"name";s:14:"${row}[recure]";s:4:"type";s:5:"label";}s:1:"F";a:3:{s:4:"type";s:10:"select-cat";s:8:"readonly";s:1:"1";s:4:"name";s:16:"${row}[category]";}s:1:"G";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:14:"select-account";s:5:"class";s:6:"noWrap";s:8:"readonly";s:4:"true";s:4:"name";s:13:"${row}[owner]";}i:2;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:16:"${row}[location]";s:4:"type";s:5:"label";}}s:1:"H";a:4:{s:4:"type";s:14:"select-account";s:5:"class";s:6:"noWrap";s:8:"readonly";s:4:"true";s:4:"name";s:13:"${row}[owner]";}s:1:"I";a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:16:"${row}[location]";s:4:"type";s:5:"label";}s:1:"J";a:4:{s:8:"readonly";s:4:"true";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[parts]";s:4:"type";s:4:"html";}s:1:"K";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:15:"${row}[created]";s:8:"readonly";s:1:"1";}i:2;a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:15:"${row}[creator]";s:8:"readonly";s:1:"1";}i:3;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:16:"${row}[modified]";s:8:"readonly";s:1:"1";}}s:1:"L";a:2:{s:4:"name";s:4:"$row";s:4:"type";s:17:"customfields-list";}s:1:"M";a:5:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"vbox";i:1;a:7:{s:5:"class";s:7:"noPrint";s:4:"type";s:4:"hbox";s:4:"size";s:1:"4";i:1;a:6:{s:5:"label";s:4:"View";s:7:"onclick";s:206:"window.open(egw::link(\'/index.php\',\'menuaction=calendar.calendar_uiforms.edit&cal_id=$row_cont[id]&date=$row_cont[date]\'),\'425\',\'dependent=yes,width=750,height=450,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:19:"view[$row_cont[id]]";s:4:"type";s:6:"button";s:4:"size";s:4:"view";s:4:"help";s:15:"View this event";}i:2;a:6:{s:5:"label";s:4:"Edit";s:7:"onclick";s:20:"$row_cont[edit_link]";s:4:"name";s:19:"edit[$row_cont[id]]";s:4:"type";s:6:"button";s:4:"size";s:4:"edit";s:4:"help";s:15:"Edit this event";}i:3;a:6:{s:5:"label";s:6:"Delete";s:7:"onclick";s:36:"return confirm(\'Delete this event\');";s:4:"name";s:21:"delete[$row_cont[id]]";s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:4:"help";s:17:"Delete this event";}i:4;a:5:{s:5:"align";s:5:"right";s:4:"name";s:9:"checked[]";s:4:"size";s:35:"$row_cont[id]:$row_cont[recur_date]";s:4:"type";s:8:"checkbox";s:4:"help";s:45:"Select multiple contacts for a further action";}}i:2;a:5:{s:4:"size";s:6:"3,,0,0";s:4:"type";s:4:"hbox";i:1;a:4:{s:4:"type";s:6:"button";s:4:"size";s:15:"etemplate/merge";s:5:"label";s:5:"merge";s:4:"name";s:45:"document[$row_cont[id]:$row_cont[recur_date]]";}i:2;a:6:{s:5:"label";s:11:"Filemanager";s:4:"size";s:18:"filemanager/navbar";s:4:"type";s:6:"button";s:4:"name";s:26:"filemanager[$row_cont[id]]";s:4:"span";s:8:",image16";s:7:"onclick";s:139:"window.location.href=egw::link(\'/index.php\',\'menuaction=filemanager.filemanager_ui.index&path=/apps/calendar/$row_cont[id]\'); return false;";}i:3;a:5:{s:4:"type";s:6:"button";s:4:"size";s:9:"timesheet";s:5:"label";s:19:"Add timesheet entry";s:4:"name";s:29:"timesheet[$row_cont[info_id]]";s:7:"onclick";s:267:"window.open(egw::link(\'/index.php\',\'menuaction=timesheet.timesheet_ui.edit&link_app[]=$row_cont[app]&cat_id=$row_cont[category]&link_id[]=$row_cont[app_id]$row_cont[extra_links]\'),\'_blank\',\'dependent=yes,width=600,height=400,scrollbars=yes,status=yes\'); return false;";}}s:4:"span";s:8:",noPrint";}}}s:4:"cols";i:13;s:4:"rows";i:2;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}', 'size' => '100%', 'style' => '', 'modified' => '1298450177',); |
|
78 | 78 | |
79 | -$templ_data[] = array('name' => 'calendar.meeting','template' => '','lang' => '','group' => '0','version' => '1.9.002','data' => 'a:4:{i:0;a:3:{s:4:"type";s:5:"label";s:4:"name";s:3:"msg";s:4:"span";s:19:",message leftPad5";}i:1;a:6:{s:4:"type";s:4:"grid";s:4:"size";s:3:",,0";s:4:"data";a:3:{i:0;a:2:{s:2:"h1";s:21:",!@ics_method=request";s:2:"h2";s:19:",!@ics_method=reply";}i:1;a:5:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:22:",meetingRequestMessage";s:5:"label";s:36:"This mail contains a meeting request";}s:1:"B";a:5:{s:4:"type";s:6:"button";s:5:"label";s:6:"Accept";s:4:"name";s:14:"button[accept]";i:1;a:1:{s:4:"type";s:4:"hbox";}s:4:"span";s:9:",leftPad5";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:4:"name";s:16:"button[tentativ]";s:5:"label";s:9:"Tentative";s:4:"span";s:9:",leftPad5";}s:1:"D";a:4:{s:4:"type";s:6:"button";s:4:"name";s:14:"button[reject]";s:5:"label";s:6:"Reject";s:4:"span";s:9:",leftPad5";}s:1:"E";a:6:{s:4:"type";s:10:"buttononly";s:4:"name";s:12:"button[edit]";s:5:"label";s:4:"Edit";s:4:"help";s:22:"Edit event in calendar";s:7:"onclick";s:184:"window.open(egw::link(\'/index.php\',\'menuaction=calendar.calendar_uiforms.edit&cal_id=$cont[id]\'),\'_blank\',\'dependent=yes,width=750,height=410,scrollbars=yes,status=yes\'); return false;";s:4:"span";s:9:",leftPad5";}}i:2;a:5:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:22:",meetingRequestMessage";s:5:"label";s:47:"This mail contains a reply to a meeting request";}s:1:"B";a:4:{s:4:"type";s:6:"button";s:5:"label";s:5:"Apply";s:4:"name";s:13:"button[apply]";s:4:"span";s:9:",leftPad5";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:2;s:4:"cols";i:5;s:7:"options";a:1:{i:2;s:1:"0";}}i:2;a:1:{s:4:"type";s:5:"label";}i:3;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:9:{i:0;a:10:{s:2:"c1";s:2:"th";s:1:"A";s:3:"100";s:2:"c2";s:3:"row";s:2:"c4";s:3:"row";s:2:"c3";s:3:"row";s:2:"c6";s:3:"row";s:2:"c7";s:7:"row,top";s:2:"c5";s:3:"row";s:2:"c8";s:7:"row,top";s:2:"h5";s:9:",!@recure";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:4:"name";s:16:"ics_method_label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Title";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:5:"title";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Location";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:8:"location";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Date";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:5:"start";s:8:"readonly";s:1:"1";}i:2;a:5:{s:4:"type";s:9:"date-time";s:4:"name";s:3:"end";s:8:"readonly";s:1:"1";s:4:"span";s:9:",leftPad5";s:5:"label";s:1:"-";}}}i:5;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Recurrence";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:6:"recure";}}i:6;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Organizer";}s:1:"B";a:3:{s:4:"type";s:9:"url-email";s:4:"name";s:9:"organizer";s:8:"readonly";s:1:"1";}}i:7;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Description";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:11:"description";}}i:8;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Participants";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"all_participants";}}}s:4:"rows";i:8;s:4:"cols";i:2;s:4:"size";s:21:"100%,,,meetingRequest";s:7:"options";a:2:{i:3;s:14:"meetingRequest";i:0;s:4:"100%";}}}','size' => ',,0','style' => '#popupMainDiv { |
|
79 | +$templ_data[] = array('name' => 'calendar.meeting', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.002', 'data' => 'a:4:{i:0;a:3:{s:4:"type";s:5:"label";s:4:"name";s:3:"msg";s:4:"span";s:19:",message leftPad5";}i:1;a:6:{s:4:"type";s:4:"grid";s:4:"size";s:3:",,0";s:4:"data";a:3:{i:0;a:2:{s:2:"h1";s:21:",!@ics_method=request";s:2:"h2";s:19:",!@ics_method=reply";}i:1;a:5:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:22:",meetingRequestMessage";s:5:"label";s:36:"This mail contains a meeting request";}s:1:"B";a:5:{s:4:"type";s:6:"button";s:5:"label";s:6:"Accept";s:4:"name";s:14:"button[accept]";i:1;a:1:{s:4:"type";s:4:"hbox";}s:4:"span";s:9:",leftPad5";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:4:"name";s:16:"button[tentativ]";s:5:"label";s:9:"Tentative";s:4:"span";s:9:",leftPad5";}s:1:"D";a:4:{s:4:"type";s:6:"button";s:4:"name";s:14:"button[reject]";s:5:"label";s:6:"Reject";s:4:"span";s:9:",leftPad5";}s:1:"E";a:6:{s:4:"type";s:10:"buttononly";s:4:"name";s:12:"button[edit]";s:5:"label";s:4:"Edit";s:4:"help";s:22:"Edit event in calendar";s:7:"onclick";s:184:"window.open(egw::link(\'/index.php\',\'menuaction=calendar.calendar_uiforms.edit&cal_id=$cont[id]\'),\'_blank\',\'dependent=yes,width=750,height=410,scrollbars=yes,status=yes\'); return false;";s:4:"span";s:9:",leftPad5";}}i:2;a:5:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:22:",meetingRequestMessage";s:5:"label";s:47:"This mail contains a reply to a meeting request";}s:1:"B";a:4:{s:4:"type";s:6:"button";s:5:"label";s:5:"Apply";s:4:"name";s:13:"button[apply]";s:4:"span";s:9:",leftPad5";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:2;s:4:"cols";i:5;s:7:"options";a:1:{i:2;s:1:"0";}}i:2;a:1:{s:4:"type";s:5:"label";}i:3;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:9:{i:0;a:10:{s:2:"c1";s:2:"th";s:1:"A";s:3:"100";s:2:"c2";s:3:"row";s:2:"c4";s:3:"row";s:2:"c3";s:3:"row";s:2:"c6";s:3:"row";s:2:"c7";s:7:"row,top";s:2:"c5";s:3:"row";s:2:"c8";s:7:"row,top";s:2:"h5";s:9:",!@recure";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:4:"name";s:16:"ics_method_label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Title";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:5:"title";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Location";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:8:"location";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Date";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:5:"start";s:8:"readonly";s:1:"1";}i:2;a:5:{s:4:"type";s:9:"date-time";s:4:"name";s:3:"end";s:8:"readonly";s:1:"1";s:4:"span";s:9:",leftPad5";s:5:"label";s:1:"-";}}}i:5;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Recurrence";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:6:"recure";}}i:6;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Organizer";}s:1:"B";a:3:{s:4:"type";s:9:"url-email";s:4:"name";s:9:"organizer";s:8:"readonly";s:1:"1";}}i:7;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Description";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:11:"description";}}i:8;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Participants";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"all_participants";}}}s:4:"rows";i:8;s:4:"cols";i:2;s:4:"size";s:21:"100%,,,meetingRequest";s:7:"options";a:2:{i:3;s:14:"meetingRequest";i:0;s:4:"100%";}}}', 'size' => ',,0', 'style' => '#popupMainDiv { |
|
80 | 80 | border: none; |
81 | 81 | margin: 0; |
82 | 82 | } |
@@ -103,11 +103,11 @@ discard block |
||
103 | 103 | |
104 | 104 | ','modified' => '1338903760',); |
105 | 105 | |
106 | -$templ_data[] = array('name' => 'calendar.print','template' => '','lang' => '','group' => '0','version' => '1.6.001','data' => 'a:1:{i:0;a:3:{s:4:"size";s:6:"1,,0,0";s:4:"type";s:4:"hbox";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:15:{i:0;a:13:{s:1:"A";s:2:"95";s:2:"c2";s:2:"th";s:2:"c5";s:3:"row";s:2:"c6";s:7:"row_off";s:2:"c7";s:3:"row";s:2:"c3";s:3:"row";s:2:"c4";s:3:"row";s:2:"c8";s:3:"row";s:2:"c9";s:3:"row";s:2:"h2";s:2:"28";s:2:"c1";s:2:"th";s:3:"c10";s:4:",top";s:3:"c11";s:2:"th";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"image";s:4:"name";s:5:"print";s:7:"onclick";s:15:"window.print();";}s:1:"B";a:4:{s:4:"type";s:5:"label";s:4:"span";s:5:",bold";s:5:"label";s:8:"Calendar";s:4:"size";s:4:"bold";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Title";}s:1:"B";a:5:{s:4:"type";s:4:"text";s:4:"name";s:5:"title";s:4:"size";s:6:"80,255";s:8:"readonly";s:1:"1";s:4:"span";s:3:"all";}}i:3;a:2:{s:1:"A";a:4:{s:5:"width";s:2:"95";s:4:"size";s:8:",,,start";s:4:"type";s:5:"label";s:5:"label";s:5:"Start";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"name";s:5:"start";s:4:"type";s:9:"date-time";s:8:"readonly";s:1:"1";}i:2;a:7:{s:5:"label";s:9:"whole day";s:4:"name";s:9:"whole_day";s:4:"size";s:11:",, ,disable";s:4:"type";s:8:"checkbox";s:4:"help";s:31:"Event will occupy the whole day";s:5:"align";s:6:"center";s:8:"readonly";s:1:"1";}}}i:4;a:2:{s:1:"A";a:4:{s:5:"width";s:1:"0";s:4:"size";s:11:",,,duration";s:4:"type";s:5:"label";s:5:"label";s:8:"Duration";}s:1:"B";a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"hbox";i:1;a:7:{s:7:"no_lang";s:1:"1";s:8:"onchange";s:227:"set_style_by_class(\'table\',\'end_hide\',\'visibility\',this.value == \'\' ? \'visible\' : \'hidden\'); if (this.value == \'\') document.getElementById(form::name(\'end[str]\')).value = document.getElementById(form::name(\'start[str]\')).value;";s:4:"name";s:8:"duration";s:4:"size";s:12:"Use end date";s:4:"type";s:6:"select";s:4:"help";s:23:"Duration of the meeting";s:8:"readonly";s:1:"1";}i:2;a:4:{s:4:"name";s:3:"end";s:4:"type";s:9:"date-time";s:4:"span";s:9:",end_hide";s:8:"readonly";s:1:"1";}}}i:5;a:2:{s:1:"A";a:4:{s:4:"size";s:11:",,,location";s:4:"type";s:5:"label";s:5:"label";s:8:"Location";s:5:"width";s:1:"0";}s:1:"B";a:5:{s:4:"size";s:4:",255";s:4:"name";s:8:"location";s:4:"type";s:4:"text";s:4:"span";s:15:",calendar_inputFullWidth";s:8:"readonly";s:1:"1";}}i:6;a:2:{s:1:"A";a:4:{s:4:"size";s:11:",,,priority";s:4:"type";s:5:"label";s:5:"label";s:8:"Priority";s:5:"width";s:1:"0";}s:1:"B";a:3:{s:4:"type";s:15:"select-priority";s:4:"name";s:8:"priority";s:8:"readonly";s:1:"1";}}i:7;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"Options";s:5:"width";s:1:"0";}s:1:"B";a:6:{s:4:"name";s:12:"non_blocking";s:4:"size";s:11:",, ,disable";s:4:"type";s:8:"checkbox";s:4:"help";s:56:"A non blocking event will not conflict with other events";s:5:"label";s:12:"non blocking";s:8:"readonly";s:1:"1";}}i:8;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:5:{s:4:"name";s:6:"public";s:4:"size";s:3:"0,1";s:4:"type";s:8:"checkbox";s:5:"label";s:7:"Private";s:8:"readonly";s:1:"1";}}i:9;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Categories";}s:1:"B";a:3:{s:4:"type";s:10:"select-cat";s:4:"name";s:8:"category";s:8:"readonly";s:1:"1";}}i:10;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Description";}s:1:"B";a:3:{s:4:"type";s:8:"textarea";s:4:"name";s:11:"description";s:8:"readonly";s:1:"1";}}i:11;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:13:"custom fields";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:12;a:2:{s:1:"A";a:3:{s:4:"type";s:12:"customfields";s:4:"span";s:3:"all";s:8:"readonly";s:1:"1";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:13;a:2:{s:1:"A";a:3:{s:4:"type";s:8:"template";s:4:"name";s:27:"calendar.print.participants";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:14;a:2:{s:1:"A";a:3:{s:4:"type";s:8:"template";s:4:"span";s:3:"all";s:4:"name";s:20:"calendar.print.links";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:2;s:4:"rows";i:14;s:4:"size";s:8:"100%,200";}}}','size' => '','style' => '','modified' => '1229596125',); |
|
106 | +$templ_data[] = array('name' => 'calendar.print', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.6.001', 'data' => 'a:1:{i:0;a:3:{s:4:"size";s:6:"1,,0,0";s:4:"type";s:4:"hbox";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:15:{i:0;a:13:{s:1:"A";s:2:"95";s:2:"c2";s:2:"th";s:2:"c5";s:3:"row";s:2:"c6";s:7:"row_off";s:2:"c7";s:3:"row";s:2:"c3";s:3:"row";s:2:"c4";s:3:"row";s:2:"c8";s:3:"row";s:2:"c9";s:3:"row";s:2:"h2";s:2:"28";s:2:"c1";s:2:"th";s:3:"c10";s:4:",top";s:3:"c11";s:2:"th";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"image";s:4:"name";s:5:"print";s:7:"onclick";s:15:"window.print();";}s:1:"B";a:4:{s:4:"type";s:5:"label";s:4:"span";s:5:",bold";s:5:"label";s:8:"Calendar";s:4:"size";s:4:"bold";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Title";}s:1:"B";a:5:{s:4:"type";s:4:"text";s:4:"name";s:5:"title";s:4:"size";s:6:"80,255";s:8:"readonly";s:1:"1";s:4:"span";s:3:"all";}}i:3;a:2:{s:1:"A";a:4:{s:5:"width";s:2:"95";s:4:"size";s:8:",,,start";s:4:"type";s:5:"label";s:5:"label";s:5:"Start";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"name";s:5:"start";s:4:"type";s:9:"date-time";s:8:"readonly";s:1:"1";}i:2;a:7:{s:5:"label";s:9:"whole day";s:4:"name";s:9:"whole_day";s:4:"size";s:11:",, ,disable";s:4:"type";s:8:"checkbox";s:4:"help";s:31:"Event will occupy the whole day";s:5:"align";s:6:"center";s:8:"readonly";s:1:"1";}}}i:4;a:2:{s:1:"A";a:4:{s:5:"width";s:1:"0";s:4:"size";s:11:",,,duration";s:4:"type";s:5:"label";s:5:"label";s:8:"Duration";}s:1:"B";a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"hbox";i:1;a:7:{s:7:"no_lang";s:1:"1";s:8:"onchange";s:227:"set_style_by_class(\'table\',\'end_hide\',\'visibility\',this.value == \'\' ? \'visible\' : \'hidden\'); if (this.value == \'\') document.getElementById(form::name(\'end[str]\')).value = document.getElementById(form::name(\'start[str]\')).value;";s:4:"name";s:8:"duration";s:4:"size";s:12:"Use end date";s:4:"type";s:6:"select";s:4:"help";s:23:"Duration of the meeting";s:8:"readonly";s:1:"1";}i:2;a:4:{s:4:"name";s:3:"end";s:4:"type";s:9:"date-time";s:4:"span";s:9:",end_hide";s:8:"readonly";s:1:"1";}}}i:5;a:2:{s:1:"A";a:4:{s:4:"size";s:11:",,,location";s:4:"type";s:5:"label";s:5:"label";s:8:"Location";s:5:"width";s:1:"0";}s:1:"B";a:5:{s:4:"size";s:4:",255";s:4:"name";s:8:"location";s:4:"type";s:4:"text";s:4:"span";s:15:",calendar_inputFullWidth";s:8:"readonly";s:1:"1";}}i:6;a:2:{s:1:"A";a:4:{s:4:"size";s:11:",,,priority";s:4:"type";s:5:"label";s:5:"label";s:8:"Priority";s:5:"width";s:1:"0";}s:1:"B";a:3:{s:4:"type";s:15:"select-priority";s:4:"name";s:8:"priority";s:8:"readonly";s:1:"1";}}i:7;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"Options";s:5:"width";s:1:"0";}s:1:"B";a:6:{s:4:"name";s:12:"non_blocking";s:4:"size";s:11:",, ,disable";s:4:"type";s:8:"checkbox";s:4:"help";s:56:"A non blocking event will not conflict with other events";s:5:"label";s:12:"non blocking";s:8:"readonly";s:1:"1";}}i:8;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:5:{s:4:"name";s:6:"public";s:4:"size";s:3:"0,1";s:4:"type";s:8:"checkbox";s:5:"label";s:7:"Private";s:8:"readonly";s:1:"1";}}i:9;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Categories";}s:1:"B";a:3:{s:4:"type";s:10:"select-cat";s:4:"name";s:8:"category";s:8:"readonly";s:1:"1";}}i:10;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Description";}s:1:"B";a:3:{s:4:"type";s:8:"textarea";s:4:"name";s:11:"description";s:8:"readonly";s:1:"1";}}i:11;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:13:"custom fields";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:12;a:2:{s:1:"A";a:3:{s:4:"type";s:12:"customfields";s:4:"span";s:3:"all";s:8:"readonly";s:1:"1";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:13;a:2:{s:1:"A";a:3:{s:4:"type";s:8:"template";s:4:"name";s:27:"calendar.print.participants";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:14;a:2:{s:1:"A";a:3:{s:4:"type";s:8:"template";s:4:"span";s:3:"all";s:4:"name";s:20:"calendar.print.links";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:2;s:4:"rows";i:14;s:4:"size";s:8:"100%,200";}}}', 'size' => '', 'style' => '', 'modified' => '1229596125',); |
|
107 | 107 | |
108 | -$templ_data[] = array('name' => 'calendar.print.links','template' => '','lang' => '','group' => '0','version' => '1.6.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:3:{s:1:"A";s:2:"95";s:2:"c1";s:2:"th";s:2:"c2";s:11:"row_off,top";}i:1;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"type";s:5:"label";s:5:"label";s:14:"Existing links";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"name";s:7:"link_to";s:4:"type";s:9:"link-list";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:2;s:4:"rows";i:2;s:4:"size";s:17:"100%,200,,,,,auto";}}','size' => '100%,200,,,,,auto','style' => '','modified' => '1231922363',); |
|
108 | +$templ_data[] = array('name' => 'calendar.print.links', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.6.001', 'data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:3:{s:1:"A";s:2:"95";s:2:"c1";s:2:"th";s:2:"c2";s:11:"row_off,top";}i:1;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"type";s:5:"label";s:5:"label";s:14:"Existing links";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"name";s:7:"link_to";s:4:"type";s:9:"link-list";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:2;s:4:"rows";i:2;s:4:"size";s:17:"100%,200,,,,,auto";}}', 'size' => '100%,200,,,,,auto', 'style' => '', 'modified' => '1231922363',); |
|
109 | 109 | |
110 | -$templ_data[] = array('name' => 'calendar.print.participants','template' => '','lang' => '','group' => '0','version' => '1.6.001','data' => 'a:1:{i:0;a:7:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:3:{s:2:"c3";s:4:",top";s:1:"D";s:24:",@hide_status_recurrence";s:2:"c2";s:2:"th";}i:1;a:5:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:1:{s:4:"type";s:5:"label";}i:2;a:1:{s:4:"type";s:5:"label";}}s:1:"C";a:3:{s:4:"type";s:5:"label";s:4:"size";s:4:"1,,3";s:4:"name";s:8:"quantity";}s:1:"D";a:1:{s:4:"type";s:5:"label";}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:4:"Type";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Participants";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Quantity";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"All future";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Status";}}i:3;a:5:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:11:"${row}[app]";}s:1:"B";a:6:{s:4:"type";s:5:"label";s:4:"data";a:2:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:6:"${row}";s:8:"readonly";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:26:"accounts_status[$row_cont]";s:8:"onchange";s:1:"1";s:4:"help";s:30:"Accept or reject an invitation";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"name";s:13:"${row}[title]";s:7:"no_lang";s:1:"1";}s:1:"C";a:4:{s:4:"type";s:3:"int";s:4:"name";s:16:"${row}[quantity]";s:4:"size";s:4:"1,,3";s:8:"readonly";s:1:"1";}s:1:"D";a:4:{s:4:"type";s:8:"checkbox";s:4:"name";s:25:"${row}[status_recurrence]";s:5:"align";s:6:"center";s:8:"readonly";s:1:"1";}s:1:"E";a:4:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[status]";s:7:"no_lang";s:1:"1";s:8:"onchange";i:1;}}}s:4:"rows";i:3;s:4:"cols";i:5;s:4:"size";s:14:"100%,,,,,,auto";s:4:"name";s:12:"participants";s:7:"options";a:2:{i:0;s:4:"100%";i:6;s:4:"auto";}}}','size' => '100%,,,,,,auto','style' => '','modified' => '1229357325',); |
|
110 | +$templ_data[] = array('name' => 'calendar.print.participants', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.6.001', 'data' => 'a:1:{i:0;a:7:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:3:{s:2:"c3";s:4:",top";s:1:"D";s:24:",@hide_status_recurrence";s:2:"c2";s:2:"th";}i:1;a:5:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:1:{s:4:"type";s:5:"label";}i:2;a:1:{s:4:"type";s:5:"label";}}s:1:"C";a:3:{s:4:"type";s:5:"label";s:4:"size";s:4:"1,,3";s:4:"name";s:8:"quantity";}s:1:"D";a:1:{s:4:"type";s:5:"label";}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:4:"Type";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Participants";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Quantity";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"All future";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Status";}}i:3;a:5:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:11:"${row}[app]";}s:1:"B";a:6:{s:4:"type";s:5:"label";s:4:"data";a:2:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:6:"${row}";s:8:"readonly";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:26:"accounts_status[$row_cont]";s:8:"onchange";s:1:"1";s:4:"help";s:30:"Accept or reject an invitation";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"name";s:13:"${row}[title]";s:7:"no_lang";s:1:"1";}s:1:"C";a:4:{s:4:"type";s:3:"int";s:4:"name";s:16:"${row}[quantity]";s:4:"size";s:4:"1,,3";s:8:"readonly";s:1:"1";}s:1:"D";a:4:{s:4:"type";s:8:"checkbox";s:4:"name";s:25:"${row}[status_recurrence]";s:5:"align";s:6:"center";s:8:"readonly";s:1:"1";}s:1:"E";a:4:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[status]";s:7:"no_lang";s:1:"1";s:8:"onchange";i:1;}}}s:4:"rows";i:3;s:4:"cols";i:5;s:4:"size";s:14:"100%,,,,,,auto";s:4:"name";s:12:"participants";s:7:"options";a:2:{i:0;s:4:"100%";i:6;s:4:"auto";}}}', 'size' => '100%,,,,,,auto', 'style' => '', 'modified' => '1229357325',); |
|
111 | 111 | |
112 | -$templ_data[] = array('name' => 'calendar.test','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:12:"customfields";s:4:"name";s:8:"#project";s:6:"needed";s:1:"1";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:10:"link-entry";s:4:"name";s:4:"test";s:6:"needed";s:1:"1";s:4:"size";s:14:"projectmanager";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1305704690',); |
|
112 | +$templ_data[] = array('name' => 'calendar.test', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '', 'data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:12:"customfields";s:4:"name";s:8:"#project";s:6:"needed";s:1:"1";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:10:"link-entry";s:4:"name";s:4:"test";s:6:"needed";s:1:"1";s:4:"size";s:14:"projectmanager";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}', 'size' => '', 'style' => '', 'modified' => '1305704690',); |
|
113 | 113 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | { |
19 | 19 | $owner[count($owner)] = $GLOBALS['egw_setup']->oProc->f($field); |
20 | 20 | } |
21 | - if($GLOBALS['egw_setup']->alessthanb($GLOBALS['setup_info']['phpgwapi']['currentver'],'0.9.10pre4')) |
|
21 | + if ($GLOBALS['egw_setup']->alessthanb($GLOBALS['setup_info']['phpgwapi']['currentver'], '0.9.10pre4')) |
|
22 | 22 | { |
23 | 23 | $acctstbl = 'accounts'; |
24 | 24 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | $acctstbl = 'phpgw_accounts'; |
28 | 28 | } |
29 | - for($i=0;$i<count($owner);$i++) |
|
29 | + for ($i = 0; $i < count($owner); $i++) |
|
30 | 30 | { |
31 | 31 | $GLOBALS['egw_setup']->oProc->query("SELECT account_id FROM $acctstbl WHERE account_lid='".$owner[$i]."'"); |
32 | 32 | $GLOBALS['egw_setup']->oProc->next_record(); |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | |
40 | 40 | function calendar_upgrade0_9_3pre1() |
41 | 41 | { |
42 | - calendar_v0_9_2to0_9_3update_owner('webcal_entry','cal_create_by'); |
|
43 | - calendar_v0_9_2to0_9_3update_owner('webcal_entry_user','cal_login'); |
|
42 | + calendar_v0_9_2to0_9_3update_owner('webcal_entry', 'cal_create_by'); |
|
43 | + calendar_v0_9_2to0_9_3update_owner('webcal_entry_user', 'cal_login'); |
|
44 | 44 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.3pre2'; |
45 | 45 | return $GLOBALS['setup_info']['calendar']['currentver']; |
46 | 46 | } |
@@ -207,12 +207,12 @@ discard block |
||
207 | 207 | ) |
208 | 208 | ); |
209 | 209 | |
210 | - $GLOBALS['egw_setup']->oProc->query('SELECT count(*) FROM webcal_entry',__LINE__,__FILE__); |
|
210 | + $GLOBALS['egw_setup']->oProc->query('SELECT count(*) FROM webcal_entry', __LINE__, __FILE__); |
|
211 | 211 | $GLOBALS['egw_setup']->oProc->next_record(); |
212 | - if($GLOBALS['egw_setup']->oProc->f(0)) |
|
212 | + if ($GLOBALS['egw_setup']->oProc->f(0)) |
|
213 | 213 | { |
214 | - $GLOBALS['egw_setup']->oProc->query('SELECT cal_id,cal_owner,cal_duration,cal_priority,cal_type,cal_access,cal_name,cal_description,cal_id,cal_date,cal_time,cal_mod_date,cal_mod_time FROM webcal_entry ORDER BY cal_id',__LINE__,__FILE__); |
|
215 | - while($GLOBALS['egw_setup']->oProc->next_record()) |
|
214 | + $GLOBALS['egw_setup']->oProc->query('SELECT cal_id,cal_owner,cal_duration,cal_priority,cal_type,cal_access,cal_name,cal_description,cal_id,cal_date,cal_time,cal_mod_date,cal_mod_time FROM webcal_entry ORDER BY cal_id', __LINE__, __FILE__); |
|
215 | + while ($GLOBALS['egw_setup']->oProc->next_record()) |
|
216 | 216 | { |
217 | 217 | $cal_id = $GLOBALS['egw_setup']->oProc->f('cal_id'); |
218 | 218 | $cal_owner = $GLOBALS['egw_setup']->oProc->f('cal_owner'); |
@@ -222,13 +222,13 @@ discard block |
||
222 | 222 | $cal_access = $GLOBALS['egw_setup']->oProc->f('cal_access'); |
223 | 223 | $cal_name = $GLOBALS['egw_setup']->oProc->f('cal_name'); |
224 | 224 | $cal_description = $GLOBALS['egw_setup']->oProc->f('cal_description'); |
225 | - $datetime = mktime(intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_time')),4))),intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_time')),2,2))),intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_time')),0,2))),intval(substr($GLOBALS['egw_setup']->oProc->f('cal_date'),4,2)),intval(substr($GLOBALS['egw_setup']->oProc->f('cal_date'),6,2)),intval(substr($GLOBALS['egw_setup']->oProc->f('cal_date'),0,4))); |
|
226 | - $moddatetime = mktime(intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_mod_time')),4))),intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_mod_time')),2,2))),intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_mod_time')),0,2))),intval(substr($GLOBALS['egw_setup']->oProc->f('cal_mod_date'),4,2)),intval(substr($GLOBALS['egw_setup']->oProc->f('cal_mod_date'),6,2)),intval(substr($GLOBALS['egw_setup']->oProc->f('cal_mod_date'),0,4))); |
|
227 | - $db2->query('SELECT groups FROM webcal_entry_groups WHERE cal_id='.$cal_id,__LINE__,__FILE__); |
|
225 | + $datetime = mktime(intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_time')), 4))), intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_time')), 2, 2))), intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_time')), 0, 2))), intval(substr($GLOBALS['egw_setup']->oProc->f('cal_date'), 4, 2)), intval(substr($GLOBALS['egw_setup']->oProc->f('cal_date'), 6, 2)), intval(substr($GLOBALS['egw_setup']->oProc->f('cal_date'), 0, 4))); |
|
226 | + $moddatetime = mktime(intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_mod_time')), 4))), intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_mod_time')), 2, 2))), intval(strrev(substr(strrev($GLOBALS['egw_setup']->oProc->f('cal_mod_time')), 0, 2))), intval(substr($GLOBALS['egw_setup']->oProc->f('cal_mod_date'), 4, 2)), intval(substr($GLOBALS['egw_setup']->oProc->f('cal_mod_date'), 6, 2)), intval(substr($GLOBALS['egw_setup']->oProc->f('cal_mod_date'), 0, 4))); |
|
227 | + $db2->query('SELECT groups FROM webcal_entry_groups WHERE cal_id='.$cal_id, __LINE__, __FILE__); |
|
228 | 228 | $db2->next_record(); |
229 | 229 | $cal_group = $db2->f('groups'); |
230 | 230 | $db2->query('INSERT INTO calendar_entry(cal_id,cal_owner,cal_group,cal_datetime,cal_mdatetime,cal_duration,cal_priority,cal_type,cal_access,cal_name,cal_description) ' |
231 | - .'VALUES('.$cal_id.",'".$cal_owner."','".$cal_group."',".$datetime.",".$moddatetime.",".$cal_duration.",".$cal_priority.",'".$cal_type."','".$cal_access."','".$cal_name."','".$cal_description."')",__LINE__,__FILE__); |
|
231 | + .'VALUES('.$cal_id.",'".$cal_owner."','".$cal_group."',".$datetime.",".$moddatetime.",".$cal_duration.",".$cal_priority.",'".$cal_type."','".$cal_access."','".$cal_name."','".$cal_description."')", __LINE__, __FILE__); |
|
232 | 232 | } |
233 | 233 | } |
234 | 234 | |
@@ -249,17 +249,17 @@ discard block |
||
249 | 249 | ) |
250 | 250 | ); |
251 | 251 | |
252 | - $GLOBALS['egw_setup']->oProc->query('SELECT count(*) FROM webcal_entry_user',__LINE__,__FILE__); |
|
252 | + $GLOBALS['egw_setup']->oProc->query('SELECT count(*) FROM webcal_entry_user', __LINE__, __FILE__); |
|
253 | 253 | $GLOBALS['egw_setup']->oProc->next_record(); |
254 | - if($GLOBALS['egw_setup']->oProc->f(0)) |
|
254 | + if ($GLOBALS['egw_setup']->oProc->f(0)) |
|
255 | 255 | { |
256 | - $GLOBALS['egw_setup']->oProc->query('SELECT cal_id,cal_login,cal_status FROM webcal_entry_user ORDER BY cal_id',__LINE__,__FILE__); |
|
257 | - while($GLOBALS['egw_setup']->oProc->next_record()) |
|
256 | + $GLOBALS['egw_setup']->oProc->query('SELECT cal_id,cal_login,cal_status FROM webcal_entry_user ORDER BY cal_id', __LINE__, __FILE__); |
|
257 | + while ($GLOBALS['egw_setup']->oProc->next_record()) |
|
258 | 258 | { |
259 | 259 | $cal_id = $GLOBALS['egw_setup']->oProc->f('cal_id'); |
260 | 260 | $cal_login = $GLOBALS['egw_setup']->oProc->f('cal_login'); |
261 | 261 | $cal_status = $GLOBALS['egw_setup']->oProc->f('cal_status'); |
262 | - $db2->query('INSERT INTO calendar_entry_user(cal_id,cal_login,cal_status) VALUES('.$cal_id.','.$cal_login.",'".$cal_status."')",__LINE__,__FILE__); |
|
262 | + $db2->query('INSERT INTO calendar_entry_user(cal_id,cal_login,cal_status) VALUES('.$cal_id.','.$cal_login.",'".$cal_status."')", __LINE__, __FILE__); |
|
263 | 263 | } |
264 | 264 | } |
265 | 265 | |
@@ -282,18 +282,18 @@ discard block |
||
282 | 282 | ) |
283 | 283 | ); |
284 | 284 | |
285 | - $GLOBALS['egw_setup']->oProc->query('SELECT count(*) FROM webcal_entry_repeats',__LINE__,__FILE__); |
|
285 | + $GLOBALS['egw_setup']->oProc->query('SELECT count(*) FROM webcal_entry_repeats', __LINE__, __FILE__); |
|
286 | 286 | $GLOBALS['egw_setup']->oProc->next_record(); |
287 | - if($GLOBALS['egw_setup']->oProc->f(0)) |
|
287 | + if ($GLOBALS['egw_setup']->oProc->f(0)) |
|
288 | 288 | { |
289 | - $GLOBALS['egw_setup']->oProc->query('SELECT cal_id,cal_type,cal_end,cal_frequency,cal_days FROM webcal_entry_repeats ORDER BY cal_id',__LINE__,__FILE__); |
|
290 | - while($GLOBALS['egw_setup']->oProc->next_record()) |
|
289 | + $GLOBALS['egw_setup']->oProc->query('SELECT cal_id,cal_type,cal_end,cal_frequency,cal_days FROM webcal_entry_repeats ORDER BY cal_id', __LINE__, __FILE__); |
|
290 | + while ($GLOBALS['egw_setup']->oProc->next_record()) |
|
291 | 291 | { |
292 | 292 | $cal_id = $GLOBALS['egw_setup']->oProc->f('cal_id'); |
293 | 293 | $cal_type = $GLOBALS['egw_setup']->oProc->f('cal_type'); |
294 | - if(isset($GLOBALS['egw_setup']->oProc->Record['cal_end'])) |
|
294 | + if (isset($GLOBALS['egw_setup']->oProc->Record['cal_end'])) |
|
295 | 295 | { |
296 | - $enddate = mktime(0,0,0,intval(substr($GLOBALS['egw_setup']->oProc->f('cal_end'),4,2)),intval(substr($GLOBALS['egw_setup']->oProc->f('cal_end'),6,2)),intval(substr($GLOBALS['egw_setup']->oProc->f('cal_end'),0,4))); |
|
296 | + $enddate = mktime(0, 0, 0, intval(substr($GLOBALS['egw_setup']->oProc->f('cal_end'), 4, 2)), intval(substr($GLOBALS['egw_setup']->oProc->f('cal_end'), 6, 2)), intval(substr($GLOBALS['egw_setup']->oProc->f('cal_end'), 0, 4))); |
|
297 | 297 | $useend = 1; |
298 | 298 | } |
299 | 299 | else |
@@ -303,12 +303,12 @@ discard block |
||
303 | 303 | } |
304 | 304 | $cal_frequency = $GLOBALS['egw_setup']->oProc->f('cal_frequency'); |
305 | 305 | $cal_days = $GLOBALS['egw_setup']->oProc->f('cal_days'); |
306 | - $db2->query('INSERT INTO calendar_entry_repeats(cal_id,cal_type,cal_use_end,cal_end,cal_frequency,cal_days) VALUES('.$cal_id.",'".$cal_type."',".$useend.",".$enddate.",".$cal_frequency.",'".$cal_days."')",__LINE__,__FILE__); |
|
306 | + $db2->query('INSERT INTO calendar_entry_repeats(cal_id,cal_type,cal_use_end,cal_end,cal_frequency,cal_days) VALUES('.$cal_id.",'".$cal_type."',".$useend.",".$enddate.",".$cal_frequency.",'".$cal_days."')", __LINE__, __FILE__); |
|
307 | 307 | } |
308 | 308 | } |
309 | 309 | |
310 | 310 | $GLOBALS['egw_setup']->oProc->DropTable('webcal_entry_repeats'); |
311 | - $GLOBALS['egw_setup']->oProc->query("UPDATE {$GLOBALS['egw_setup']->applications_table} SET app_tables='calendar_entry,calendar_entry_user,calendar_entry_repeats' WHERE app_name='calendar'",__LINE__,__FILE__); |
|
311 | + $GLOBALS['egw_setup']->oProc->query("UPDATE {$GLOBALS['egw_setup']->applications_table} SET app_tables='calendar_entry,calendar_entry_user,calendar_entry_repeats' WHERE app_name='calendar'", __LINE__, __FILE__); |
|
312 | 312 | |
313 | 313 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.7pre2'; |
314 | 314 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -320,19 +320,19 @@ discard block |
||
320 | 320 | $db2 = $GLOBALS['egw_setup']->db; |
321 | 321 | |
322 | 322 | $GLOBALS['egw_setup']->oProc->RenameColumn('calendar_entry', 'cal_duration', 'cal_edatetime'); |
323 | - $GLOBALS['egw_setup']->oProc->query('SELECT cal_id,cal_datetime,cal_owner,cal_edatetime,cal_mdatetime FROM calendar_entry ORDER BY cal_id',__LINE__,__FILE__); |
|
324 | - if($GLOBALS['egw_setup']->oProc->num_rows()) |
|
323 | + $GLOBALS['egw_setup']->oProc->query('SELECT cal_id,cal_datetime,cal_owner,cal_edatetime,cal_mdatetime FROM calendar_entry ORDER BY cal_id', __LINE__, __FILE__); |
|
324 | + if ($GLOBALS['egw_setup']->oProc->num_rows()) |
|
325 | 325 | { |
326 | - while($GLOBALS['egw_setup']->oProc->next_record()) |
|
326 | + while ($GLOBALS['egw_setup']->oProc->next_record()) |
|
327 | 327 | { |
328 | - $db2->query("SELECT preference_value FROM preferences WHERE preference_name='tz_offset' AND preference_appname='common' AND preference_owner=".$GLOBALS['egw_setup']->db->f('cal_owner'),__LINE__,__FILE__); |
|
328 | + $db2->query("SELECT preference_value FROM preferences WHERE preference_name='tz_offset' AND preference_appname='common' AND preference_owner=".$GLOBALS['egw_setup']->db->f('cal_owner'), __LINE__, __FILE__); |
|
329 | 329 | $db2->next_record(); |
330 | 330 | $tz = $db2->f('preference_value'); |
331 | 331 | $cal_id = $GLOBALS['egw_setup']->oProc->f('cal_id'); |
332 | 332 | $datetime = $GLOBALS['egw_setup']->oProc->f('cal_datetime') - ((60 * 60) * $tz); |
333 | 333 | $mdatetime = $GLOBALS['egw_setup']->oProc->f('cal_mdatetime') - ((60 * 60) * $tz); |
334 | 334 | $edatetime = $datetime + (60 * $GLOBALS['egw_setup']->oProc->f('cal_edatetime')); |
335 | - $db2->query('UPDATE calendar_entry SET cal_datetime='.$datetime.', cal_edatetime='.$edatetime.', cal_mdatetime='.$mdatetime.' WHERE cal_id='.$cal_id,__LINE__,__FILE__); |
|
335 | + $db2->query('UPDATE calendar_entry SET cal_datetime='.$datetime.', cal_edatetime='.$edatetime.', cal_mdatetime='.$mdatetime.' WHERE cal_id='.$cal_id, __LINE__, __FILE__); |
|
336 | 336 | } |
337 | 337 | } |
338 | 338 | |
@@ -580,22 +580,22 @@ discard block |
||
580 | 580 | { |
581 | 581 | $db2 = $GLOBALS['egw_setup']->db; |
582 | 582 | |
583 | - if(extension_loaded('mcal') == False) |
|
583 | + if (extension_loaded('mcal') == False) |
|
584 | 584 | { |
585 | - define(RECUR_NONE,0); |
|
586 | - define(RECUR_DAILY,1); |
|
587 | - define(RECUR_WEEKLY,2); |
|
588 | - define(RECUR_MONTHLY_MDAY,3); |
|
589 | - define(RECUR_MONTHLY_WDAY,4); |
|
590 | - define(RECUR_YEARLY,5); |
|
591 | - |
|
592 | - define(M_SUNDAY,1); |
|
593 | - define(M_MONDAY,2); |
|
594 | - define(M_TUESDAY,4); |
|
595 | - define(M_WEDNESDAY,8); |
|
596 | - define(M_THURSDAY,16); |
|
597 | - define(M_FRIDAY,32); |
|
598 | - define(M_SATURDAY,64); |
|
585 | + define(RECUR_NONE, 0); |
|
586 | + define(RECUR_DAILY, 1); |
|
587 | + define(RECUR_WEEKLY, 2); |
|
588 | + define(RECUR_MONTHLY_MDAY, 3); |
|
589 | + define(RECUR_MONTHLY_WDAY, 4); |
|
590 | + define(RECUR_YEARLY, 5); |
|
591 | + |
|
592 | + define(M_SUNDAY, 1); |
|
593 | + define(M_MONDAY, 2); |
|
594 | + define(M_TUESDAY, 4); |
|
595 | + define(M_WEDNESDAY, 8); |
|
596 | + define(M_THURSDAY, 16); |
|
597 | + define(M_FRIDAY, 32); |
|
598 | + define(M_SATURDAY, 64); |
|
599 | 599 | } |
600 | 600 | |
601 | 601 | // calendar_entry => phpgw_cal |
@@ -622,13 +622,13 @@ discard block |
||
622 | 622 | ) |
623 | 623 | ); |
624 | 624 | |
625 | - $GLOBALS['egw_setup']->oProc->query('SELECT * FROM calendar_entry',__LINE__,__FILE__); |
|
626 | - while($GLOBALS['egw_setup']->oProc->next_record()) |
|
625 | + $GLOBALS['egw_setup']->oProc->query('SELECT * FROM calendar_entry', __LINE__, __FILE__); |
|
626 | + while ($GLOBALS['egw_setup']->oProc->next_record()) |
|
627 | 627 | { |
628 | 628 | $id = $GLOBALS['egw_setup']->oProc->f('cal_id'); |
629 | 629 | $owner = $GLOBALS['egw_setup']->oProc->f('cal_owner'); |
630 | 630 | $access = $GLOBALS['egw_setup']->oProc->f('cal_access'); |
631 | - switch($access) |
|
631 | + switch ($access) |
|
632 | 632 | { |
633 | 633 | case 'private': |
634 | 634 | $is_public = 0; |
@@ -650,7 +650,7 @@ discard block |
||
650 | 650 | $description = $GLOBALS['egw_setup']->oProc->f('cal_description'); |
651 | 651 | |
652 | 652 | $db2->query("INSERT INTO phpgw_cal(cal_id,owner,groups,datetime,mdatetime,edatetime,priority,cal_type,is_public,title,description) " |
653 | - . "VALUES($id,$owner,'$groups',$datetime,$mdatetime,$edatetime,$priority,'$type',$is_public,'$title','$description')",__LINE__,__FILE__); |
|
653 | + . "VALUES($id,$owner,'$groups',$datetime,$mdatetime,$edatetime,$priority,'$type',$is_public,'$title','$description')", __LINE__, __FILE__); |
|
654 | 654 | } |
655 | 655 | $GLOBALS['egw_setup']->oProc->DropTable('calendar_entry'); |
656 | 656 | |
@@ -658,12 +658,12 @@ discard block |
||
658 | 658 | $GLOBALS['egw_setup']->oProc->CreateTable('phpgw_cal_repeats', |
659 | 659 | Array( |
660 | 660 | 'fd' => array( |
661 | - 'cal_id' => array('type' => 'int', 'precision' => 8,'nullable' => False), |
|
662 | - 'recur_type' => array('type' => 'int', 'precision' => 8,'nullable' => False), |
|
663 | - 'recur_use_end' => array('type' => 'int', 'precision' => 8,'nullable' => True), |
|
664 | - 'recur_enddate' => array('type' => 'int', 'precision' => 8,'nullable' => True), |
|
665 | - 'recur_interval' => array('type' => 'int', 'precision' => 8,'nullable' => True,'default' => '1'), |
|
666 | - 'recur_data' => array('type' => 'int', 'precision' => 8,'nullable' => True,'default' => '1') |
|
661 | + 'cal_id' => array('type' => 'int', 'precision' => 8, 'nullable' => False), |
|
662 | + 'recur_type' => array('type' => 'int', 'precision' => 8, 'nullable' => False), |
|
663 | + 'recur_use_end' => array('type' => 'int', 'precision' => 8, 'nullable' => True), |
|
664 | + 'recur_enddate' => array('type' => 'int', 'precision' => 8, 'nullable' => True), |
|
665 | + 'recur_interval' => array('type' => 'int', 'precision' => 8, 'nullable' => True, 'default' => '1'), |
|
666 | + 'recur_data' => array('type' => 'int', 'precision' => 8, 'nullable' => True, 'default' => '1') |
|
667 | 667 | ), |
668 | 668 | 'pk' => array(), |
669 | 669 | 'fk' => array(), |
@@ -671,12 +671,12 @@ discard block |
||
671 | 671 | 'uc' => array() |
672 | 672 | ) |
673 | 673 | ); |
674 | - $GLOBALS['egw_setup']->oProc->query('SELECT * FROM calendar_entry_repeats',__LINE__,__FILE__); |
|
675 | - while($GLOBALS['egw_setup']->oProc->next_record()) |
|
674 | + $GLOBALS['egw_setup']->oProc->query('SELECT * FROM calendar_entry_repeats', __LINE__, __FILE__); |
|
675 | + while ($GLOBALS['egw_setup']->oProc->next_record()) |
|
676 | 676 | { |
677 | 677 | $id = $GLOBALS['egw_setup']->oProc->f('cal_id'); |
678 | 678 | $recur_type = $GLOBALS['egw_setup']->oProc->f('cal_type'); |
679 | - switch($recur_type) |
|
679 | + switch ($recur_type) |
|
680 | 680 | { |
681 | 681 | case 'daily': |
682 | 682 | $recur_type_num = RECUR_DAILY; |
@@ -699,20 +699,20 @@ discard block |
||
699 | 699 | $recur_interval = $GLOBALS['egw_setup']->oProc->f('cal_frequency'); |
700 | 700 | $days = strtoupper($GLOBALS['egw_setup']->oProc->f('cal_days')); |
701 | 701 | $recur_data = 0; |
702 | - $recur_data += (substr($days,0,1)=='Y'?M_SUNDAY:0); |
|
703 | - $recur_data += (substr($days,1,1)=='Y'?M_MONDAY:0); |
|
704 | - $recur_data += (substr($days,2,1)=='Y'?M_TUESDAY:0); |
|
705 | - $recur_data += (substr($days,3,1)=='Y'?M_WEDNESDAY:0); |
|
706 | - $recur_data += (substr($days,4,1)=='Y'?M_THURSDAY:0); |
|
707 | - $recur_data += (substr($days,5,1)=='Y'?M_FRIDAY:0); |
|
708 | - $recur_data += (substr($days,6,1)=='Y'?M_SATURDAY:0); |
|
702 | + $recur_data += (substr($days, 0, 1) == 'Y' ? M_SUNDAY : 0); |
|
703 | + $recur_data += (substr($days, 1, 1) == 'Y' ? M_MONDAY : 0); |
|
704 | + $recur_data += (substr($days, 2, 1) == 'Y' ? M_TUESDAY : 0); |
|
705 | + $recur_data += (substr($days, 3, 1) == 'Y' ? M_WEDNESDAY : 0); |
|
706 | + $recur_data += (substr($days, 4, 1) == 'Y' ? M_THURSDAY : 0); |
|
707 | + $recur_data += (substr($days, 5, 1) == 'Y' ? M_FRIDAY : 0); |
|
708 | + $recur_data += (substr($days, 6, 1) == 'Y' ? M_SATURDAY : 0); |
|
709 | 709 | $db2->query("INSERT INTO phpgw_cal_repeats(cal_id,recur_type,recur_use_end,recur_enddate,recur_interval,recur_data) " |
710 | - . "VALUES($id,$recur_type_num,$recur_use_end,$recur_end,$recur_interval,$recur_data)",__LINE__,__FILE__); |
|
710 | + . "VALUES($id,$recur_type_num,$recur_use_end,$recur_end,$recur_interval,$recur_data)", __LINE__, __FILE__); |
|
711 | 711 | } |
712 | 712 | $GLOBALS['egw_setup']->oProc->DropTable('calendar_entry_repeats'); |
713 | 713 | |
714 | 714 | // calendar_entry_user => phpgw_cal_user |
715 | - $GLOBALS['egw_setup']->oProc->RenameTable('calendar_entry_user','phpgw_cal_user'); |
|
715 | + $GLOBALS['egw_setup']->oProc->RenameTable('calendar_entry_user', 'phpgw_cal_user'); |
|
716 | 716 | |
717 | 717 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.11.002'; |
718 | 718 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -731,11 +731,11 @@ discard block |
||
731 | 731 | $GLOBALS['egw_setup']->oProc->CreateTable('phpgw_cal_holidays', |
732 | 732 | Array( |
733 | 733 | 'fd' => array( |
734 | - 'locale' => array('type' => 'char', 'precision' => 2,'nullable' => False), |
|
735 | - 'name' => array('type' => 'varchar', 'precision' => 50,'nullable' => False), |
|
736 | - 'date_time' => array('type' => 'int', 'precision' => 8,'nullable' => False, 'default' => '0') |
|
734 | + 'locale' => array('type' => 'char', 'precision' => 2, 'nullable' => False), |
|
735 | + 'name' => array('type' => 'varchar', 'precision' => 50, 'nullable' => False), |
|
736 | + 'date_time' => array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '0') |
|
737 | 737 | ), |
738 | - 'pk' => array('locale','name'), |
|
738 | + 'pk' => array('locale', 'name'), |
|
739 | 739 | 'fk' => array(), |
740 | 740 | 'ix' => array(), |
741 | 741 | 'uc' => array() |
@@ -767,10 +767,10 @@ discard block |
||
767 | 767 | $GLOBALS['egw_setup']->oProc->CreateTable('phpgw_cal_holidays', |
768 | 768 | Array( |
769 | 769 | 'fd' => array( |
770 | - 'hol_id' => array('type' => 'auto','nullable' => False), |
|
771 | - 'locale' => array('type' => 'char', 'precision' => 2,'nullable' => False), |
|
772 | - 'name' => array('type' => 'varchar', 'precision' => 50,'nullable' => False), |
|
773 | - 'date_time' => array('type' => 'int', 'precision' => 8,'nullable' => False, 'default' => '0') |
|
770 | + 'hol_id' => array('type' => 'auto', 'nullable' => False), |
|
771 | + 'locale' => array('type' => 'char', 'precision' => 2, 'nullable' => False), |
|
772 | + 'name' => array('type' => 'varchar', 'precision' => 50, 'nullable' => False), |
|
773 | + 'date_time' => array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '0') |
|
774 | 774 | ), |
775 | 775 | 'pk' => array('hol_id'), |
776 | 776 | 'fk' => array(), |
@@ -787,10 +787,10 @@ discard block |
||
787 | 787 | function calendar_upgrade0_9_11_007() |
788 | 788 | { |
789 | 789 | $GLOBALS['egw_setup']->oProc->query('DELETE FROM phpgw_cal_holidays'); |
790 | - $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_holidays','mday',array('type' => 'int', 'precision' => 8,'nullable' => False, 'default' => '0')); |
|
791 | - $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_holidays','month_num',array('type' => 'int', 'precision' => 8,'nullable' => False, 'default' => '0')); |
|
792 | - $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_holidays','occurence',array('type' => 'int', 'precision' => 8,'nullable' => False, 'default' => '0')); |
|
793 | - $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_holidays','dow',array('type' => 'int', 'precision' => 8,'nullable' => False, 'default' => '0')); |
|
790 | + $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_holidays', 'mday', array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '0')); |
|
791 | + $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_holidays', 'month_num', array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '0')); |
|
792 | + $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_holidays', 'occurence', array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '0')); |
|
793 | + $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_holidays', 'dow', array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '0')); |
|
794 | 794 | |
795 | 795 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.11.008'; |
796 | 796 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -807,7 +807,7 @@ discard block |
||
807 | 807 | function calendar_upgrade0_9_11_009() |
808 | 808 | { |
809 | 809 | $GLOBALS['egw_setup']->oProc->query('DELETE FROM phpgw_cal_holidays'); |
810 | - $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_holidays','observance_rule',array('type' => 'int', 'precision' => 8,'nullable' => False, 'default' => '0')); |
|
810 | + $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_holidays', 'observance_rule', array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '0')); |
|
811 | 811 | |
812 | 812 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.11.010'; |
813 | 813 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -842,7 +842,7 @@ discard block |
||
842 | 842 | |
843 | 843 | function calendar_upgrade0_9_13_002() |
844 | 844 | { |
845 | - $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal','reference',array('type' => 'int', 'precision' => 8,'nullable' => False, 'default' => '0')); |
|
845 | + $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal', 'reference', array('type' => 'int', 'precision' => 8, 'nullable' => False, 'default' => '0')); |
|
846 | 846 | |
847 | 847 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.13.003'; |
848 | 848 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -854,7 +854,7 @@ discard block |
||
854 | 854 | $GLOBALS['egw_setup']->oProc->CreateTable('phpgw_cal_alarm', |
855 | 855 | Array( |
856 | 856 | 'fd' => array( |
857 | - 'alarm_id' => array('type' => 'auto','nullable' => False), |
|
857 | + 'alarm_id' => array('type' => 'auto', 'nullable' => False), |
|
858 | 858 | 'cal_id' => array('type' => 'int', 'precision' => 8, 'nullable' => False), |
859 | 859 | 'cal_owner' => array('type' => 'int', 'precision' => 8, 'nullable' => False), |
860 | 860 | 'cal_time' => array('type' => 'int', 'precision' => 8, 'nullable' => False), |
@@ -867,8 +867,8 @@ discard block |
||
867 | 867 | ) |
868 | 868 | ); |
869 | 869 | |
870 | - $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal','uid',array('type' => 'varchar', 'precision' => 255,'nullable' => False)); |
|
871 | - $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal','location',array('type' => 'varchar', 'precision' => 255,'nullable' => True)); |
|
870 | + $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal', 'uid', array('type' => 'varchar', 'precision' => 255, 'nullable' => False)); |
|
871 | + $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal', 'location', array('type' => 'varchar', 'precision' => 255, 'nullable' => True)); |
|
872 | 872 | |
873 | 873 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.13.004'; |
874 | 874 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -877,7 +877,7 @@ discard block |
||
877 | 877 | |
878 | 878 | function calendar_upgrade0_9_13_004() |
879 | 879 | { |
880 | - $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_alarm','alarm_enabled',array('type' => 'int', 'precision' => 4,'nullable' => False, 'default' => '1')); |
|
880 | + $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_alarm', 'alarm_enabled', array('type' => 'int', 'precision' => 4, 'nullable' => False, 'default' => '1')); |
|
881 | 881 | |
882 | 882 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.13.005'; |
883 | 883 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -887,18 +887,18 @@ discard block |
||
887 | 887 | function calendar_upgrade0_9_13_005() |
888 | 888 | { |
889 | 889 | $calendar_data = Array(); |
890 | - $GLOBALS['egw_setup']->oProc->query('SELECT cal_id, category FROM phpgw_cal',__LINE__,__FILE__); |
|
891 | - while($GLOBALS['egw_setup']->oProc->next_record()) |
|
890 | + $GLOBALS['egw_setup']->oProc->query('SELECT cal_id, category FROM phpgw_cal', __LINE__, __FILE__); |
|
891 | + while ($GLOBALS['egw_setup']->oProc->next_record()) |
|
892 | 892 | { |
893 | 893 | $calendar_data[$GLOBALS['egw_setup']->oProc->f('cal_id')] = $GLOBALS['egw_setup']->oProc->f('category'); |
894 | 894 | } |
895 | 895 | |
896 | - $GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_cal','category',array('type' => 'varchar', 'precision' => 30,'nullable' => True)); |
|
896 | + $GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_cal', 'category', array('type' => 'varchar', 'precision' => 30, 'nullable' => True)); |
|
897 | 897 | |
898 | 898 | @reset($calendar_data); |
899 | - while($calendar_data && list($cal_id,$category) = each($calendar_data)) |
|
899 | + while ($calendar_data && list($cal_id, $category) = each($calendar_data)) |
|
900 | 900 | { |
901 | - $GLOBALS['egw_setup']->oProc->query("UPDATE phpgw_cal SET category='".$category."' WHERE cal_id=".$cal_id,__LINE__,__FILE__); |
|
901 | + $GLOBALS['egw_setup']->oProc->query("UPDATE phpgw_cal SET category='".$category."' WHERE cal_id=".$cal_id, __LINE__, __FILE__); |
|
902 | 902 | } |
903 | 903 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.13.006'; |
904 | 904 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -907,7 +907,7 @@ discard block |
||
907 | 907 | |
908 | 908 | function calendar_upgrade0_9_13_006() |
909 | 909 | { |
910 | - $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_repeats','recur_exception',array('type' => 'varchar', 'precision' => 255, 'nullable' => True, 'default' => '')); |
|
910 | + $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_repeats', 'recur_exception', array('type' => 'varchar', 'precision' => 255, 'nullable' => True, 'default' => '')); |
|
911 | 911 | |
912 | 912 | $GLOBALS['setup_info']['calendar']['currentver'] = '0.9.13.007'; |
913 | 913 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -917,20 +917,20 @@ discard block |
||
917 | 917 | |
918 | 918 | function calendar_upgrade0_9_13_007() |
919 | 919 | { |
920 | - $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_user','cal_type',array( |
|
920 | + $GLOBALS['egw_setup']->oProc->AddColumn('phpgw_cal_user', 'cal_type', array( |
|
921 | 921 | 'type' => 'varchar', |
922 | 922 | 'precision' => '1', |
923 | 923 | 'nullable' => False, |
924 | 924 | 'default' => 'u' |
925 | 925 | )); |
926 | 926 | |
927 | - $GLOBALS['egw_setup']->oProc->CreateTable('phpgw_cal_extra',array( |
|
927 | + $GLOBALS['egw_setup']->oProc->CreateTable('phpgw_cal_extra', array( |
|
928 | 928 | 'fd' => array( |
929 | - 'cal_id' => array('type' => 'int','precision' => '4','nullable' => False), |
|
930 | - 'cal_extra_name' => array('type' => 'varchar','precision' => '40','nullable' => False), |
|
931 | - 'cal_extra_value' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => '') |
|
929 | + 'cal_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
930 | + 'cal_extra_name' => array('type' => 'varchar', 'precision' => '40', 'nullable' => False), |
|
931 | + 'cal_extra_value' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False, 'default' => '') |
|
932 | 932 | ), |
933 | - 'pk' => array('cal_id','cal_extra_name'), |
|
933 | + 'pk' => array('cal_id', 'cal_extra_name'), |
|
934 | 934 | 'fk' => array(), |
935 | 935 | 'ix' => array(), |
936 | 936 | 'uc' => array() |
@@ -947,7 +947,7 @@ discard block |
||
947 | 947 | function calendar_upgrade0_9_16_001() |
948 | 948 | { |
949 | 949 | // this is to set the default as schema_proc was not setting an empty default |
950 | - $GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_cal_user','cal_type',array( |
|
950 | + $GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_cal_user', 'cal_type', array( |
|
951 | 951 | 'type' => 'varchar', |
952 | 952 | 'precision' => '1', |
953 | 953 | 'nullable' => False, |
@@ -964,15 +964,15 @@ discard block |
||
964 | 964 | |
965 | 965 | function calendar_upgrade0_9_16_002() |
966 | 966 | { |
967 | - $GLOBALS['egw_setup']->oProc->RefreshTable('phpgw_cal_repeats',array( |
|
967 | + $GLOBALS['egw_setup']->oProc->RefreshTable('phpgw_cal_repeats', array( |
|
968 | 968 | 'fd' => array( |
969 | - 'cal_id' => array('type' => 'int','precision' => '8','nullable' => False), |
|
970 | - 'recur_type' => array('type' => 'int','precision' => '8','nullable' => False), |
|
971 | - 'recur_use_end' => array('type' => 'int','precision' => '8','default' => '0'), |
|
972 | - 'recur_enddate' => array('type' => 'int','precision' => '8'), |
|
973 | - 'recur_interval' => array('type' => 'int','precision' => '8','default' => '1'), |
|
974 | - 'recur_data' => array('type' => 'int','precision' => '8','default' => '1'), |
|
975 | - 'recur_exception' => array('type' => 'varchar','precision' => '255','default' => '') |
|
969 | + 'cal_id' => array('type' => 'int', 'precision' => '8', 'nullable' => False), |
|
970 | + 'recur_type' => array('type' => 'int', 'precision' => '8', 'nullable' => False), |
|
971 | + 'recur_use_end' => array('type' => 'int', 'precision' => '8', 'default' => '0'), |
|
972 | + 'recur_enddate' => array('type' => 'int', 'precision' => '8'), |
|
973 | + 'recur_interval' => array('type' => 'int', 'precision' => '8', 'default' => '1'), |
|
974 | + 'recur_data' => array('type' => 'int', 'precision' => '8', 'default' => '1'), |
|
975 | + 'recur_exception' => array('type' => 'varchar', 'precision' => '255', 'default' => '') |
|
976 | 976 | ), |
977 | 977 | 'pk' => array(), |
978 | 978 | 'fk' => array(), |
@@ -988,14 +988,14 @@ discard block |
||
988 | 988 | |
989 | 989 | function calendar_upgrade0_9_16_003() |
990 | 990 | { |
991 | - $GLOBALS['egw_setup']->oProc->RefreshTable('phpgw_cal_user',array( |
|
991 | + $GLOBALS['egw_setup']->oProc->RefreshTable('phpgw_cal_user', array( |
|
992 | 992 | 'fd' => array( |
993 | - 'cal_id' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
994 | - 'cal_login' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
995 | - 'cal_status' => array('type' => 'char','precision' => '1','default' => 'A'), |
|
996 | - 'cal_type' => array('type' => 'varchar','precision' => '1','nullable' => False,'default' => 'u') |
|
993 | + 'cal_id' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
994 | + 'cal_login' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
995 | + 'cal_status' => array('type' => 'char', 'precision' => '1', 'default' => 'A'), |
|
996 | + 'cal_type' => array('type' => 'varchar', 'precision' => '1', 'nullable' => False, 'default' => 'u') |
|
997 | 997 | ), |
998 | - 'pk' => array('cal_id','cal_login','cal_type'), |
|
998 | + 'pk' => array('cal_id', 'cal_login', 'cal_type'), |
|
999 | 999 | 'fk' => array(), |
1000 | 1000 | 'ix' => array(), |
1001 | 1001 | 'uc' => array() |
@@ -1009,16 +1009,16 @@ discard block |
||
1009 | 1009 | |
1010 | 1010 | function calendar_upgrade0_9_16_004() |
1011 | 1011 | { |
1012 | - $GLOBALS['egw_setup']->oProc->RefreshTable('phpgw_cal_holidays',array( |
|
1012 | + $GLOBALS['egw_setup']->oProc->RefreshTable('phpgw_cal_holidays', array( |
|
1013 | 1013 | 'fd' => array( |
1014 | - 'hol_id' => array('type' => 'auto','nullable' => False), |
|
1015 | - 'locale' => array('type' => 'char','precision' => '2','nullable' => False), |
|
1016 | - 'name' => array('type' => 'varchar','precision' => '50','nullable' => False), |
|
1017 | - 'mday' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
1018 | - 'month_num' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
1019 | - 'occurence' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
1020 | - 'dow' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
1021 | - 'observance_rule' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0') |
|
1014 | + 'hol_id' => array('type' => 'auto', 'nullable' => False), |
|
1015 | + 'locale' => array('type' => 'char', 'precision' => '2', 'nullable' => False), |
|
1016 | + 'name' => array('type' => 'varchar', 'precision' => '50', 'nullable' => False), |
|
1017 | + 'mday' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
1018 | + 'month_num' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
1019 | + 'occurence' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
1020 | + 'dow' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
1021 | + 'observance_rule' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0') |
|
1022 | 1022 | ), |
1023 | 1023 | 'pk' => array('hol_id'), |
1024 | 1024 | 'fk' => array(), |
@@ -1036,13 +1036,13 @@ discard block |
||
1036 | 1036 | { |
1037 | 1037 | // creates uid's for all entries which do not have unique ones, they are '[email protected]' |
1038 | 1038 | // very old entries even have an empty uid, see 0.9.16.006 update |
1039 | - $GLOBALS['egw_setup']->oProc->query("SELECT config_name,config_value FROM {$GLOBALS['egw_setup']->config_table} WHERE config_name IN ('install_id','mail_suffix') AND config_app='phpgwapi'",__LINE__,__FILE__); |
|
1039 | + $GLOBALS['egw_setup']->oProc->query("SELECT config_name,config_value FROM {$GLOBALS['egw_setup']->config_table} WHERE config_name IN ('install_id','mail_suffix') AND config_app='phpgwapi'", __LINE__, __FILE__); |
|
1040 | 1040 | while ($GLOBALS['egw_setup']->oProc->next_record()) |
1041 | 1041 | { |
1042 | 1042 | $config[$GLOBALS['egw_setup']->oProc->f(0)] = $GLOBALS['egw_setup']->oProc->f(1); |
1043 | 1043 | } |
1044 | 1044 | $GLOBALS['egw_setup']->oProc->query('UPDATE phpgw_cal SET uid='. |
1045 | - $GLOBALS['egw_setup']->db->concat($GLOBALS['egw_setup']->db->quote('cal-'),'cal_id', |
|
1045 | + $GLOBALS['egw_setup']->db->concat($GLOBALS['egw_setup']->db->quote('cal-'), 'cal_id', |
|
1046 | 1046 | $GLOBALS['egw_setup']->db->quote('-'.$config['install_id'].'@'. |
1047 | 1047 | ($config['mail_suffix'] ? $config['mail_suffix'] : 'local'))). |
1048 | 1048 | " WHERE uid LIKE '-@%' OR uid=''"); |
@@ -1065,7 +1065,7 @@ discard block |
||
1065 | 1065 | function calendar_upgrade0_9_16_007() |
1066 | 1066 | { |
1067 | 1067 | // update the sequenzes for refreshed tables (postgres only) |
1068 | - $GLOBALS['egw_setup']->oProc->UpdateSequence('phpgw_cal_holidays','hol_id'); |
|
1068 | + $GLOBALS['egw_setup']->oProc->UpdateSequence('phpgw_cal_holidays', 'hol_id'); |
|
1069 | 1069 | |
1070 | 1070 | $GLOBALS['setup_info']['calendar']['currentver'] = '1.0.0'; |
1071 | 1071 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -1075,19 +1075,19 @@ discard block |
||
1075 | 1075 | |
1076 | 1076 | function calendar_upgrade1_0_0() |
1077 | 1077 | { |
1078 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','uid','cal_uid'); |
|
1079 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','owner','cal_owner'); |
|
1080 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','category','cal_category'); |
|
1081 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','groups','cal_groups'); |
|
1082 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','datetime','cal_starttime'); |
|
1083 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','mdatetime','cal_modified'); |
|
1084 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','edatetime','cal_endtime'); |
|
1085 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','priority','cal_priority'); |
|
1086 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','is_public','cal_public'); |
|
1087 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','title','cal_title'); |
|
1088 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','description','cal_description'); |
|
1089 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','location','cal_location'); |
|
1090 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal','reference','cal_reference'); |
|
1078 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'uid', 'cal_uid'); |
|
1079 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'owner', 'cal_owner'); |
|
1080 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'category', 'cal_category'); |
|
1081 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'groups', 'cal_groups'); |
|
1082 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'datetime', 'cal_starttime'); |
|
1083 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'mdatetime', 'cal_modified'); |
|
1084 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'edatetime', 'cal_endtime'); |
|
1085 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'priority', 'cal_priority'); |
|
1086 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'is_public', 'cal_public'); |
|
1087 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'title', 'cal_title'); |
|
1088 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'description', 'cal_description'); |
|
1089 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'location', 'cal_location'); |
|
1090 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal', 'reference', 'cal_reference'); |
|
1091 | 1091 | |
1092 | 1092 | $GLOBALS['setup_info']['calendar']['currentver'] = '1.0.0.001'; |
1093 | 1093 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -1097,13 +1097,13 @@ discard block |
||
1097 | 1097 | |
1098 | 1098 | function calendar_upgrade1_0_0_001() |
1099 | 1099 | { |
1100 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays','locale','hol_locale'); |
|
1101 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays','name','hol_name'); |
|
1102 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays','mday','hol_mday'); |
|
1103 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays','month_num','hol_month_num'); |
|
1104 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays','occurence','hol_occurence'); |
|
1105 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays','dow','hol_dow'); |
|
1106 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays','observance_rule','hol_observance_rule'); |
|
1100 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays', 'locale', 'hol_locale'); |
|
1101 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays', 'name', 'hol_name'); |
|
1102 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays', 'mday', 'hol_mday'); |
|
1103 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays', 'month_num', 'hol_month_num'); |
|
1104 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays', 'occurence', 'hol_occurence'); |
|
1105 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays', 'dow', 'hol_dow'); |
|
1106 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_holidays', 'observance_rule', 'hol_observance_rule'); |
|
1107 | 1107 | |
1108 | 1108 | $GLOBALS['setup_info']['calendar']['currentver'] = '1.0.0.002'; |
1109 | 1109 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -1113,8 +1113,8 @@ discard block |
||
1113 | 1113 | |
1114 | 1114 | function calendar_upgrade1_0_0_002() |
1115 | 1115 | { |
1116 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_user','cal_login','cal_user_id'); |
|
1117 | - $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_user','cal_type','cal_user_type'); |
|
1116 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_user', 'cal_login', 'cal_user_id'); |
|
1117 | + $GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_cal_user', 'cal_type', 'cal_user_type'); |
|
1118 | 1118 | |
1119 | 1119 | $GLOBALS['setup_info']['calendar']['currentver'] = '1.0.0.003'; |
1120 | 1120 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -1124,7 +1124,7 @@ discard block |
||
1124 | 1124 | |
1125 | 1125 | function calendar_upgrade1_0_0_003() |
1126 | 1126 | { |
1127 | - $GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_cal','cal_title',array( |
|
1127 | + $GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_cal', 'cal_title', array( |
|
1128 | 1128 | 'type' => 'varchar', |
1129 | 1129 | 'precision' => '255', |
1130 | 1130 | 'nullable' => False, |
@@ -1139,15 +1139,15 @@ discard block |
||
1139 | 1139 | |
1140 | 1140 | function calendar_upgrade1_0_0_004() |
1141 | 1141 | { |
1142 | - $GLOBALS['egw_setup']->oProc->RefreshTable('phpgw_cal_repeats',array( |
|
1142 | + $GLOBALS['egw_setup']->oProc->RefreshTable('phpgw_cal_repeats', array( |
|
1143 | 1143 | 'fd' => array( |
1144 | - 'cal_id' => array('type' => 'int','precision' => '8','nullable' => False), |
|
1145 | - 'recur_type' => array('type' => 'int','precision' => '8','nullable' => False), |
|
1146 | - 'recur_use_end' => array('type' => 'int','precision' => '8','default' => '0'), |
|
1147 | - 'recur_enddate' => array('type' => 'int','precision' => '8'), |
|
1148 | - 'recur_interval' => array('type' => 'int','precision' => '8','default' => '1'), |
|
1149 | - 'recur_data' => array('type' => 'int','precision' => '8','default' => '1'), |
|
1150 | - 'recur_exception' => array('type' => 'varchar','precision' => '255','default' => '') |
|
1144 | + 'cal_id' => array('type' => 'int', 'precision' => '8', 'nullable' => False), |
|
1145 | + 'recur_type' => array('type' => 'int', 'precision' => '8', 'nullable' => False), |
|
1146 | + 'recur_use_end' => array('type' => 'int', 'precision' => '8', 'default' => '0'), |
|
1147 | + 'recur_enddate' => array('type' => 'int', 'precision' => '8'), |
|
1148 | + 'recur_interval' => array('type' => 'int', 'precision' => '8', 'default' => '1'), |
|
1149 | + 'recur_data' => array('type' => 'int', 'precision' => '8', 'default' => '1'), |
|
1150 | + 'recur_exception' => array('type' => 'varchar', 'precision' => '255', 'default' => '') |
|
1151 | 1151 | ), |
1152 | 1152 | 'pk' => array('cal_id'), |
1153 | 1153 | 'fk' => array(), |
@@ -1164,19 +1164,19 @@ discard block |
||
1164 | 1164 | function calendar_upgrade1_0_0_005() |
1165 | 1165 | { |
1166 | 1166 | // change prefix of all calendar tables to egw_ |
1167 | - foreach(array('cal_user','cal_repeats','cal_extra','cal_holidays','cal') as $name) |
|
1167 | + foreach (array('cal_user', 'cal_repeats', 'cal_extra', 'cal_holidays', 'cal') as $name) |
|
1168 | 1168 | { |
1169 | - $GLOBALS['egw_setup']->oProc->RenameTable('phpgw_'.$name,'egw_'.$name); |
|
1169 | + $GLOBALS['egw_setup']->oProc->RenameTable('phpgw_'.$name, 'egw_'.$name); |
|
1170 | 1170 | } |
1171 | 1171 | |
1172 | 1172 | // create new dates table, with content from the egw_cal table |
1173 | - $GLOBALS['egw_setup']->oProc->CreateTable('egw_cal_dates',array( |
|
1173 | + $GLOBALS['egw_setup']->oProc->CreateTable('egw_cal_dates', array( |
|
1174 | 1174 | 'fd' => array( |
1175 | - 'cal_id' => array('type' => 'int','precision' => '4','nullable' => False), |
|
1176 | - 'cal_start' => array('type' => 'int','precision' => '8','nullable' => False), |
|
1177 | - 'cal_end' => array('type' => 'int','precision' => '8','nullable' => False) |
|
1175 | + 'cal_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
1176 | + 'cal_start' => array('type' => 'int', 'precision' => '8', 'nullable' => False), |
|
1177 | + 'cal_end' => array('type' => 'int', 'precision' => '8', 'nullable' => False) |
|
1178 | 1178 | ), |
1179 | - 'pk' => array('cal_id','cal_start'), |
|
1179 | + 'pk' => array('cal_id', 'cal_start'), |
|
1180 | 1180 | 'fk' => array(), |
1181 | 1181 | 'ix' => array(), |
1182 | 1182 | 'uc' => array() |
@@ -1184,49 +1184,49 @@ discard block |
||
1184 | 1184 | $GLOBALS['egw_setup']->oProc->query("INSERT INTO egw_cal_dates SELECT cal_id,cal_starttime,cal_endtime FROM egw_cal"); |
1185 | 1185 | |
1186 | 1186 | // drop the fields transfered to the dates table |
1187 | - $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal',array( |
|
1187 | + $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal', array( |
|
1188 | 1188 | 'fd' => array( |
1189 | - 'cal_id' => array('type' => 'auto','nullable' => False), |
|
1190 | - 'cal_uid' => array('type' => 'varchar','precision' => '255','nullable' => False), |
|
1191 | - 'cal_owner' => array('type' => 'int','precision' => '8','nullable' => False), |
|
1192 | - 'cal_category' => array('type' => 'varchar','precision' => '30'), |
|
1193 | - 'cal_groups' => array('type' => 'varchar','precision' => '255'), |
|
1194 | - 'cal_modified' => array('type' => 'int','precision' => '8'), |
|
1195 | - 'cal_endtime' => array('type' => 'int','precision' => '8'), |
|
1196 | - 'cal_priority' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '2'), |
|
1197 | - 'cal_type' => array('type' => 'varchar','precision' => '10'), |
|
1198 | - 'cal_public' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '1'), |
|
1199 | - 'cal_title' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => '1'), |
|
1189 | + 'cal_id' => array('type' => 'auto', 'nullable' => False), |
|
1190 | + 'cal_uid' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), |
|
1191 | + 'cal_owner' => array('type' => 'int', 'precision' => '8', 'nullable' => False), |
|
1192 | + 'cal_category' => array('type' => 'varchar', 'precision' => '30'), |
|
1193 | + 'cal_groups' => array('type' => 'varchar', 'precision' => '255'), |
|
1194 | + 'cal_modified' => array('type' => 'int', 'precision' => '8'), |
|
1195 | + 'cal_endtime' => array('type' => 'int', 'precision' => '8'), |
|
1196 | + 'cal_priority' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '2'), |
|
1197 | + 'cal_type' => array('type' => 'varchar', 'precision' => '10'), |
|
1198 | + 'cal_public' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '1'), |
|
1199 | + 'cal_title' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False, 'default' => '1'), |
|
1200 | 1200 | 'cal_description' => array('type' => 'text'), |
1201 | - 'cal_location' => array('type' => 'varchar','precision' => '255'), |
|
1202 | - 'cal_reference' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0') |
|
1201 | + 'cal_location' => array('type' => 'varchar', 'precision' => '255'), |
|
1202 | + 'cal_reference' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0') |
|
1203 | 1203 | ), |
1204 | 1204 | 'pk' => array('cal_id'), |
1205 | 1205 | 'fk' => array(), |
1206 | 1206 | 'ix' => array(), |
1207 | 1207 | 'uc' => array() |
1208 | - ),'cal_starttime'); |
|
1209 | - $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal',array( |
|
1208 | + ), 'cal_starttime'); |
|
1209 | + $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal', array( |
|
1210 | 1210 | 'fd' => array( |
1211 | - 'cal_id' => array('type' => 'auto','nullable' => False), |
|
1212 | - 'cal_uid' => array('type' => 'varchar','precision' => '255','nullable' => False), |
|
1213 | - 'cal_owner' => array('type' => 'int','precision' => '8','nullable' => False), |
|
1214 | - 'cal_category' => array('type' => 'varchar','precision' => '30'), |
|
1215 | - 'cal_groups' => array('type' => 'varchar','precision' => '255'), |
|
1216 | - 'cal_modified' => array('type' => 'int','precision' => '8'), |
|
1217 | - 'cal_priority' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '2'), |
|
1218 | - 'cal_type' => array('type' => 'varchar','precision' => '10'), |
|
1219 | - 'cal_public' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '1'), |
|
1220 | - 'cal_title' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => '1'), |
|
1211 | + 'cal_id' => array('type' => 'auto', 'nullable' => False), |
|
1212 | + 'cal_uid' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), |
|
1213 | + 'cal_owner' => array('type' => 'int', 'precision' => '8', 'nullable' => False), |
|
1214 | + 'cal_category' => array('type' => 'varchar', 'precision' => '30'), |
|
1215 | + 'cal_groups' => array('type' => 'varchar', 'precision' => '255'), |
|
1216 | + 'cal_modified' => array('type' => 'int', 'precision' => '8'), |
|
1217 | + 'cal_priority' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '2'), |
|
1218 | + 'cal_type' => array('type' => 'varchar', 'precision' => '10'), |
|
1219 | + 'cal_public' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '1'), |
|
1220 | + 'cal_title' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False, 'default' => '1'), |
|
1221 | 1221 | 'cal_description' => array('type' => 'text'), |
1222 | - 'cal_location' => array('type' => 'varchar','precision' => '255'), |
|
1223 | - 'cal_reference' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0') |
|
1222 | + 'cal_location' => array('type' => 'varchar', 'precision' => '255'), |
|
1223 | + 'cal_reference' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0') |
|
1224 | 1224 | ), |
1225 | 1225 | 'pk' => array('cal_id'), |
1226 | 1226 | 'fk' => array(), |
1227 | 1227 | 'ix' => array(), |
1228 | 1228 | 'uc' => array() |
1229 | - ),'cal_endtime'); |
|
1229 | + ), 'cal_endtime'); |
|
1230 | 1230 | |
1231 | 1231 | $GLOBALS['setup_info']['calendar']['currentver'] = '1.0.1.001'; |
1232 | 1232 | return $GLOBALS['setup_info']['calendar']['currentver']; |
@@ -1242,15 +1242,15 @@ discard block |
||
1242 | 1242 | 'precision' => '8', |
1243 | 1243 | 'default' => '0' |
1244 | 1244 | ));*/ |
1245 | - $GLOBALS['egw_setup']->oProc->RefreshTable('egw_cal_user',array( |
|
1245 | + $GLOBALS['egw_setup']->oProc->RefreshTable('egw_cal_user', array( |
|
1246 | 1246 | 'fd' => array( |
1247 | - 'cal_id' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
1248 | - 'cal_recur_date' => array('type' => 'int','precision' => '8','default' => '0'), |
|
1249 | - 'cal_user_type' => array('type' => 'varchar','precision' => '1','nullable' => False,'default' => 'u'), |
|
1250 | - 'cal_user_id' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'), |
|
1251 | - 'cal_status' => array('type' => 'char','precision' => '1','default' => 'A') |
|
1247 | + 'cal_id' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
1248 | + 'cal_recur_date' => array('type' => 'int', 'precision' => '8', 'default' => '0'), |
|
1249 | + 'cal_user_type' => array('type' => 'varchar', 'precision' => '1', 'nullable' => False, 'default' => 'u'), |
|
1250 | + 'cal_user_id' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
1251 | + 'cal_status' => array('type' => 'char', 'precision' => '1', 'default' => 'A') |
|
1252 | 1252 | ), |
1253 | - 'pk' => array('cal_id','cal_recur_date','cal_user_type','cal_user_id'), |
|
1253 | + 'pk' => array('cal_id', 'cal_recur_date', 'cal_user_type', 'cal_user_id'), |
|
1254 | 1254 | 'fk' => array(), |
1255 | 1255 | 'ix' => array(), |
1256 | 1256 | 'uc' => array() |
@@ -1264,50 +1264,50 @@ discard block |
||
1264 | 1264 | |
1265 | 1265 | function calendar_upgrade1_0_1_002() |
1266 | 1266 | { |
1267 | - $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal',array( |
|
1267 | + $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal', array( |
|
1268 | 1268 | 'fd' => array( |
1269 | - 'cal_id' => array('type' => 'auto','nullable' => False), |
|
1270 | - 'cal_uid' => array('type' => 'varchar','precision' => '255','nullable' => False), |
|
1271 | - 'cal_owner' => array('type' => 'int','precision' => '8','nullable' => False), |
|
1272 | - 'cal_category' => array('type' => 'varchar','precision' => '30'), |
|
1273 | - 'cal_groups' => array('type' => 'varchar','precision' => '255'), |
|
1274 | - 'cal_modified' => array('type' => 'int','precision' => '8'), |
|
1275 | - 'cal_priority' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '2'), |
|
1276 | - 'cal_public' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '1'), |
|
1277 | - 'cal_title' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => '1'), |
|
1269 | + 'cal_id' => array('type' => 'auto', 'nullable' => False), |
|
1270 | + 'cal_uid' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), |
|
1271 | + 'cal_owner' => array('type' => 'int', 'precision' => '8', 'nullable' => False), |
|
1272 | + 'cal_category' => array('type' => 'varchar', 'precision' => '30'), |
|
1273 | + 'cal_groups' => array('type' => 'varchar', 'precision' => '255'), |
|
1274 | + 'cal_modified' => array('type' => 'int', 'precision' => '8'), |
|
1275 | + 'cal_priority' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '2'), |
|
1276 | + 'cal_public' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '1'), |
|
1277 | + 'cal_title' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False, 'default' => '1'), |
|
1278 | 1278 | 'cal_description' => array('type' => 'text'), |
1279 | - 'cal_location' => array('type' => 'varchar','precision' => '255'), |
|
1280 | - 'cal_reference' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0') |
|
1279 | + 'cal_location' => array('type' => 'varchar', 'precision' => '255'), |
|
1280 | + 'cal_reference' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0') |
|
1281 | 1281 | ), |
1282 | 1282 | 'pk' => array('cal_id'), |
1283 | 1283 | 'fk' => array(), |
1284 | 1284 | 'ix' => array(), |
1285 | 1285 | 'uc' => array() |
1286 | - ),'cal_type'); |
|
1287 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_owner',array( |
|
1286 | + ), 'cal_type'); |
|
1287 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_owner', array( |
|
1288 | 1288 | 'type' => 'int', |
1289 | 1289 | 'precision' => '4', |
1290 | 1290 | 'nullable' => False |
1291 | 1291 | )); |
1292 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_priority',array( |
|
1292 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_priority', array( |
|
1293 | 1293 | 'type' => 'int', |
1294 | 1294 | 'precision' => '2', |
1295 | 1295 | 'nullable' => False, |
1296 | 1296 | 'default' => '2' |
1297 | 1297 | )); |
1298 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_public',array( |
|
1298 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_public', array( |
|
1299 | 1299 | 'type' => 'int', |
1300 | 1300 | 'precision' => '2', |
1301 | 1301 | 'nullable' => False, |
1302 | 1302 | 'default' => '1' |
1303 | 1303 | )); |
1304 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_reference',array( |
|
1304 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_reference', array( |
|
1305 | 1305 | 'type' => 'int', |
1306 | 1306 | 'precision' => '4', |
1307 | 1307 | 'nullable' => False, |
1308 | 1308 | 'default' => '0' |
1309 | 1309 | )); |
1310 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','cal_modifier',array( |
|
1310 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'cal_modifier', array( |
|
1311 | 1311 | 'type' => 'int', |
1312 | 1312 | 'precision' => '4' |
1313 | 1313 | )); |
@@ -1320,36 +1320,36 @@ discard block |
||
1320 | 1320 | |
1321 | 1321 | function calendar_upgrade1_0_1_003() |
1322 | 1322 | { |
1323 | - $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal_repeats',array( |
|
1323 | + $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal_repeats', array( |
|
1324 | 1324 | 'fd' => array( |
1325 | - 'cal_id' => array('type' => 'int','precision' => '8','nullable' => False), |
|
1326 | - 'recur_type' => array('type' => 'int','precision' => '8','nullable' => False), |
|
1327 | - 'recur_enddate' => array('type' => 'int','precision' => '8'), |
|
1328 | - 'recur_interval' => array('type' => 'int','precision' => '8','default' => '1'), |
|
1329 | - 'recur_data' => array('type' => 'int','precision' => '8','default' => '1'), |
|
1330 | - 'recur_exception' => array('type' => 'varchar','precision' => '255','default' => '') |
|
1325 | + 'cal_id' => array('type' => 'int', 'precision' => '8', 'nullable' => False), |
|
1326 | + 'recur_type' => array('type' => 'int', 'precision' => '8', 'nullable' => False), |
|
1327 | + 'recur_enddate' => array('type' => 'int', 'precision' => '8'), |
|
1328 | + 'recur_interval' => array('type' => 'int', 'precision' => '8', 'default' => '1'), |
|
1329 | + 'recur_data' => array('type' => 'int', 'precision' => '8', 'default' => '1'), |
|
1330 | + 'recur_exception' => array('type' => 'varchar', 'precision' => '255', 'default' => '') |
|
1331 | 1331 | ), |
1332 | 1332 | 'pk' => array('cal_id'), |
1333 | 1333 | 'fk' => array(), |
1334 | 1334 | 'ix' => array(), |
1335 | 1335 | 'uc' => array() |
1336 | - ),'recur_use_end'); |
|
1337 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_repeats','cal_id',array( |
|
1336 | + ), 'recur_use_end'); |
|
1337 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_repeats', 'cal_id', array( |
|
1338 | 1338 | 'type' => 'int', |
1339 | 1339 | 'precision' => '4', |
1340 | 1340 | 'nullable' => False |
1341 | 1341 | )); |
1342 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_repeats','recur_type',array( |
|
1342 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_repeats', 'recur_type', array( |
|
1343 | 1343 | 'type' => 'int', |
1344 | 1344 | 'precision' => '2', |
1345 | 1345 | 'nullable' => False |
1346 | 1346 | )); |
1347 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_repeats','recur_interval',array( |
|
1347 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_repeats', 'recur_interval', array( |
|
1348 | 1348 | 'type' => 'int', |
1349 | 1349 | 'precision' => '2', |
1350 | 1350 | 'default' => '1' |
1351 | 1351 | )); |
1352 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_repeats','recur_data',array( |
|
1352 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_repeats', 'recur_data', array( |
|
1353 | 1353 | 'type' => 'int', |
1354 | 1354 | 'precision' => '2', |
1355 | 1355 | 'default' => '1' |
@@ -1363,13 +1363,13 @@ discard block |
||
1363 | 1363 | |
1364 | 1364 | function calendar_upgrade1_0_1_004() |
1365 | 1365 | { |
1366 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user','cal_id',array( |
|
1366 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user', 'cal_id', array( |
|
1367 | 1367 | 'type' => 'int', |
1368 | 1368 | 'precision' => '4', |
1369 | 1369 | 'nullable' => False, |
1370 | 1370 | 'default' => '0' |
1371 | 1371 | )); |
1372 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user','cal_user_id',array( |
|
1372 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user', 'cal_user_id', array( |
|
1373 | 1373 | 'type' => 'int', |
1374 | 1374 | 'precision' => '4', |
1375 | 1375 | 'nullable' => False, |
@@ -1384,7 +1384,7 @@ discard block |
||
1384 | 1384 | |
1385 | 1385 | function calendar_upgrade1_0_1_005() |
1386 | 1386 | { |
1387 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal_user','cal_quantity',array( |
|
1387 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal_user', 'cal_quantity', array( |
|
1388 | 1388 | 'type' => 'int', |
1389 | 1389 | 'precision' => '4', |
1390 | 1390 | 'default' => '1' |
@@ -1398,7 +1398,7 @@ discard block |
||
1398 | 1398 | |
1399 | 1399 | function calendar_upgrade1_0_1_006() |
1400 | 1400 | { |
1401 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','cal_non_blocking',array( |
|
1401 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'cal_non_blocking', array( |
|
1402 | 1402 | 'type' => 'int', |
1403 | 1403 | 'precision' => '2', |
1404 | 1404 | 'default' => '0' |
@@ -1412,9 +1412,9 @@ discard block |
||
1412 | 1412 | |
1413 | 1413 | function calendar_upgrade1_0_1_007() |
1414 | 1414 | { |
1415 | - $GLOBALS['egw_setup']->db->update('egw_cal_repeats',array('recur_exception' => null),array('recur_exception' => ''),__LINE__,__FILE__,'calendar'); |
|
1415 | + $GLOBALS['egw_setup']->db->update('egw_cal_repeats', array('recur_exception' => null), array('recur_exception' => ''), __LINE__, __FILE__, 'calendar'); |
|
1416 | 1416 | |
1417 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_repeats','recur_exception',array( |
|
1417 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_repeats', 'recur_exception', array( |
|
1418 | 1418 | 'type' => 'text' |
1419 | 1419 | )); |
1420 | 1420 | |
@@ -1431,11 +1431,11 @@ discard block |
||
1431 | 1431 | { |
1432 | 1432 | $customfields = array(); |
1433 | 1433 | $order = 0; |
1434 | - foreach($config_data['fields'] as $name => $data) |
|
1434 | + foreach ($config_data['fields'] as $name => $data) |
|
1435 | 1435 | { |
1436 | 1436 | if ($name{0} == '#' && !$data['disabled']) // real not-disabled custom field |
1437 | 1437 | { |
1438 | - $customfields[substr($name,1)] = array( |
|
1438 | + $customfields[substr($name, 1)] = array( |
|
1439 | 1439 | 'type' => 'text', |
1440 | 1440 | 'len' => $data['length'].($data['shown'] ? ','.$data['shown'] : ''), |
1441 | 1441 | 'label' => $data['name'], |
@@ -1458,38 +1458,38 @@ discard block |
||
1458 | 1458 | function calendar_upgrade1_0_1_009() |
1459 | 1459 | { |
1460 | 1460 | $db2 = clone($GLOBALS['egw_setup']->db); |
1461 | - $GLOBALS['egw_setup']->db->select('egw_cal','DISTINCT egw_cal.cal_id,cal_groups,cal_recur_date',"cal_groups != ''",__LINE__,__FILE__, |
|
1462 | - False,'','calendar',0,',egw_cal_user WHERE egw_cal.cal_id=egw_cal_user.cal_id'); |
|
1463 | - while(($row = $GLOBALS['egw_setup']->db->row(true))) |
|
1461 | + $GLOBALS['egw_setup']->db->select('egw_cal', 'DISTINCT egw_cal.cal_id,cal_groups,cal_recur_date', "cal_groups != ''", __LINE__, __FILE__, |
|
1462 | + False, '', 'calendar', 0, ',egw_cal_user WHERE egw_cal.cal_id=egw_cal_user.cal_id'); |
|
1463 | + while (($row = $GLOBALS['egw_setup']->db->row(true))) |
|
1464 | 1464 | { |
1465 | 1465 | $row['cal_user_type'] = 'u'; |
1466 | - foreach(explode(',',$row['cal_groups']) as $group) |
|
1466 | + foreach (explode(',', $row['cal_groups']) as $group) |
|
1467 | 1467 | { |
1468 | 1468 | $row['cal_user_id'] = $group; |
1469 | - $db2->insert('egw_cal_user',array('cal_status' => 'U'),$row,__LINE__,__FILE__,'calendar'); |
|
1469 | + $db2->insert('egw_cal_user', array('cal_status' => 'U'), $row, __LINE__, __FILE__, 'calendar'); |
|
1470 | 1470 | } |
1471 | 1471 | } |
1472 | - $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal',array( |
|
1472 | + $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal', array( |
|
1473 | 1473 | 'fd' => array( |
1474 | - 'cal_id' => array('type' => 'auto','nullable' => False), |
|
1475 | - 'cal_uid' => array('type' => 'varchar','precision' => '255','nullable' => False), |
|
1476 | - 'cal_owner' => array('type' => 'int','precision' => '4','nullable' => False), |
|
1477 | - 'cal_category' => array('type' => 'varchar','precision' => '30'), |
|
1478 | - 'cal_modified' => array('type' => 'int','precision' => '8'), |
|
1479 | - 'cal_priority' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '2'), |
|
1480 | - 'cal_public' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '1'), |
|
1481 | - 'cal_title' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => '1'), |
|
1474 | + 'cal_id' => array('type' => 'auto', 'nullable' => False), |
|
1475 | + 'cal_uid' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), |
|
1476 | + 'cal_owner' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
1477 | + 'cal_category' => array('type' => 'varchar', 'precision' => '30'), |
|
1478 | + 'cal_modified' => array('type' => 'int', 'precision' => '8'), |
|
1479 | + 'cal_priority' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '2'), |
|
1480 | + 'cal_public' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '1'), |
|
1481 | + 'cal_title' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False, 'default' => '1'), |
|
1482 | 1482 | 'cal_description' => array('type' => 'text'), |
1483 | - 'cal_location' => array('type' => 'varchar','precision' => '255'), |
|
1484 | - 'cal_reference' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'), |
|
1485 | - 'cal_modifier' => array('type' => 'int','precision' => '4'), |
|
1486 | - 'cal_non_blocking' => array('type' => 'int','precision' => '2','default' => '0') |
|
1483 | + 'cal_location' => array('type' => 'varchar', 'precision' => '255'), |
|
1484 | + 'cal_reference' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'), |
|
1485 | + 'cal_modifier' => array('type' => 'int', 'precision' => '4'), |
|
1486 | + 'cal_non_blocking' => array('type' => 'int', 'precision' => '2', 'default' => '0') |
|
1487 | 1487 | ), |
1488 | 1488 | 'pk' => array('cal_id'), |
1489 | 1489 | 'fk' => array(), |
1490 | 1490 | 'ix' => array(), |
1491 | 1491 | 'uc' => array() |
1492 | - ),'cal_groups'); |
|
1492 | + ), 'cal_groups'); |
|
1493 | 1493 | |
1494 | 1494 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.2'; |
1495 | 1495 | } |
@@ -1499,7 +1499,7 @@ discard block |
||
1499 | 1499 | function calendar_upgrade1_2() |
1500 | 1500 | { |
1501 | 1501 | // get old alarms (saved before 1.2) working again |
1502 | - $GLOBALS['egw_setup']->db->query("UPDATE egw_async SET async_method ='calendar.bocalupdate.send_alarm' WHERE async_method ='calendar.bocalendar.send_alarm'",__LINE__,__FILE__); |
|
1502 | + $GLOBALS['egw_setup']->db->query("UPDATE egw_async SET async_method ='calendar.bocalupdate.send_alarm' WHERE async_method ='calendar.bocalendar.send_alarm'", __LINE__, __FILE__); |
|
1503 | 1503 | |
1504 | 1504 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.2.001'; |
1505 | 1505 | } |
@@ -1507,7 +1507,7 @@ discard block |
||
1507 | 1507 | |
1508 | 1508 | function calendar_upgrade1_2_001() |
1509 | 1509 | { |
1510 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','cal_special',array( |
|
1510 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'cal_special', array( |
|
1511 | 1511 | 'type' => 'int', |
1512 | 1512 | 'precision' => '2', |
1513 | 1513 | 'default' => '0' |
@@ -1525,7 +1525,7 @@ discard block |
||
1525 | 1525 | |
1526 | 1526 | function calendar_upgrade1_4() |
1527 | 1527 | { |
1528 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','cal_etag',array( |
|
1528 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'cal_etag', array( |
|
1529 | 1529 | 'type' => 'int', |
1530 | 1530 | 'precision' => '4', |
1531 | 1531 | 'default' => '0' |
@@ -1537,59 +1537,59 @@ discard block |
||
1537 | 1537 | |
1538 | 1538 | function calendar_upgrade1_5() |
1539 | 1539 | { |
1540 | - $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal',array( |
|
1540 | + $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal', array( |
|
1541 | 1541 | 'fd' => array( |
1542 | - 'cal_id' => array('type' => 'auto','nullable' => False), |
|
1543 | - 'cal_uid' => array('type' => 'varchar','precision' => '255','nullable' => False), |
|
1544 | - 'cal_owner' => array('type' => 'int','precision' => '4','nullable' => False), |
|
1545 | - 'cal_category' => array('type' => 'varchar','precision' => '30'), |
|
1546 | - 'cal_modified' => array('type' => 'int','precision' => '8'), |
|
1547 | - 'cal_priority' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '2'), |
|
1548 | - 'cal_public' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '1'), |
|
1549 | - 'cal_title' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => '1'), |
|
1542 | + 'cal_id' => array('type' => 'auto', 'nullable' => False), |
|
1543 | + 'cal_uid' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), |
|
1544 | + 'cal_owner' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
1545 | + 'cal_category' => array('type' => 'varchar', 'precision' => '30'), |
|
1546 | + 'cal_modified' => array('type' => 'int', 'precision' => '8'), |
|
1547 | + 'cal_priority' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '2'), |
|
1548 | + 'cal_public' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '1'), |
|
1549 | + 'cal_title' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False, 'default' => '1'), |
|
1550 | 1550 | 'cal_description' => array('type' => 'text'), |
1551 | - 'cal_location' => array('type' => 'varchar','precision' => '255'), |
|
1552 | - 'cal_reference' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'), |
|
1553 | - 'cal_modifier' => array('type' => 'int','precision' => '4'), |
|
1554 | - 'cal_non_blocking' => array('type' => 'int','precision' => '2','default' => '0'), |
|
1555 | - 'cal_special' => array('type' => 'int','precision' => '2','default' => '0'), |
|
1556 | - 'cal_etag' => array('type' => 'int','precision' => '4'), |
|
1557 | - 'cal_edit_time' => array('type' => 'int','precision' => '8') |
|
1551 | + 'cal_location' => array('type' => 'varchar', 'precision' => '255'), |
|
1552 | + 'cal_reference' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'), |
|
1553 | + 'cal_modifier' => array('type' => 'int', 'precision' => '4'), |
|
1554 | + 'cal_non_blocking' => array('type' => 'int', 'precision' => '2', 'default' => '0'), |
|
1555 | + 'cal_special' => array('type' => 'int', 'precision' => '2', 'default' => '0'), |
|
1556 | + 'cal_etag' => array('type' => 'int', 'precision' => '4'), |
|
1557 | + 'cal_edit_time' => array('type' => 'int', 'precision' => '8') |
|
1558 | 1558 | ), |
1559 | 1559 | 'pk' => array('cal_id'), |
1560 | 1560 | 'fk' => array(), |
1561 | 1561 | 'ix' => array(), |
1562 | 1562 | 'uc' => array() |
1563 | - ),'cal_edit_user'); |
|
1564 | - $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal',array( |
|
1563 | + ), 'cal_edit_user'); |
|
1564 | + $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal', array( |
|
1565 | 1565 | 'fd' => array( |
1566 | - 'cal_id' => array('type' => 'auto','nullable' => False), |
|
1567 | - 'cal_uid' => array('type' => 'varchar','precision' => '255','nullable' => False), |
|
1568 | - 'cal_owner' => array('type' => 'int','precision' => '4','nullable' => False), |
|
1569 | - 'cal_category' => array('type' => 'varchar','precision' => '30'), |
|
1570 | - 'cal_modified' => array('type' => 'int','precision' => '8'), |
|
1571 | - 'cal_priority' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '2'), |
|
1572 | - 'cal_public' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '1'), |
|
1573 | - 'cal_title' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => '1'), |
|
1566 | + 'cal_id' => array('type' => 'auto', 'nullable' => False), |
|
1567 | + 'cal_uid' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False), |
|
1568 | + 'cal_owner' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
1569 | + 'cal_category' => array('type' => 'varchar', 'precision' => '30'), |
|
1570 | + 'cal_modified' => array('type' => 'int', 'precision' => '8'), |
|
1571 | + 'cal_priority' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '2'), |
|
1572 | + 'cal_public' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '1'), |
|
1573 | + 'cal_title' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False, 'default' => '1'), |
|
1574 | 1574 | 'cal_description' => array('type' => 'text'), |
1575 | - 'cal_location' => array('type' => 'varchar','precision' => '255'), |
|
1576 | - 'cal_reference' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'), |
|
1577 | - 'cal_modifier' => array('type' => 'int','precision' => '4'), |
|
1578 | - 'cal_non_blocking' => array('type' => 'int','precision' => '2','default' => '0'), |
|
1579 | - 'cal_special' => array('type' => 'int','precision' => '2','default' => '0'), |
|
1580 | - 'cal_etag' => array('type' => 'int','precision' => '4') |
|
1575 | + 'cal_location' => array('type' => 'varchar', 'precision' => '255'), |
|
1576 | + 'cal_reference' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'), |
|
1577 | + 'cal_modifier' => array('type' => 'int', 'precision' => '4'), |
|
1578 | + 'cal_non_blocking' => array('type' => 'int', 'precision' => '2', 'default' => '0'), |
|
1579 | + 'cal_special' => array('type' => 'int', 'precision' => '2', 'default' => '0'), |
|
1580 | + 'cal_etag' => array('type' => 'int', 'precision' => '4') |
|
1581 | 1581 | ), |
1582 | 1582 | 'pk' => array('cal_id'), |
1583 | 1583 | 'fk' => array(), |
1584 | 1584 | 'ix' => array(), |
1585 | 1585 | 'uc' => array() |
1586 | - ),'cal_edit_time'); |
|
1587 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_etag',array( |
|
1586 | + ), 'cal_edit_time'); |
|
1587 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_etag', array( |
|
1588 | 1588 | 'type' => 'int', |
1589 | 1589 | 'precision' => '4', |
1590 | 1590 | 'default' => '0' |
1591 | 1591 | )); |
1592 | - $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET cal_etag=0 WHERE cal_etag IS NULL',__LINE__,__FILE__); |
|
1592 | + $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET cal_etag=0 WHERE cal_etag IS NULL', __LINE__, __FILE__); |
|
1593 | 1593 | |
1594 | 1594 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.5.001'; |
1595 | 1595 | } |
@@ -1597,12 +1597,12 @@ discard block |
||
1597 | 1597 | |
1598 | 1598 | function calendar_upgrade1_5_001() |
1599 | 1599 | { |
1600 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user','cal_id',array( |
|
1600 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user', 'cal_id', array( |
|
1601 | 1601 | 'type' => 'int', |
1602 | 1602 | 'precision' => '4', |
1603 | 1603 | 'nullable' => False |
1604 | 1604 | )); |
1605 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user','cal_user_id',array( |
|
1605 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user', 'cal_user_id', array( |
|
1606 | 1606 | 'type' => 'varchar', |
1607 | 1607 | 'precision' => '128', |
1608 | 1608 | 'nullable' => False |
@@ -1616,12 +1616,12 @@ discard block |
||
1616 | 1616 | { |
1617 | 1617 | // update the alarm methods |
1618 | 1618 | $async = new asyncservice(); |
1619 | - foreach((array)$async->read('cal:%') as $job) |
|
1619 | + foreach ((array)$async->read('cal:%') as $job) |
|
1620 | 1620 | { |
1621 | 1621 | if ($job['method'] == 'calendar.bocalupdate.send_alarm') |
1622 | 1622 | { |
1623 | 1623 | $job['method'] = 'calendar.calendar_boupdate.send_alarm'; |
1624 | - $async->write($job,true); |
|
1624 | + $async->write($job, true); |
|
1625 | 1625 | } |
1626 | 1626 | } |
1627 | 1627 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.6'; |
@@ -1638,48 +1638,48 @@ discard block |
||
1638 | 1638 | { |
1639 | 1639 | // Set UID of series exception to UID of series master |
1640 | 1640 | // update cal_etag, cal_modified and cal_modifier to distribute changes on GroupDAV devices |
1641 | - foreach($GLOBALS['egw_setup']->db->query(' |
|
1641 | + foreach ($GLOBALS['egw_setup']->db->query(' |
|
1642 | 1642 | SELECT cal_ex.cal_id,cal_ex.cal_uid AS cal_uid_ex,cal_master.cal_uid AS cal_uid_master |
1643 | 1643 | FROM egw_cal cal_ex |
1644 | 1644 | JOIN egw_cal cal_master ON cal_ex.cal_reference=cal_master.cal_id |
1645 | - WHERE cal_ex.cal_reference != 0',__LINE__,__FILE__) as $row) |
|
1645 | + WHERE cal_ex.cal_reference != 0',__LINE__, __FILE__) as $row) |
|
1646 | 1646 | { |
1647 | 1647 | if (strlen($row['cal_uid_master']) > 0 && $row['cal_uid_ex'] != $row['cal_uid_master']) |
1648 | 1648 | { |
1649 | 1649 | $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET cal_uid=\''.$row['cal_uid_master']. |
1650 | 1650 | '\',cal_etag=cal_etag+1,cal_modified='.time(). |
1651 | - ',cal_modifier=NULL WHERE cal_id='.(int)$row['cal_id'],__LINE__,__FILE__); |
|
1651 | + ',cal_modifier=NULL WHERE cal_id='.(int)$row['cal_id'], __LINE__, __FILE__); |
|
1652 | 1652 | } |
1653 | 1653 | } |
1654 | 1654 | |
1655 | 1655 | // Search series exception for nearest exception in series master and add that RECURRENCE-ID |
1656 | 1656 | // as cal_reference (for 1.6.003 and move it to new field cal_recurrence in 1.7.001) |
1657 | 1657 | $diff = null; |
1658 | - foreach($GLOBALS['egw_setup']->db->query('SELECT egw_cal.cal_id,cal_start,recur_exception FROM egw_cal |
|
1658 | + foreach ($GLOBALS['egw_setup']->db->query('SELECT egw_cal.cal_id,cal_start,recur_exception FROM egw_cal |
|
1659 | 1659 | JOIN egw_cal_dates ON egw_cal.cal_id=egw_cal_dates.cal_id |
1660 | 1660 | JOIN egw_cal_repeats ON cal_reference=egw_cal_repeats.cal_id |
1661 | - WHERE cal_reference != 0',__LINE__,__FILE__) as $row) |
|
1661 | + WHERE cal_reference != 0',__LINE__, __FILE__) as $row) |
|
1662 | 1662 | { |
1663 | 1663 | $recurrence = null; |
1664 | - foreach(explode(',',$row['recur_exception']) as $ts) |
|
1664 | + foreach (explode(',', $row['recur_exception']) as $ts) |
|
1665 | 1665 | { |
1666 | - if (is_null($recurrence) || abs($ts-$row['cal_start']) < $diff) |
|
1666 | + if (is_null($recurrence) || abs($ts - $row['cal_start']) < $diff) |
|
1667 | 1667 | { |
1668 | 1668 | $recurrence = $ts; |
1669 | - $diff = abs($ts-$row['cal_start']); |
|
1669 | + $diff = abs($ts - $row['cal_start']); |
|
1670 | 1670 | } |
1671 | 1671 | } |
1672 | 1672 | if ($recurrence) |
1673 | 1673 | { |
1674 | 1674 | $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET cal_reference='.(int)$recurrence. |
1675 | - ' WHERE cal_id='.(int)$row['cal_id'],__LINE__,__FILE__); |
|
1675 | + ' WHERE cal_id='.(int)$row['cal_id'], __LINE__, __FILE__); |
|
1676 | 1676 | } |
1677 | 1677 | else |
1678 | 1678 | { |
1679 | 1679 | // if we cannot determine the RECURRENCE-ID use cal_start |
1680 | 1680 | // because RECURRENCE-ID must be present |
1681 | 1681 | $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET cal_reference='.(int)$row['cal_start']. |
1682 | - ' WHERE cal_id='.(int)$row['cal_id'],__LINE__,__FILE__); |
|
1682 | + ' WHERE cal_id='.(int)$row['cal_id'], __LINE__, __FILE__); |
|
1683 | 1683 | } |
1684 | 1684 | } |
1685 | 1685 | |
@@ -1694,33 +1694,33 @@ discard block |
||
1694 | 1694 | */ |
1695 | 1695 | function calendar_upgrade1_6_003() |
1696 | 1696 | { |
1697 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','cal_creator',array( |
|
1697 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'cal_creator', array( |
|
1698 | 1698 | 'type' => 'int', |
1699 | 1699 | 'precision' => '4', |
1700 | 1700 | 'comment' => 'creating user' |
1701 | 1701 | )); |
1702 | - $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET cal_creator=cal_owner',__LINE__,__FILE__); |
|
1703 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_creator',array( |
|
1702 | + $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET cal_creator=cal_owner', __LINE__, __FILE__); |
|
1703 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_creator', array( |
|
1704 | 1704 | 'type' => 'int', |
1705 | 1705 | 'precision' => '4', |
1706 | 1706 | 'nullable' => False, |
1707 | 1707 | 'comment' => 'creating user' |
1708 | 1708 | )); |
1709 | 1709 | |
1710 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','cal_created',array( |
|
1710 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'cal_created', array( |
|
1711 | 1711 | 'type' => 'int', |
1712 | 1712 | 'precision' => '8', |
1713 | 1713 | 'comment' => 'creation time of event' |
1714 | 1714 | )); |
1715 | - $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET cal_created=cal_modified',__LINE__,__FILE__); |
|
1716 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_created',array( |
|
1715 | + $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET cal_created=cal_modified', __LINE__, __FILE__); |
|
1716 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_created', array( |
|
1717 | 1717 | 'type' => 'int', |
1718 | 1718 | 'precision' => '8', |
1719 | 1719 | 'nullable' => False, |
1720 | 1720 | 'comment' => 'creation time of event' |
1721 | 1721 | )); |
1722 | 1722 | |
1723 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','cal_recurrence',array( |
|
1723 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'cal_recurrence', array( |
|
1724 | 1724 | 'type' => 'int', |
1725 | 1725 | 'precision' => '8', |
1726 | 1726 | 'nullable' => False, |
@@ -1731,14 +1731,14 @@ discard block |
||
1731 | 1731 | // move RECURRENCE-ID from temporarily (1.6.003) |
1732 | 1732 | // used field cal_reference to new field cal_recurrence |
1733 | 1733 | // and restore cal_reference field of series exceptions with id of the series master |
1734 | - foreach($GLOBALS['egw_setup']->db->query(' |
|
1734 | + foreach ($GLOBALS['egw_setup']->db->query(' |
|
1735 | 1735 | SELECT cal_ex.cal_id AS cal_id_ex,cal_master.cal_id AS cal_id_master, |
1736 | 1736 | cal_ex.cal_reference AS cal_reference_ex,cal_ex.cal_uid AS cal_uid_ex, |
1737 | 1737 | cal_master.cal_uid AS cal_uid_master |
1738 | 1738 | FROM egw_cal cal_ex |
1739 | 1739 | JOIN egw_cal cal_master |
1740 | 1740 | ON cal_ex.cal_uid=cal_master.cal_uid AND cal_master.cal_reference = 0 AND cal_ex.cal_owner = cal_master.cal_owner |
1741 | - WHERE cal_ex.cal_reference !=0 AND cal_master.cal_id IS NOT NULL',__LINE__,__FILE__) as $row) |
|
1741 | + WHERE cal_ex.cal_reference !=0 AND cal_master.cal_id IS NOT NULL',__LINE__, __FILE__) as $row) |
|
1742 | 1742 | { |
1743 | 1743 | $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET cal_recurrence='.(int)$row['cal_reference_ex']. |
1744 | 1744 | ', cal_reference='.(int)$row['cal_id_master']. |
@@ -1755,7 +1755,7 @@ discard block |
||
1755 | 1755 | */ |
1756 | 1756 | function calendar_upgrade1_7_001() |
1757 | 1757 | { |
1758 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal_user','cal_role',array( |
|
1758 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal_user', 'cal_role', array( |
|
1759 | 1759 | 'type' => 'varchar', |
1760 | 1760 | 'precision' => '64', |
1761 | 1761 | 'default' => 'REQ-PARTICIPANT' |
@@ -1771,14 +1771,14 @@ discard block |
||
1771 | 1771 | */ |
1772 | 1772 | function calendar_upgrade1_7_002() |
1773 | 1773 | { |
1774 | - $GLOBALS['egw_setup']->oProc->CreateTable('egw_cal_timezones',array( |
|
1774 | + $GLOBALS['egw_setup']->oProc->CreateTable('egw_cal_timezones', array( |
|
1775 | 1775 | 'fd' => array( |
1776 | - 'tz_id' => array('type' => 'auto','nullable' => False), |
|
1777 | - 'tz_tzid' => array('type' => 'varchar','precision' => '128','nullable' => False), |
|
1778 | - 'tz_alias' => array('type' => 'int','precision' => '4','comment' => 'tz_id for data'), |
|
1779 | - 'tz_latitude' => array('type' => 'int','precision' => '4'), |
|
1780 | - 'tz_longitude' => array('type' => 'int','precision' => '4'), |
|
1781 | - 'tz_component' => array('type' => 'text','comment' => 'iCal VTIMEZONE component') |
|
1776 | + 'tz_id' => array('type' => 'auto', 'nullable' => False), |
|
1777 | + 'tz_tzid' => array('type' => 'varchar', 'precision' => '128', 'nullable' => False), |
|
1778 | + 'tz_alias' => array('type' => 'int', 'precision' => '4', 'comment' => 'tz_id for data'), |
|
1779 | + 'tz_latitude' => array('type' => 'int', 'precision' => '4'), |
|
1780 | + 'tz_longitude' => array('type' => 'int', 'precision' => '4'), |
|
1781 | + 'tz_component' => array('type' => 'text', 'comment' => 'iCal VTIMEZONE component') |
|
1782 | 1782 | ), |
1783 | 1783 | 'pk' => array('tz_id'), |
1784 | 1784 | 'fk' => array(), |
@@ -1798,38 +1798,38 @@ discard block |
||
1798 | 1798 | */ |
1799 | 1799 | function calendar_upgrade1_7_003() |
1800 | 1800 | { |
1801 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user','cal_user_type',array( |
|
1801 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user', 'cal_user_type', array( |
|
1802 | 1802 | 'type' => 'varchar', |
1803 | 1803 | 'precision' => '1', |
1804 | 1804 | 'nullable' => False, |
1805 | 1805 | 'default' => 'u', |
1806 | 1806 | 'comment' => 'u=user, g=group, c=contact, r=resource, e=email' |
1807 | 1807 | )); |
1808 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user','cal_user_id',array( |
|
1808 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user', 'cal_user_id', array( |
|
1809 | 1809 | 'type' => 'varchar', |
1810 | 1810 | 'precision' => '128', |
1811 | 1811 | 'nullable' => False, |
1812 | 1812 | 'comment' => 'id or email-address for type=e' |
1813 | 1813 | )); |
1814 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user','cal_status',array( |
|
1814 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user', 'cal_status', array( |
|
1815 | 1815 | 'type' => 'char', |
1816 | 1816 | 'precision' => '1', |
1817 | 1817 | 'default' => 'A', |
1818 | 1818 | 'comment' => 'U=unknown, A=accepted, R=rejected, T=tentative' |
1819 | 1819 | )); |
1820 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user','cal_quantity',array( |
|
1820 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user', 'cal_quantity', array( |
|
1821 | 1821 | 'type' => 'int', |
1822 | 1822 | 'precision' => '4', |
1823 | 1823 | 'default' => '1', |
1824 | 1824 | 'comment' => 'only for certain types (eg. resources)' |
1825 | 1825 | )); |
1826 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user','cal_role',array( |
|
1826 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user', 'cal_role', array( |
|
1827 | 1827 | 'type' => 'varchar', |
1828 | 1828 | 'precision' => '64', |
1829 | 1829 | 'default' => 'REQ-PARTICIPANT', |
1830 | 1830 | 'comment' => 'CHAIR, REQ-PARTICIPANT, OPT-PARTICIPANT, NON-PARTICIPANT, X-CAT-$cat_id' |
1831 | 1831 | )); |
1832 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal_user','cal_user_modified',array( |
|
1832 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal_user', 'cal_user_modified', array( |
|
1833 | 1833 | 'type' => 'timestamp', |
1834 | 1834 | 'default' => 'current_timestamp', |
1835 | 1835 | 'comment' => 'automatic timestamp of last update' |
@@ -1845,19 +1845,19 @@ discard block |
||
1845 | 1845 | */ |
1846 | 1846 | function calendar_upgrade1_7_004() |
1847 | 1847 | { |
1848 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_dates','cal_start',array( |
|
1848 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_dates', 'cal_start', array( |
|
1849 | 1849 | 'type' => 'int', |
1850 | 1850 | 'precision' => '8', |
1851 | 1851 | 'nullable' => False, |
1852 | 1852 | 'comment' => 'starttime in server time' |
1853 | 1853 | )); |
1854 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_dates','cal_end',array( |
|
1854 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_dates', 'cal_end', array( |
|
1855 | 1855 | 'type' => 'int', |
1856 | 1856 | 'precision' => '8', |
1857 | 1857 | 'nullable' => False, |
1858 | 1858 | 'comment' => 'endtime in server time' |
1859 | 1859 | )); |
1860 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','tz_id',array( |
|
1860 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'tz_id', array( |
|
1861 | 1861 | 'type' => 'int', |
1862 | 1862 | 'precision' => '4', |
1863 | 1863 | 'comment' => 'key into egw_cal_timezones' |
@@ -1866,7 +1866,7 @@ discard block |
||
1866 | 1866 | // set id of server timezone for existing events, as that's the timezone their recurrences are using |
1867 | 1867 | if (($tzid = date_default_timezone_get()) && ($tz_id = calendar_timezones::tz2id($tzid))) |
1868 | 1868 | { |
1869 | - $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET tz_id='.(int)$tz_id,__LINE__,__FILE__); |
|
1869 | + $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET tz_id='.(int)$tz_id, __LINE__, __FILE__); |
|
1870 | 1870 | } |
1871 | 1871 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.7.005'; |
1872 | 1872 | } |
@@ -1893,22 +1893,22 @@ discard block |
||
1893 | 1893 | */ |
1894 | 1894 | function calendar_upgrade1_7_006() |
1895 | 1895 | { |
1896 | - foreach($GLOBALS['egw_setup']->db->query('SELECT * FROM egw_cal_dates |
|
1897 | - WHERE (cal_end-cal_start)%86400=86340',__LINE__,__FILE__) as $row) |
|
1896 | + foreach ($GLOBALS['egw_setup']->db->query('SELECT * FROM egw_cal_dates |
|
1897 | + WHERE (cal_end-cal_start)%86400=86340',__LINE__, __FILE__) as $row) |
|
1898 | 1898 | { |
1899 | 1899 | $GLOBALS['egw_setup']->db->query('UPDATE egw_cal_dates SET cal_end=cal_end+59 |
1900 | - WHERE cal_id='.(int)$row['cal_id'].' AND cal_start='.(int)$row['cal_start'],__LINE__,__FILE__); |
|
1900 | + WHERE cal_id='.(int)$row['cal_id'].' AND cal_start='.(int)$row['cal_start'], __LINE__, __FILE__); |
|
1901 | 1901 | } |
1902 | 1902 | |
1903 | - foreach($GLOBALS['egw_setup']->db->query('SELECT * FROM egw_cal_dates |
|
1904 | - WHERE cal_end-cal_start>0 AND (cal_end-cal_start)%86400=0',__LINE__,__FILE__) as $row) |
|
1903 | + foreach ($GLOBALS['egw_setup']->db->query('SELECT * FROM egw_cal_dates |
|
1904 | + WHERE cal_end-cal_start>0 AND (cal_end-cal_start)%86400=0',__LINE__, __FILE__) as $row) |
|
1905 | 1905 | { |
1906 | 1906 | $GLOBALS['egw_setup']->db->query('UPDATE egw_cal_dates SET cal_end=cal_end-1 |
1907 | - WHERE cal_id='.(int)$row['cal_id'].' AND cal_start='.(int)$row['cal_start'],__LINE__,__FILE__); |
|
1907 | + WHERE cal_id='.(int)$row['cal_id'].' AND cal_start='.(int)$row['cal_start'], __LINE__, __FILE__); |
|
1908 | 1908 | } |
1909 | 1909 | |
1910 | 1910 | $GLOBALS['egw_setup']->db->query('UPDATE egw_cal_repeats SET recur_interval=1 |
1911 | - WHERE recur_interval=0',__LINE__,__FILE__); |
|
1911 | + WHERE recur_interval=0',__LINE__, __FILE__); |
|
1912 | 1912 | |
1913 | 1913 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.7.007'; |
1914 | 1914 | } |
@@ -1924,17 +1924,17 @@ discard block |
||
1924 | 1924 | { |
1925 | 1925 | // Set UID of series exception to UID of series master |
1926 | 1926 | // update cal_etag,cal_modified and cal_modifier to distribute changes on GroupDAV devices |
1927 | - foreach($GLOBALS['egw_setup']->db->query(' |
|
1927 | + foreach ($GLOBALS['egw_setup']->db->query(' |
|
1928 | 1928 | SELECT cal_ex.cal_id,cal_ex.cal_uid AS cal_uid_ex,cal_master.cal_uid AS cal_uid_master |
1929 | 1929 | FROM egw_cal cal_ex |
1930 | 1930 | JOIN egw_cal cal_master ON cal_ex.cal_reference=cal_master.cal_id |
1931 | - WHERE cal_ex.cal_reference != 0',__LINE__,__FILE__) as $row) |
|
1931 | + WHERE cal_ex.cal_reference != 0',__LINE__, __FILE__) as $row) |
|
1932 | 1932 | { |
1933 | 1933 | if (strlen($row['cal_uid_master']) > 0 && $row['cal_uid_ex'] != $row['cal_uid_master']) |
1934 | 1934 | { |
1935 | 1935 | $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET cal_uid=\''.$row['cal_uid_master']. |
1936 | 1936 | '\',cal_etag=cal_etag+1,cal_modified='.time(). |
1937 | - ',cal_modifier=NULL WHERE cal_id='.(int)$row['cal_id'],__LINE__,__FILE__); |
|
1937 | + ',cal_modifier=NULL WHERE cal_id='.(int)$row['cal_id'], __LINE__, __FILE__); |
|
1938 | 1938 | } |
1939 | 1939 | } |
1940 | 1940 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.7.008'; |
@@ -1947,7 +1947,7 @@ discard block |
||
1947 | 1947 | */ |
1948 | 1948 | function calendar_upgrade1_7_008() |
1949 | 1949 | { |
1950 | - $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal_user',array('cal_user_type','cal_user_id')); |
|
1950 | + $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal_user', array('cal_user_type', 'cal_user_id')); |
|
1951 | 1951 | |
1952 | 1952 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.7.009'; |
1953 | 1953 | } |
@@ -1959,22 +1959,22 @@ discard block |
||
1959 | 1959 | */ |
1960 | 1960 | function calendar_upgrade1_7_009() |
1961 | 1961 | { |
1962 | - $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal','cal_uid'); |
|
1963 | - $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal','cal_owner'); |
|
1962 | + $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal', 'cal_uid'); |
|
1963 | + $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal', 'cal_owner'); |
|
1964 | 1964 | |
1965 | 1965 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.7.010'; |
1966 | 1966 | } |
1967 | 1967 | |
1968 | 1968 | function calendar_upgrade1_7_010() |
1969 | 1969 | { |
1970 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','cal_deleted',array( |
|
1970 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'cal_deleted', array( |
|
1971 | 1971 | 'type' => 'bool', |
1972 | 1972 | 'nullable' => False, |
1973 | 1973 | 'default' => '0', |
1974 | 1974 | 'comment' => '1 if the event has been deleted, but you want to keep it around' |
1975 | 1975 | )); |
1976 | 1976 | |
1977 | - return $GLOBALS['setup_info']['calendar']['currentver'] = '1.9.001'; // was 1.7.011 |
|
1977 | + return $GLOBALS['setup_info']['calendar']['currentver'] = '1.9.001'; // was 1.7.011 |
|
1978 | 1978 | } |
1979 | 1979 | |
1980 | 1980 | function calendar_upgrade1_7_011() |
@@ -1999,7 +1999,7 @@ discard block |
||
1999 | 1999 | function calendar_upgrade1_9_001() |
2000 | 2000 | { |
2001 | 2001 | // delete in the past wrongly created entries for a single recurrence, which mess up the update, beside being wrong anyway |
2002 | - $GLOBALS['egw_setup']->db->delete('egw_api_content_history',array( |
|
2002 | + $GLOBALS['egw_setup']->db->delete('egw_api_content_history', array( |
|
2003 | 2003 | 'sync_appname' => 'calendar', |
2004 | 2004 | "sync_contentid LIKE '%:%'", |
2005 | 2005 | ), __LINE__, __FILE__); |
@@ -2010,36 +2010,36 @@ discard block |
||
2010 | 2010 | 'precision' => '8', |
2011 | 2011 | 'comment' => 'ts when event was deleted' |
2012 | 2012 | ));*/ |
2013 | - $GLOBALS['egw_setup']->oProc->RefreshTable('egw_cal',array( |
|
2013 | + $GLOBALS['egw_setup']->oProc->RefreshTable('egw_cal', array( |
|
2014 | 2014 | 'fd' => array( |
2015 | - 'cal_id' => array('type' => 'auto','nullable' => False), |
|
2016 | - 'cal_uid' => array('type' => 'varchar','precision' => '255','nullable' => False,'comment' => 'unique id of event(-series)'), |
|
2017 | - 'cal_owner' => array('type' => 'int','precision' => '4','nullable' => False,'comment' => 'event owner / calendar'), |
|
2018 | - 'cal_category' => array('type' => 'varchar','precision' => '30','comment' => 'category id'), |
|
2019 | - 'cal_modified' => array('type' => 'int','precision' => '8','comment' => 'ts of last modification'), |
|
2020 | - 'cal_priority' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '2'), |
|
2021 | - 'cal_public' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '1','comment' => '1=public, 0=private event'), |
|
2022 | - 'cal_title' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => '1'), |
|
2015 | + 'cal_id' => array('type' => 'auto', 'nullable' => False), |
|
2016 | + 'cal_uid' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False, 'comment' => 'unique id of event(-series)'), |
|
2017 | + 'cal_owner' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'comment' => 'event owner / calendar'), |
|
2018 | + 'cal_category' => array('type' => 'varchar', 'precision' => '30', 'comment' => 'category id'), |
|
2019 | + 'cal_modified' => array('type' => 'int', 'precision' => '8', 'comment' => 'ts of last modification'), |
|
2020 | + 'cal_priority' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '2'), |
|
2021 | + 'cal_public' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '1', 'comment' => '1=public, 0=private event'), |
|
2022 | + 'cal_title' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False, 'default' => '1'), |
|
2023 | 2023 | 'cal_description' => array('type' => 'text'), |
2024 | - 'cal_location' => array('type' => 'varchar','precision' => '255'), |
|
2025 | - 'cal_reference' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0','comment' => 'cal_id of series for exception'), |
|
2026 | - 'cal_modifier' => array('type' => 'int','precision' => '4','comment' => 'user who last modified event'), |
|
2027 | - 'cal_non_blocking' => array('type' => 'int','precision' => '2','default' => '0','comment' => '1 for non-blocking events'), |
|
2028 | - 'cal_special' => array('type' => 'int','precision' => '2','default' => '0'), |
|
2029 | - 'cal_etag' => array('type' => 'int','precision' => '4','default' => '0','comment' => 'etag for optimistic locking'), |
|
2030 | - 'cal_creator' => array('type' => 'int','precision' => '4','nullable' => False,'comment' => 'creating user'), |
|
2031 | - 'cal_created' => array('type' => 'int','precision' => '8','nullable' => False,'comment' => 'creation time of event'), |
|
2032 | - 'cal_recurrence' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0','comment' => 'cal_start of original recurrence for exception'), |
|
2033 | - 'tz_id' => array('type' => 'int','precision' => '4','comment' => 'key into egw_cal_timezones'), |
|
2034 | - 'cal_deleted' => array('type' => 'int','precision' => '8','comment' => 'ts when event was deleted') |
|
2024 | + 'cal_location' => array('type' => 'varchar', 'precision' => '255'), |
|
2025 | + 'cal_reference' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0', 'comment' => 'cal_id of series for exception'), |
|
2026 | + 'cal_modifier' => array('type' => 'int', 'precision' => '4', 'comment' => 'user who last modified event'), |
|
2027 | + 'cal_non_blocking' => array('type' => 'int', 'precision' => '2', 'default' => '0', 'comment' => '1 for non-blocking events'), |
|
2028 | + 'cal_special' => array('type' => 'int', 'precision' => '2', 'default' => '0'), |
|
2029 | + 'cal_etag' => array('type' => 'int', 'precision' => '4', 'default' => '0', 'comment' => 'etag for optimistic locking'), |
|
2030 | + 'cal_creator' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'comment' => 'creating user'), |
|
2031 | + 'cal_created' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'comment' => 'creation time of event'), |
|
2032 | + 'cal_recurrence' => array('type' => 'int', 'precision' => '8', 'nullable' => False, 'default' => '0', 'comment' => 'cal_start of original recurrence for exception'), |
|
2033 | + 'tz_id' => array('type' => 'int', 'precision' => '4', 'comment' => 'key into egw_cal_timezones'), |
|
2034 | + 'cal_deleted' => array('type' => 'int', 'precision' => '8', 'comment' => 'ts when event was deleted') |
|
2035 | 2035 | ), |
2036 | 2036 | 'pk' => array('cal_id'), |
2037 | 2037 | 'fk' => array(), |
2038 | - 'ix' => array('cal_uid','cal_owner','cal_deleted'), |
|
2038 | + 'ix' => array('cal_uid', 'cal_owner', 'cal_deleted'), |
|
2039 | 2039 | 'uc' => array() |
2040 | - ),array( |
|
2040 | + ), array( |
|
2041 | 2041 | // for deleted rows use cal_modified as deleted date, NULL for not deleted ones |
2042 | - 'cal_deleted' => 'CASE cal_deleted WHEN '.$GLOBALS['egw_setup']->db->quote(true,'bool').' THEN cal_modified ELSE NULL END', |
|
2042 | + 'cal_deleted' => 'CASE cal_deleted WHEN '.$GLOBALS['egw_setup']->db->quote(true, 'bool').' THEN cal_modified ELSE NULL END', |
|
2043 | 2043 | )); |
2044 | 2044 | |
2045 | 2045 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.9.002'; |
@@ -2051,16 +2051,16 @@ discard block |
||
2051 | 2051 | */ |
2052 | 2052 | function calendar_upgrade1_9_002() |
2053 | 2053 | { |
2054 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','caldav_name',array( |
|
2054 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'caldav_name', array( |
|
2055 | 2055 | 'type' => 'varchar', |
2056 | 2056 | 'precision' => '64', |
2057 | 2057 | 'comment' => 'name part of CalDAV URL, if specified by client' |
2058 | 2058 | )); |
2059 | - $GLOBALS['egw_setup']->db->query($sql='UPDATE egw_cal SET caldav_name='. |
|
2059 | + $GLOBALS['egw_setup']->db->query($sql = 'UPDATE egw_cal SET caldav_name='. |
|
2060 | 2060 | $GLOBALS['egw_setup']->db->concat( |
2061 | - $GLOBALS['egw_setup']->db->to_varchar('cal_id'),"'.ics'"),__LINE__,__FILE__); |
|
2061 | + $GLOBALS['egw_setup']->db->to_varchar('cal_id'), "'.ics'"), __LINE__, __FILE__); |
|
2062 | 2062 | |
2063 | - $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal','caldav_name'); |
|
2063 | + $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal', 'caldav_name'); |
|
2064 | 2064 | |
2065 | 2065 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.9.003'; |
2066 | 2066 | } |
@@ -2071,8 +2071,8 @@ discard block |
||
2071 | 2071 | */ |
2072 | 2072 | function calendar_upgrade1_9_003() |
2073 | 2073 | { |
2074 | - $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal','cal_modified'); |
|
2075 | - $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal_user','cal_user_modified'); |
|
2074 | + $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal', 'cal_modified'); |
|
2075 | + $GLOBALS['egw_setup']->oProc->CreateIndex('egw_cal_user', 'cal_user_modified'); |
|
2076 | 2076 | |
2077 | 2077 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.9.004'; |
2078 | 2078 | } |
@@ -2084,7 +2084,7 @@ discard block |
||
2084 | 2084 | */ |
2085 | 2085 | function calendar_upgrade1_9_004() |
2086 | 2086 | { |
2087 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal_dates','recur_exception',array( |
|
2087 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal_dates', 'recur_exception', array( |
|
2088 | 2088 | 'type' => 'bool', |
2089 | 2089 | 'default' => '', |
2090 | 2090 | 'null' => false, |
@@ -2092,16 +2092,16 @@ discard block |
||
2092 | 2092 | )); |
2093 | 2093 | |
2094 | 2094 | // migrate existing exceptions to egw_cal_dates |
2095 | - foreach($GLOBALS['egw_setup']->db->select('egw_cal_repeats', |
|
2095 | + foreach ($GLOBALS['egw_setup']->db->select('egw_cal_repeats', |
|
2096 | 2096 | 'egw_cal_repeats.cal_id AS cal_id,egw_cal_repeats.recur_exception AS recur_exception,MIN(cal_start) AS cal_start,MIN(cal_end) AS cal_end', |
2097 | 2097 | 'egw_cal_repeats.recur_exception IS NOT NULL', __LINE__, __FILE__, false, |
2098 | 2098 | 'GROUP BY egw_cal_repeats.cal_id,egw_cal_repeats.recur_exception', 'calendar', '', |
2099 | 2099 | 'JOIN egw_cal_dates ON egw_cal_repeats.cal_id=egw_cal_dates.cal_id') as $row) |
2100 | 2100 | { |
2101 | - foreach($row['recur_exception'] ? array_unique(explode(',', $row['recur_exception'])) : array() as $recur_exception) |
|
2101 | + foreach ($row['recur_exception'] ? array_unique(explode(',', $row['recur_exception'])) : array() as $recur_exception) |
|
2102 | 2102 | { |
2103 | 2103 | $GLOBALS['egw_setup']->db->insert('egw_cal_dates', array( |
2104 | - 'cal_end' => $recur_exception+$row['cal_end']-$row['cal_start'], |
|
2104 | + 'cal_end' => $recur_exception + $row['cal_end'] - $row['cal_start'], |
|
2105 | 2105 | 'recur_exception' => true, |
2106 | 2106 | ), array( |
2107 | 2107 | 'cal_id' => $row['cal_id'], |
@@ -2113,11 +2113,11 @@ discard block |
||
2113 | 2113 | |
2114 | 2114 | $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal_repeats', array( |
2115 | 2115 | 'fd' => array( |
2116 | - 'cal_id' => array('type' => 'int','precision' => '4','nullable' => False), |
|
2117 | - 'recur_type' => array('type' => 'int','precision' => '2','nullable' => False), |
|
2118 | - 'recur_enddate' => array('type' => 'int','precision' => '8'), |
|
2119 | - 'recur_interval' => array('type' => 'int','precision' => '2','default' => '1'), |
|
2120 | - 'recur_data' => array('type' => 'int','precision' => '2','default' => '1'), |
|
2116 | + 'cal_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
2117 | + 'recur_type' => array('type' => 'int', 'precision' => '2', 'nullable' => False), |
|
2118 | + 'recur_enddate' => array('type' => 'int', 'precision' => '8'), |
|
2119 | + 'recur_interval' => array('type' => 'int', 'precision' => '2', 'default' => '1'), |
|
2120 | + 'recur_data' => array('type' => 'int', 'precision' => '2', 'default' => '1'), |
|
2121 | 2121 | ), |
2122 | 2122 | 'pk' => array('cal_id'), |
2123 | 2123 | 'fk' => array(), |
@@ -2138,19 +2138,19 @@ discard block |
||
2138 | 2138 | // returns NULL, if there are no rows! |
2139 | 2139 | if ((int)$max_description_length <= 16384 && $GLOBALS['egw_setup']->oProc->max_varchar_length >= 16384) |
2140 | 2140 | { |
2141 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_description',array( |
|
2141 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_description', array( |
|
2142 | 2142 | 'type' => 'varchar', |
2143 | 2143 | 'precision' => '16384' |
2144 | 2144 | )); |
2145 | 2145 | } |
2146 | 2146 | // allow more categories |
2147 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_category',array( |
|
2147 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_category', array( |
|
2148 | 2148 | 'type' => 'varchar', |
2149 | 2149 | 'precision' => '64', |
2150 | 2150 | 'comment' => 'category id(s)' |
2151 | 2151 | )); |
2152 | 2152 | // remove silly default of 1 |
2153 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_title',array( |
|
2153 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_title', array( |
|
2154 | 2154 | 'type' => 'varchar', |
2155 | 2155 | 'precision' => '255', |
2156 | 2156 | 'nullable' => False |
@@ -2165,14 +2165,14 @@ discard block |
||
2165 | 2165 | { |
2166 | 2166 | // PostgreSQL needs temporary a nullable column, to not stall on broken events without dates! |
2167 | 2167 | // We add that constrain in 1.9.007, after deleting all rows with range_start=0 OR range_start IS NULL |
2168 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','range_start',array( |
|
2168 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'range_start', array( |
|
2169 | 2169 | 'type' => 'int', |
2170 | 2170 | 'precision' => '8', |
2171 | 2171 | 'comment' => 'startdate (of range)' |
2172 | 2172 | )); |
2173 | 2173 | $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET range_start = (SELECT MIN(cal_start) FROM egw_cal_dates WHERE egw_cal_dates.cal_id=egw_cal.cal_id)', __LINE__, __FILE__); |
2174 | 2174 | |
2175 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal','range_end',array( |
|
2175 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal', 'range_end', array( |
|
2176 | 2176 | 'type' => 'int', |
2177 | 2177 | 'precision' => '8', |
2178 | 2178 | 'comment' => 'enddate (of range, UNTIL of RRULE)' |
@@ -2188,18 +2188,18 @@ discard block |
||
2188 | 2188 | { |
2189 | 2189 | $GLOBALS['egw_setup']->db->query('UPDATE egw_cal SET range_end=recur_enddate FROM egw_cal_repeats WHERE egw_cal.cal_id=egw_cal_repeats.cal_id', __LINE__, __FILE__); |
2190 | 2190 | } |
2191 | - $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal_repeats',array( |
|
2191 | + $GLOBALS['egw_setup']->oProc->DropColumn('egw_cal_repeats', array( |
|
2192 | 2192 | 'fd' => array( |
2193 | - 'cal_id' => array('type' => 'int','precision' => '4','nullable' => False), |
|
2194 | - 'recur_type' => array('type' => 'int','precision' => '2','nullable' => False), |
|
2195 | - 'recur_interval' => array('type' => 'int','precision' => '2','default' => '1'), |
|
2196 | - 'recur_data' => array('type' => 'int','precision' => '2','default' => '1') |
|
2193 | + 'cal_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
2194 | + 'recur_type' => array('type' => 'int', 'precision' => '2', 'nullable' => False), |
|
2195 | + 'recur_interval' => array('type' => 'int', 'precision' => '2', 'default' => '1'), |
|
2196 | + 'recur_data' => array('type' => 'int', 'precision' => '2', 'default' => '1') |
|
2197 | 2197 | ), |
2198 | 2198 | 'pk' => array('cal_id'), |
2199 | 2199 | 'fk' => array(), |
2200 | 2200 | 'ix' => array(), |
2201 | 2201 | 'uc' => array() |
2202 | - ),'recur_enddate'); |
|
2202 | + ), 'recur_enddate'); |
|
2203 | 2203 | |
2204 | 2204 | return $GLOBALS['setup_info']['calendar']['currentver'] = '1.9.007'; |
2205 | 2205 | } |
@@ -2211,14 +2211,14 @@ discard block |
||
2211 | 2211 | */ |
2212 | 2212 | function calendar_upgrade1_9_007() |
2213 | 2213 | { |
2214 | - foreach(array('egw_cal_repeats','egw_cal_dates','egw_cal_user','egw_cal_extra') as $table) |
|
2214 | + foreach (array('egw_cal_repeats', 'egw_cal_dates', 'egw_cal_user', 'egw_cal_extra') as $table) |
|
2215 | 2215 | { |
2216 | 2216 | $GLOBALS['egw_setup']->db->query("DELETE FROM $table WHERE cal_id IN (SELECT cal_id FROM egw_cal WHERE range_start=0 OR range_start IS NULL)", __LINE__, __FILE__); |
2217 | 2217 | } |
2218 | 2218 | $GLOBALS['egw_setup']->db->query("DELETE FROM egw_cal WHERE range_start=0 OR range_start IS NULL", __LINE__, __FILE__); |
2219 | 2219 | |
2220 | 2220 | // now we can remove temporary default of 0 from range_start and set it NOT NULL |
2221 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','range_start',array( |
|
2221 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'range_start', array( |
|
2222 | 2222 | 'type' => 'int', |
2223 | 2223 | 'precision' => '8', |
2224 | 2224 | 'nullable' => False, |
@@ -2283,7 +2283,7 @@ discard block |
||
2283 | 2283 | |
2284 | 2284 | function calendar_upgrade1_9_010() |
2285 | 2285 | { |
2286 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','caldav_name',array( |
|
2286 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'caldav_name', array( |
|
2287 | 2287 | 'type' => 'varchar', |
2288 | 2288 | 'precision' => '200', |
2289 | 2289 | 'comment' => 'name part of CalDAV URL, if specified by client' |
@@ -2313,7 +2313,7 @@ discard block |
||
2313 | 2313 | SET cal_reference=0,cal_recurrence=0,cal_etag=cal_etag+1,cal_modifier=0,cal_modified=".time()." |
2314 | 2314 | WHERE cal_reference != 0 AND cal_id IN (SELECT cal_id FROM egw_cal_repeats)", __LINE__, __FILE__); |
2315 | 2315 | |
2316 | - foreach($GLOBALS['egw_setup']->db->query( |
|
2316 | + foreach ($GLOBALS['egw_setup']->db->query( |
|
2317 | 2317 | "SELECT DISTINCT master.cal_id,egw_cal_user.cal_user_type,egw_cal_user.cal_user_id,'E' AS cal_status |
2318 | 2318 | FROM egw_cal_user |
2319 | 2319 | JOIN egw_cal ON egw_cal_user.cal_id=egw_cal.cal_id |
@@ -2340,7 +2340,7 @@ discard block |
||
2340 | 2340 | */ |
2341 | 2341 | function calendar_upgrade14_1_001() |
2342 | 2342 | { |
2343 | - foreach($GLOBALS['egw_setup']->db->query( |
|
2343 | + foreach ($GLOBALS['egw_setup']->db->query( |
|
2344 | 2344 | "SELECT egw_cal.cal_id AS cal_id,cal_start,cal_end,range_start,range_end,egw_cal_repeats.*,tz_tzid AS tzid |
2345 | 2345 | FROM egw_cal |
2346 | 2346 | JOIN egw_cal_repeats ON egw_cal_repeats.cal_id=egw_cal.cal_id |
@@ -2362,7 +2362,7 @@ discard block |
||
2362 | 2362 | $enddate->modify(($event['end'] - $event['start']).' second'); |
2363 | 2363 | if (($range_end = $enddate->format('server')) != $event['range_end']) |
2364 | 2364 | { |
2365 | - $GLOBALS['egw_setup']->db->update('egw_cal',array( |
|
2365 | + $GLOBALS['egw_setup']->db->update('egw_cal', array( |
|
2366 | 2366 | 'range_end' => $range_end, |
2367 | 2367 | 'cal_etag=cal_etag+1', |
2368 | 2368 | 'cal_modified' => time(), |
@@ -2372,7 +2372,7 @@ discard block |
||
2372 | 2372 | //error_log(__FUNCTION__."() #$event[id], start=".date('Y-m-d H:i:s', $event['start']).', end='.date('Y-m-d H:i:s', $event['end']).', range_end='.date('Y-m-d H:i:s', $event['recur_enddate']).' --> '.date('Y-m-d H:i:s', $range_end)); |
2373 | 2373 | } |
2374 | 2374 | } |
2375 | - return $GLOBALS['setup_info']['calendar']['currentver'] = '14.2.002'; // skip 14.2.001 update, as query is fixed now |
|
2375 | + return $GLOBALS['setup_info']['calendar']['currentver'] = '14.2.002'; // skip 14.2.001 update, as query is fixed now |
|
2376 | 2376 | } |
2377 | 2377 | |
2378 | 2378 | /** |
@@ -2396,7 +2396,7 @@ discard block |
||
2396 | 2396 | // if maximum is bigger then 3 |
2397 | 2397 | if ($values[1] > 3) |
2398 | 2398 | { |
2399 | - switch($GLOBALS['egw_setup']->db->Type) |
|
2399 | + switch ($GLOBALS['egw_setup']->db->Type) |
|
2400 | 2400 | { |
2401 | 2401 | case 'mysql': |
2402 | 2402 | $sql = "UPDATE egw_cal |
@@ -2446,7 +2446,7 @@ discard block |
||
2446 | 2446 | |
2447 | 2447 | function calendar_upgrade14_2_003() |
2448 | 2448 | { |
2449 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_uid',array( |
|
2449 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_uid', array( |
|
2450 | 2450 | 'type' => 'ascii', |
2451 | 2451 | 'precision' => '128', |
2452 | 2452 | 'nullable' => False, |
@@ -2458,13 +2458,13 @@ discard block |
||
2458 | 2458 | { |
2459 | 2459 | $GLOBALS['egw_setup']->db->query("UPDATE egw_cal SET cal_category='' WHERE cal_category NOT REGEXP '^[0-9,]*$'", __LINE__, __FILE__); |
2460 | 2460 | } |
2461 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','cal_category',array( |
|
2461 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'cal_category', array( |
|
2462 | 2462 | 'type' => 'ascii', |
2463 | 2463 | 'meta' => 'category', |
2464 | 2464 | 'precision' => '64', |
2465 | 2465 | 'comment' => 'category id(s)' |
2466 | 2466 | )); |
2467 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal','caldav_name',array( |
|
2467 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal', 'caldav_name', array( |
|
2468 | 2468 | 'type' => 'ascii', |
2469 | 2469 | 'precision' => '128', |
2470 | 2470 | 'comment' => 'name part of CalDAV URL, if specified by client' |
@@ -2521,22 +2521,22 @@ discard block |
||
2521 | 2521 | 'type' => 'auto', |
2522 | 2522 | 'nullable' => False |
2523 | 2523 | ));*/ |
2524 | - $GLOBALS['egw_setup']->oProc->RefreshTable('egw_cal_user',array( |
|
2524 | + $GLOBALS['egw_setup']->oProc->RefreshTable('egw_cal_user', array( |
|
2525 | 2525 | 'fd' => array( |
2526 | - 'cal_id' => array('type' => 'int','precision' => '4','nullable' => False), |
|
2527 | - 'cal_recur_date' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'default' => '0'), |
|
2528 | - 'cal_user_type' => array('type' => 'ascii','precision' => '1','nullable' => False,'default' => 'u','comment' => 'u=user, g=group, c=contact, r=resource, e=email'), |
|
2529 | - 'cal_user_id' => array('type' => 'varchar','meta' => array("cal_user_type='u'" => 'account'),'precision' => '128','nullable' => False,'comment' => 'id or email-address for type=e'), |
|
2530 | - 'cal_status' => array('type' => 'ascii','precision' => '1','default' => 'A','comment' => 'U=unknown, A=accepted, R=rejected, T=tentative'), |
|
2531 | - 'cal_quantity' => array('type' => 'int','precision' => '4','default' => '1','comment' => 'only for certain types (eg. resources)'), |
|
2532 | - 'cal_role' => array('type' => 'ascii','precision' => '64','default' => 'REQ-PARTICIPANT','comment' => 'CHAIR, REQ-PARTICIPANT, OPT-PARTICIPANT, NON-PARTICIPANT, X-CAT-$cat_id'), |
|
2533 | - 'cal_user_modified' => array('type' => 'timestamp','default' => 'current_timestamp','comment' => 'automatic timestamp of last update'), |
|
2534 | - 'cal_user_auto' => array('type' => 'auto','nullable' => False) |
|
2526 | + 'cal_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), |
|
2527 | + 'cal_recur_date' => array('type' => 'int', 'meta' => 'timestamp', 'precision' => '8', 'nullable' => False, 'default' => '0'), |
|
2528 | + 'cal_user_type' => array('type' => 'ascii', 'precision' => '1', 'nullable' => False, 'default' => 'u', 'comment' => 'u=user, g=group, c=contact, r=resource, e=email'), |
|
2529 | + 'cal_user_id' => array('type' => 'varchar', 'meta' => array("cal_user_type='u'" => 'account'), 'precision' => '128', 'nullable' => False, 'comment' => 'id or email-address for type=e'), |
|
2530 | + 'cal_status' => array('type' => 'ascii', 'precision' => '1', 'default' => 'A', 'comment' => 'U=unknown, A=accepted, R=rejected, T=tentative'), |
|
2531 | + 'cal_quantity' => array('type' => 'int', 'precision' => '4', 'default' => '1', 'comment' => 'only for certain types (eg. resources)'), |
|
2532 | + 'cal_role' => array('type' => 'ascii', 'precision' => '64', 'default' => 'REQ-PARTICIPANT', 'comment' => 'CHAIR, REQ-PARTICIPANT, OPT-PARTICIPANT, NON-PARTICIPANT, X-CAT-$cat_id'), |
|
2533 | + 'cal_user_modified' => array('type' => 'timestamp', 'default' => 'current_timestamp', 'comment' => 'automatic timestamp of last update'), |
|
2534 | + 'cal_user_auto' => array('type' => 'auto', 'nullable' => False) |
|
2535 | 2535 | ), |
2536 | 2536 | 'pk' => array('cal_user_auto'), |
2537 | 2537 | 'fk' => array(), |
2538 | - 'ix' => array('cal_user_modified',array('cal_user_type','cal_user_id')), |
|
2539 | - 'uc' => array(array('cal_id','cal_recur_date','cal_user_type','cal_user_id')) |
|
2538 | + 'ix' => array('cal_user_modified', array('cal_user_type', 'cal_user_id')), |
|
2539 | + 'uc' => array(array('cal_id', 'cal_recur_date', 'cal_user_type', 'cal_user_id')) |
|
2540 | 2540 | )); |
2541 | 2541 | |
2542 | 2542 | return $GLOBALS['setup_info']['calendar']['currentver'] = '14.2.005'; |
@@ -2545,12 +2545,12 @@ discard block |
||
2545 | 2545 | |
2546 | 2546 | function calendar_upgrade14_2_005() |
2547 | 2547 | { |
2548 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_timezones','tz_tzid',array( |
|
2548 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_timezones', 'tz_tzid', array( |
|
2549 | 2549 | 'type' => 'ascii', |
2550 | 2550 | 'precision' => '128', |
2551 | 2551 | 'nullable' => False |
2552 | 2552 | )); |
2553 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_timezones','tz_component',array( |
|
2553 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_timezones', 'tz_component', array( |
|
2554 | 2554 | 'type' => 'ascii', |
2555 | 2555 | 'precision' => '8192', |
2556 | 2556 | 'comment' => 'iCal VTIMEZONE component' |
@@ -2566,7 +2566,7 @@ discard block |
||
2566 | 2566 | */ |
2567 | 2567 | function calendar_upgrade14_3() |
2568 | 2568 | { |
2569 | - $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal_user','cal_user_attendee',array( |
|
2569 | + $GLOBALS['egw_setup']->oProc->AddColumn('egw_cal_user', 'cal_user_attendee', array( |
|
2570 | 2570 | 'type' => 'varchar', |
2571 | 2571 | 'precision' => '255', |
2572 | 2572 | 'comment' => 'email or json object with attr. cn, url, ...' |
@@ -2577,12 +2577,12 @@ discard block |
||
2577 | 2577 | |
2578 | 2578 | // delete all but one row, which would give a doublicate key, after above normalising of email addresses |
2579 | 2579 | // by ordering by status we prever accepted over tentative over unknow over deleted |
2580 | - foreach($GLOBALS['egw_setup']->db->select('egw_cal_user', "cal_id,cal_recur_date,$email AS email", array( |
|
2580 | + foreach ($GLOBALS['egw_setup']->db->select('egw_cal_user', "cal_id,cal_recur_date,$email AS email", array( |
|
2581 | 2581 | 'cal_user_type' => 'e', |
2582 | 2582 | ), __LINE__, __FILE__, false, "GROUP BY cal_id,cal_recur_date,$email HAVING COUNT(*)>1", 'calendar') as $row) |
2583 | 2583 | { |
2584 | 2584 | $n = 0; |
2585 | - foreach($GLOBALS['egw_setup']->db->select('egw_cal_user', "*,$email AS email", array( |
|
2585 | + foreach ($GLOBALS['egw_setup']->db->select('egw_cal_user', "*,$email AS email", array( |
|
2586 | 2586 | 'cal_id' => $row['cal_id'], |
2587 | 2587 | 'cal_recur_date' => $row['cal_recur_date'], |
2588 | 2588 | 'cal_user_type' => 'e', |
@@ -2590,7 +2590,7 @@ discard block |
||
2590 | 2590 | ), __LINE__, __FILE__, false, 'ORDER BY cal_status', 'calendar') as $user) // order A, T, U, X |
2591 | 2591 | { |
2592 | 2592 | if (strpos($user['email'], '@') !== false && !$n++) continue; |
2593 | - $GLOBALS['egw_setup']->db->delete('egw_cal_user', array_intersect_key($user, array_flip(array('cal_id','cal_recur_date','cal_user_type','cal_user_id','cal_status')))); |
|
2593 | + $GLOBALS['egw_setup']->db->delete('egw_cal_user', array_intersect_key($user, array_flip(array('cal_id', 'cal_recur_date', 'cal_user_type', 'cal_user_id', 'cal_status')))); |
|
2594 | 2594 | } |
2595 | 2595 | } |
2596 | 2596 | |
@@ -2599,7 +2599,7 @@ discard block |
||
2599 | 2599 | "UPDATE egw_cal_user SET cal_user_attendee=cal_user_id,cal_user_id=MD5($email) WHERE cal_user_type='e'", |
2600 | 2600 | __LINE__, __FILE__); |
2601 | 2601 | |
2602 | - $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user','cal_user_id',array( |
|
2602 | + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_cal_user', 'cal_user_id', array( |
|
2603 | 2603 | 'type' => 'ascii', |
2604 | 2604 | 'meta' => array( |
2605 | 2605 | "cal_user_type='u'" => 'account' |
@@ -2619,7 +2619,7 @@ discard block |
||
2619 | 2619 | */ |
2620 | 2620 | function calendar_upgrade14_3_001() |
2621 | 2621 | { |
2622 | - foreach($GLOBALS['egw_setup']->db->query("SELECT egw_cal_user.cal_id AS cal_id,egw_cal_user.cal_user_id AS cal_user_id,egw_cal_user.cal_user_attendee AS cal_user_attendee |
|
2622 | + foreach ($GLOBALS['egw_setup']->db->query("SELECT egw_cal_user.cal_id AS cal_id,egw_cal_user.cal_user_id AS cal_user_id,egw_cal_user.cal_user_attendee AS cal_user_attendee |
|
2623 | 2623 | FROM egw_cal_user |
2624 | 2624 | JOIN egw_cal_user euser ON euser.cal_id=egw_cal_user.cal_id AND euser.cal_user_type='e' AND euser.cal_user_id=egw_cal_user.cal_user_id AND euser.cal_user_attendee IS NULL |
2625 | 2625 | WHERE egw_cal_user.cal_user_type='e' AND egw_cal_user.cal_user_attendee IS NOT NULL |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | { |
32 | 32 | if (isset($_GET['auth'])) |
33 | 33 | { |
34 | - list($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']) = explode(':',base64_decode($_GET['auth']),2); |
|
34 | + list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':', base64_decode($_GET['auth']), 2); |
|
35 | 35 | } |
36 | 36 | return egw_digest_auth::autocreate_session_callback($account); |
37 | 37 | } |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | 'noheader' => True, |
43 | 43 | 'currentapp' => preg_match('|/webdav.php/apps/([A-Za-z0-9_-]+)/|', $_SERVER['REQUEST_URI'], $matches) ? $matches[1] : 'filemanager', |
44 | 44 | 'autocreate_session_callback' => 'check_access', |
45 | - 'no_exception_handler' => 'basic_auth', // we use a basic auth exception handler (sends exception message as basic auth realm) |
|
46 | - 'auth_realm' => 'EGroupware WebDAV server', // cant use vfs_webdav_server::REALM as autoloading and include path not yet setup! |
|
45 | + 'no_exception_handler' => 'basic_auth', // we use a basic auth exception handler (sends exception message as basic auth realm) |
|
46 | + 'auth_realm' => 'EGroupware WebDAV server', // cant use vfs_webdav_server::REALM as autoloading and include path not yet setup! |
|
47 | 47 | ) |
48 | 48 | ); |
49 | 49 | require_once('../phpgwapi/inc/class.egw_digest_auth.inc.php'); |
@@ -72,12 +72,12 @@ discard block |
||
72 | 72 | |
73 | 73 | // temporary mount ownCloud default /clientsync as /home/$user, if not explicitly mounted |
74 | 74 | // so ownCloud dir contains users home-dir by default |
75 | -if (strpos($_SERVER['REQUEST_URI'],'/webdav.php/clientsync') !== false && |
|
76 | - ($fstab=egw_vfs::mount()) && !isset($fstab['/clientsync'])) |
|
75 | +if (strpos($_SERVER['REQUEST_URI'], '/webdav.php/clientsync') !== false && |
|
76 | + ($fstab = egw_vfs::mount()) && !isset($fstab['/clientsync'])) |
|
77 | 77 | { |
78 | 78 | $is_root_backup = egw_vfs::$is_root; |
79 | 79 | egw_vfs::$is_root = true; |
80 | - $ok = egw_vfs::mount($url='vfs://default/home/$user', $clientsync='/clientsync', null, false); |
|
80 | + $ok = egw_vfs::mount($url = 'vfs://default/home/$user', $clientsync = '/clientsync', null, false); |
|
81 | 81 | egw_vfs::$is_root = $is_root_backup; |
82 | 82 | //error_log("mounting ownCloud default '$clientsync' as '$url' ".($ok ? 'successful' : 'failed!')); |
83 | 83 | } |
@@ -15,13 +15,13 @@ discard block |
||
15 | 15 | ); |
16 | 16 | include('../header.inc.php'); |
17 | 17 | |
18 | -if (!($path = egw_cache::getSession('filemanger','test'))) |
|
18 | +if (!($path = egw_cache::getSession('filemanger', 'test'))) |
|
19 | 19 | { |
20 | 20 | $path = '/home/'.$GLOBALS['egw_info']['user']['account_lid']; |
21 | 21 | } |
22 | 22 | if (isset($_REQUEST['path'])) $path = $_REQUEST['path']; |
23 | -echo html::form("<p>Path: ".html::input('path',$path,'text','size="40"'). |
|
24 | - html::submit_button('',lang('Submit'))."</p>\n",array(),'','','','','GET'); |
|
23 | +echo html::form("<p>Path: ".html::input('path', $path, 'text', 'size="40"'). |
|
24 | + html::submit_button('', lang('Submit'))."</p>\n", array(), '', '', '', '', 'GET'); |
|
25 | 25 | |
26 | 26 | if (isset($path) && !empty($path)) |
27 | 27 | { |
@@ -29,13 +29,13 @@ discard block |
||
29 | 29 | { |
30 | 30 | throw new egw_exception_wrong_userinput('Not an absolute path!'); |
31 | 31 | } |
32 | - egw_cache::setSession('filemanger','test',$path); |
|
32 | + egw_cache::setSession('filemanger', 'test', $path); |
|
33 | 33 | |
34 | 34 | echo "<h2>"; |
35 | - foreach(explode('/',$path) as $n => $part) |
|
35 | + foreach (explode('/', $path) as $n => $part) |
|
36 | 36 | { |
37 | 37 | $p .= ($p != '/' ? '/' : '').$part; |
38 | - echo ($n > 1 ? ' / ' : '').html::a_href($n ? $part : ' / ','/filemanager/test.php',array('path'=>$p)); |
|
38 | + echo ($n > 1 ? ' / ' : '').html::a_href($n ? $part : ' / ', '/filemanager/test.php', array('path'=>$p)); |
|
39 | 39 | } |
40 | 40 | echo "</h2>\n"; |
41 | 41 | |
@@ -47,29 +47,29 @@ discard block |
||
47 | 47 | |
48 | 48 | $time = microtime(true); |
49 | 49 | $stat = egw_vfs::stat($path); |
50 | - $stime = number_format(1000*(microtime(true)-$time),1); |
|
50 | + $stime = number_format(1000 * (microtime(true) - $time), 1); |
|
51 | 51 | |
52 | 52 | $time = microtime(true); |
53 | 53 | if ($is_dir)// && ($d = egw_vfs::opendir($path))) |
54 | 54 | { |
55 | 55 | $files = array(); |
56 | 56 | //while(($file = readdir($d))) |
57 | - foreach(egw_vfs::scandir($path) as $file) |
|
57 | + foreach (egw_vfs::scandir($path) as $file) |
|
58 | 58 | { |
59 | - if (egw_vfs::is_readable($fpath=egw_vfs::concat($path,$file))) |
|
59 | + if (egw_vfs::is_readable($fpath = egw_vfs::concat($path, $file))) |
|
60 | 60 | { |
61 | - $file = html::a_href($file,'/filemanager/test.php',array('path'=>$fpath)); |
|
61 | + $file = html::a_href($file, '/filemanager/test.php', array('path'=>$fpath)); |
|
62 | 62 | } |
63 | 63 | $file .= ' ('.egw_vfs::mime_content_type($fpath).')'; |
64 | 64 | $files[] = $file; |
65 | 65 | } |
66 | 66 | //closedir($d); |
67 | - $time = number_format(1000*(microtime(true)-$time),1); |
|
67 | + $time = number_format(1000 * (microtime(true) - $time), 1); |
|
68 | 68 | echo "<p>".($files ? 'Directory' : 'Empty directory')." took $time ms</p>\n"; |
69 | - if($files) echo '<ol><li>'.implode("</li>\n<li>",$files).'</ol>'."\n"; |
|
69 | + if ($files) echo '<ol><li>'.implode("</li>\n<li>", $files).'</ol>'."\n"; |
|
70 | 70 | } |
71 | 71 | |
72 | - echo "<p><b>stat('$path')</b> took $stime ms (mode = ".(isset($stat['mode'])?sprintf('%o',$stat['mode']).' = '.egw_vfs::int2mode($stat['mode']):'NULL').')'; |
|
72 | + echo "<p><b>stat('$path')</b> took $stime ms (mode = ".(isset($stat['mode']) ? sprintf('%o', $stat['mode']).' = '.egw_vfs::int2mode($stat['mode']) : 'NULL').')'; |
|
73 | 73 | if (is_array($stat)) |
74 | 74 | { |
75 | 75 | _debug_array($stat); |
@@ -86,8 +86,8 @@ discard block |
||
86 | 86 | echo "<p><b>readlink('$path')</b>=".array2string(egw_vfs::readlink($path))."</p>\n"; |
87 | 87 | $time = microtime(true); |
88 | 88 | $lstat = egw_vfs::lstat($path); |
89 | - $time = number_format(1000*(microtime(true)-$time),1); |
|
90 | - echo "<p><b>lstat('$path')</b> took $time ms (mode = ".(isset($lstat['mode'])?sprintf('%o',$lstat['mode']).' = '.egw_vfs::int2mode($lstat['mode']):'NULL').')'; |
|
89 | + $time = number_format(1000 * (microtime(true) - $time), 1); |
|
90 | + echo "<p><b>lstat('$path')</b> took $time ms (mode = ".(isset($lstat['mode']) ? sprintf('%o', $lstat['mode']).' = '.egw_vfs::int2mode($lstat['mode']) : 'NULL').')'; |
|
91 | 91 | if (is_array($lstat)) |
92 | 92 | { |
93 | 93 | _debug_array($lstat); |
@@ -13,9 +13,9 @@ discard block |
||
13 | 13 | * @todo --domain does NOT work with --user root_* for domains other then the first in header.inc.php |
14 | 14 | */ |
15 | 15 | |
16 | -chdir(dirname(__FILE__)); // to enable our relative pathes to work |
|
16 | +chdir(dirname(__FILE__)); // to enable our relative pathes to work |
|
17 | 17 | |
18 | -error_reporting(error_reporting() & ~E_NOTICE & ~E_DEPRECATED); |
|
18 | +error_reporting(error_reporting()&~E_NOTICE&~E_DEPRECATED); |
|
19 | 19 | |
20 | 20 | if (php_sapi_name() !== 'cli') // security precaution: forbit calling filemanager/cli.php as web-page |
21 | 21 | { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @param string $error_msg ='' error-message to be printed in front of usage |
46 | 46 | */ |
47 | -function usage($error_msg='') |
|
47 | +function usage($error_msg = '') |
|
48 | 48 | { |
49 | 49 | if ($error_msg) |
50 | 50 | { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | } |
79 | 79 | $long = $numeric = $recursive = $perms = $all = $inode = false; |
80 | 80 | $args = $_SERVER['argv']; |
81 | -$cmd = basename(array_shift($args),'.php'); |
|
82 | -if ($args[0][0] != '-' && $args[0][0] != '/' && strpos($args[0],'://') === false) |
|
81 | +$cmd = basename(array_shift($args), '.php'); |
|
82 | +if ($args[0][0] != '-' && $args[0][0] != '/' && strpos($args[0], '://') === false) |
|
83 | 83 | { |
84 | 84 | $cmd = array_shift($args); |
85 | 85 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | if (!$args) $args = array('-h'); |
88 | 88 | |
89 | 89 | $argv = $find_options = array(); |
90 | -while(!is_null($option = array_shift($args))) |
|
90 | +while (!is_null($option = array_shift($args))) |
|
91 | 91 | { |
92 | 92 | if ($option == '-' || $option[0] != '-') // no option --> argument |
93 | 93 | { |
@@ -95,34 +95,34 @@ discard block |
||
95 | 95 | continue; |
96 | 96 | } |
97 | 97 | |
98 | - switch($option) |
|
98 | + switch ($option) |
|
99 | 99 | { |
100 | 100 | default: |
101 | 101 | if ($cmd == 'find') |
102 | 102 | { |
103 | - if (!in_array($option,array('-type','-depth','-mindepth','-maxdepth','-name','-path', |
|
104 | - '-uid','-user','-nouser','-gid','-group','-nogroup','-mime', |
|
105 | - '-empty','-size','-cmin','-ctime','-mmin','-mtime','-limit','-order','-sort', |
|
106 | - '-hidden','-show-deleted','-name-preg','-path','-path-preg'))) |
|
103 | + if (!in_array($option, array('-type', '-depth', '-mindepth', '-maxdepth', '-name', '-path', |
|
104 | + '-uid', '-user', '-nouser', '-gid', '-group', '-nogroup', '-mime', |
|
105 | + '-empty', '-size', '-cmin', '-ctime', '-mmin', '-mtime', '-limit', '-order', '-sort', |
|
106 | + '-hidden', '-show-deleted', '-name-preg', '-path', '-path-preg'))) |
|
107 | 107 | { |
108 | 108 | usage("Unknown find option '$option'!"); |
109 | 109 | } |
110 | - if (in_array($option,array('-empty','-depth','-nouser','-nogroup','-hidden','-show-deleted'))) |
|
110 | + if (in_array($option, array('-empty', '-depth', '-nouser', '-nogroup', '-hidden', '-show-deleted'))) |
|
111 | 111 | { |
112 | - $find_options[substr($option,1)] = true; |
|
112 | + $find_options[substr($option, 1)] = true; |
|
113 | 113 | } |
114 | 114 | else |
115 | 115 | { |
116 | - $find_options[str_replace('-','_',substr($option,1))] = array_shift($args); |
|
116 | + $find_options[str_replace('-', '_', substr($option, 1))] = array_shift($args); |
|
117 | 117 | } |
118 | 118 | break; |
119 | 119 | } |
120 | 120 | // multiple options, eg. -rp --> -r -p |
121 | - elseif($option[0] == '-' && $option[1] != '-' && strlen($option) > 2) |
|
121 | + elseif ($option[0] == '-' && $option[1] != '-' && strlen($option) > 2) |
|
122 | 122 | { |
123 | - for($i = 1; $i < strlen($option); ++$i) |
|
123 | + for ($i = 1; $i < strlen($option); ++$i) |
|
124 | 124 | { |
125 | - array_unshift($args,'-'.$option[$i]); |
|
125 | + array_unshift($args, '-'.$option[$i]); |
|
126 | 126 | } |
127 | 127 | break; |
128 | 128 | } |
@@ -178,11 +178,11 @@ discard block |
||
178 | 178 | } |
179 | 179 | if ($user && $passwd) |
180 | 180 | { |
181 | - load_egw($user,$passwd,$domain ? $domain : 'default'); |
|
181 | + load_egw($user, $passwd, $domain ? $domain : 'default'); |
|
182 | 182 | } |
183 | 183 | $argc = count($argv); |
184 | 184 | |
185 | -switch($cmd) |
|
185 | +switch ($cmd) |
|
186 | 186 | { |
187 | 187 | case 'umount': |
188 | 188 | if ($argc != 1 && !$all) |
@@ -190,13 +190,13 @@ discard block |
||
190 | 190 | usage('Wrong number of parameters!'); |
191 | 191 | } |
192 | 192 | if (($url = $argv[0])) load_wrapper($url); |
193 | - if(!egw_vfs::$is_root) |
|
193 | + if (!egw_vfs::$is_root) |
|
194 | 194 | { |
195 | 195 | die("You need to be root to do that!\n"); |
196 | 196 | } |
197 | 197 | if ($all) |
198 | 198 | { |
199 | - config::save_value('vfs_fstab',$GLOBALS['egw_info']['server']['vfs_fstab']='','phpgwapi'); |
|
199 | + config::save_value('vfs_fstab', $GLOBALS['egw_info']['server']['vfs_fstab'] = '', 'phpgwapi'); |
|
200 | 200 | echo "Restored default mounts:\n"; |
201 | 201 | } |
202 | 202 | elseif (!egw_vfs::umount($url)) |
@@ -213,16 +213,16 @@ discard block |
||
213 | 213 | { |
214 | 214 | usage('Wrong number of parameters!'); |
215 | 215 | } |
216 | - load_wrapper($url=$argv[0]); |
|
216 | + load_wrapper($url = $argv[0]); |
|
217 | 217 | |
218 | - if($argc > 1 && !egw_vfs::$is_root) |
|
218 | + if ($argc > 1 && !egw_vfs::$is_root) |
|
219 | 219 | { |
220 | 220 | die("You need to be root to do that!\n"); |
221 | 221 | } |
222 | - $fstab = egw_vfs::mount($url,$path=$argv[1]); |
|
222 | + $fstab = egw_vfs::mount($url, $path = $argv[1]); |
|
223 | 223 | if (is_array($fstab)) |
224 | 224 | { |
225 | - foreach($fstab as $path => $url) |
|
225 | + foreach ($fstab as $path => $url) |
|
226 | 226 | { |
227 | 227 | echo "$url\t$path\n"; |
228 | 228 | } |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | break; |
243 | 243 | |
244 | 244 | case 'find': |
245 | - do_find($argv,$find_options); |
|
245 | + do_find($argv, $find_options); |
|
246 | 246 | break; |
247 | 247 | |
248 | 248 | case 'lntree': |
@@ -250,14 +250,14 @@ discard block |
||
250 | 250 | break; |
251 | 251 | |
252 | 252 | case 'cp': |
253 | - do_cp($argv,$recursive,$perms); |
|
253 | + do_cp($argv, $recursive, $perms); |
|
254 | 254 | break; |
255 | 255 | |
256 | 256 | case 'rename': |
257 | 257 | if (count($argv) != 2) usage('Wrong number of parameters!'); |
258 | 258 | load_wrapper($argv[0]); |
259 | 259 | load_wrapper($argv[1]); |
260 | - rename($argv[0],$argv[1]); |
|
260 | + rename($argv[0], $argv[1]); |
|
261 | 261 | break; |
262 | 262 | |
263 | 263 | case 'migrate-db2fs': |
@@ -265,21 +265,21 @@ discard block |
||
265 | 265 | { |
266 | 266 | die("\nYou need to be root to do that!\n\n"); |
267 | 267 | } |
268 | - if (!is_writable($GLOBALS['egw_info']['server']['files_dir'])) exit; // we need write access, error msg already given |
|
268 | + if (!is_writable($GLOBALS['egw_info']['server']['files_dir'])) exit; // we need write access, error msg already given |
|
269 | 269 | $fstab = egw_vfs::mount(); |
270 | - if (!is_array($fstab) || !isset($fstab['/']) || strpos($fstab['/'],'storage=db') === false) |
|
270 | + if (!is_array($fstab) || !isset($fstab['/']) || strpos($fstab['/'], 'storage=db') === false) |
|
271 | 271 | { |
272 | - foreach($fstab as $path => $url) |
|
272 | + foreach ($fstab as $path => $url) |
|
273 | 273 | { |
274 | 274 | echo "$url\t$path\n"; |
275 | 275 | } |
276 | 276 | die("\n/ NOT mounted with 'storage=db' --> no need to convert!\n\n"); |
277 | 277 | } |
278 | - $num_files = sqlfs_utils::migrate_db2fs(); // throws exception on error |
|
278 | + $num_files = sqlfs_utils::migrate_db2fs(); // throws exception on error |
|
279 | 279 | echo "\n$num_files files migrated from DB to filesystem.\n"; |
280 | - $new_url = preg_replace('/storage=db&?/','',$fstab['/']); |
|
281 | - if (substr($new_url,-1) == '?') $new_url = substr($new_url,0,-1); |
|
282 | - if (egw_vfs::mount($new_url,'/')) |
|
280 | + $new_url = preg_replace('/storage=db&?/', '', $fstab['/']); |
|
281 | + if (substr($new_url, -1) == '?') $new_url = substr($new_url, 0, -1); |
|
282 | + if (egw_vfs::mount($new_url, '/')) |
|
283 | 283 | { |
284 | 284 | echo "/ successful re-mounted on $new_url\n"; |
285 | 285 | } |
@@ -290,24 +290,24 @@ discard block |
||
290 | 290 | break; |
291 | 291 | |
292 | 292 | default: |
293 | - while($argv) |
|
293 | + while ($argv) |
|
294 | 294 | { |
295 | 295 | $url = array_shift($argv); |
296 | 296 | |
297 | 297 | load_wrapper($url); |
298 | 298 | echo "$cmd $url (long=".(int)$long.", numeric=".(int)$numeric.", recursive=".(int)$recursive.")\n"; |
299 | 299 | |
300 | - switch($cmd) |
|
300 | + switch ($cmd) |
|
301 | 301 | { |
302 | 302 | case 'rm': |
303 | 303 | if ($recursive) |
304 | 304 | { |
305 | 305 | if (!class_exists('egw_vfs')) |
306 | 306 | { |
307 | - die("rm -r only implemented for eGW streams!"); // dont want to repeat the code here |
|
307 | + die("rm -r only implemented for eGW streams!"); // dont want to repeat the code here |
|
308 | 308 | } |
309 | - array_unshift($argv,$url); |
|
310 | - egw_vfs::remove($argv,true); |
|
309 | + array_unshift($argv, $url); |
|
310 | + egw_vfs::remove($argv, true); |
|
311 | 311 | $argv = array(); |
312 | 312 | } |
313 | 313 | else |
@@ -321,27 +321,27 @@ discard block |
||
321 | 321 | break; |
322 | 322 | |
323 | 323 | case 'mkdir': |
324 | - if (!mkdir($url,null,$recursive)) echo "Can't create directory, permission denied!\n"; |
|
324 | + if (!mkdir($url, null, $recursive)) echo "Can't create directory, permission denied!\n"; |
|
325 | 325 | break; |
326 | 326 | |
327 | 327 | case 'touch': |
328 | 328 | case 'chmod': |
329 | 329 | case 'chown': |
330 | 330 | case 'chgrp': |
331 | - switch($cmd) |
|
331 | + switch ($cmd) |
|
332 | 332 | { |
333 | 333 | case 'touch': |
334 | - $params = array($url,$time); |
|
334 | + $params = array($url, $time); |
|
335 | 335 | break; |
336 | 336 | case 'chmod': |
337 | 337 | if (!isset($mode)) |
338 | 338 | { |
339 | - $mode = $url; // first param is mode |
|
339 | + $mode = $url; // first param is mode |
|
340 | 340 | $url = array_shift($argv); |
341 | 341 | } |
342 | - if (egw_vfs::parse_url($url,PHP_URL_SCHEME)) load_wrapper($url); // cant use stat or egw_vfs::mode2int otherwise! |
|
342 | + if (egw_vfs::parse_url($url, PHP_URL_SCHEME)) load_wrapper($url); // cant use stat or egw_vfs::mode2int otherwise! |
|
343 | 343 | |
344 | - if (strpos($mode,'+') !== false || strpos($mode,'-') !== false) |
|
344 | + if (strpos($mode, '+') !== false || strpos($mode, '-') !== false) |
|
345 | 345 | { |
346 | 346 | $stat = stat($url); |
347 | 347 | $set = $stat['mode']; |
@@ -352,19 +352,19 @@ discard block |
||
352 | 352 | } |
353 | 353 | if (!class_exists('egw_vfs')) |
354 | 354 | { |
355 | - die("chmod only implemented for eGW streams!"); // dont want to repeat the code here |
|
355 | + die("chmod only implemented for eGW streams!"); // dont want to repeat the code here |
|
356 | 356 | } |
357 | - $set = egw_vfs::mode2int($mode,$set); |
|
358 | - $params = array($url,$set); |
|
357 | + $set = egw_vfs::mode2int($mode, $set); |
|
358 | + $params = array($url, $set); |
|
359 | 359 | break; |
360 | 360 | case 'chown': |
361 | 361 | case 'chgrp': |
362 | 362 | $type = $cmd == 'chgrp' ? 'group' : 'user'; |
363 | 363 | if (!isset($owner)) |
364 | 364 | { |
365 | - $owner = $url; // first param is owner/group |
|
365 | + $owner = $url; // first param is owner/group |
|
366 | 366 | $url = array_shift($argv); |
367 | - if (egw_vfs::parse_url($url,PHP_URL_SCHEME)) load_wrapper($url); // we need the header loaded |
|
367 | + if (egw_vfs::parse_url($url, PHP_URL_SCHEME)) load_wrapper($url); // we need the header loaded |
|
368 | 368 | if ($owner == 'root') |
369 | 369 | { |
370 | 370 | $owner = 0; |
@@ -375,34 +375,34 @@ discard block |
||
375 | 375 | { |
376 | 376 | die("only numeric user/group-id's allowed for non eGW streams!"); |
377 | 377 | } |
378 | - if (!($owner = $GLOBALS['egw']->accounts->name2id($owner_was=$owner,'account_lid',$type[0])) || |
|
378 | + if (!($owner = $GLOBALS['egw']->accounts->name2id($owner_was = $owner, 'account_lid', $type[0])) || |
|
379 | 379 | ($owner < 0) != ($cmd == 'chgrp')) |
380 | 380 | { |
381 | 381 | die("Unknown $type '$owner_was'!"); |
382 | 382 | } |
383 | 383 | } |
384 | - elseif($owner && is_object($GLOBALS['egw']) && (!$GLOBALS['egw']->accounts->id2name($owner) || |
|
384 | + elseif ($owner && is_object($GLOBALS['egw']) && (!$GLOBALS['egw']->accounts->id2name($owner) || |
|
385 | 385 | ($owner < 0) != ($cmd == 'chgrp'))) |
386 | 386 | { |
387 | 387 | die("Unknown $type '$owner_was'!"); |
388 | 388 | } |
389 | 389 | } |
390 | - $params = array($url,$owner); |
|
390 | + $params = array($url, $owner); |
|
391 | 391 | break; |
392 | 392 | } |
393 | - if (($scheme = egw_vfs::parse_url($url,PHP_URL_SCHEME))) |
|
393 | + if (($scheme = egw_vfs::parse_url($url, PHP_URL_SCHEME))) |
|
394 | 394 | { |
395 | 395 | load_wrapper($url); |
396 | 396 | } |
397 | 397 | if ($recursive && class_exists('egw_vfs')) |
398 | 398 | { |
399 | - array_unshift($argv,$url); |
|
400 | - $params = array($argv,null,$cmd,$params[1]); |
|
401 | - $cmd = array('egw_vfs','find'); |
|
402 | - $argv = array(); // we processed all url's |
|
399 | + array_unshift($argv, $url); |
|
400 | + $params = array($argv, null, $cmd, $params[1]); |
|
401 | + $cmd = array('egw_vfs', 'find'); |
|
402 | + $argv = array(); // we processed all url's |
|
403 | 403 | } |
404 | 404 | //echo "calling cmd=".print_r($cmd,true).", params=".print_r($params,true)."\n"; |
405 | - call_user_func_array($cmd,$params); |
|
405 | + call_user_func_array($cmd, $params); |
|
406 | 406 | break; |
407 | 407 | |
408 | 408 | case 'cat': |
@@ -412,35 +412,35 @@ discard block |
||
412 | 412 | if ($cmd != 'cat' && $recursive && class_exists('egw_vfs')) |
413 | 413 | { |
414 | 414 | load_wrapper($url); |
415 | - array_unshift($argv,$url); |
|
416 | - egw_vfs::find($argv,array('url'=>true,),'do_stat',array($long,$numeric,true,$inode)); |
|
415 | + array_unshift($argv, $url); |
|
416 | + egw_vfs::find($argv, array('url'=>true,), 'do_stat', array($long, $numeric, true, $inode)); |
|
417 | 417 | $argv = array(); |
418 | 418 | } |
419 | 419 | elseif (is_dir($url) && ($dir = opendir($url))) |
420 | 420 | { |
421 | 421 | if ($argc) |
422 | 422 | { |
423 | - if (!($name = basename(egw_vfs::parse_url($url,PHP_URL_PATH)))) $name = '/'; |
|
423 | + if (!($name = basename(egw_vfs::parse_url($url, PHP_URL_PATH)))) $name = '/'; |
|
424 | 424 | echo "\n$name:\n"; |
425 | 425 | } |
426 | 426 | // separate evtl. query part, to re-add it after the file-name |
427 | 427 | unset($query); |
428 | - list($url,$query) = explode('?',$url,2); |
|
428 | + list($url, $query) = explode('?', $url, 2); |
|
429 | 429 | if ($query) $query = '?'.$query; |
430 | 430 | |
431 | - if (substr($url,-1) == '/') |
|
431 | + if (substr($url, -1) == '/') |
|
432 | 432 | { |
433 | - $url = substr($url,0,-1); |
|
433 | + $url = substr($url, 0, -1); |
|
434 | 434 | } |
435 | - while(($file = readdir($dir)) !== false) |
|
435 | + while (($file = readdir($dir)) !== false) |
|
436 | 436 | { |
437 | - do_stat($url.'/'.$file.$query,$long,$numeric,false,$inode); |
|
437 | + do_stat($url.'/'.$file.$query, $long, $numeric, false, $inode); |
|
438 | 438 | } |
439 | 439 | closedir($dir); |
440 | 440 | } |
441 | 441 | elseif ($cmd == 'cat') |
442 | 442 | { |
443 | - if (!($f = fopen($url,'r'))) |
|
443 | + if (!($f = fopen($url, 'r'))) |
|
444 | 444 | { |
445 | 445 | echo "File $url not found !!!\n\n"; |
446 | 446 | } |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | { |
449 | 449 | if ($argc) |
450 | 450 | { |
451 | - echo "\n".basename(egw_vfs::parse_url($url,PHP_URL_PATH)).":\n"; |
|
451 | + echo "\n".basename(egw_vfs::parse_url($url, PHP_URL_PATH)).":\n"; |
|
452 | 452 | } |
453 | 453 | fpassthru($f); |
454 | 454 | fclose($f); |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | } |
457 | 457 | else |
458 | 458 | { |
459 | - do_stat($url,$long,$numeric,false,$inode); |
|
459 | + do_stat($url, $long, $numeric, false, $inode); |
|
460 | 460 | } |
461 | 461 | if (!$long && $cmd == 'ls') echo "\n"; |
462 | 462 | break; |
@@ -471,11 +471,11 @@ discard block |
||
471 | 471 | */ |
472 | 472 | function load_wrapper($url) |
473 | 473 | { |
474 | - $scheme = parse_url($url,PHP_URL_SCHEME); |
|
474 | + $scheme = parse_url($url, PHP_URL_SCHEME); |
|
475 | 475 | |
476 | - if (!in_array($scheme,stream_get_wrappers())) |
|
476 | + if (!in_array($scheme, stream_get_wrappers())) |
|
477 | 477 | { |
478 | - switch($scheme) |
|
478 | + switch ($scheme) |
|
479 | 479 | { |
480 | 480 | case 'webdav': |
481 | 481 | case 'webdavs': |
@@ -484,9 +484,9 @@ discard block |
||
484 | 484 | case '': // default scheme is file and always available |
485 | 485 | break; |
486 | 486 | default: |
487 | - if (!isset($GLOBALS['egw']) && !in_array($scheme,array('smb','imap'))) |
|
487 | + if (!isset($GLOBALS['egw']) && !in_array($scheme, array('smb', 'imap'))) |
|
488 | 488 | { |
489 | - load_egw(parse_url($url,PHP_URL_USER), parse_url($url,PHP_URL_PASS), parse_url($url,PHP_URL_HOST)); |
|
489 | + load_egw(parse_url($url, PHP_URL_USER), parse_url($url, PHP_URL_PASS), parse_url($url, PHP_URL_HOST)); |
|
490 | 490 | } |
491 | 491 | // get eGW's __autoload() function |
492 | 492 | include_once(EGW_API_INC.'/common_functions.inc.php'); |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | * @param string $passwd |
508 | 508 | * @param string $domain |
509 | 509 | */ |
510 | -function load_egw($user,$passwd,$domain='default') |
|
510 | +function load_egw($user, $passwd, $domain = 'default') |
|
511 | 511 | { |
512 | 512 | //echo "load_egw($user,$passwd,$domain)\n"; |
513 | 513 | $_REQUEST['domain'] = $domain; |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | |
520 | 520 | if (ini_get('session.save_handler') == 'files' && !is_writable(ini_get('session.save_path')) && is_dir('/tmp') && is_writable('/tmp')) |
521 | 521 | { |
522 | - ini_set('session.save_path','/tmp'); // regular users may have no rights to apache's session dir |
|
522 | + ini_set('session.save_path', '/tmp'); // regular users may have no rights to apache's session dir |
|
523 | 523 | } |
524 | 524 | |
525 | 525 | $GLOBALS['egw_info'] = array( |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | ) |
532 | 532 | ); |
533 | 533 | |
534 | - if (substr($user,0,5) != 'root_') |
|
534 | + if (substr($user, 0, 5) != 'root_') |
|
535 | 535 | { |
536 | 536 | include('../header.inc.php'); |
537 | 537 | } |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | } |
558 | 558 | |
559 | 559 | $cmd = $GLOBALS['cmd']; |
560 | - if (!in_array($cmd,array('ls','find','mount','umount','eacl')) && $GLOBALS['egw_info']['server']['files_dir'] && !is_writable($GLOBALS['egw_info']['server']['files_dir'])) |
|
560 | + if (!in_array($cmd, array('ls', 'find', 'mount', 'umount', 'eacl')) && $GLOBALS['egw_info']['server']['files_dir'] && !is_writable($GLOBALS['egw_info']['server']['files_dir'])) |
|
561 | 561 | { |
562 | 562 | echo "\nError: eGroupWare's files directory {$GLOBALS['egw_info']['server']['files_dir']} is NOT writable by the user running ".basename(__FILE__)."!\n". |
563 | 563 | "--> Please run it as the same user the webserver uses or root, otherwise the $cmd command will fail!\n\n"; |
@@ -588,22 +588,22 @@ discard block |
||
588 | 588 | } |
589 | 589 | if ($argc == 1) |
590 | 590 | { |
591 | - foreach(egw_vfs::get_eacl($url) as $acl) |
|
591 | + foreach (egw_vfs::get_eacl($url) as $acl) |
|
592 | 592 | { |
593 | - $mode = ($acl['rights'] & egw_vfs::READABLE ? 'r' : '-'). |
|
594 | - ($acl['rights'] & egw_vfs::WRITABLE ? 'w' : '-'). |
|
595 | - ($acl['rights'] & egw_vfs::EXECUTABLE ? 'x' : '-'); |
|
593 | + $mode = ($acl['rights']&egw_vfs::READABLE ? 'r' : '-'). |
|
594 | + ($acl['rights']&egw_vfs::WRITABLE ? 'w' : '-'). |
|
595 | + ($acl['rights']&egw_vfs::EXECUTABLE ? 'x' : '-'); |
|
596 | 596 | echo $acl['path']."\t$mode\t".$GLOBALS['egw']->accounts->id2name($acl['owner'])."\n"; |
597 | 597 | } |
598 | 598 | return; |
599 | 599 | } |
600 | 600 | if ($argc > 1 && !is_numeric($argv[1])) |
601 | 601 | { |
602 | - $mode=$argv[1]; |
|
602 | + $mode = $argv[1]; |
|
603 | 603 | $argv[1] = null; |
604 | - for($i = 0; $mode[$i]; ++$i) |
|
604 | + for ($i = 0; $mode[$i]; ++$i) |
|
605 | 605 | { |
606 | - switch($mode[$i]) |
|
606 | + switch ($mode[$i]) |
|
607 | 607 | { |
608 | 608 | case 'x': $argv[1] |= egw_vfs::EXECUTABLE; break; |
609 | 609 | case 'w': $argv[1] |= egw_vfs::WRITABLE; break; |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | } |
612 | 612 | } |
613 | 613 | } |
614 | - if (!egw_vfs::eacl($url,$argv[1],$argc > 2 && !is_numeric($argv[2]) ? $GLOBALS['egw']->accounts->name2id($argv[2]) : $argv[2])) |
|
614 | + if (!egw_vfs::eacl($url, $argv[1], $argc > 2 && !is_numeric($argv[2]) ? $GLOBALS['egw']->accounts->name2id($argv[2]) : $argv[2])) |
|
615 | 615 | { |
616 | 616 | echo "Error setting extended acl for $argv[0]!\n"; |
617 | 617 | } |
@@ -626,10 +626,10 @@ discard block |
||
626 | 626 | * @param boolean $full_path =false true=give full path instead of just filename |
627 | 627 | * @param boolean $inode =false true=display inode (sqlfs id) |
628 | 628 | */ |
629 | -function do_stat($url,$long=false,$numeric=false,$full_path=false,$inode=false) |
|
629 | +function do_stat($url, $long = false, $numeric = false, $full_path = false, $inode = false) |
|
630 | 630 | { |
631 | 631 | //echo "do_stat($url,$long,$numeric,$full_path)\n"; |
632 | - $bname = egw_vfs::parse_url($url,PHP_URL_PATH); |
|
632 | + $bname = egw_vfs::parse_url($url, PHP_URL_PATH); |
|
633 | 633 | |
634 | 634 | if (!$full_path) |
635 | 635 | { |
@@ -660,25 +660,23 @@ discard block |
||
660 | 660 | { |
661 | 661 | if ($stat['uid']) |
662 | 662 | { |
663 | - $uid = isset($GLOBALS['egw']) ? $GLOBALS['egw']->accounts->id2name($stat['uid']) : |
|
664 | - (function_exists('posix_getpwuid') ? posix_getpwuid($stat['uid']) : $stat['uid']); |
|
663 | + $uid = isset($GLOBALS['egw']) ? $GLOBALS['egw']->accounts->id2name($stat['uid']) : (function_exists('posix_getpwuid') ? posix_getpwuid($stat['uid']) : $stat['uid']); |
|
665 | 664 | if (is_array($uid)) $uid = $uid['name']; |
666 | 665 | if (empty($uid)) $uid = $stat['uid']; |
667 | 666 | } |
668 | 667 | if (!isset($uid)) $uid = 'root'; |
669 | 668 | if ($stat['gid']) |
670 | 669 | { |
671 | - $gid = isset($GLOBALS['egw']) ? $GLOBALS['egw']->accounts->id2name(-abs($stat['gid'])) : |
|
672 | - (function_exists('posix_getgrgid') ? posix_getgrgid($stat['gid']) : $stat['gid']); |
|
670 | + $gid = isset($GLOBALS['egw']) ? $GLOBALS['egw']->accounts->id2name(-abs($stat['gid'])) : (function_exists('posix_getgrgid') ? posix_getgrgid($stat['gid']) : $stat['gid']); |
|
673 | 671 | if (is_array($gid)) $gid = $gid['name']; |
674 | 672 | if (empty($gid)) $gid = $stat['gid']; |
675 | 673 | } |
676 | 674 | if (!isset($gid)) $gid = 'root'; |
677 | 675 | } |
678 | 676 | $size = hsize($stat['size']); |
679 | - $mtime = date('Y-m-d H:i:s',$stat['mtime']); |
|
677 | + $mtime = date('Y-m-d H:i:s', $stat['mtime']); |
|
680 | 678 | $nlink = $stat['nlink']; |
681 | - if (($stat['mode'] & 0xA000) == 0xA000) |
|
679 | + if (($stat['mode']&0xA000) == 0xA000) |
|
682 | 680 | { |
683 | 681 | $symlink = " -> ".(class_exists('egw_vfs') ? egw_vfs::readlink($url) : readlink($url)); |
684 | 682 | } |
@@ -697,12 +695,12 @@ discard block |
||
697 | 695 | function hsize($size) |
698 | 696 | { |
699 | 697 | if ($size < 1024) return $size; |
700 | - if ($size < 1024*1024) return sprintf('%3.1lfk',(float)$size/1024); |
|
701 | - return sprintf('%3.1lfM',(float)$size/(1024*1024)); |
|
698 | + if ($size < 1024 * 1024) return sprintf('%3.1lfk', (float)$size / 1024); |
|
699 | + return sprintf('%3.1lfM', (float)$size / (1024 * 1024)); |
|
702 | 700 | } |
703 | 701 | |
704 | 702 | |
705 | -function do_cp($argv,$recursive=false,$perms=false) |
|
703 | +function do_cp($argv, $recursive = false, $perms = false) |
|
706 | 704 | { |
707 | 705 | $to = array_pop($argv); |
708 | 706 | load_wrapper($to); |
@@ -714,13 +712,13 @@ discard block |
||
714 | 712 | usage("No such directory '$to'!"); |
715 | 713 | } |
716 | 714 | $anz_dirs = $anz_files = 0; |
717 | - foreach($argv as $from) |
|
715 | + foreach ($argv as $from) |
|
718 | 716 | { |
719 | 717 | if (is_dir($from) && (!file_exists($to) || is_dir($to)) && $recursive && class_exists('egw_vfs')) |
720 | 718 | { |
721 | - foreach(egw_vfs::find($from,array('url' => true)) as $f) |
|
719 | + foreach (egw_vfs::find($from, array('url' => true)) as $f) |
|
722 | 720 | { |
723 | - $t = $to.substr($f,strlen($from)); |
|
721 | + $t = $to.substr($f, strlen($from)); |
|
724 | 722 | if (is_dir($f)) |
725 | 723 | { |
726 | 724 | ++$anz_dirs; |
@@ -729,43 +727,43 @@ discard block |
||
729 | 727 | else |
730 | 728 | { |
731 | 729 | ++$anz_files; |
732 | - _cp($f,$t); |
|
730 | + _cp($f, $t); |
|
733 | 731 | } |
734 | - if ($perms) _cp_perms($f,$t); |
|
732 | + if ($perms) _cp_perms($f, $t); |
|
735 | 733 | } |
736 | - echo ($anz_dirs?"$anz_dirs dir(s) created and ":'')."$anz_files file(s) copied.\n"; |
|
734 | + echo ($anz_dirs ? "$anz_dirs dir(s) created and " : '')."$anz_files file(s) copied.\n"; |
|
737 | 735 | } |
738 | 736 | else |
739 | 737 | { |
740 | - _cp($from,$to,true); |
|
741 | - if ($perms) _cp_perms($from,$to); |
|
738 | + _cp($from, $to, true); |
|
739 | + if ($perms) _cp_perms($from, $to); |
|
742 | 740 | } |
743 | 741 | } |
744 | 742 | } |
745 | 743 | |
746 | -function _cp($from,$to,$verbose=false) |
|
744 | +function _cp($from, $to, $verbose = false) |
|
747 | 745 | { |
748 | 746 | load_wrapper($from); |
749 | 747 | |
750 | 748 | if (is_dir($to)) |
751 | 749 | { |
752 | - $path = egw_vfs::parse_url($from,PHP_URL_PATH); |
|
750 | + $path = egw_vfs::parse_url($from, PHP_URL_PATH); |
|
753 | 751 | if (is_dir($to)) |
754 | 752 | { |
755 | - list($to,$query) = explode('?',$to,2); |
|
753 | + list($to, $query) = explode('?', $to, 2); |
|
756 | 754 | $to .= '/'.basename($path).($query ? '?'.$query : ''); |
757 | 755 | } |
758 | 756 | } |
759 | - if (!($from_fp = fopen($from,'r'))) |
|
757 | + if (!($from_fp = fopen($from, 'r'))) |
|
760 | 758 | { |
761 | 759 | die("File $from not found!\n"); |
762 | 760 | } |
763 | - if (!($to_fp = fopen($to,'w'))) |
|
761 | + if (!($to_fp = fopen($to, 'w'))) |
|
764 | 762 | { |
765 | 763 | die("Can't open $to for writing!\n"); |
766 | 764 | } |
767 | 765 | //stream_filter_append($from_fp,'convert.base64-decode'); |
768 | - $count = stream_copy_to_stream($from_fp,$to_fp); |
|
766 | + $count = stream_copy_to_stream($from_fp, $to_fp); |
|
769 | 767 | |
770 | 768 | if ($verbose) echo hsize($count)." bytes written to $to\n"; |
771 | 769 | |
@@ -778,11 +776,11 @@ discard block |
||
778 | 776 | } |
779 | 777 | |
780 | 778 | |
781 | -function _cp_perms($from,$to) |
|
779 | +function _cp_perms($from, $to) |
|
782 | 780 | { |
783 | 781 | if (($from_stat = stat($from)) && ($to_stat = stat($to))) |
784 | 782 | { |
785 | - foreach(array( |
|
783 | + foreach (array( |
|
786 | 784 | 'mode' => 'chmod', |
787 | 785 | 'uid' => 'chown', |
788 | 786 | 'gid' => 'chgrp', |
@@ -791,27 +789,27 @@ discard block |
||
791 | 789 | if ($from_stat[$perm] != $to_stat[$perm]) |
792 | 790 | { |
793 | 791 | //echo "egw_vfs::$cmd($to,{$from_stat[$perm]}\n"; |
794 | - call_user_func(array('egw_vfs',$cmd),$to,$from_stat[$perm]); |
|
792 | + call_user_func(array('egw_vfs', $cmd), $to, $from_stat[$perm]); |
|
795 | 793 | } |
796 | 794 | } |
797 | 795 | } |
798 | 796 | } |
799 | 797 | |
800 | -function do_find($bases,$options) |
|
798 | +function do_find($bases, $options) |
|
801 | 799 | { |
802 | - foreach($bases as $url) |
|
800 | + foreach ($bases as $url) |
|
803 | 801 | { |
804 | 802 | load_wrapper($url); |
805 | 803 | } |
806 | - $options['url'] = true; // we use url's not vfs pathes in filemanager/cli.php |
|
804 | + $options['url'] = true; // we use url's not vfs pathes in filemanager/cli.php |
|
807 | 805 | |
808 | - foreach(egw_vfs::find($bases,$options) as $path) |
|
806 | + foreach (egw_vfs::find($bases, $options) as $path) |
|
809 | 807 | { |
810 | 808 | echo "$path\n"; |
811 | 809 | } |
812 | 810 | } |
813 | 811 | |
814 | -function do_lntree($from,$to) |
|
812 | +function do_lntree($from, $to) |
|
815 | 813 | { |
816 | 814 | echo "lntree $from $to\n"; |
817 | 815 | if ($from[0] == '/') $from = 'sqlfs://default'.$from; |
@@ -874,33 +872,33 @@ discard block |
||
874 | 872 | * @param int $mode |
875 | 873 | * @return string |
876 | 874 | */ |
877 | -function int2mode( $mode ) |
|
875 | +function int2mode($mode) |
|
878 | 876 | { |
879 | - if(($mode & 0xA000) == 0xA000) // Symbolic Link |
|
877 | + if (($mode&0xA000) == 0xA000) // Symbolic Link |
|
880 | 878 | { |
881 | 879 | $sP = 'l'; |
882 | 880 | } |
883 | - elseif(($mode & 0xC000) == 0xC000) // Socket |
|
881 | + elseif (($mode&0xC000) == 0xC000) // Socket |
|
884 | 882 | { |
885 | 883 | $sP = 's'; |
886 | 884 | } |
887 | - elseif($mode & 0x1000) // FIFO pipe |
|
885 | + elseif ($mode&0x1000) // FIFO pipe |
|
888 | 886 | { |
889 | 887 | $sP = 'p'; |
890 | 888 | } |
891 | - elseif($mode & 0x2000) // Character special |
|
889 | + elseif ($mode&0x2000) // Character special |
|
892 | 890 | { |
893 | 891 | $sP = 'c'; |
894 | 892 | } |
895 | - elseif($mode & 0x4000) // Directory |
|
893 | + elseif ($mode&0x4000) // Directory |
|
896 | 894 | { |
897 | 895 | $sP = 'd'; |
898 | 896 | } |
899 | - elseif($mode & 0x6000) // Block special |
|
897 | + elseif ($mode&0x6000) // Block special |
|
900 | 898 | { |
901 | 899 | $sP = 'b'; |
902 | 900 | } |
903 | - elseif($mode & 0x8000) // Regular |
|
901 | + elseif ($mode&0x8000) // Regular |
|
904 | 902 | { |
905 | 903 | $sP = '-'; |
906 | 904 | } |
@@ -910,22 +908,19 @@ discard block |
||
910 | 908 | } |
911 | 909 | |
912 | 910 | // owner |
913 | - $sP .= (($mode & 0x0100) ? 'r' : '-') . |
|
914 | - (($mode & 0x0080) ? 'w' : '-') . |
|
915 | - (($mode & 0x0040) ? (($mode & 0x0800) ? 's' : 'x' ) : |
|
916 | - (($mode & 0x0800) ? 'S' : '-')); |
|
911 | + $sP .= (($mode&0x0100) ? 'r' : '-'). |
|
912 | + (($mode&0x0080) ? 'w' : '-'). |
|
913 | + (($mode&0x0040) ? (($mode&0x0800) ? 's' : 'x') : (($mode&0x0800) ? 'S' : '-')); |
|
917 | 914 | |
918 | 915 | // group |
919 | - $sP .= (($mode & 0x0020) ? 'r' : '-') . |
|
920 | - (($mode & 0x0010) ? 'w' : '-') . |
|
921 | - (($mode & 0x0008) ? (($mode & 0x0400) ? 's' : 'x' ) : |
|
922 | - (($mode & 0x0400) ? 'S' : '-')); |
|
916 | + $sP .= (($mode&0x0020) ? 'r' : '-'). |
|
917 | + (($mode&0x0010) ? 'w' : '-'). |
|
918 | + (($mode&0x0008) ? (($mode&0x0400) ? 's' : 'x') : (($mode&0x0400) ? 'S' : '-')); |
|
923 | 919 | |
924 | 920 | // world |
925 | - $sP .= (($mode & 0x0004) ? 'r' : '-') . |
|
926 | - (($mode & 0x0002) ? 'w' : '-') . |
|
927 | - (($mode & 0x0001) ? (($mode & 0x0200) ? 't' : 'x' ) : |
|
928 | - (($mode & 0x0200) ? 'T' : '-')); |
|
921 | + $sP .= (($mode&0x0004) ? 'r' : '-'). |
|
922 | + (($mode&0x0002) ? 'w' : '-'). |
|
923 | + (($mode&0x0001) ? (($mode&0x0200) ? 't' : 'x') : (($mode&0x0200) ? 'T' : '-')); |
|
929 | 924 | |
930 | 925 | return $sP; |
931 | 926 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | // sudo handling |
63 | 63 | parent::__construct(); |
64 | - self::$is_setup = egw_session::appsession('is_setup','filemanager'); |
|
64 | + self::$is_setup = egw_session::appsession('is_setup', 'filemanager'); |
|
65 | 65 | |
66 | 66 | if (class_exists('EGroupware\Stylite\Vfs\Versioning\StreamWrapper')) |
67 | 67 | { |
@@ -75,14 +75,14 @@ discard block |
||
75 | 75 | * @param array $content=null |
76 | 76 | * @param string $msg='' |
77 | 77 | */ |
78 | - public function index(array $content=null, $msg='', $msg_type=null) |
|
78 | + public function index(array $content = null, $msg = '', $msg_type = null) |
|
79 | 79 | { |
80 | 80 | if (is_array($content)) |
81 | 81 | { |
82 | 82 | //_debug_array($content); |
83 | 83 | if ($content['sudo']) |
84 | 84 | { |
85 | - $msg = $this->sudo($content['user'],$content['password'],self::$is_setup) ? |
|
85 | + $msg = $this->sudo($content['user'], $content['password'], self::$is_setup) ? |
|
86 | 86 | lang('Root access granted.') : lang('Wrong username or password!'); |
87 | 87 | $msg_type = Vfs::$is_root ? 'success' : 'error'; |
88 | 88 | } |
@@ -93,14 +93,14 @@ discard block |
||
93 | 93 | $backup = Vfs::$is_root; |
94 | 94 | Vfs::$is_root = true; |
95 | 95 | $msg = Vfs::mount($url, $path) ? |
96 | - lang('Successful mounted %1 on %2.',$url,$path) : lang('Error mounting %1 on %2!',$url,$path); |
|
96 | + lang('Successful mounted %1 on %2.', $url, $path) : lang('Error mounting %1 on %2!', $url, $path); |
|
97 | 97 | Vfs::$is_root = $backup; |
98 | 98 | } |
99 | 99 | elseif (Vfs::$is_root) |
100 | 100 | { |
101 | 101 | if ($content['logout']) |
102 | 102 | { |
103 | - $msg = $this->sudo('','',self::$is_setup) ? 'Logout failed!' : lang('Root access stopped.'); |
|
103 | + $msg = $this->sudo('', '', self::$is_setup) ? 'Logout failed!' : lang('Root access stopped.'); |
|
104 | 104 | $msg_type = !Vfs::$is_root ? 'success' : 'error'; |
105 | 105 | } |
106 | 106 | if ($content['mounts']['disable'] || self::$is_setup && $content['mounts']['umount']) |
@@ -116,18 +116,18 @@ discard block |
||
116 | 116 | if (!in_array($path, self::$protected_path) && $path != '/') |
117 | 117 | { |
118 | 118 | $msg = Vfs::umount($path) ? |
119 | - lang('%1 successful unmounted.',$path) : lang('Error unmounting %1!',$path); |
|
119 | + lang('%1 successful unmounted.', $path) : lang('Error unmounting %1!', $path); |
|
120 | 120 | } |
121 | 121 | else // re-mount / with sqlFS, to disable versioning |
122 | 122 | { |
123 | - $msg = Vfs::mount($url=sqlfs_stream_wrapper::SCHEME.'://default'.$path,$path) ? |
|
124 | - lang('Successful mounted %1 on %2.',$url,$path) : lang('Error mounting %1 on %2!',$url,$path); |
|
123 | + $msg = Vfs::mount($url = sqlfs_stream_wrapper::SCHEME.'://default'.$path, $path) ? |
|
124 | + lang('Successful mounted %1 on %2.', $url, $path) : lang('Error mounting %1 on %2!', $url, $path); |
|
125 | 125 | } |
126 | 126 | } |
127 | 127 | if (($path = $content['mounts']['path']) && |
128 | 128 | ($content['mounts']['enable'] || self::$is_setup && $content['mounts']['mount'])) |
129 | 129 | { |
130 | - $url = str_replace('$path',$path,$content['mounts']['url']); |
|
130 | + $url = str_replace('$path', $path, $content['mounts']['url']); |
|
131 | 131 | if (empty($url) && $this->versioning) $url = Versioning\StreamWrapper::PREFIX.$path; |
132 | 132 | |
133 | 133 | if ($content['mounts']['enable'] && !$this->versioning) |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | } |
138 | 138 | elseif (!Vfs::file_exists($path) || !Vfs::is_dir($path)) |
139 | 139 | { |
140 | - $msg = lang('Path %1 not found or not a directory!',$path); |
|
140 | + $msg = lang('Path %1 not found or not a directory!', $path); |
|
141 | 141 | $msg_type = 'error'; |
142 | 142 | } |
143 | 143 | // dont allow to change mount of /apps or /templates (eg. switching on versioning) |
@@ -148,8 +148,8 @@ discard block |
||
148 | 148 | } |
149 | 149 | else |
150 | 150 | { |
151 | - $msg = Vfs::mount($url,$path) ? |
|
152 | - lang('Successful mounted %1 on %2.',$url,$path) : lang('Error mounting %1 on %2!',$url,$path); |
|
151 | + $msg = Vfs::mount($url, $path) ? |
|
152 | + lang('Successful mounted %1 on %2.', $url, $path) : lang('Error mounting %1 on %2!', $url, $path); |
|
153 | 153 | } |
154 | 154 | } |
155 | 155 | if ($content['allow_delete_versions'] != $GLOBALS['egw_info']['server']['allow_delete_versions']) |
@@ -194,8 +194,8 @@ discard block |
||
194 | 194 | 'hidden' => true, |
195 | 195 | 'depth' => true, |
196 | 196 | 'path_preg' => '#/\.(attic|versions)/#', |
197 | - )+(!(int)$content['mtime'] ? array() : array( |
|
198 | - 'mtime' => ($content['mtime']<0?'-':'+').(int)$content['mtime'], |
|
197 | + ) + (!(int)$content['mtime'] ? array() : array( |
|
198 | + 'mtime' => ($content['mtime'] < 0 ? '-' : '+').(int)$content['mtime'], |
|
199 | 199 | )), function($path) use (&$deleted, &$errors) |
200 | 200 | { |
201 | 201 | if (($is_dir = Vfs::is_dir($path)) && Vfs::rmdir($path) || |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | } |
210 | 210 | }); |
211 | 211 | } |
212 | - $time = number_format(microtime(true)-$starttime, 1); |
|
212 | + $time = number_format(microtime(true) - $starttime, 1); |
|
213 | 213 | $msg = ($errors ? lang('%1 errors deleting!', $errors)."\n\n" : ''). |
214 | 214 | lang('%1 files or directories deleted in %2 seconds.', $deleted, $time); |
215 | 215 | $msg_type = $errors ? 'error' : 'info'; |
@@ -232,10 +232,10 @@ discard block |
||
232 | 232 | { |
233 | 233 | // statistical information |
234 | 234 | $content += Versioning\StreamWrapper::summary(); |
235 | - if ($content['total_files']) $content['percent_files'] = number_format(100.0*$content['version_files']/$content['total_files'],1).'%'; |
|
236 | - if ($content['total_size']) $content['percent_size'] = number_format(100.0*$content['version_size']/$content['total_size'],1).'%'; |
|
235 | + if ($content['total_files']) $content['percent_files'] = number_format(100.0 * $content['version_files'] / $content['total_files'], 1).'%'; |
|
236 | + if ($content['total_size']) $content['percent_size'] = number_format(100.0 * $content['version_size'] / $content['total_size'], 1).'%'; |
|
237 | 237 | } |
238 | - if (!($content['is_root']=Vfs::$is_root)) |
|
238 | + if (!($content['is_root'] = Vfs::$is_root)) |
|
239 | 239 | { |
240 | 240 | if (empty($msg)) |
241 | 241 | { |
@@ -251,16 +251,16 @@ discard block |
||
251 | 251 | |
252 | 252 | $n = 2; |
253 | 253 | $content['mounts'] = array(); |
254 | - foreach(Vfs::mount() as $path => $url) |
|
254 | + foreach (Vfs::mount() as $path => $url) |
|
255 | 255 | { |
256 | 256 | $content['mounts'][$n++] = array( |
257 | 257 | 'path' => $path, |
258 | 258 | 'url' => $url, |
259 | 259 | ); |
260 | 260 | $readonlys["disable[$path]"] = !$this->versioning || !Vfs::$is_root || |
261 | - Vfs::parse_url($url,PHP_URL_SCHEME) != $this->versioning; |
|
261 | + Vfs::parse_url($url, PHP_URL_SCHEME) != $this->versioning; |
|
262 | 262 | } |
263 | - $readonlys['umount[/]'] = $readonlys['umount[/apps]'] = true; // do not allow to unmount / or /apps |
|
263 | + $readonlys['umount[/]'] = $readonlys['umount[/apps]'] = true; // do not allow to unmount / or /apps |
|
264 | 264 | $readonlys['url'] = !self::$is_setup; |
265 | 265 | |
266 | 266 | $sel_options['allow_delete_versions'] = array( |
@@ -271,13 +271,13 @@ discard block |
||
271 | 271 | ); |
272 | 272 | // show [Mount /etemplates] button for admin, if not already mounted and available |
273 | 273 | $readonlys['etemplates'] = !class_exists('\EGroupware\Stylite\Vfs\Merge\StreamWrapper') || |
274 | - ($fs_tab=Vfs::mount($url)) && isset($fs_tab['/etemplates']) || |
|
274 | + ($fs_tab = Vfs::mount($url)) && isset($fs_tab['/etemplates']) || |
|
275 | 275 | !isset($GLOBALS['egw_info']['user']['apps']['admin']); |
276 | 276 | //_debug_array($content); |
277 | 277 | |
278 | 278 | $tpl = new etemplate_new('filemanager.admin'); |
279 | 279 | $GLOBALS['egw_info']['flags']['app_header'] = lang('VFS mounts and versioning'); |
280 | - $tpl->exec('filemanager.filemanager_admin.index',$content,$sel_options,$readonlys); |
|
280 | + $tpl->exec('filemanager.filemanager_admin.index', $content, $sel_options, $readonlys); |
|
281 | 281 | } |
282 | 282 | |
283 | 283 | /** |
@@ -297,9 +297,9 @@ discard block |
||
297 | 297 | } |
298 | 298 | $content = '<p>'.implode("</p>\n<p>", (array)$msgs)."</p>\n"; |
299 | 299 | |
300 | - $content .= html::form('<p>'.($check_only&&is_array($msgs)?html::submit_button('fix', lang('Fix reported problems')):''). |
|
300 | + $content .= html::form('<p>'.($check_only && is_array($msgs) ? html::submit_button('fix', lang('Fix reported problems')) : ''). |
|
301 | 301 | html::submit_button('cancel', lang('Cancel')).'</p>', |
302 | - '','/index.php',array('menuaction'=>'filemanager.filemanager_admin.fsck')); |
|
302 | + '', '/index.php', array('menuaction'=>'filemanager.filemanager_admin.fsck')); |
|
303 | 303 | |
304 | 304 | $GLOBALS['egw']->framework->render($content, lang('Admin').' - '.lang('Check virtual filesystem'), true); |
305 | 305 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * |
59 | 59 | * @param array $content |
60 | 60 | */ |
61 | - function select(array $content=null) |
|
61 | + function select(array $content = null) |
|
62 | 62 | { |
63 | 63 | if (!is_array($content)) |
64 | 64 | { |
@@ -69,17 +69,17 @@ discard block |
||
69 | 69 | $content['msg'] = $_GET['msg']; |
70 | 70 | $_GET['mode'] = 'open'; |
71 | 71 | $_GET['method'] = 'ckeditor_return'; |
72 | - $_GET['CKEditorFuncNum'] = egw_cache::getSession('filemanager','ckeditorfuncnum'); |
|
72 | + $_GET['CKEditorFuncNum'] = egw_cache::getSession('filemanager', 'ckeditorfuncnum'); |
|
73 | 73 | } |
74 | 74 | $content['mode'] = $_GET['mode']; |
75 | - if (!in_array($content['mode'],array('open','open-multiple','saveas','select-dir'))) |
|
75 | + if (!in_array($content['mode'], array('open', 'open-multiple', 'saveas', 'select-dir'))) |
|
76 | 76 | { |
77 | 77 | throw new egw_exception_wrong_parameter("Wrong or unset required mode parameter!"); |
78 | 78 | } |
79 | 79 | $content['path'] = $_GET['path']; |
80 | 80 | if (empty($content['path'])) |
81 | 81 | { |
82 | - $content['path'] = egw_session::appsession('select_path','filemanger'); |
|
82 | + $content['path'] = egw_session::appsession('select_path', 'filemanger'); |
|
83 | 83 | } |
84 | 84 | $content['name'] = (string)$_GET['name']; |
85 | 85 | $content['method'] = $_GET['method']; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | { |
88 | 88 | if (isset($_GET['CKEditorFuncNum']) && is_numeric($_GET['CKEditorFuncNum'])) |
89 | 89 | { |
90 | - egw_cache::setSession('filemanager','ckeditorfuncnum', |
|
90 | + egw_cache::setSession('filemanager', 'ckeditorfuncnum', |
|
91 | 91 | $content['ckeditorfuncnum'] = $_GET['CKEditorFuncNum']); |
92 | 92 | } |
93 | 93 | else |
@@ -95,20 +95,20 @@ discard block |
||
95 | 95 | throw new egw_exception_wrong_parameter("chkeditor_return has been specified as a method but some parameters are missing or invalid."); |
96 | 96 | } |
97 | 97 | } |
98 | - $content['id'] = $_GET['id']; |
|
98 | + $content['id'] = $_GET['id']; |
|
99 | 99 | $content['label'] = isset($_GET['label']) ? $_GET['label'] : lang('Open'); |
100 | 100 | if (($content['options-mime'] = isset($_GET['mime']))) |
101 | 101 | { |
102 | 102 | $sel_options['mime'] = array(); |
103 | - foreach((array)$_GET['mime'] as $key => $value) |
|
103 | + foreach ((array)$_GET['mime'] as $key => $value) |
|
104 | 104 | { |
105 | 105 | if (is_numeric($key)) |
106 | 106 | { |
107 | - $sel_options['mime'][$value] = lang('%1 files',strtoupper(mime_magic::mime2ext($value))).' ('.$value.')'; |
|
107 | + $sel_options['mime'][$value] = lang('%1 files', strtoupper(mime_magic::mime2ext($value))).' ('.$value.')'; |
|
108 | 108 | } |
109 | 109 | else |
110 | 110 | { |
111 | - $sel_options['mime'][$key] = lang('%1 files',strtoupper($value)).' ('.$key.')'; |
|
111 | + $sel_options['mime'][$key] = lang('%1 files', strtoupper($value)).' ('.$key.')'; |
|
112 | 112 | } |
113 | 113 | } |
114 | 114 | |
@@ -116,11 +116,11 @@ discard block |
||
116 | 116 | error_log(array2string($content['options-mime'])); |
117 | 117 | } |
118 | 118 | } |
119 | - elseif(isset($content['button'])) |
|
119 | + elseif (isset($content['button'])) |
|
120 | 120 | { |
121 | 121 | list($button) = each($content['button']); |
122 | 122 | unset($content['button']); |
123 | - switch($button) |
|
123 | + switch ($button) |
|
124 | 124 | { |
125 | 125 | case 'home': |
126 | 126 | $content['path'] = filemanager_ui::get_home_dir(); |
@@ -132,10 +132,10 @@ discard block |
||
132 | 132 | //Set the "content" name filed accordingly to the uploaded file |
133 | 133 | // encode chars which special meaning in url/vfs (some like / get removed!) |
134 | 134 | $content['name'] = egw_vfs::encodePathComponent($content['file_upload']['name']); |
135 | - $to_path = egw_vfs::concat($content['path'],$content['name']); |
|
135 | + $to_path = egw_vfs::concat($content['path'], $content['name']); |
|
136 | 136 | |
137 | 137 | $copy_result = (egw_vfs::is_writable($content['path']) || egw_vfs::is_writable($to_path)) && |
138 | - copy($content['file_upload']['tmp_name'],egw_vfs::PREFIX.$to_path); |
|
138 | + copy($content['file_upload']['tmp_name'], egw_vfs::PREFIX.$to_path); |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | //Break on an error condition |
@@ -154,12 +154,12 @@ discard block |
||
154 | 154 | break; |
155 | 155 | } |
156 | 156 | |
157 | - switch($content['mode']) |
|
157 | + switch ($content['mode']) |
|
158 | 158 | { |
159 | 159 | case 'open-multiple': |
160 | - foreach((array)$content['dir']['selected'] as $name) |
|
160 | + foreach ((array)$content['dir']['selected'] as $name) |
|
161 | 161 | { |
162 | - $files[] = egw_vfs::concat($content['path'],$name); |
|
162 | + $files[] = egw_vfs::concat($content['path'], $name); |
|
163 | 163 | } |
164 | 164 | //Add an uploaded file to the files result array2string |
165 | 165 | if ($copy_result === true) $files[] = $to_path; |
@@ -175,33 +175,33 @@ discard block |
||
175 | 175 | // Fall through |
176 | 176 | |
177 | 177 | default: |
178 | - $files = egw_vfs::concat($content['path'],$content['name']); |
|
178 | + $files = egw_vfs::concat($content['path'], $content['name']); |
|
179 | 179 | break; |
180 | 180 | } |
181 | 181 | |
182 | 182 | if ($content['method'] && $content['method'] != 'ckeditor_return') |
183 | 183 | { |
184 | - $js = ExecMethod2($content['method'],$content['id'],$files); |
|
184 | + $js = ExecMethod2($content['method'], $content['id'], $files); |
|
185 | 185 | } |
186 | 186 | else if ($content['method'] == 'ckeditor_return') |
187 | 187 | { |
188 | - $download_url = egw_vfs::download_url(egw_vfs::concat($content['path'],$content['name'])); |
|
188 | + $download_url = egw_vfs::download_url(egw_vfs::concat($content['path'], $content['name'])); |
|
189 | 189 | if ($download_url[0] == '/') $download_url = egw::link($download_url); |
190 | 190 | $js = "window.opener.CKEDITOR.tools.callFunction(". |
191 | 191 | $content['ckeditorfuncnum'].",'". |
192 | 192 | htmlspecialchars($download_url)."',". |
193 | 193 | "'');\negw(window).close();"; |
194 | 194 | } |
195 | - if(egw_json_response::isJSONResponse() && !($content['method'] == 'ckeditor_return')) |
|
195 | + if (egw_json_response::isJSONResponse() && !($content['method'] == 'ckeditor_return')) |
|
196 | 196 | { |
197 | 197 | $response = egw_json_response::get(); |
198 | - if($js) |
|
198 | + if ($js) |
|
199 | 199 | { |
200 | 200 | $response->script($js); |
201 | 201 | } |
202 | 202 | // Ahh! |
203 | 203 | // The vfs-select widget looks for this |
204 | - $response->script('this.selected_files = '.json_encode($files) . '; egw(this).close();'); |
|
204 | + $response->script('this.selected_files = '.json_encode($files).'; egw(this).close();'); |
|
205 | 205 | } |
206 | 206 | else |
207 | 207 | { |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | |
214 | 214 | $sel_options['mime'] = $content['options-mime']; |
215 | 215 | } |
216 | - elseif(isset($content['apps'])) |
|
216 | + elseif (isset($content['apps'])) |
|
217 | 217 | { |
218 | 218 | list($app) = each($content['apps']); |
219 | 219 | if ($app == 'home') $content['path'] = filemanager_ui::get_home_dir(); |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | //Deactivate the opload field if the current directory is not writeable or |
223 | 223 | //we're currently not in the single file open mode. |
224 | 224 | $content['no_upload'] = !egw_vfs::is_writable($content['path']) || |
225 | - !in_array($content['mode'],array('open')); |
|
225 | + !in_array($content['mode'], array('open')); |
|
226 | 226 | |
227 | 227 | $content['apps'] = array_keys(self::get_apps()); |
228 | 228 | |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | } |
233 | 233 | |
234 | 234 | // Set a flag for easy detection as we go |
235 | - $favorites_flag = substr($content['path'],0,strlen('/apps/favorites')) == '/apps/favorites'; |
|
235 | + $favorites_flag = substr($content['path'], 0, strlen('/apps/favorites')) == '/apps/favorites'; |
|
236 | 236 | |
237 | 237 | if (!$favorites_flag && (!$content['path'] || !egw_vfs::is_dir($content['path']))) |
238 | 238 | { |
@@ -246,12 +246,12 @@ discard block |
||
246 | 246 | $files = array(); |
247 | 247 | $favorites = egw_favorites::get_favorites('filemanager'); |
248 | 248 | $n = 0; |
249 | - foreach($favorites as $favorite) |
|
249 | + foreach ($favorites as $favorite) |
|
250 | 250 | { |
251 | 251 | $path = $favorite['state']['path']; |
252 | 252 | // Just directories |
253 | - if(!$path) continue; |
|
254 | - if ($path == $content['path']) continue; // remove directory itself |
|
253 | + if (!$path) continue; |
|
254 | + if ($path == $content['path']) continue; // remove directory itself |
|
255 | 255 | |
256 | 256 | $mime = egw_vfs::mime_content_type($path); |
257 | 257 | $content['dir'][$n] = array( |
@@ -267,29 +267,29 @@ discard block |
||
267 | 267 | ++$n; |
268 | 268 | } |
269 | 269 | } |
270 | - else if (!($files = egw_vfs::find($content['path'],array( |
|
270 | + else if (!($files = egw_vfs::find($content['path'], array( |
|
271 | 271 | 'dirsontop' => true, |
272 | 272 | 'order' => 'name', |
273 | 273 | 'sort' => 'ASC', |
274 | 274 | 'maxdepth' => 1, |
275 | 275 | )))) |
276 | 276 | { |
277 | - $content['msg'] = lang("Can't open directory %1!",$content['path']); |
|
277 | + $content['msg'] = lang("Can't open directory %1!", $content['path']); |
|
278 | 278 | } |
279 | 279 | else |
280 | 280 | { |
281 | 281 | $n = 0; |
282 | 282 | $content['dir'] = array('mode' => $content['mode']); |
283 | - foreach($files as $path) |
|
283 | + foreach ($files as $path) |
|
284 | 284 | { |
285 | - if ($path == $content['path']) continue; // remove directory itself |
|
285 | + if ($path == $content['path']) continue; // remove directory itself |
|
286 | 286 | |
287 | 287 | $name = egw_vfs::basename($path); |
288 | 288 | $is_dir = egw_vfs::is_dir($path); |
289 | 289 | $mime = egw_vfs::mime_content_type($path); |
290 | 290 | if ($content['mime'] && !$is_dir && $mime != $content['mime']) |
291 | 291 | { |
292 | - continue; // does not match mime-filter --> ignore |
|
292 | + continue; // does not match mime-filter --> ignore |
|
293 | 293 | } |
294 | 294 | $content['dir'][$n] = array( |
295 | 295 | 'name' => $name, |
@@ -303,12 +303,12 @@ discard block |
||
303 | 303 | } |
304 | 304 | ++$n; |
305 | 305 | } |
306 | - if (!$n) $readonlys['selected[]'] = true; // remove checkbox from empty line |
|
306 | + if (!$n) $readonlys['selected[]'] = true; // remove checkbox from empty line |
|
307 | 307 | } |
308 | 308 | $readonlys['button[createdir]'] = !egw_vfs::is_writable($content['path']); |
309 | 309 | |
310 | 310 | //_debug_array($readonlys); |
311 | - egw_session::appsession('select_path','filemanger',$content['path']); |
|
311 | + egw_session::appsession('select_path', 'filemanger', $content['path']); |
|
312 | 312 | $preserve = array( |
313 | 313 | 'mode' => $content['mode'], |
314 | 314 | 'method' => $content['method'], |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | { |
331 | 331 | egw_framework::csp_script_src_attrs('unsafe-inline'); |
332 | 332 | } |
333 | - $tpl->exec('filemanager.filemanager_select.select',$content,$sel_options,$readonlys,$preserve,2); |
|
333 | + $tpl->exec('filemanager.filemanager_select.select', $content, $sel_options, $readonlys, $preserve, 2); |
|
334 | 334 | } |
335 | 335 | |
336 | 336 | /** |
@@ -340,11 +340,11 @@ discard block |
||
340 | 340 | */ |
341 | 341 | static function get_apps() |
342 | 342 | { |
343 | - $apps = array(false); // index starting from 1 |
|
343 | + $apps = array(false); // index starting from 1 |
|
344 | 344 | if (isset($GLOBALS['egw_info']['apps']['stylite'])) $apps = array('favorites' => lang('Favorites')); |
345 | 345 | $apps += egw_link::app_list('query'); |
346 | 346 | |
347 | - unset($apps['mydms']); // they do NOT support adding files to VFS |
|
347 | + unset($apps['mydms']); // they do NOT support adding files to VFS |
|
348 | 348 | unset($apps['wiki']); |
349 | 349 | unset($apps['home-accounts']); |
350 | 350 | unset($apps['addressbook-email']); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | { |
57 | 57 | parent::__construct(); |
58 | 58 | |
59 | - if($_dir) |
|
59 | + if ($_dir) |
|
60 | 60 | { |
61 | 61 | $this->dir = $_dir; |
62 | 62 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @param string &$content=null content to create some replacements only if they are use |
73 | 73 | * @return array|boolean |
74 | 74 | */ |
75 | - protected function get_replacements($id,&$content=null) |
|
75 | + protected function get_replacements($id, &$content = null) |
|
76 | 76 | { |
77 | 77 | if (!($replacements = $this->filemanager_replacements($id, '', $content))) |
78 | 78 | { |
@@ -88,27 +88,27 @@ discard block |
||
88 | 88 | * @param string $prefix='' prefix like eg. 'erole' |
89 | 89 | * @return array|boolean |
90 | 90 | */ |
91 | - public function filemanager_replacements($id,$prefix='', &$content = null) |
|
91 | + public function filemanager_replacements($id, $prefix = '', &$content = null) |
|
92 | 92 | { |
93 | 93 | $info = array(); |
94 | - $file = egw_vfs::lstat($id,true); |
|
94 | + $file = egw_vfs::lstat($id, true); |
|
95 | 95 | |
96 | 96 | $file['mtime'] = egw_time::to($file['mtime']); |
97 | 97 | $file['ctime'] = egw_time::to($file['ctime']); |
98 | 98 | |
99 | 99 | $file['name'] = egw_vfs::basename($id); |
100 | 100 | $file['dir'] = egw_vfs::decodePath(egw_vfs::dirname($id)); |
101 | - $dirlist = explode('/',$file['dir']); |
|
101 | + $dirlist = explode('/', $file['dir']); |
|
102 | 102 | $file['folder'] = array_pop($dirlist); |
103 | - $file['folder_file'] = $file['folder'] . '/'.$file['name']; |
|
103 | + $file['folder_file'] = $file['folder'].'/'.$file['name']; |
|
104 | 104 | $file['path'] = $id; |
105 | 105 | $file['rel_path'] = str_replace($this->dir.'/', '', $id); |
106 | 106 | $file['hsize'] = egw_vfs::hsize($file['size']); |
107 | 107 | $file['mime'] = egw_vfs::mime_content_type($id); |
108 | - $file['gid'] *= -1; // our widgets use negative gid's |
|
108 | + $file['gid'] *= -1; // our widgets use negative gid's |
|
109 | 109 | if (($props = egw_vfs::propfind($id))) |
110 | 110 | { |
111 | - foreach($props as $prop) |
|
111 | + foreach ($props as $prop) |
|
112 | 112 | { |
113 | 113 | $file[$prop['name']] = $prop['val']; |
114 | 114 | } |
@@ -118,22 +118,22 @@ discard block |
||
118 | 118 | $file['symlink'] = egw_vfs::readlink($id); |
119 | 119 | } |
120 | 120 | // Custom fields |
121 | - if($content && strpos($content, '#') !== 0) |
|
121 | + if ($content && strpos($content, '#') !== 0) |
|
122 | 122 | { |
123 | 123 | // Expand link-to custom fields |
124 | 124 | $this->cf_link_to_expand($file, $content, $info); |
125 | 125 | |
126 | - foreach(config::get_customfields('filemanager') as $name => $field) |
|
126 | + foreach (config::get_customfields('filemanager') as $name => $field) |
|
127 | 127 | { |
128 | 128 | // Set any missing custom fields, or the marker will stay |
129 | - if(!$file['#'.$name]) |
|
129 | + if (!$file['#'.$name]) |
|
130 | 130 | { |
131 | 131 | $file['#'.$name] = ''; |
132 | 132 | continue; |
133 | 133 | } |
134 | 134 | |
135 | 135 | // Format date cfs per user preferences |
136 | - if($field['type'] == 'date' || $field['type'] == 'date-time') |
|
136 | + if ($field['type'] == 'date' || $field['type'] == 'date-time') |
|
137 | 137 | { |
138 | 138 | $this->date_fields[] = '#'.$name; |
139 | 139 | $file['#'.$name] = egw_time::to($file['#'.$name], $field['type'] == 'date' ? true : ''); |
@@ -142,51 +142,51 @@ discard block |
||
142 | 142 | } |
143 | 143 | |
144 | 144 | // If in apps folder, try for app-specific placeholders |
145 | - if($dirlist[1] == 'apps' && count($dirlist) > 1) |
|
145 | + if ($dirlist[1] == 'apps' && count($dirlist) > 1) |
|
146 | 146 | { |
147 | 147 | // Try this first - a normal path /apps/appname/id/file |
148 | - list($app, $app_id) = explode('/', substr($file['path'], strpos($file['path'], 'apps/')+5)); |
|
148 | + list($app, $app_id) = explode('/', substr($file['path'], strpos($file['path'], 'apps/') + 5)); |
|
149 | 149 | // Symlink? |
150 | - if(!$app || !(int)$app_id || !array_key_exists($app, $GLOBALS['egw_info']['user']['apps'])) { |
|
150 | + if (!$app || !(int)$app_id || !array_key_exists($app, $GLOBALS['egw_info']['user']['apps'])) { |
|
151 | 151 | // Try resolving just app + ID - /apps/App Name/Record Title/file |
152 | - $resolved = egw_vfs::resolve_url_symlinks(implode('/',array_slice(explode('/',$file['dir']),0,4))); |
|
153 | - list($app, $app_id) = explode('/', substr($resolved, strpos($resolved, 'apps/')+5)); |
|
152 | + $resolved = egw_vfs::resolve_url_symlinks(implode('/', array_slice(explode('/', $file['dir']), 0, 4))); |
|
153 | + list($app, $app_id) = explode('/', substr($resolved, strpos($resolved, 'apps/') + 5)); |
|
154 | 154 | |
155 | - if(!$app || !(int)$app_id || !array_key_exists($app, $GLOBALS['egw_info']['user']['apps'])) { |
|
155 | + if (!$app || !(int)$app_id || !array_key_exists($app, $GLOBALS['egw_info']['user']['apps'])) { |
|
156 | 156 | // Get rid of any virtual folders (eg: All$) and symlinks |
157 | 157 | $resolved = egw_vfs::resolve_url_symlinks($file['path']); |
158 | - list($app, $app_id) = explode('/', substr($resolved, strpos($resolved, 'apps/')+5)); |
|
158 | + list($app, $app_id) = explode('/', substr($resolved, strpos($resolved, 'apps/') + 5)); |
|
159 | 159 | } |
160 | 160 | } |
161 | - if($app && $app_id) |
|
161 | + if ($app && $app_id) |
|
162 | 162 | { |
163 | - if($app && $GLOBALS['egw_info']['user']['apps'][$app]) |
|
163 | + if ($app && $GLOBALS['egw_info']['user']['apps'][$app]) |
|
164 | 164 | { |
165 | 165 | $app_merge = null; |
166 | 166 | try |
167 | 167 | { |
168 | - $classname = $app .'_merge'; |
|
169 | - if(class_exists($classname)) |
|
168 | + $classname = $app.'_merge'; |
|
169 | + if (class_exists($classname)) |
|
170 | 170 | { |
171 | 171 | $app_merge = new $classname(); |
172 | - if($app_merge && method_exists($app_merge, 'get_replacements')) |
|
172 | + if ($app_merge && method_exists($app_merge, 'get_replacements')) |
|
173 | 173 | { |
174 | 174 | $app_placeholders = $app_merge->get_replacements($app_id, $content); |
175 | 175 | } |
176 | 176 | } |
177 | 177 | } |
178 | 178 | // Silently discard & continue |
179 | - catch(Exception $e) { |
|
180 | - unset($e); // not used |
|
179 | + catch (Exception $e) { |
|
180 | + unset($e); // not used |
|
181 | 181 | } |
182 | 182 | } |
183 | 183 | } |
184 | 184 | } |
185 | 185 | $link = egw_link::mime_open($file['url'], $file['mime']); |
186 | - if(is_array($link)) |
|
186 | + if (is_array($link)) |
|
187 | 187 | { |
188 | 188 | // Directories have their internal protocol in path here |
189 | - if($link['path'] && strpos($link['path'], '://') !== false) $link['path'] = $file['path']; |
|
189 | + if ($link['path'] && strpos($link['path'], '://') !== false) $link['path'] = $file['path']; |
|
190 | 190 | $link = egw_session::link('/index.php', $link); |
191 | 191 | } |
192 | 192 | else |
@@ -205,12 +205,12 @@ discard block |
||
205 | 205 | $file['url'] = $link; |
206 | 206 | |
207 | 207 | // Add markers |
208 | - foreach($file as $key => &$value) |
|
208 | + foreach ($file as $key => &$value) |
|
209 | 209 | { |
210 | - if(!$value) $value = ''; |
|
211 | - $info['$$'.($prefix ? $prefix.'/':'').$key.'$$'] = $value; |
|
210 | + if (!$value) $value = ''; |
|
211 | + $info['$$'.($prefix ? $prefix.'/' : '').$key.'$$'] = $value; |
|
212 | 212 | } |
213 | - if($app_placeholders) |
|
213 | + if ($app_placeholders) |
|
214 | 214 | { |
215 | 215 | $info = array_merge($app_placeholders, $info); |
216 | 216 | } |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | 'hsize' => 'Size', |
247 | 247 | 'size' => 'Size (in bytes)', |
248 | 248 | ); |
249 | - foreach($fields as $name => $label) |
|
249 | + foreach ($fields as $name => $label) |
|
250 | 250 | { |
251 | 251 | if (!($n&1)) echo '<tr>'; |
252 | 252 | echo '<td>{{'.$name.'}}</td><td>'.lang($label).'</td>'; |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | } |
256 | 256 | |
257 | 257 | echo '<tr><td colspan="4"><h3>'.lang('Custom fields').":</h3></td></tr>"; |
258 | - foreach(config::get_customfields('filemanager') as $name => $field) |
|
258 | + foreach (config::get_customfields('filemanager') as $name => $field) |
|
259 | 259 | { |
260 | 260 | echo '<tr><td>{{#'.$name.'}}</td><td colspan="3">'.$field['label']."</td></tr>\n"; |
261 | 261 | } |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | echo '<tr><td colspan="4">'.lang('For files linked to an application entry (inside /apps/appname/id/) the placeholders for that application are also available. See the specific application for a list of available placeholders.').'</td></tr>'; |
265 | 265 | |
266 | 266 | echo '<tr><td colspan="4"><h3>'.lang('General fields:')."</h3></td></tr>"; |
267 | - foreach(array( |
|
267 | + foreach (array( |
|
268 | 268 | 'date' => lang('Date'), |
269 | 269 | 'user/n_fn' => lang('Name of current user, all other contact fields are valid too'), |
270 | 270 | 'user/account_lid' => lang('Username'), |