<?php /************************************************************************************************** * ChurchCMS * Copyright (C) 2005 jsvoyager * * Developers & Contributors: * jsvoyager hide@address.com * * This program is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software Foundation; * either version 2 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * (license.txt) ***************************************************************************************************/ /*************************************************************************************************** * Module Definition File * Module: Calendar * Version: 1.0 ***************************************************************************************************/ /////////////////////////////////// // General Information ////////////////////////////////// $module['name'] = "Calendar"; $module['version'] = "1.0"; $module['desc'] = "Calendar module to track events"; $module['author'] = "ChurchCMS Development Team"; $module['website'] = "http://churchcms.sf.net/"; /////////////////////////////////// // DB Schema ////////////////////////////////// $module['tables'][0]['name'] = "calendar"; $module['tables'][0]['fields'][0]['dbname'] = "id"; $module['tables'][0]['fields'][0]['type'] = "int(11)"; $module['tables'][0]['fields'][0]['addsql'] = "NOT NULL PRIMARY KEY auto_increment"; $module['tables'][0]['fields'][0]['disp'] = false; $module['tables'][0]['fields'][1]['dbname'] = "title"; $module['tables'][0]['fields'][1]['type'] = "varchar(20)"; $module['tables'][0]['fields'][1]['addsql'] = "NOT NULL"; $module['tables'][0]['fields'][1]['disp'] = true; $module['tables'][0]['fields'][1]['dispname'] = "Title"; $module['tables'][0]['fields'][1]['desc'] = "Title of the event"; $module['tables'][0]['fields'][2]['dbname'] = "start_time"; $module['tables'][0]['fields'][2]['type'] = "timestamp"; $module['tables'][0]['fields'][2]['addsql'] = "NOT NULL"; $module['tables'][0]['fields'][2]['disp'] = true; $module['tables'][0]['fields'][2]['dispname'] = "Event's Start Time"; $module['tables'][0]['fields'][2]['desc'] = "Time the event should start"; $module['tables'][0]['fields'][3]['dbname'] = "end_time"; $module['tables'][0]['fields'][3]['type'] = "timestamp"; $module['tables'][0]['fields'][3]['addsql'] = "NULL"; $module['tables'][0]['fields'][3]['disp'] = true; $module['tables'][0]['fields'][3]['dispname'] = "Event's Ending Time"; $module['tables'][0]['fields'][3]['desc'] = "The time the event ends"; $module['tables'][0]['fields'][4]['dbname'] = "location"; $module['tables'][0]['fields'][4]['type'] = "varchar(20)"; $module['tables'][0]['fields'][4]['addsql'] = "NOT NULL"; $module['tables'][0]['fields'][4]['disp'] = true; $module['tables'][0]['fields'][4]['dispname'] = "Location"; $module['tables'][0]['fields'][4]['desc'] = "Location of this event"; $module['tables'][0]['fields'][5]['dbname'] = "description"; $module['tables'][0]['fields'][5]['addsql'] = "NOT NULL"; $module['tables'][0]['fields'][5]['type'] = "text"; $module['tables'][0]['fields'][5]['disp'] = true; $module['tables'][0]['fields'][5]['dispname'] = "Decription"; $module['tables'][0]['fields'][5]['desc'] = "Further information about the event"; /////////////////////////////////// // Requirement Information ////////////////////////////////// $module['requires'][0]['module'] = "CORE"; $module['requires'][0]['version'] = "0.1.0"; $module['requires'][0]['inequ'] = ">="; /////////////////////////////////// // Language Files Dir ////////////////////////////////// $module['lang']['en'] = "lang.eng"; ///////////////////////////////// // Template Files Dir //////////////////////////////// $module['templates'] = "templates"; /////////////////////////////////// // Misc ////////////////////////////////// $module['home_inc']['file'] = "mainindex.inc.php"; $module['home_inc']['possition'] = "main"; ?>