1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Check for install

This commit is contained in:
e107steved
2008-09-28 20:35:05 +00:00
parent 7955ae64bd
commit 35d6530e72

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/ecal_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/ecal_class.php,v $
| $Revision: 1.7 $ | $Revision: 1.8 $
| $Date: 2008-08-11 21:24:42 $ | $Date: 2008-09-28 20:35:05 $
| $Author: e107steved $ | $Author: e107steved $
| |
| Event calendar class: | Event calendar class:
@@ -81,6 +81,11 @@ if (!defined("EC_DEFAULT_CATEGORY")) { define('EC_DEFAULT_CATEGORY',"Default");
function ecal_class() function ecal_class()
{ // Constructor { // Constructor
global $pref; global $pref;
if (!isset($pref['plug_installed']['calendar_menu']))
{
header('location:'.e_BASE.'index.php');
exit;
}
// Get all the times in terms of 'clock time' - i.e. allowing for TZ, DST, etc // Get all the times in terms of 'clock time' - i.e. allowing for TZ, DST, etc
// All the times in the DB should be 'absolute' - so if we compare with 'clock time' it should work out. // All the times in the DB should be 'absolute' - so if we compare with 'clock time' it should work out.