]> git.ipfire.org Git - ipfire-2.x.git/blame_incremental - html/cgi-bin/samba.cgi
Sambactrl und samba.cgi von Maniacikarus
[ipfire-2.x.git] / html / cgi-bin / samba.cgi
... / ...
Content-type: text/html ]> git.ipfire.org Git - ipfire-2.x.git/blame_incremental - html/cgi-bin/samba.cgi


500 - Internal Server Error

Malformed UTF-8 character (fatal) at (eval 6) line 1, <$fd> line 40.
CommitLineData
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
10use strict;
11# enable only the following on debugging purpose
12use warnings;
13use CGI::Carp 'fatalsToBrowser';
14
15require '/var/ipfire/general-functions.pl';
16require "${General::swroot}/lang.pl";
17require "${General::swroot}/header.pl";
18
19my %sambasettings = ();
20my %checked = ();
21my %netsettings = ();
22my %ovpnsettings = ();
23my $message = "";
24my $errormessage = "";
25my $shareconfigentry = "";
26my @sharesconfig = ();
27my @shareconfigline = ();
28my $shareoption = '';
29my $defaultoption= "[Share]\npath = /shares/share1\ncomment = Share - Public Access\nbrowseable = yes\nwriteable = yes\ncreate mask = 0777\ndirectory mask = 0777\nguest ok = yes\npublic = yes\nforce user = samba";
30my $userentry = "";
31my @user = ();
32my @userline = ();
33my @proto = ();
34my %selected= () ;
35my $userfile = "/var/ipfire/samba/private/smbpasswd";
36&General::readhash("${General::swroot}/ethernet/settings", \%netsettings);
37&General::readhash("${General::swroot}/ovpn/settings", \%ovpnsettings);
38
39############################################################################################################################
40