[geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.669,1.670

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


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

Modified Files:
	lib-common.php 
Log Message:
Added an option to disable webservices


Index: lib-common.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.669
retrieving revision 1.670
diff -C2 -d -r1.669 -r1.670
*** lib-common.php	30 Dec 2007 00:11:40 -0000	1.669
--- lib-common.php	2 Jan 2008 14:40:21 -0000	1.670
***************
*** 951,959 ****
          }
      }
!     // TBD: need to be able to disable webservices - don't add this link then
!     $relLinks['service'] = '<link rel="service" type="application/atomsvc+xml" '
!                          . 'href="' . $_CONF['site_url']
!                          . '/webservices/atom/?introspection" '
!                          . 'title="Webservices"' . XHTML . '>';
      // TBD: add a plugin API and a lib-custom.php function
      $header->set_var( 'rel_links', implode( LB, $relLinks ));
--- 951,960 ----
          }
      }
!     if (!$_CONF['disable_webservices']) {
!         $relLinks['service'] = '<link rel="service" '
!                     . 'type="application/atomsvc+xml" ' . 'href="'
!                     . $_CONF['site_url'] . '/webservices/atom/?introspection" '
!                     . 'title="' . $LANG01[130] . '"' . XHTML . '>';
!     }
      // TBD: add a plugin API and a lib-custom.php function
      $header->set_var( 'rel_links', implode( LB, $relLinks ));
***************
*** 4372,4376 ****
      $retval .= COM_startBlock( $MESSAGE[40] . ' - ' . $timestamp, '',
                         COM_getBlockTemplate( '_msg_block', 'header' ))
!         . '<p style="padding:5px"><img src="' . $_CONF['layout_url']
          . '/images/sysmessage.' . $_IMAGE_TYPE . '" alt="" '
          . 'style="padding-right:5px; padding-bottom:3px; border:none; float:left;"' . XHTML . '>'
--- 4373,4377 ----
      $retval .= COM_startBlock( $MESSAGE[40] . ' - ' . $timestamp, '',
                         COM_getBlockTemplate( '_msg_block', 'header' ))
!         . '<p><img src="' . $_CONF['layout_url']
          . '/images/sysmessage.' . $_IMAGE_TYPE . '" alt="" '
          . 'style="padding-right:5px; padding-bottom:3px; border:none; float:left;"' . XHTML . '>'




More information about the geeklog-cvs mailing list