mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
update comment for avatar csrf, and add csrf token check to permission page
This commit is contained in:
parent
7035c3feba
commit
c948956779
@ -23,6 +23,7 @@ require_once('../libs/common.php');
|
|||||||
require_once('../libs/operator.php');
|
require_once('../libs/operator.php');
|
||||||
require_once('../libs/operator_settings.php');
|
require_once('../libs/operator_settings.php');
|
||||||
|
|
||||||
|
csrfchecktoken();
|
||||||
$operator = check_login();
|
$operator = check_login();
|
||||||
|
|
||||||
function update_operator_permissions($operatorid, $newvalue)
|
function update_operator_permissions($operatorid, $newvalue)
|
||||||
|
@ -36,7 +36,10 @@ require_once('inc_errors.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="avatarForm" method="post" action="<?php echo $webimroot ?>/operator/avatar.php" enctype="multipart/form-data">
|
<form name="avatarForm" method="post" action="<?php echo $webimroot ?>/operator/avatar.php" enctype="multipart/form-data">
|
||||||
|
|
||||||
|
<!-- add csrf token -->
|
||||||
<?php print_csrf_token_input() ?>
|
<?php print_csrf_token_input() ?>
|
||||||
|
|
||||||
<input type="hidden" name="op" value="<?php echo $page['opid'] ?>"/>
|
<input type="hidden" name="op" value="<?php echo $page['opid'] ?>"/>
|
||||||
<div>
|
<div>
|
||||||
<?php print_tabbar(); ?>
|
<?php print_tabbar(); ?>
|
||||||
|
@ -39,6 +39,10 @@ require_once('inc_errors.php');
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<form name="permissionsForm" method="post" action="<?php echo $webimroot ?>/operator/permissions.php">
|
<form name="permissionsForm" method="post" action="<?php echo $webimroot ?>/operator/permissions.php">
|
||||||
|
|
||||||
|
<!-- add csrf token -->
|
||||||
|
<?php print_csrf_token_input() ?>
|
||||||
|
|
||||||
<input type="hidden" name="op" value="<?php echo $page['opid'] ?>"/>
|
<input type="hidden" name="op" value="<?php echo $page['opid'] ?>"/>
|
||||||
<div>
|
<div>
|
||||||
<?php print_tabbar(); ?>
|
<?php print_tabbar(); ?>
|
||||||
@ -67,4 +71,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