mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/twig] Add check for defined IN_PHPBB in all new Twig related files
PHPBB3-11598
This commit is contained in:
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_node_define extends Twig_Node
|
class phpbb_template_twig_node_define extends Twig_Node
|
||||||
{
|
{
|
||||||
public function __construct($capture, Twig_NodeInterface $name, Twig_NodeInterface $value, $lineno, $tag = null)
|
public function __construct($capture, Twig_NodeInterface $name, Twig_NodeInterface $value, $lineno, $tag = null)
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_node_event extends Twig_Node
|
class phpbb_template_twig_node_event extends Twig_Node
|
||||||
{
|
{
|
||||||
/** @var Twig_Environment */
|
/** @var Twig_Environment */
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_node_expression_binary_equalequal extends Twig_Node_Expression_Binary
|
class phpbb_template_twig_node_expression_binary_equalequal extends Twig_Node_Expression_Binary
|
||||||
{
|
{
|
||||||
public function operator(Twig_Compiler $compiler)
|
public function operator(Twig_Compiler $compiler)
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_node_expression_binary_notequalequal extends Twig_Node_Expression_Binary
|
class phpbb_template_twig_node_expression_binary_notequalequal extends Twig_Node_Expression_Binary
|
||||||
{
|
{
|
||||||
public function operator(Twig_Compiler $compiler)
|
public function operator(Twig_Compiler $compiler)
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_node_include extends Twig_Node_Include
|
class phpbb_template_twig_node_include extends Twig_Node_Include
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_node_includejs extends Twig_Node
|
class phpbb_template_twig_node_includejs extends Twig_Node
|
||||||
{
|
{
|
||||||
/** @var Twig_Environment */
|
/** @var Twig_Environment */
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_node_includephp extends Twig_Node
|
class phpbb_template_twig_node_includephp extends Twig_Node
|
||||||
{
|
{
|
||||||
/** @var Twig_Environment */
|
/** @var Twig_Environment */
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_node_php extends Twig_Node
|
class phpbb_template_twig_node_php extends Twig_Node
|
||||||
{
|
{
|
||||||
/** @var Twig_Environment */
|
/** @var Twig_Environment */
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_tokenparser_define extends Twig_TokenParser
|
class phpbb_template_twig_tokenparser_define extends Twig_TokenParser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_tokenparser_event extends Twig_TokenParser
|
class phpbb_template_twig_tokenparser_event extends Twig_TokenParser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_tokenparser_if extends Twig_TokenParser_If
|
class phpbb_template_twig_tokenparser_if extends Twig_TokenParser_If
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_tokenparser_include extends Twig_TokenParser_Include
|
class phpbb_template_twig_tokenparser_include extends Twig_TokenParser_Include
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_tokenparser_includejs extends Twig_TokenParser
|
class phpbb_template_twig_tokenparser_includejs extends Twig_TokenParser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_tokenparser_includephp extends Twig_TokenParser
|
class phpbb_template_twig_tokenparser_includephp extends Twig_TokenParser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@@ -7,6 +7,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class phpbb_template_twig_tokenparser_php extends Twig_TokenParser
|
class phpbb_template_twig_tokenparser_php extends Twig_TokenParser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user