[geeklog-cvs] Geeklog-1.x/public_html/webservices/atom index.php, 1.2, 1.3

Dirk Haun dhaun at qs1489.pair.com
Wed Jan 2 09:40:24 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/webservices/atom
In directory qs1489.pair.com:/tmp/cvs-serv45747/public_html/webservices/atom

Modified Files:
	index.php 
Log Message:
Added an option to disable webservices


Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/webservices/atom/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** index.php	3 Sep 2007 00:39:12 -0000	1.2
--- index.php	2 Jan 2008 14:40:22 -0000	1.3
***************
*** 9,13 ****
  // | This file acts as a gateway to the Atom webservices.                      |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2007 by the following authors:                              |
  // |                                                                           |
  // | Authors: Ramnath R Iyer   - rri AT silentyak DOT com                      |
--- 9,13 ----
  // | This file acts as a gateway to the Atom webservices.                      |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2007-2008 by the following authors:                         |
  // |                                                                           |
  // | Authors: Ramnath R Iyer   - rri AT silentyak DOT com                      |
***************
*** 30,33 ****
--- 30,34 ----
  // +---------------------------------------------------------------------------+
  //
+ // $Id$
  
  require_once '../../lib-common.php';
***************
*** 35,42 ****
  
  /* Check if WS component is enabled */
! if ($WS_DISABLED) {
      /* Pretend the WS doesn't exist */
!     header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
!     exit();
  }
  
--- 36,42 ----
  
  /* Check if WS component is enabled */
! if ($_CONF['disable_webservices']) {
      /* Pretend the WS doesn't exist */
!     COM_displayMessageAndAbort($LANG_404[3], '', 404, 'Not Found');
  }
  




More information about the geeklog-cvs mailing list