summaryrefslogtreecommitdiff
path: root/src/web/_controller/_meta.php
blob: bec3c65e650dca6ac8622c3576d7427f964183f6 (plain)
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
<?php /* Copyright (c) 2024 Freya Murphy */
class _meta_controller extends Controller {

	public function manifest(): void {

		$json = array(
			'short_name' => 'xssbook.com',
			'name' => 'xssbook.com',
			'icons' => [
				array(
					'src' => 'https://xssbook.com/public/icons/logo512.png',
					'type' => 'image/png',
					'sizes' => '512x512',
					'purpose' => 'any maskable'
				)
			],
			'id' => 'https://xssbook.com/home',
			'start_url' => 'https://xssbook.com/home',
			'background_color' => '#181818',
			'display' => 'standalone',
			'scope' => '/',
			'theme_color' => '#181818',
			'shortcuts' => [],
			'description' => 'Post posts postfully on XSSBook',
			'screenshots' => []
		);

		header('Content-type: application/json');
		echo json_encode($json);
	}

}

?>