Verzeichnisstruktur phpBB-3.1.0
- Veröffentlicht
- 27.10.2014
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
json_response.php
01 <?php
02 /**
03 *
04 * This file is part of the phpBB Forum Software package.
05 *
06 * @copyright (c) phpBB Limited <https://www.phpbb.com>
07 * @license GNU General Public License, version 2 (GPL-2.0)
08 *
09 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14 namespace phpbb;
15
16 /**
17 * JSON class
18 */
19 class json_response
20 {
21 /**
22 * Send the data to the client and exit the script.
23 *
24 * @param array $data Any additional data to send.
25 * @param bool $exit Will exit the script if true.
26 */
27 public function send($data, $exit = true)
28 {
29 header('Content-Type: application/json');
30 echo json_encode($data);
31
32 if ($exit)
33 {
34 garbage_collection();
35 exit_handler();
36 }
37 }
38 }
39