add missing CSRFTokenFieldTag's

This commit is contained in:
glaszig 2019-08-14 02:41:20 +02:00
parent 99b0c04ef2
commit f5e3b717ff
5 changed files with 6 additions and 0 deletions

View File

@ -260,6 +260,7 @@ foreach ($clients as $client) {
<div class="col-lg-12">
<div class="row">
<form action="?page=wlan0_info" method="POST">
<?php echo CSRFTokenFieldTag() ?>
<?php if (!$wlan0up) {
echo '<input type="submit" class="btn btn-success" value="'._("Start ").RASPI_WIFI_CLIENT_INTERFACE.'" name="ifup_wlan0" />';
} else {

View File

@ -315,6 +315,7 @@ function DisplayOpenVPNConfig()
<h4>Client settings</h4>
<form role="form" action="?page=save_hostapd_conf" method="POST">
<?php echo CSRFTokenFieldTag() ?>
<div class="row">
<div class="form-group col-md-4">
@ -439,6 +440,7 @@ function DisplayTorProxyConfig()
<div class="tab-pane fade in active" id="basic">
<h4>Basic settings</h4>
<form role="form" action="?page=save_hostapd_conf" method="POST">
<?php echo CSRFTokenFieldTag() ?>
<div class="row">
<div class="form-group col-md-4">
<label for="code">VirtualAddrNetwork</label>

View File

@ -63,6 +63,7 @@ foreach ($interfaces as $interface) {
<div class="row">
<div class="col-lg-6">
<form id="frm-'.htmlspecialchars($interface, ENT_QUOTES).'">
' . CSRFTokenFieldTag() . '
<div class="form-group">
<h4>' . _("Adapter IP Address Settings") . '</h4>
<div class="btn-group" data-toggle="buttons">

View File

@ -187,6 +187,7 @@ function DisplaySystem()
</div>
<form action="?page=system_info" method="POST">
<?php echo CSRFTokenFieldTag() ?>
<input type="submit" class="btn btn-warning" name="system_reboot" value="<?php echo _("Reboot"); ?>" />
<input type="submit" class="btn btn-warning" name="system_shutdown" value="<?php echo _("Shutdown"); ?>" />
<input type="button" class="btn btn-outline btn-primary" value="<?php echo _("Refresh"); ?>" onclick="document.location.reload(true)" />

View File

@ -43,6 +43,7 @@ function DisplayThemeConfig()
</div>
<form action="?page=system_info" method="POST">
<?php echo CSRFTokenFieldTag() ?>
<input type="button" class="btn btn-outline btn-primary" value="<?php echo _("Refresh"); ?>" onclick="document.location.reload(true)" />
</form>