mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-18 19:53:27 +02:00
feature: csrf protection
This commit is contained in:
@@ -16,6 +16,8 @@ defined('MYAAC') or die('Direct access not allowed!');
|
||||
|
||||
$title = 'Mass Teleport Actions';
|
||||
|
||||
csrfProtect();
|
||||
|
||||
function admin_teleport_position($x, $y, $z) {
|
||||
if (!Player::query()->update([
|
||||
'posx' => $x, 'posy' => $y, 'posz' => $z
|
||||
|
Reference in New Issue
Block a user