mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
captive: Some more CGI cleanup
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -269,22 +269,22 @@ END
|
|||||||
print<<END
|
print<<END
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><br>
|
<td>
|
||||||
$Lang::tr{'Captive title'}
|
$Lang::tr{'Captive title'}
|
||||||
</td>
|
</td>
|
||||||
<td><br>
|
<td>
|
||||||
<input type='text' name='TITLE' value="$settings{'TITLE'}" size='40'>
|
<input type='text' name='TITLE' value="$settings{'TITLE'}" size='40'>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
END
|
END
|
||||||
;
|
;
|
||||||
|
|
||||||
print<<END
|
print<<END
|
||||||
<tr>
|
<tr>
|
||||||
<td><br>
|
<td>
|
||||||
$Lang::tr{'Captive authentication'}
|
$Lang::tr{'Captive authentication'}
|
||||||
</td>
|
</td>
|
||||||
<td><br>
|
<td>
|
||||||
<select name='AUTH'>
|
<select name='AUTH'>
|
||||||
END
|
END
|
||||||
;
|
;
|
||||||
@@ -315,15 +315,28 @@ END
|
|||||||
}
|
}
|
||||||
|
|
||||||
#Logo Upload
|
#Logo Upload
|
||||||
print "<tr><td><br>$Lang::tr{'Captive logo_upload'}<br>$Lang::tr{'Captive logo_upload1'}</td><td><br><INPUT TYPE='file' NAME='uploaded_file' SIZE=30 MAXLENGTH=80></td></tr><tr>";
|
print <<END;
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
$Lang::tr{'Captive logo_upload'}
|
||||||
|
<br>
|
||||||
|
$Lang::tr{'Captive logo_upload1'}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<INPUT TYPE='file' NAME='uploaded_file' SIZE=30 MAXLENGTH=80>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
END
|
||||||
|
|
||||||
#Show Logo in webinterface with 1/2 size if set
|
#Show Logo in webinterface with 1/2 size if set
|
||||||
if (-f "$logopath/logo.png"){
|
if (-f "$logopath/logo.png"){
|
||||||
print"<td>$Lang::tr{'Captive logo_set'}</td>";
|
print"<tr><td>$Lang::tr{'Captive logo_set'}</td>";
|
||||||
print"<td><img src='/captive/logo/logo.png' alt='$logopath/logo.png' width='25%' height='25%' /></td></tr>";
|
print"<td><img src='/captive/logo/logo.png' alt='$logopath/logo.png' width='25%' height='25%' /></td></tr>";
|
||||||
}else{
|
}else{
|
||||||
print"<td>$Lang::tr{'Captive logo_set'}</td>";
|
print"<tr><td>$Lang::tr{'Captive logo_set'}</td>";
|
||||||
print"<td><br>$Lang::tr{'no'}</td></tr>";
|
print"<td><br>$Lang::tr{'no'}</td></tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
print<<END
|
print<<END
|
||||||
<tr>
|
<tr>
|
||||||
<td>$Lang::tr{'Captive brand color'}</td>
|
<td>$Lang::tr{'Captive brand color'}</td>
|
||||||
@@ -333,18 +346,15 @@ print<<END
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td></td>
|
||||||
</td>
|
|
||||||
<td align='right'>
|
<td align='right'>
|
||||||
<input type='submit' name='ACTION' value="$Lang::tr{'save'}"/>
|
<input type='submit' name='ACTION' value="$Lang::tr{'save'}"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br><br>
|
</form>
|
||||||
END
|
END
|
||||||
;
|
;
|
||||||
print "</form>";
|
|
||||||
|
|
||||||
&Header::closebox();
|
&Header::closebox();
|
||||||
|
|
||||||
#if settings is set to use coupons, the coupon part has to be displayed
|
#if settings is set to use coupons, the coupon part has to be displayed
|
||||||
|
|||||||
Reference in New Issue
Block a user