[geeklog-cvs] Geeklog-1.x/public_html/polls index.php,1.27,1.28

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


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

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


Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/polls/index.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** index.php	13 May 2008 19:42:17 -0000	1.27
--- index.php	23 May 2008 14:40:16 -0000	1.28
***************
*** 37,40 ****
--- 37,45 ----
  require_once '../lib-common.php';
  
+ if (!in_array('polls', $_PLUGINS)) {
+     echo COM_refresh($_CONF['site_url'] . '/index.php');
+     exit;
+ }
+ 
  
  /**




More information about the geeklog-cvs mailing list