phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/class.interface.php, 1.1.2.4


From: nomail
Subject: [Phpgroupware-cvs] api/class.interface.php, 1.1.2.4
Date: Tue, 22 Jun 2004 16:15:46 +0200

Update of /api
Modified Files:
        Branch: proposal-branch
          class.interface.php

date: 2004/06/22 14:15:46;  author: dcech;  state: Exp;  lines: +7 -3

Log Message:
new input parser for xmlrpc interface
moved some environment initialisation stuff from core_functions.inc.php into 
starter.inc.php
moved interface check code into class.interface.php
=====================================================================
Index: api/class.interface.php
diff -u api/class.interface.php:1.1.2.3 api/class.interface.php:1.1.2.4
--- api/class.interface.php:1.1.2.3     Fri Apr 16 20:59:48 2004
+++ api/class.interface.php     Tue Jun 22 14:15:46 2004
@@ -22,9 +22,13 @@
        /* $Id$ */
        /* $Source$ */
 
-       if (empty($GLOBALS['phpgw_interface']))
+       
/****************************************************************************\
+       * Make sure we have a valid client type                                 
     *
+       
\****************************************************************************/
+       if(!isset($GLOBALS['phpgw_interface']) || 
!preg_match("/^(browser|xmlrpc|soap)$/i", $GLOBALS['phpgw_interface'] ))
        {
                $GLOBALS['phpgw_interface'] = 'browser';
        }
+       
        
include_once(PHPGW_API.SEP.'interface'.SEP.'class.interface_'.$GLOBALS['phpgw_interface'].'.php');
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]