Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
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 |
php.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\template\twig\node;
15
16 class php extends \Twig\Node\Node
17 {
18 /** @var \Twig\Environment */
19 protected $environment;
20
21 public function __construct(\Twig\Node\TextNode $text, \phpbb\template\twig\environment $environment, $lineno, $tag = null)
22 {
23 $this->environment = $environment;
24
25 parent::__construct(array('text' => $text), array(), $lineno, $tag);
26 }
27
28 /**
29 * Compiles the node to PHP.
30 *
31 * @param \Twig\Compiler A Twig\Compiler instance
32 */
33 public function compile(\Twig\Compiler $compiler)
34 {
35 $compiler->addDebugInfo($this);
36
37 $config = $this->environment->get_phpbb_config();
38
39 if (!$config['tpl_allow_php'])
40 {
41 $compiler
42 ->write("// PHP Disabled\n")
43 ;
44
45 return;
46 }
47
48 $compiler
49 ->raw($this->getNode('text')->getAttribute('data'))
50 ;
51 }
52 }
53