mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Correct displayed configuration name
This commit is contained in:
parent
f721c08dc9
commit
a963c0564f
@ -12,14 +12,14 @@
|
|||||||
$conf_default = empty($ret) ? "none" : $ret[0];
|
$conf_default = empty($ret) ? "none" : $ret[0];
|
||||||
?>
|
?>
|
||||||
<?php foreach ($clients as $client) :
|
<?php foreach ($clients as $client) :
|
||||||
if ($client == "client.conf") {
|
if ($client == $conf_default) {
|
||||||
$label = file_get_meta(RASPI_OPENVPN_CLIENT_CONFIG,'#\sfilename\s(.*)');
|
|
||||||
$btn_class = "active";
|
$btn_class = "active";
|
||||||
} else {
|
} else {
|
||||||
$label = preg_replace('/_client$/','',pathinfo($client, PATHINFO_FILENAME));
|
|
||||||
$client = $label;
|
|
||||||
$btn_class = "disabled";
|
$btn_class = "disabled";
|
||||||
}?>
|
}
|
||||||
|
$label = preg_replace('/_client$/','',pathinfo($client, PATHINFO_FILENAME));
|
||||||
|
$client = $label;
|
||||||
|
?>
|
||||||
<div class="row mt-2" id="openvpn-client-row-<?php echo htmlspecialchars($client, ENT_QUOTES); ?>" >
|
<div class="row mt-2" id="openvpn-client-row-<?php echo htmlspecialchars($client, ENT_QUOTES); ?>" >
|
||||||
<div class="col-md-6 col-xs-4">
|
<div class="col-md-6 col-xs-4">
|
||||||
<label><?php echo htmlspecialchars($label, ENT_QUOTES); ?></label>
|
<label><?php echo htmlspecialchars($label, ENT_QUOTES); ?></label>
|
||||||
|
Loading…
Reference in New Issue
Block a user