[geeklog-cvs] Geeklog-1.x/system lib-webservices.php,1.4,1.5

Ramnath Iyer riyer at qs1489.pair.com
Sun Sep 2 20:39:14 EDT 2007


Update of /cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv33954/system

Modified Files:
	lib-webservices.php 
Log Message:
Added a PHP version check and a $WS_DISABLED flag to disable WS if required


Index: lib-webservices.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-webservices.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** lib-webservices.php	24 Aug 2007 11:17:07 -0000	1.4
--- lib-webservices.php	3 Sep 2007 00:39:12 -0000	1.5
***************
*** 36,42 ****
  }
  
- // Set the default content type
- header('Content-type: ' . 'application/atom+xml' . '; charset=UTF-8');
- 
  $WS_PLUGIN    = '';
  $WS_INTROSPECTION = false;
--- 36,39 ----
***************
*** 45,48 ****
--- 42,54 ----
  $WS_APP_NS  = 'http://www.w3.org/2007/app';
  $WS_EXTN_NS = 'http://www.geeklog.net';
+ 
+ if (!isset($WS_DISABLED)) {
+     $WS_DISABLED = false;
+ }
+ 
+ /* Check for PHP5 */
+ if (PHP_VERSION < 5) {
+     $WS_DISABLED = true;
+ }
  
  /**




More information about the geeklog-cvs mailing list