[geeklog-cvs] Geeklog-1.x/public_html/calendar event.php, 1.29, 1.30 index.php, 1.25, 1.26
Dirk Haun
dhaun at qs1489.pair.com
Fri May 23 10:40:18 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/public_html/calendar
In directory qs1489.pair.com:/tmp/cvs-serv43044/calendar
Modified Files:
event.php index.php
Log Message:
Quick check if the plugin is enabled to prevents SQL errors or worse
Index: event.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/calendar/event.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** event.php 22 May 2008 17:01:54 -0000 1.29
--- event.php 23 May 2008 14:40:16 -0000 1.30
***************
*** 36,39 ****
--- 36,45 ----
require_once '../lib-common.php';
+
+ if (!in_array('calendar', $_PLUGINS)) {
+ echo COM_refresh($_CONF['site_url'] . '/index.php');
+ exit;
+ }
+
require_once $_CONF['path_system'] . 'classes/calendar.class.php';
Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/calendar/index.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** index.php 22 May 2008 17:01:54 -0000 1.25
--- index.php 23 May 2008 14:40:16 -0000 1.26
***************
*** 36,39 ****
--- 36,45 ----
require_once '../lib-common.php';
+
+ if (!in_array('calendar', $_PLUGINS)) {
+ echo COM_refresh($_CONF['site_url'] . '/index.php');
+ exit;
+ }
+
require_once $_CONF['path_system'] . 'classes/calendar.class.php';
More information about the geeklog-cvs
mailing list