More changes required to make this work on device_edit.php. Disable until the changes are ready.
This commit is contained in:
@@ -192,12 +192,12 @@
|
|||||||
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
//validate the token
|
//validate the token
|
||||||
$token = new token;
|
//$token = new token;
|
||||||
if (!$token->validate($_SERVER['PHP_SELF'])) {
|
//if (!$token->validate($_SERVER['PHP_SELF'])) {
|
||||||
message::add($text['message-invalid_token'],'negative');
|
// message::add($text['message-invalid_token'],'negative');
|
||||||
header('Location: devices.php');
|
// header('Location: devices.php');
|
||||||
exit;
|
// exit;
|
||||||
}
|
//}
|
||||||
|
|
||||||
//check for all required data
|
//check for all required data
|
||||||
$msg = '';
|
$msg = '';
|
||||||
@@ -1597,7 +1597,7 @@
|
|||||||
if ($action == "update") {
|
if ($action == "update") {
|
||||||
echo " <input type='hidden' name='device_uuid' value='".escape($device_uuid)."'/>\n";
|
echo " <input type='hidden' name='device_uuid' value='".escape($device_uuid)."'/>\n";
|
||||||
}
|
}
|
||||||
echo " <input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
//echo " <input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
||||||
echo " <br>";
|
echo " <br>";
|
||||||
echo " <input type='button' class='btn' value='".$text['button-save']."' onclick='submit_form();'/>\n";
|
echo " <input type='button' class='btn' value='".$text['button-save']."' onclick='submit_form();'/>\n";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user