whitespace and curly braces diag_logs_poes.php

This commit is contained in:
Ad Schellevis 2016-03-11 16:51:44 +01:00
parent 71d06a6fa1
commit 37d890f1a1

View File

@ -1,16 +1,17 @@
<?php
if (htmlspecialchars($_POST['mode']))
$mode = htmlspecialchars($_POST['mode']);
elseif (htmlspecialchars($_GET['mode']))
$mode = htmlspecialchars($_GET['mode']);
else
$mode = "login";
if (htmlspecialchars($_POST['mode'])) {
$mode = htmlspecialchars($_POST['mode']);
} elseif (htmlspecialchars($_GET['mode'])) {
$mode = htmlspecialchars($_GET['mode']);
} else {
$mode = "login";
}
if ($mode != 'raw') {
$logfile = '/var/log/vpn.log';
$logfile = '/var/log/vpn.log';
} else {
$logfile = '/var/log/poes.log';
$logfile = '/var/log/poes.log';
}
$logtype = 'poes';