Changeset 1768 for trunk/ws.php


Ignore:
Timestamp:
Jan 29, 2007, 9:38:08 PM (17 years ago)
Author:
rvelices
Message:

web services: give vincent the calling partner id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ws.php

    r1750 r1768  
    3030include_once(PHPWG_ROOT_PATH.'include/ws_core.inc.php');
    3131
     32/**
     33 * event handler that registers standard methods with the web service
     34 */
    3235function ws_addDefaultMethods( $arr )
    3336{
     
    107110}
    108111
    109 add_event_handler('ws_add_methods', 'ws_addDefaultMethods' );
     112add_event_handler('ws_add_methods', 'ws_addDefaultMethods');
    110113
     114
     115add_event_handler('ws_invoke_allowed', 'ws_isInvokeAllowed', EVENT_HANDLER_PRIORITY_NEUTRAL, 3);
     116
     117$calling_partner_id = '';
    111118$requestFormat = null;
    112119$responseFormat = null;
    113120
     121if ( isset($_GET['partner']) )
     122{
     123  $calling_partner_id = $_GET['partner'];
     124}
    114125if ( isset($_GET['format']) )
    115126{
Note: See TracChangeset for help on using the changeset viewer.