/[smecontribs]/rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-add_ajaxplorer_support.patch
ViewVC logotype

Contents of /rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-add_ajaxplorer_support.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Tue Jun 28 16:01:43 2011 UTC (12 years, 10 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-71_el4_sme, smeserver-shared-folders-0_1-61_el4_sme, smeserver-shared-folders-0_1-70_el4_sme, smeserver-shared-folders-0_1-66_el4_sme, smeserver-shared-folders-0_1-65_el4_sme, smeserver-shared-folders-0_1-51_el4_sme, smeserver-shared-folders-0_1-50_el4_sme, smeserver-shared-folders-0_1-59_el4_sme, smeserver-shared-folders-0_1-48_el4_sme, smeserver-shared-folders-0_1-56_el4_sme, smeserver-shared-folders-0_1-60_el4_sme, smeserver-shared-folders-0_1-47_el4_sme, smeserver-shared-folders-0_1-77_el4_sme, smeserver-shared-folders-0_1-74_el4_sme, smeserver-shared-folders-0_1-78_el4_sme, smeserver-shared-folders-0_1-62_el4_sme, smeserver-shared-folders-0_1-58_el4_sme, smeserver-shared-folders-0_1-63_el4_sme, smeserver-shared-folders-0_1-75_el4_sme, smeserver-shared-folders-0_1-76_el4_sme, smeserver-shared-folders-0_1-68_el4_sme, smeserver-shared-folders-0_1-69_el4_sme, smeserver-shared-folders-0_1-57_el4_sme, smeserver-shared-folders-0_1-54_el4_sme, smeserver-shared-folders-0_1-49_el4_sme, smeserver-shared-folders-0_1-52_el4_sme, smeserver-shared-folders-0_1-72_el4_sme, smeserver-shared-folders-0_1-73_el4_sme, smeserver-shared-folders-0_1-64_el4_sme, smeserver-shared-folders-0_1-67_el4_sme, smeserver-shared-folders-0_1-79_el4_sme, smeserver-shared-folders-0_1-55_el4_sme, smeserver-shared-folders-0_1-53_el4_sme, HEAD
Changes since 1.3: +3 -3 lines
* Tue Jun 28 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-47.sme
- Fix Ajaxplorer fields on share creation

1 diff -Nur smeserver-shared-folders-0.1/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/shares smeserver-shared-folders-0.1_mod/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/shares
2 --- smeserver-shared-folders-0.1/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/shares 2011-06-28 15:44:43.000000000 +0200
3 +++ smeserver-shared-folders-0.1_mod/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/shares 2011-06-28 15:51:25.000000000 +0200
4 @@ -489,4 +489,18 @@
5 </trans>
6 </entry>
7
8 + <entry>
9 + <base>DESC_AJAXPLORER</base>
10 + <trans>
11 + The following settings control the access of this shared folder with the web based file manager Ajaxplorer
12 + </trans>
13 + </entry>
14 +
15 + <entry>
16 + <base>LABEL_AJAXPLORER</base>
17 + <trans>
18 + Ajaxplorer Access
19 + </trans>
20 + </entry>
21 +
22 </lexicon>
23 diff -Nur smeserver-shared-folders-0.1/root/etc/e-smith/web/functions/shares smeserver-shared-folders-0.1_mod/root/etc/e-smith/web/functions/shares
24 --- smeserver-shared-folders-0.1/root/etc/e-smith/web/functions/shares 2011-06-28 15:44:43.000000000 +0200
25 +++ smeserver-shared-folders-0.1_mod/root/etc/e-smith/web/functions/shares 2011-06-28 15:52:03.000000000 +0200
26 @@ -117,6 +117,8 @@
27 <label>LABEL_DYNAMIC_CONTENT</label>
28 </field>
29
30 + <subroutine src="print_ajaxplorer_fields()" />
31 +
32 <subroutine src="print_section_bar()" />
33
34 <subroutine src="print_encryption_fields()" />
35 diff -Nur smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm
36 --- smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2011-06-28 15:44:43.000000000 +0200
37 +++ smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2011-06-28 17:59:48.000000000 +0200
38 @@ -25,6 +25,7 @@
39 print_share_table
40 print_share_name_field
41 print_encryption_fields
42 + print_ajaxplorer_fields
43 genGroupAccess
44 smbAccess_list
45 httpAccess_list
46 @@ -293,6 +294,32 @@
47 return undef;
48 }
49
50 +# If ajaxplorer is enabled:
51 +sub print_ajaxplorer_fields {
52 + my ($self) = @_;
53 + if (($configdb->get('ajaxplorer')->prop('status') || 'disabled') eq 'enabled'){
54 + print_section_bar();
55 + my ($enabled,$disabled) = ('','');
56 + my $share = $self->{cgi}->param('name') || '';
57 + if (($share ne '') && ($accountdb->get($share)->prop('Ajaxplorer') || 'disabled') eq 'enabled'){
58 + $enabled = ' SELECTED';
59 + }
60 + else {
61 + $disabled = ' SELECTED';
62 + }
63 + print qq(<tr><td colspan="2">) . $self->localise('DESC_AJAXPLORER') . qq(</td></tr>);
64 + print qq(<tr><td class="sme-noborders-label">) .
65 + $self->localise('LABEL_AJAXPLORER') . qq(</td>\n);
66 + print qq(
67 + <td class="sme-noborders-content"><SELECT NAME="ajaxplorer" TYPE="select">
68 + <OPTION VALUE="disabled"$disabled>) . $self->localise('DISABLED') .
69 + qq(<OPTION VALUE="enabled"$enabled>) . $self->localise('ENABLED') .
70 + qq(</SELECT></td>
71 + );
72 + }
73 + return undef;
74 +}
75 +
76 # Takes a comma delimited list of groups and returns a string of
77 # html checkboxes for all system groups with the groups having write and read access.
78
79 @@ -537,6 +564,7 @@
80 smbAccess => $self->cgi->param('smbaccess'),
81 httpAccess => $self->cgi->param('httpaccess'),
82 WebDav => $self->cgi->param('webdav'),
83 + Ajaxplorer => ($self->cgi->param('ajaxplorer') || 'disabled'),
84 RequireSSL => $self->cgi->param('requireSSL'),
85 Indexes => $self->cgi->param('indexes'),
86 DynamicContent => $self->cgi->param('dynamic'),
87 @@ -608,6 +636,7 @@
88 smbAccess => $self->cgi->param('smbaccess'),
89 httpAccess => $self->cgi->param('httpaccess'),
90 WebDav => $self->cgi->param('webdav'),
91 + Ajaxplorer => ($self->cgi->param('ajaxplorer') || 'disabled'),
92 RequireSSL => $self->cgi->param('requireSSL'),
93 Indexes => $self->cgi->param('indexes'),
94 DynamicContent => $self->cgi->param('dynamic'),

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed