Skip to content

Commit

Permalink
Header with loginName
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary committed Jan 27, 2024
1 parent 391aff2 commit 7601143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gatherling/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

case 'delplayer':
case 'delete_player':
auth();
$event = new Event($_GET['event']);
$player = $_GET['delplayer'];
$result = delete_player_from_event($event, $player);
Expand Down
1 change: 1 addition & 0 deletions gatherling/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ function json_headers()
header('Cache-Control: no-cache');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Access-Control-Allow-Origin: *');
header('HTTP_X_USERNAME: '.Player::loginName());
}

function distance_of_time_in_words($from_time, $to_time = 0, $truncate = false)
Expand Down

0 comments on commit 7601143

Please sign in to comment.