mirror of
https://github.com/Mibew/design.git
synced 2025-01-23 02:20:34 +03:00
add csrf token to performance and features views
This commit is contained in:
parent
69463ded6b
commit
da790fc8d2
@ -23,6 +23,8 @@ require_once('../libs/common.php');
|
||||
require_once('../libs/operator.php');
|
||||
require_once('../libs/settings.php');
|
||||
|
||||
csrfchecktoken();
|
||||
|
||||
$operator = check_login();
|
||||
|
||||
$page = array('agentId' => '');
|
||||
|
@ -23,6 +23,8 @@ require_once('../libs/common.php');
|
||||
require_once('../libs/operator.php');
|
||||
require_once('../libs/settings.php');
|
||||
|
||||
csrfchecktoken();
|
||||
|
||||
$operator = check_login();
|
||||
|
||||
$page = array('agentId' => '');
|
||||
@ -129,4 +131,4 @@ prepare_menu($operator);
|
||||
setup_settings_tabs(2);
|
||||
start_html_output();
|
||||
require('../view/performance.php');
|
||||
?>
|
||||
?>
|
||||
|
@ -85,6 +85,10 @@ require_once('inc_errors.php');
|
||||
<?php } ?>
|
||||
|
||||
<form name="features" method="post" action="<?php echo $webimroot ?>/operator/features.php">
|
||||
|
||||
<!-- add auth token -->
|
||||
<?php print_csrf_token_input() ?>
|
||||
|
||||
<input type="hidden" name="sent" value="true"/>
|
||||
<div>
|
||||
<?php print_tabbar(); ?>
|
||||
@ -241,4 +245,4 @@ require_once('inc_errors.php');
|
||||
} /* content */
|
||||
|
||||
require_once('inc_main.php');
|
||||
?>
|
||||
?>
|
||||
|
@ -40,6 +40,9 @@ require_once('inc_errors.php');
|
||||
|
||||
<form name="performance" method="post" action="<?php echo $webimroot ?>/operator/performance.php">
|
||||
|
||||
<!-- add auth token -->
|
||||
<?php print_csrf_token_input() ?>
|
||||
|
||||
<div>
|
||||
<?php print_tabbar(); ?>
|
||||
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
|
||||
@ -156,4 +159,4 @@ require_once('inc_errors.php');
|
||||
} /* content */
|
||||
|
||||
require_once('inc_main.php');
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user