1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Token checks added.

This commit is contained in:
Cameron
2021-09-14 13:28:03 -07:00
parent 6020de66e1
commit 2682aeaa27
6 changed files with 43 additions and 12 deletions

View File

@@ -9,7 +9,10 @@
* URL and front controller Management
*
*/
if(!empty($_POST) && !isset($_POST['e-token']))
{
$_POST['e-token'] = '';
}
require_once(__DIR__.'/../class2.php');
if (!getperms('K'))
{
@@ -328,7 +331,9 @@ class eurl_admin_ui extends e_admin_controller_ui
}
$text .= "<div class='buttons-bar center'>".$frm->button('saveSimpleSef',LAN_SAVE, 'submit')."</div>";
$text .= $frm->token();
$text .= $frm->close();
$text .= "</div>";
return $text;
}
@@ -444,7 +449,8 @@ class eurl_admin_ui extends e_admin_controller_ui
</tbody>
</table>
<div class='buttons-bar center'>
".$form->admin_button('update', LAN_UPDATE, 'update')."
".$form->admin_button('update', LAN_UPDATE, 'update').
$form->token()."
</div>
</fieldset>
</form>
@@ -564,7 +570,8 @@ class eurl_admin_ui extends e_admin_controller_ui
</tbody>
</table>
<div class='buttons-bar center'>
".$form->admin_button('update', LAN_UPDATE, 'update')."
".$form->admin_button('update', LAN_UPDATE, 'update').
$form->token()."
</div>
</fieldset>
</form>