]> git.ipfire.org Git - ipfire-2.x.git/blob - html/cgi-bin/sambahlp.cgi
Uploads.cgi entfernt. Die war noch ueber.
[ipfire-2.x.git] / html / cgi-bin / sambahlp.cgi
1 #!/usr/bin/perl
2 #
3 # IPFire CGIs
4 #
5 # This code is distributed under the terms of the GPL
6 #
7 # (c) The IPFire Team
8
9 use strict;
10 # enable only the following on debugging purpose
11 use warnings;
12 use CGI::Carp 'fatalsToBrowser';
13
14 require '/var/ipfire/general-functions.pl';
15 require "${General::swroot}/lang.pl";
16 require "${General::swroot}/header.pl";
17
18 &Header::showhttpheaders();
19 &Header::openpagewithoutmenu('Samba', 1, '');
20 &Header::openbigbox('100%', 'left', '', 'BigBox');
21 &Header::openbox('100%', 'left', '', 'Sambahelp');
22
23 print <<END
24 <br />
25 <table width='95%' cellspacing='0'>
26 <tr><td><b>$Lang::tr{'caption'}</b></td></tr>
27 <tr><td><u>$Lang::tr{'options'}</u></td><td><u>$Lang::tr{'meaning'}</u> / <u>$Lang::tr{'exampel'}</u></td></tr>
28 <tr><td>comment</td><td>$Lang::tr{'comment'}</td></tr>
29 <tr><td></td><td>comment = $Lang::tr{'my new share'}</td></tr>
30 <tr><td><br /></td><td></td></tr>
31 <tr><td>path</td><td>$Lang::tr{'path to directory'}</td></tr>
32 <tr><td></td><td>path = /tmp</td></tr>
33 <tr><td><br /></td><td></td></tr>
34 <tr><td>writeable</td><td>$Lang::tr{'directory writeable'}</td></tr>
35 <tr><td></td><td>writeable = yes</td></tr>
36 <tr><td><br /></td><td></td></tr>
37 <tr><td>browseable</td><td>sichtbar in Verzeichnisliste</td></tr>
38 <tr><td></td><td>browsable = yes</td></tr>
39 <tr><td><br /></td><td></td></tr>
40 <tr><td>user</td><td>Besitzer der Freigabe</td></tr>
41 <tr><td></td><td>user = samba</td></tr>
42 <tr><td><br /></td><td></td></tr>
43 <tr><td>valid users</td><td>Liste der Zugriffsberechtigten</td></tr>
44 <tr><td></td><td>valid users = samba, user1</td></tr>
45 <tr><td><br /></td><td></td></tr>
46 <tr><td>write list</td><td>$Lang::tr{'visible in browselist'}</td></tr>
47 <tr><td></td><td>write list = samba</td></tr>
48 <tr><td><br /></td><td></td></tr>
49 <tr><td>hosts allow</td><td>$Lang::tr{'host allow'}</td></tr>
50 <tr><td></td><td>hosts allow = localhost 192.168.1.1 192.168.2.0/24</td></tr>
51 <tr><td><br /></td><td></td></tr>
52 <tr><td>hosts deny</td><td>$Lang::tr{'host deny'}</td></tr>
53 <tr><td></td><td>hosts deny = 192.168.1.2 192.168.3.0/24</td></tr>
54 <tr><td><br /></td><td></td></tr>
55 <tr><td>read list</td><td>$Lang::tr{'read list'}</td></tr>
56 <tr><td></td><td>read list = user1</td></tr>
57 <tr><td><br /></td><td></td></tr>
58 <tr><td>admin users</td><td>$Lang::tr{'admin users'}</td></tr>
59 <tr><td></td><td>admin users = user1</td></tr>
60 <tr><td><br /></td><td></td></tr>
61 <tr><td>invalid users</td><td>$Lang::tr{'invalid users'}</td></tr>
62 <tr><td></td><td>invalid users = user2</td></tr>
63 <tr><td><br /></td><td></td></tr>
64 <tr><td>force user</td><td>$Lang::tr{'force user'}</td></tr>
65 <tr><td></td><td>force user = samba</td></tr>
66 <tr><td><br /></td><td></td></tr>
67 <tr><td>directory mask</td><td>$Lang::tr{'directory mask'}</td></tr>
68 <tr><td></td><td>directory mask = 0777</td></tr>
69 <tr><td><br /></td><td></td></tr>
70 <tr><td>create mask</td><td>U$Lang::tr{'create mask'}</td></tr>
71 <tr><td></td><td>create mask = 0777</td></tr>
72 <tr><td><br /></td><td></td></tr>
73 <tr><td>guest ok</td><td>$Lang::tr{'guest ok'}</td></tr>
74 <tr><td></td><td>guest ok = yes</td></tr>
75 </table>
76 END
77 ;
78
79 &Header::closebox();
80 &Header::closebigbox();
81 &Header::closepage();