[geeklog-cvs] Geeklog-1.x/public_html/staticpages index.php, 1.46, 1.47
Dirk Haun
dhaun at qs1489.pair.com
Fri May 23 10:40:18 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/public_html/staticpages
In directory qs1489.pair.com:/tmp/cvs-serv43044/staticpages
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/staticpages/index.php,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** index.php 29 Dec 2007 15:28:12 -0000 1.46
--- index.php 23 May 2008 14:40:16 -0000 1.47
***************
*** 9,13 ****
// | This is the main page for the Geeklog Static Pages Plugin |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2007 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
--- 9,13 ----
// | This is the main page for the Geeklog Static Pages Plugin |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2008 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
***************
*** 35,38 ****
--- 35,44 ----
require_once '../lib-common.php';
+
+ if (!in_array('staticpages', $_PLUGINS)) {
+ echo COM_refresh($_CONF['site_url'] . '/index.php');
+ exit;
+ }
+
// MAIN
More information about the geeklog-cvs
mailing list