aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--comments.php3
-rw-r--r--identification.php3
-rw-r--r--notification.php3
-rw-r--r--password.php3
-rw-r--r--register.php3
-rw-r--r--search.php3
-rw-r--r--tags.php3
-rw-r--r--tools/triggers_list.php98
8 files changed, 119 insertions, 0 deletions
diff --git a/comments.php b/comments.php
index 15891e2d5..f695cebaa 100644
--- a/comments.php
+++ b/comments.php
@@ -64,6 +64,8 @@ $since_options = array(
4 => array('label' => l10n('the beginning'),
'clause' => '1=1') // stupid but generic
);
+
+trigger_action('loc_begin_comments');
if (!empty($_GET['since']) && is_numeric($_GET['since']))
{
@@ -556,6 +558,7 @@ if (!isset($themeconf['hide_menu_on']) OR !in_array('theCommentsPage', $themecon
// | html code display |
// +-----------------------------------------------------------------------+
include(PHPWG_ROOT_PATH.'include/page_header.php');
+trigger_action('loc_end_comments');
include(PHPWG_ROOT_PATH.'include/page_messages.php');
$template->pparse('comments');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
diff --git a/identification.php b/identification.php
index 0ddc20014..17bfbcb48 100644
--- a/identification.php
+++ b/identification.php
@@ -30,6 +30,8 @@ include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
// +-----------------------------------------------------------------------+
check_status(ACCESS_FREE);
+trigger_action('loc_begin_identification');
+
//-------------------------------------------------------------- identification
$redirect_to = '';
if ( !empty($_GET['redirect']) )
@@ -107,6 +109,7 @@ if (!$conf['gallery_locked'] && (!isset($themeconf['hide_menu_on']) OR !in_array
//----------------------------------------------------------- html code display
include(PHPWG_ROOT_PATH.'include/page_header.php');
+trigger_action('loc_end_identification');
include(PHPWG_ROOT_PATH.'include/page_messages.php');
$template->pparse('identification');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
diff --git a/notification.php b/notification.php
index 716993755..9d195d0ef 100644
--- a/notification.php
+++ b/notification.php
@@ -56,6 +56,8 @@ SELECT COUNT(*)
// +-----------------------------------------------------------------------+
check_status(ACCESS_GUEST);
+trigger_action('loc_begin_notification');
+
// +-----------------------------------------------------------------------+
// | new feed creation |
// +-----------------------------------------------------------------------+
@@ -112,6 +114,7 @@ if (!isset($themeconf['hide_menu_on']) OR !in_array('theNotificationPage', $them
// | html code display |
// +-----------------------------------------------------------------------+
include(PHPWG_ROOT_PATH.'include/page_header.php');
+trigger_action('loc_end_notification');
include(PHPWG_ROOT_PATH.'include/page_messages.php');
$template->pparse('notification');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
diff --git a/password.php b/password.php
index 0c4ecd05e..fd3717151 100644
--- a/password.php
+++ b/password.php
@@ -35,6 +35,8 @@ include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
check_status(ACCESS_FREE);
+trigger_action('loc_begin_password');
+
// +-----------------------------------------------------------------------+
// | Functions |
// +-----------------------------------------------------------------------+
@@ -354,6 +356,7 @@ if (!isset($themeconf['hide_menu_on']) OR !in_array('thePasswordPage', $themecon
// +-----------------------------------------------------------------------+
include(PHPWG_ROOT_PATH.'include/page_header.php');
+trigger_action('loc_end_password');
include(PHPWG_ROOT_PATH.'include/page_messages.php');
$template->pparse('password');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
diff --git a/register.php b/register.php
index afc0dfaec..11bedf05a 100644
--- a/register.php
+++ b/register.php
@@ -37,6 +37,8 @@ if (!$conf['allow_user_registration'])
page_forbidden('User registration closed');
}
+trigger_action('loc_begin_register');
+
if (isset($_POST['submit']))
{
if (!verify_ephemeral_key(@$_POST['key']))
@@ -128,6 +130,7 @@ if (!isset($themeconf['hide_menu_on']) OR !in_array('theRegisterPage', $themecon
}
include(PHPWG_ROOT_PATH.'include/page_header.php');
+trigger_action('loc_end_register');
include(PHPWG_ROOT_PATH.'include/page_messages.php');
$template->parse('register');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
diff --git a/search.php b/search.php
index f7db92269..233abca19 100644
--- a/search.php
+++ b/search.php
@@ -30,6 +30,8 @@ include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
// +-----------------------------------------------------------------------+
check_status(ACCESS_GUEST);
+triggr_action('loc_begin_search');
+
//------------------------------------------------------------------ form check
$search = array();
if (isset($_POST['submit']))
@@ -231,6 +233,7 @@ if (!isset($themeconf['hide_menu_on']) OR !in_array('theSearchPage', $themeconf[
//------------------------------------------------------------ html code display
include(PHPWG_ROOT_PATH.'include/page_header.php');
+trigger_action('loc_end_search');
include(PHPWG_ROOT_PATH.'include/page_messages.php');
$template->pparse('search');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
diff --git a/tags.php b/tags.php
index b19bce123..ab6fa6fd2 100644
--- a/tags.php
+++ b/tags.php
@@ -49,6 +49,8 @@ include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
check_status(ACCESS_GUEST);
+trigger_action('loc_begin_tags');
+
// +-----------------------------------------------------------------------+
// | page header and options |
// +-----------------------------------------------------------------------+
@@ -202,6 +204,7 @@ if (!isset($themeconf['hide_menu_on']) OR !in_array('theTagsPage', $themeconf['h
}
include(PHPWG_ROOT_PATH.'include/page_header.php');
+trigger_action('loc_end_tags');
include(PHPWG_ROOT_PATH.'include/page_messages.php');
$template->pparse('tags');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
diff --git a/tools/triggers_list.php b/tools/triggers_list.php
index fea54fb3b..baca34ecd 100644
--- a/tools/triggers_list.php
+++ b/tools/triggers_list.php
@@ -381,6 +381,104 @@ array(
'files' => array('profile.php'),
),
array(
+ 'name' => 'loc_begin_password',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('password.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_begin_register',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('register.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_begin_search',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('search.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_begin_tags',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('tags.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_begin_comments',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('comments.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_begin_identification',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('identification.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_begin_notification',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('notification.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_end_password',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('password.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_end_register',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('register.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_end_search',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('search.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_end_tags',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('tags.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_end_comments',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('comments.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_end_identification',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('identification.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
+ 'name' => 'loc_end_notification',
+ 'type' => 'trigger_action',
+ 'vars' => array(),
+ 'files' => array('notification.php'),
+ 'infos' => 'New in 2.5',
+),
+array(
'name' => 'loc_end_admin',
'type' => 'trigger_action',
'vars' => array(),