aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin.php5
-rw-r--r--admin/cat_list.php5
-rw-r--r--admin/cat_modify.php6
-rw-r--r--admin/element_set_global.php4
-rw-r--r--admin/element_set_unit.php4
5 files changed, 23 insertions, 1 deletions
diff --git a/admin.php b/admin.php
index ff5398616..21014e2e9 100644
--- a/admin.php
+++ b/admin.php
@@ -29,6 +29,8 @@ include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
include_once(PHPWG_ROOT_PATH.'admin/include/functions_plugins.inc.php');
+trigger_action('loc_begin_admin');
+
// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
// +-----------------------------------------------------------------------+
@@ -168,6 +170,9 @@ if (count($page['infos']) != 0)
$template->assign( 'pwgmenu', pwg_URL() );
include(PHPWG_ROOT_PATH.'include/page_header.php');
+
+trigger_action('loc_end_admin');
+
$template->pparse('admin');
// +-----------------------------------------------------------------------+
diff --git a/admin/cat_list.php b/admin/cat_list.php
index f12161feb..662edbc88 100644
--- a/admin/cat_list.php
+++ b/admin/cat_list.php
@@ -33,6 +33,8 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
+trigger_action('loc_begin_cat_list');
+
if (!empty($_POST) or isset($_GET['delete']))
{
check_pwg_token();
@@ -284,6 +286,9 @@ foreach ($categories as $category)
}
$template->append('categories', $tpl_cat);
}
+
+trigger_action('loc_end_cat_list');
+
// +-----------------------------------------------------------------------+
// | sending html code |
// +-----------------------------------------------------------------------+
diff --git a/admin/cat_modify.php b/admin/cat_modify.php
index d48d79ad2..ff48e8ac4 100644
--- a/admin/cat_modify.php
+++ b/admin/cat_modify.php
@@ -33,6 +33,8 @@ include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
+trigger_action('loc_begin_cat_modify');
+
//---------------------------------------------------------------- verification
if ( !isset( $_GET['cat_id'] ) || !is_numeric( $_GET['cat_id'] ) )
{
@@ -555,6 +557,8 @@ SELECT
);
}
+trigger_action('loc_end_cat_modify');
+
//----------------------------------------------------------- sending html code
$template->assign_var_from_handle('ADMIN_CONTENT', 'categories');
-?>
+?> \ No newline at end of file
diff --git a/admin/element_set_global.php b/admin/element_set_global.php
index ae4c994f9..14d8f8a3e 100644
--- a/admin/element_set_global.php
+++ b/admin/element_set_global.php
@@ -39,6 +39,8 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
+trigger_action('loc_begin_element_set_global');
+
// +-----------------------------------------------------------------------+
// | deletion form submission |
// +-----------------------------------------------------------------------+
@@ -476,6 +478,8 @@ SELECT id,path,tn_ext,file,filesize,level
}
}
+trigger_action('loc_end_element_set_global');
+
//----------------------------------------------------------- sending html code
$template->assign_var_from_handle('ADMIN_CONTENT', 'element_set_global');
?>
diff --git a/admin/element_set_unit.php b/admin/element_set_unit.php
index 95e163705..d7a29374b 100644
--- a/admin/element_set_unit.php
+++ b/admin/element_set_unit.php
@@ -39,6 +39,8 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
+trigger_action('loc_begin_element_set_unit');
+
// +-----------------------------------------------------------------------+
// | unit mode form submission |
// +-----------------------------------------------------------------------+
@@ -254,6 +256,8 @@ SELECT
$template->assign('ELEMENT_IDS', implode(',', $element_ids));
}
+trigger_action('loc_end_element_set_unit');
+
// +-----------------------------------------------------------------------+
// | sending html code |
// +-----------------------------------------------------------------------+