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