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


500 - Internal Server Error

Malformed UTF-8 character (fatal) at (eval 6) line 1, <$fd> line 123.
CommitLineData
5e773594
MT
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 = ();
97de2cae 22my %ovpnsettings = ();
5e773594
MT
23my $message = "";
24my $errormessage = "";
1ee8bf5d
MT
25my $shareconfigentry = "";
26my @sharesconfig = ();
27my @shareconfigline = ();
14cc7eac
MT
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";
1ee8bf5d
MT
30my $userentry = "";
31my @user = ();
32my @userline = ();
5e773594
MT
33my @proto = ();
34my %selected= () ;
1ee8bf5d 35my $userfile = "/var/ipfire/samba/private/smbpasswd";
5e773594 36&General::readhash("${General::swroot}/ethernet/settings", \%netsettings);
97de2cae 37&General::readhash("${General::swroot}/ovpn/settings", \%ovpnsettings);
5e773594 38
14cc7eac
MT
39############################################################################################################################
40