mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10: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/operator.php');
|
||||||
require_once('../libs/settings.php');
|
require_once('../libs/settings.php');
|
||||||
|
|
||||||
|
csrfchecktoken();
|
||||||
|
|
||||||
$operator = check_login();
|
$operator = check_login();
|
||||||
|
|
||||||
$page = array('agentId' => '');
|
$page = array('agentId' => '');
|
||||||
|
@ -23,6 +23,8 @@ require_once('../libs/common.php');
|
|||||||
require_once('../libs/operator.php');
|
require_once('../libs/operator.php');
|
||||||
require_once('../libs/settings.php');
|
require_once('../libs/settings.php');
|
||||||
|
|
||||||
|
csrfchecktoken();
|
||||||
|
|
||||||
$operator = check_login();
|
$operator = check_login();
|
||||||
|
|
||||||
$page = array('agentId' => '');
|
$page = array('agentId' => '');
|
||||||
@ -129,4 +131,4 @@ prepare_menu($operator);
|
|||||||
setup_settings_tabs(2);
|
setup_settings_tabs(2);
|
||||||
start_html_output();
|
start_html_output();
|
||||||
require('../view/performance.php');
|
require('../view/performance.php');
|
||||||
?>
|
?>
|
||||||
|
@ -85,6 +85,10 @@ require_once('inc_errors.php');
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<form name="features" method="post" action="<?php echo $webimroot ?>/operator/features.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"/>
|
<input type="hidden" name="sent" value="true"/>
|
||||||
<div>
|
<div>
|
||||||
<?php print_tabbar(); ?>
|
<?php print_tabbar(); ?>
|
||||||
@ -241,4 +245,4 @@ require_once('inc_errors.php');
|
|||||||
} /* content */
|
} /* content */
|
||||||
|
|
||||||
require_once('inc_main.php');
|
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">
|
<form name="performance" method="post" action="<?php echo $webimroot ?>/operator/performance.php">
|
||||||
|
|
||||||
|
<!-- add auth token -->
|
||||||
|
<?php print_csrf_token_input() ?>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<?php print_tabbar(); ?>
|
<?php print_tabbar(); ?>
|
||||||
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
|
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
|
||||||
@ -156,4 +159,4 @@ require_once('inc_errors.php');
|
|||||||
} /* content */
|
} /* content */
|
||||||
|
|
||||||
require_once('inc_main.php');
|
require_once('inc_main.php');
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user