-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplication.php
More file actions
46 lines (40 loc) · 995 Bytes
/
Application.php
File metadata and controls
46 lines (40 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @brief Game Servers Application Class
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
* @copyright (c) Invision Power Services, Inc.
* @license https://www.invisioncommunity.com/legal/standards/
* @package Invision Community
* @subpackage Game Servers
* @since 26 Feb 2026
*/
namespace IPS\gameservers;
use IPS\Application as SystemApplication;
use function array_key_exists;
use function defined;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* Game Servers Application Class
*/
class Application extends SystemApplication
{
/**
* ACP menu
*
* @return array
*/
public function acpMenu(): array
{
$menu = parent::acpMenu();
if ( array_key_exists( 'manage', $menu ) )
{
( new UpdateCheck )->applyAcpMenuSuffix();
}
return $menu;
}
}