Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
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 |
content_guesser.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\mimetype;
15
16 class content_guesser extends guesser_base
17 {
18 /**
19 * {@inheritdoc}
20 */
21 public function is_supported()
22 {
23 return function_exists('mime_content_type') && is_callable('mime_content_type');
24 }
25
26 /**
27 * {@inheritdoc}
28 */
29 public function guess($file, $file_name = '')
30 {
31 return mime_content_type($file);
32 }
33 }
34