|
@@ -52,6 +52,14 @@ else {
|
|
|
|
|
|
if (count($_REQUEST) > 0) {
|
|
if (count($_REQUEST) > 0) {
|
|
|
|
|
|
|
|
+ //validate the token
|
|
|
|
+ $token = new token;
|
|
|
|
+ if (!$token->validate($_SERVER['PHP_SELF'])) {
|
|
|
|
+ message::add($text['message-invalid_token'],'negative');
|
|
|
|
+ header('Location: notification_edit.php');
|
|
|
|
+ exit;
|
|
|
|
+ }
|
|
|
|
+
|
|
// prepare demographic information **********************************************
|
|
// prepare demographic information **********************************************
|
|
|
|
|
|
// fusionpbx version
|
|
// fusionpbx version
|
|
@@ -296,6 +304,10 @@ else {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+//create token
|
|
|
|
+ $object = new token;
|
|
|
|
+ $token = $object->create($_SERVER['PHP_SELF']);
|
|
|
|
+
|
|
require_once "resources/header.php";
|
|
require_once "resources/header.php";
|
|
$document['title'] = $text['title-notifications'];
|
|
$document['title'] = $text['title-notifications'];
|
|
|
|
|
|
@@ -426,6 +438,7 @@ $document['title'] = $text['title-notifications'];
|
|
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0'>\n";
|
|
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0'>\n";
|
|
echo " <tr>\n";
|
|
echo " <tr>\n";
|
|
echo " <td align='right'>\n";
|
|
echo " <td align='right'>\n";
|
|
|
|
+ echo " <input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
|
echo " <br>";
|
|
echo " <br>";
|
|
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
|
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
|
echo " </td>\n";
|
|
echo " </td>\n";
|