Changeset 18063


Ignore:
Timestamp:
Sep 20, 2012, 2:16:45 PM (12 years ago)
Author:
mistic100
Message:

feature 2747: Add triggers on all main pages

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/comments.php

    r17351 r18063  
    6565             'clause' => '1=1') // stupid but generic
    6666  );
     67 
     68trigger_action('loc_begin_comments');
    6769
    6870if (!empty($_GET['since']) && is_numeric($_GET['since']))
     
    557559// +-----------------------------------------------------------------------+
    558560include(PHPWG_ROOT_PATH.'include/page_header.php');
     561trigger_action('loc_end_comments');
    559562include(PHPWG_ROOT_PATH.'include/page_messages.php');
    560563$template->pparse('comments');
  • trunk/identification.php

    r15578 r18063  
    3030// +-----------------------------------------------------------------------+
    3131check_status(ACCESS_FREE);
     32
     33trigger_action('loc_begin_identification');
    3234
    3335//-------------------------------------------------------------- identification
     
    108110//----------------------------------------------------------- html code display
    109111include(PHPWG_ROOT_PATH.'include/page_header.php');
     112trigger_action('loc_end_identification');
    110113include(PHPWG_ROOT_PATH.'include/page_messages.php');
    111114$template->pparse('identification');
  • trunk/notification.php

    r15578 r18063  
    5757check_status(ACCESS_GUEST);
    5858
     59trigger_action('loc_begin_notification');
     60
    5961// +-----------------------------------------------------------------------+
    6062// |                          new feed creation                            |
     
    113115// +-----------------------------------------------------------------------+
    114116include(PHPWG_ROOT_PATH.'include/page_header.php');
     117trigger_action('loc_end_notification');
    115118include(PHPWG_ROOT_PATH.'include/page_messages.php');
    116119$template->pparse('notification');
  • trunk/password.php

    r17984 r18063  
    3636check_status(ACCESS_FREE);
    3737
     38trigger_action('loc_begin_password');
     39
    3840// +-----------------------------------------------------------------------+
    3941// | Functions                                                             |
     
    355357
    356358include(PHPWG_ROOT_PATH.'include/page_header.php');
     359trigger_action('loc_end_password');
    357360include(PHPWG_ROOT_PATH.'include/page_messages.php');
    358361$template->pparse('password');
  • trunk/register.php

    r15578 r18063  
    3737  page_forbidden('User registration closed');
    3838}
     39
     40trigger_action('loc_begin_register');
    3941
    4042if (isset($_POST['submit']))
     
    129131
    130132include(PHPWG_ROOT_PATH.'include/page_header.php');
     133trigger_action('loc_end_register');
    131134include(PHPWG_ROOT_PATH.'include/page_messages.php');
    132135$template->parse('register');
  • trunk/search.php

    r15578 r18063  
    3030// +-----------------------------------------------------------------------+
    3131check_status(ACCESS_GUEST);
     32
     33triggr_action('loc_begin_search');
    3234
    3335//------------------------------------------------------------------ form check
     
    232234//------------------------------------------------------------ html code display
    233235include(PHPWG_ROOT_PATH.'include/page_header.php');
     236trigger_action('loc_end_search');
    234237include(PHPWG_ROOT_PATH.'include/page_messages.php');
    235238$template->pparse('search');
  • trunk/tags.php

    r17748 r18063  
    5050check_status(ACCESS_GUEST);
    5151
     52trigger_action('loc_begin_tags');
     53
    5254// +-----------------------------------------------------------------------+
    5355// |                       page header and options                         |
     
    203205
    204206include(PHPWG_ROOT_PATH.'include/page_header.php');
     207trigger_action('loc_end_tags');
    205208include(PHPWG_ROOT_PATH.'include/page_messages.php');
    206209$template->pparse('tags');
  • trunk/tools/triggers_list.php

    r17977 r18063  
    380380  'vars' => array(),
    381381  'files' => array('profile.php'),
     382),
     383array(
     384  'name' => 'loc_begin_password',
     385  'type' => 'trigger_action',
     386  'vars' => array(),
     387  'files' => array('password.php'),
     388  'infos' => 'New in 2.5',
     389),
     390array(
     391  'name' => 'loc_begin_register',
     392  'type' => 'trigger_action',
     393  'vars' => array(),
     394  'files' => array('register.php'),
     395  'infos' => 'New in 2.5',
     396),
     397array(
     398  'name' => 'loc_begin_search',
     399  'type' => 'trigger_action',
     400  'vars' => array(),
     401  'files' => array('search.php'),
     402  'infos' => 'New in 2.5',
     403),
     404array(
     405  'name' => 'loc_begin_tags',
     406  'type' => 'trigger_action',
     407  'vars' => array(),
     408  'files' => array('tags.php'),
     409  'infos' => 'New in 2.5',
     410),
     411array(
     412  'name' => 'loc_begin_comments',
     413  'type' => 'trigger_action',
     414  'vars' => array(),
     415  'files' => array('comments.php'),
     416  'infos' => 'New in 2.5',
     417),
     418array(
     419  'name' => 'loc_begin_identification',
     420  'type' => 'trigger_action',
     421  'vars' => array(),
     422  'files' => array('identification.php'),
     423  'infos' => 'New in 2.5',
     424),
     425array(
     426  'name' => 'loc_begin_notification',
     427  'type' => 'trigger_action',
     428  'vars' => array(),
     429  'files' => array('notification.php'),
     430  'infos' => 'New in 2.5',
     431),
     432array(
     433  'name' => 'loc_end_password',
     434  'type' => 'trigger_action',
     435  'vars' => array(),
     436  'files' => array('password.php'),
     437  'infos' => 'New in 2.5',
     438),
     439array(
     440  'name' => 'loc_end_register',
     441  'type' => 'trigger_action',
     442  'vars' => array(),
     443  'files' => array('register.php'),
     444  'infos' => 'New in 2.5',
     445),
     446array(
     447  'name' => 'loc_end_search',
     448  'type' => 'trigger_action',
     449  'vars' => array(),
     450  'files' => array('search.php'),
     451  'infos' => 'New in 2.5',
     452),
     453array(
     454  'name' => 'loc_end_tags',
     455  'type' => 'trigger_action',
     456  'vars' => array(),
     457  'files' => array('tags.php'),
     458  'infos' => 'New in 2.5',
     459),
     460array(
     461  'name' => 'loc_end_comments',
     462  'type' => 'trigger_action',
     463  'vars' => array(),
     464  'files' => array('comments.php'),
     465  'infos' => 'New in 2.5',
     466),
     467array(
     468  'name' => 'loc_end_identification',
     469  'type' => 'trigger_action',
     470  'vars' => array(),
     471  'files' => array('identification.php'),
     472  'infos' => 'New in 2.5',
     473),
     474array(
     475  'name' => 'loc_end_notification',
     476  'type' => 'trigger_action',
     477  'vars' => array(),
     478  'files' => array('notification.php'),
     479  'infos' => 'New in 2.5',
    382480),
    383481array(
Note: See TracChangeset for help on using the changeset viewer.