[geeklog-cvs] Geeklog-1.x/public_html/links index.php, 1.34, 1.35 portal.php, 1.7, 1.8

Dirk Haun dhaun at qs1489.pair.com
Fri May 23 10:40:18 EDT 2008


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

Modified Files:
	index.php portal.php 
Log Message:
Quick check if the plugin is enabled to prevents SQL errors or worse


Index: portal.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/links/portal.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** portal.php	2 May 2008 12:12:05 -0000	1.7
--- portal.php	23 May 2008 14:40:16 -0000	1.8
***************
*** 55,58 ****
--- 55,64 ----
  require_once '../lib-common.php';
  
+ if (!in_array('links', $_PLUGINS)) {
+     echo COM_refresh($_CONF['site_url'] . '/index.php');
+     exit;
+ }
+ 
+ 
  // MAIN
  

Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/links/index.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** index.php	2 May 2008 12:12:05 -0000	1.34
--- index.php	23 May 2008 14:40:16 -0000	1.35
***************
*** 58,61 ****
--- 58,66 ----
  require_once '../lib-common.php';
  
+ if (!in_array('links', $_PLUGINS)) {
+     echo COM_refresh($_CONF['site_url'] . '/index.php');
+     exit;
+ }
+ 
  /**
  * create the links list depending on the category given




More information about the geeklog-cvs mailing list