srv/web/ipfire/html/captive/assets/internet.png
srv/web/ipfire/html/captive/assets/favicon.ico
srv/web/ipfire/html/captive/index.cgi
+srv/web/ipfire/html/captive/logo
#srv/web/ipfire/html/images
srv/web/ipfire/html/images/IPFire.png
srv/web/ipfire/html/images/add.gif
#actions
if ($cgiparams{'ACTION'} eq "$Lang::tr{'save'}"){
+ #Check Expiretime
+ if($cgiparams{'EXP_HOUR'}+$cgiparams{'EXP_DAY'}+$cgiparams{'EXP_WEEK'}+$cgiparams{'EXP_MONTH'} == 0 && $cgiparams{'UNLIMITED'} == ''){
+ $errormessage=$Lang::tr{'Captive noexpiretime'};
+ }
+
my $file = $cgiparams{'uploaded_file'};
if ($file){
#Check if extension is png
my $PNG1=<PNG>;
close(PNG);
my ($width,$height)=&pngsize($PNG1);
- if($width > 1920 || $height > 800 || $width < 1280 || $height < 4000){
- $errormessage.="$Lang::tr{'Captive invalid logosize'} <br>Filedimensions width: $width height: $height<br>";
+ if($width > 1920 || $height > 800 || $width < 1280 || $height < 400){
+ $errormessage.="$Lang::tr{'Captive invalid logosize'} <br>Filedimensions width: $width height: $height ";
unlink("$logopath/logo.png");
}
}
my $PNG = $1;
($width,$height) = unpack( "NN", $PNG );
} else {
- $width=$Lang::tr{'acct invalid png'};
+ $width="invalid";
+ $height= "invalid";
};
return ($width,$height);
}
'Captive mac' => 'MAC-Adresse',
'Captive menu' => 'Captive-Portal',
'Captive nr' => 'Nummer',
+'Captive noexpiretime' => 'Es wurde kein gültiger Verbindungszeitraum angegeben',
'Captive nolimit' => 'Unbegrenzt',
'Captive voactive' => 'Aktive Gutscheine',
'Captive vout' => 'Ausgegebene Gutscheine',
'Captive mac' => 'MAC-Address',
'Captive menu' => 'Captive Portal',
'Captive nr' => 'Number',
+'Captive noexpiretime' => 'No valid connection timerange given',
'Captive nolimit' => 'no limit',
'Captive voactive' => 'Active Vouchers',
'Captive vout' => 'Issued vouchers',
'Captive wrong ext' => 'Uploaded file has wrong filetype',
'Captive voucher' => 'Voucher',
'Captive voucherout' => 'Ticket transfer',
-'Captive vouchervalid' => 'Conenction timerange',
+'Captive vouchervalid' => 'Connection timerange',
'Choose Rule' => 'Choose <u>one</u> of the following rules.',
'Class' => 'Class',
'Class was deleted' => 'with potential subclasses was deleted',