/**
* pn_bbdecode/pn_bbencode functions:
* Rewritten - Nathan Codding - Aug 24, 2000
* Using Perl-Compatible regexps now. Won't kill special chars
* outside of a [code]...[/code] block now, and all BBCode tags
* are implemented.
* Note: the "i" matching switch is used, so BBCode tags are
* case-insensitive.
*/
function pn_bbdecode($message) {
// Undo [code]
$message = preg_replace("#
#s", "[*]", $matches[2][$i]);
$message = preg_replace("#$currMatchTextBefore#si", "[list=\\1]" . $currMatchTextAfter . "[/list]", $message);
}
return($message);
}
function pn_bbencode($message) {
// [CODE] and [/CODE] for posting code (HTML, PHP, C etc etc) in your posts.
$matchCount = preg_match_all("#\[code\](.*?)\[/code\]#si", $message, $matches);
for ($i = 0; $i < $matchCount; $i++)
{
$currMatchTextBefore = preg_quote($matches[1][$i]);
$currMatchTextAfter = htmlspecialchars($matches[1][$i]);
$message = preg_replace("#\[code\]$currMatchTextBefore\[/code\]#si", "
Code:
$currMatchTextAfter
", $message);
}
// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
$message = preg_replace("#\[quote\](.*?)\[/quote]#si", "
", $matches[2][$i]);
$message = preg_replace("#\[list=([a1])\]$currMatchTextBefore\[/list\]#si", "$currMatchTextAfter", $message);
}
return($message);
}
?>
/********************************************************/
/* PostCalendar */
/* Version 2.5, see changes.txt for details */
/* Originally by Rob Sutton (Events Calendar) */
/* Development continued by */
/* */
/* The Calendar Development Team */
/* Mahmood Al-Yousif - mahmood@bahraini.tv */
/* Craig Hamlin - craig@hamlinworld.com */
/* HotBird - ramses@bzone.de */
/* */
/* This program is opensource so you can do whatever */
/* you want with it. However, I'm happy about any */
/* clever idea or nifty change you might have or have */
/* done, send them to */
/* calendar@bahraini.tv */
/* */
/* Any new versions can be found at */
/* http://www.bahraini.tv first */
/********************************************************/
// Common Settings
$ModName = "PostCalendar";
$firstdayoftheweek = 1; // 1 = monday, 0 = sunday and 2 = saturday
$netscapeFriendlyMonthView = 1; // Using old Netscape browsers that can't handle
// building of nested tables properly, set this to 1
$time24Hour = 1; // 1 = 24 hour time... 0 = AM/PM time
$eventsopeninnewwindow = 0; // When you click to view an event it will open into a new window if value = 1
$times = array("08:00:00",
"08:00:00",
"10:00:00",
"12:00:00",
"14:00:00",
"16:00:00",
"18:00:00",
"20:00:00",
"22:00:00"); //The time ranges on the day view
$useInternationalDates = 0; //0 = mm/dd/yyyy, 1 = dd/mm/yyyy
$doappointments = 0; // want to display the appointments block in the day view?
$textEvents = 0; // 0 = Image Bars for multiday events, 1 = text for multiday events
$cat1 = "Music"; // enter your chosen first category here
$cat2 = "Community"; // enter your chosen second category here
$cat3 = "Theater"; // enter your chosen third category here
$cat4 = "Web based"; // enter your chosen fourth category here
$cat5 = "Other"; // enter your chosen fifth category here
$dayhighlightcolor = "cadetblue";
$monthtableborder = 1;
$monthtablecellspacing = 0; // if you change this the bars will not look right only use textEvents if you change these
$monthtablecellpadding = 0; // if you change this the bars will not look right only use textEvents if you change these
$yeartableborder = 0;
$yeartablecellspacing = 2;
$yeartablecellpadding = 3; // this will make the month blocks larger or smaller depending on value
// PostCalendar Block Settings
$displayballs = 0; // display balls?
$eventOverview = 0; // do you want to display the events in the same PostCalendar block?
$pcbtopicdisplay = 1; // do you want to display the events' topics?
$pcblockeventsdatedisplay = 1; // do you want to display the event's date?
$pcblocationdisplay = 1; // display event's location?
// PostEvents Block Settings
$posteventslimit = 2; // how many events do you want displayed in the NextEvent block?
$posteventsdatedisplay = 1; // display dates with the post events?
$pebtopicdisplay = 0; // display post events' topics?
$peblocationdisplay = 1; // display event's location?
// NextEvents Block Settings
$nexteventslimit = 2; // how many events do you want displayed in the NextEvent block?
$nexteventsdatedisplay = 1; // display dates with the next events?
$nebtopicdisplay = 1; // display nextevents' topics?
$neblocationdisplay = 1; // display event's location?
if(!IsSet($mainfile)) { include ("mainfile.php"); }
if (file_exists("modules/$ModName/lang/$currentlang/global.php"))
{
include "modules/$ModName/lang/$currentlang/global.php";
} else {
include "modules/$ModName/lang/eng/global.php";
}
?>
/********************************************************/
/* PostCalendar */
/* Version 2.5, see changes.txt for details */
/* Originally by Rob Sutton (Events Calendar) */
/* Development continued by */
/* */
/* The PostCalendar Development Team */
/* Mahmood Al-Yousif - mahmood@bahraini.tv */
/* Craig Hamlin - craig@hamlinworld.com */
/* HotBird - ramses@bzone.de */
/* */
/* This program is opensource so you can do whatever */
/* you want with it. However, I'm happy about any */
/* clever idea or nifty change you might have or have */
/* done, send them to */
/* calendar@bahraini.tv */
/* */
/* Any new versions can be found at */
/* http://www.bahraini.tv first */
/********************************************************/
###### Installation Module ######
define("_INS_TITLE","PostCalendar Installation");
define("_INS_OPENING","This script will install the PostCalendar database tables. You will be taken through a variety of pages. Each page sets a different portion of the script. We estimate that this entire process will take a few minutes. At any time that you get stuck, please visit our support forums for help.");
define("_INS_LICENSE1","Our License");
define("_INS_LICENSE2"," -- Please read through the GNU General Public License. PostCalendar is developed as free software, but there are certain requirements for distribution and editing.");
define("_INS_MODS_INST","Modules Install");
define("_INS_FRESHPC","Fresh Installation");
define("_INS_UPGRADEPC","Upgrade from a previous version of PostCalendar (2.0 and up)");
define("_INS_SELECT","Please make your selection");
define("_INS_CREDIT","The Credits");
define("_INS_CREDIT2","Without the following programm and authors, this program wouldn't have gotten this far. I would like to thank them all! Roll credits:");
define("_INS_DONE","You are now done with the PostCalendar installation. If you run into any problems, let us know. Make sure that you delete this script. You will not need it again.");
define("_INS_FOOTER","Thank you for installing the PostCalendar module and welcome to our community.");
###### 2.5 strings #######
define("_EVENTDESC","Event Description");
define("_BACK","Back");
define("_SELECT_FIRSTDAYOFTHEWEEK","Select the first day of the week");
define("_SELECT_SATURDAY","Saturday");
define("_SELECT_SUNDAY","Sunday");
define("_SELECT_MONDAY","Monday");
define("_SELECTFIRSTDAYOFTHEWEEKEXPL","What day to start the week?");
define("_SELECT_DOAPPOINTMENTS","Show Appointments in Day View?");
define("_SELECT_OKAPPOINTMENTS","Yes");
define("_SELECT_NOAPPOINTMENTS","No");
define("_SELECTAPPOINTMENTSEXPL","Select YES if you want to display the appointments block in the day view");
define("_SELECT_DISPLAYBALLS","Display balls in the PostCalendar block?");
define("_SELECT_OKDISPLAYBALLS","Yes");
define("_SELECT_NODISPLAYBALLS","No");
define("_SELECTDISPLAYBALLSEXPL","Select Yes if you want the pie-chart balls to be displayed in the PostCalendar block");
define("_NAME_CAT1","First Category");
define("_NAME_CAT1_EXPL","Enter your first chosen category here");
define("_NAME_CAT2","Second Category");
define("_NAME_CAT2_EXPL","Enter your second chosen category here");
define("_NAME_CAT3","Third Category");
define("_NAME_CAT3_EXPL","Enter your third chosen category here");
define("_NAME_CAT4","Fourth Category");
define("_NAME_CAT4_EXPL","Enter your fourth chosen category here");
define("_NAME_CAT5","Fifth Category");
define("_NAME_CAT5_EXPL","Enter your fifth chosen category here");
define("_NEXTEVENTSLIMIT","Number of NextEvents");
define("_NEXTEVENTSLIMIT_EXPL","Enter the number of events to display in the NextEvent block");
define("_POSTEVENTSLIMIT","Number of PostEvents");
define("_POSTEVENTSLIMIT_EXPL","Enter the number of events to display in the PostEvents block");
define("_SELECT_EVENTOVERVIEW","Events in PostCalendar Block");
define("_SELECT_OKEVENTOVERVIEW","Yes");
define("_SELECT_NOEVENTOVERVIEW","No");
define("_SELECTEVENTOVERVIEWEXPL","Do you want to display the events in the same PostCalendar block?");
define("_SELECT_NEXTEVENTSDATEDISPLAY","Display dates with NextEvents?");
define("_SELECT_OKNEXTEVENTSDATEDISPLAY","Yes");
define("_SELECT_NONEXTEVENTSDATEDISPLAY","No");
define("_SELECTNEXTEVENTSDATEDISPLAYEXPL","Select Yes if you want to display the date with each event in the NextEvent block");
define("_SELECT_POSTEVENTSDATEDISPLAY","Display dates with PostEvents?");
define("_SELECT_OKPOSTEVENTSDATEDISPLAY","Yes");
define("_SELECT_NOPOSTEVENTSDATEDISPLAY","No");
define("_SELECTPOSTEVENTSDATEDISPLAYEXPL","Select Yes if you want to display the date with each event in the PostEvents block");
define("_SELECT_DISPLAYPCBDATE","Display dates with events");
define("_SELECT_OKDISPLAYPCBDATE","Yes");
define("_SELECT_NODISPLAYPCBDATE","No");
define("_SELECTDISPLAYPCBDATEEXPL","Do you want to display the dates with the events in the PostCalendar block?");
define("_SELECT_DISPLAYPCBTOPIC","Display event's topics?");
define("_SELECT_OKDISPLAYPCBTOPIC","Yes");
define("_SELECT_NODISPLAYPCBTOPIC","No");
define("_SELECTDISPLAYPCBTOPICEXPL","Do you want to display the events' topics in the PostCalendar block?");
define("_SELECT_PEBTOPICDISPLAY","Display PostEvent's topics?");
define("_SELECT_OKPEBTOPICDISPLAY","Yes");
define("_SELECT_NOPEBTOPICDISPLAY","No");
define("_SELECTPEBTOPICDISPLAYEXPL","Do you want to display the PostEvents' topics in the PostEvents block?");
define("_SELECT_NEBTOPICDISPLAY","Display NextEvent's topics?");
define("_SELECT_OKNEBTOPICDISPLAY","Yes");
define("_SELECT_NONEBTOPICDISPLAY","No");
define("_SELECTNEBTOPICDISPLAYEXPL","Do you want to display the NextEvents' topics in the PostEvents block?");
define("_PCSETTINGS","PostCalendar Settings");
define("_PCBSETTINGS","PostCalendar Block Settings");
define("_PEBSETTINGS","PostEvents Block Settings");
define("_NEBSETTINGS","NextEvents Block Settings");
define("_SELECT_PCBDISPLAYLOCATION","Display Event's Location?");
define("_SELECT_OKPCBDISPLAYLOCATION","Yes");
define("_SELECT_NOPCBDISPLAYLOCATION","No");
define("_SELECTPCBDISPLAYLOCATIONEXPL","Do you want to display the event's location in the PostCalendar block?");
define("_SELECT_PEBDISPLAYLOCATION","Display Event's Location?");
define("_SELECT_OKPEBDISPLAYLOCATION","Yes");
define("_SELECT_NOPEBDISPLAYLOCATION","No");
define("_SELECTPEBDISPLAYLOCATIONEXPL","Do you want to display the event's location in the PostEvent's block?");
define("_SELECT_NEBDISPLAYLOCATION","Display Event's Location?");
define("_SELECT_OKNEBDISPLAYLOCATION","Yes");
define("_SELECT_NONEBDISPLAYLOCATION","No");
define("_SELECTNEBDISPLAYLOCATIONEXPL","Do you want to display the event's location in the NextEvent's block?");
define("_LOCATION","Location");
define("_CONTNAME","Contact person");
define("_CONTTEL","Contact telephone");
define("_CONTEMAIL","Contact email");
define("_WEBSITE","Contact website");
define("_FEE","Fee");
###### AUTHORISATION DEFINITIONS #######
define("_POSTCALNOTAUTH","
Sorry, your security level does not authorize you to use or view
the PostCalendar application or events.
You need to register on this site to gain the necessary access level to utilize PostCalendar.
Thank you very much for visiting...
If you believe that you have the necessary authorization level and this page is a mistake,
please email the webmaster.
");
define("_POSTCALNOTAUTHADMIN","
Sorry, your security level does not authorize you to administer
the PostCalendar application or events.
Your attempt has been logged and the administrator
informed. If this message is displayed in error, please contact the administrator.
");
define("_POSTCALNOTAUTHSUBMIT","
Sorry, your security level does not authorize you to submit events in
the PostCalendar.
You need to register on this site to gain the necessary access level to utilize PostCalendar.
Thank you very much for visiting...
If you believe that you have the necessary authorization level and this page is a mistake,
please email the webmaster.
");
###### Definitions for NextEvents block #######
define("_PCNAME","PostCalendar");
define("_EVENTS","Upcoming events");
####### ADDITIONAL STRINGS FOR V2.0 ########
global $modversion;
define(_PCVERSION, $modversion['version']);
define(_PCCOPYRIGHT, "Powered by: PostCalendar v%s PostNuke Module Bahraini.TV");
####### EVENT PREVIEW TIMES ########
define("_CALEVENTSTARTTIMEPREVIEW","Event Start Time:");
define("_CALEVENTENDTIMEPREVIEW","Event End Time:");
####### SEARCH STRINGS #############
define("_NEWSEARCH","New Search");
define('_ALLWORDS','All words [ALL]');
define('_ANYWORDS','Any words[OR]');
define('_SUMMARY','Searchform');
define('_SEARCH','Search');
define('_CALSEARCHEVENT','Search');
define('_FOR','For');
define('_SEARCHTITLE','Search PostCalendar');
define('_NONEFOUND','No Events found');
define('_ALLTOPICS','All Topics');
define('_SRCHALLTOPICS','All');
define('_CQUEUE','Your search results');
####### DAY HIGHLIGHT COLOR CONFIG ########
define("_CALEDIT_CONFIG_TITLE_dayhighlightcolor","Day Highlight Color");
define("_CALEDIT_CONFIG_EXPL_dayhighlightcolor","Enter the day highlight color in Month/Year View");
####### 1.63 translations ########
define("_CALAPPOINTMENTS","Appointments");
define("_CALEVENTS","Events");
define("_CALDAY","Day");
define("_CALMONTH","Month");
define("_CALYEAR","Year");
define("_CALTODAY","Today");
define("_CALSUBMITEVENT","Submit event");
define("_CALEDIT_CONFIG","Preferences");
define("_THISMONTHS","This Month's");
define("_CALMORNING","Morning");
define("_CALEVENING","Evening");
define("_CALSUBMITNAME", "PostCalendar Event Submission Form");
define("_CALNAME", "PostCalendar");
define("_CALPREVIEW", "Preview");
define("_CALOK", "Submit");
define("_CALEVENTDATETEXT", "Event Date");
define("_CALSUBSENT", "Your event has been received");
define("_CALTHANKSSUB", "Thank you for your submission!");
define("_CALSUBTEXT", "We will check your submission in the next few hours, if it is interesting and relevant we will publish it soon.");
define("_CALWEHAVESUB", "At this moment we have");
define("_CALWAITING", "submissions waiting to be published.");
define("_CALEVENTDATEPREVIEW", "Event Date");
define("_CALCHECKSTORY", "Please check the text, links, etc. before posting your event!");
define("_CALYOURNAME", "Your Name");
define("_CALLOGOUT", "Logout");
define("_CALSUBTITLE", "Subject");
define("_CALTOPIC", "Topic");
define("_CALSELECTTOPIC", "Select Topic");
define("_CALARTICLETEXT", "Event Description");
define("_CALHTMLISFINE", "HTML is fine, but double check your URLs and HTML tags!");
define("_CALAREYOUSURE", "Please double check your submission for errors");
define("_CALNEWSUBPREVIEW", "Event Submission Preview");
define("_CALSTORYLOOK", "Your event will look somthing like this:");
define("_CALBEDESCRIPTIVE", "Be Descriptive, Clear and Simple");
define("_CALSUBPREVIEW", "You must preview your event once before you can submit");
define("_CALALLOWEDHTML", "Allowable HTML tags:");
define("_CALTOPICERROR", "PLEASE SELECT A TOPIC!");
define("_CALSUBMISSIONSADMIN", "PostCalendar Event Submissions Administration");
define("_CALNEWSUBMISSIONS", "New Event Submissions");
define("_CALNOEVENTS", "No events found for today! Why not submit yours?
");
define("_CALNOSUBJECT", "No Subject Entered!");
define("_CALNOSUBMISSIONS", "No Submissions Found!");
define("_CALDELETE", "DELETE");
define("_CALNAMEFIELD", "Name");
define("_CALDELETESTORY", "Delete");
define("_CALPREVIEWSTORY", "Preview");
define("_CALPOSTSTORY", "Post");
define("_CALSUBMITADVICE", "Please fill in the required fields in this form and double check your submission.
We reserve the full right on which submissions to publish. Your submission will be checked and may be edited by our staff.");
define("_CALPOSTEDBY","Posted by");
define("_CALPOSTEDON","on");
define("_CALACCEPTEDBY"," and approved by");
define("_CALVIEWEVENT","Calendar Event");
define("_CALPREVIOUS","Prev");
define("_CALNEXT","Next");
define("_CALSTARTTIME","Start Time");
define("_CALENDTIME","Ending Time");
define("_CALALLDAYEVENT","Check here for an all day event.");
define("_CALTIMEIGNORED","The start and end times are ignored if this optioned is checked.");
define("_CALENDDATETEXT","End Date");
define("_CALENDDATEPREVIEW","End Date");
define("_CALBARCOLORTEXT","Select which category best fits your event");
define("_CALNO","No");
define("_CALYES","Yes");
define("_CALREMOVETEST","Are you sure you want to remove event ID");
define("_CALNOTAUTHORIZED1","You are not authorized to remove that entry");
define("_CALNOTAUTHORIZED2","Contact your system administrator for any questions you may have");
define("_VIEW","View");
define("_NEWUSER","Log In");
####### SEARCH MOD #########
define("_CALSEARCHEVENT","Search Events");
####### RECURRING EVENTS ########
define("_SELECTRECURR","Select Event Recurrance: (note that the recurrance at the moment will only happen for the single day untimed events. Should you select multiple day recurrance, only the first day will be repeated)");
define("_CALRECURRNONE","None");
define("_CALRECURRWEEK","Weekly");
define("_CALRECURRMONTH","Monthly");
define("_CALRECURRYEAR","Annually");
####### LINKS ########
define("_CALEVENTLINK","Create an Event");
define("_CALAPPTLINK","Create an Appointment");
define("_CALTASKLINK","Add a new Task");
define("_CALDAYLINK","Day View");
define("_CALMONTHLINK","Month View");
define("_CALYEARLINK","Year View");
define("_CALJUMPTOTEXT","Jump to the following view");
define("_CALJUMPBUTTON","Jump!");
####### MONTHS ########
define("_CALJAN","January");
define("_CALFEB","February");
define("_CALMAR","March");
define("_CALAPR","April");
define("_CALMAY","May");
define("_CALJUN","June");
define("_CALJUL","July");
define("_CALAUG","August");
define("_CALSEP","September");
define("_CALOCT","October");
define("_CALNOV","November");
define("_CALDEC","December");
####### DAYS OF THE WEEK ########
define("_CALMONDAYSHORT","M");
define("_CALTUESDAYSHORT","T");
define("_CALWEDNESDAYSHORT","W");
define("_CALTHURSDAYSHORT","T");
define("_CALFRIDAYSHORT","F");
define("_CALSATURDAYSHORT","S");
define("_CALSUNDAYSHORT","S");
define("_CALMONDAY","Monday");
define("_CALTUESDAY","Tuesday");
define("_CALWEDNESDAY","Wednesday");
define("_CALTHURSDAY","Thursday");
define("_CALFRIDAY","Friday");
define("_CALSATURDAY","Saturday");
define("_CALSUNDAY","Sunday");
####### DAYS OF THE WEEK ########
define("_CALFIRSTDAY","Sun");
define("_CALSECONDDAY","Mon");
define("_CALTHIRDDAY","Tues");
define("_CALFOURTHDAY","Wed");
define("_CALFIFTHDAY","Thu");
define("_CALSIXTHDAY","Fri");
define("_CALSEVENTHDAY","Sat");
define("_CALLONGFIRSTDAY","Sunday");
define("_CALLONGSECONDDAY","Monday");
define("_CALLONGTHIRDDAY","Tuesday");
define("_CALLONGFOURTHDAY","Wednesday");
define("_CALLONGFIFTHDAY","Thursday");
define("_CALLONGSIXTHDAY","Friday");
define("_CALLONGSEVENTHDAY","Saturday");
####### FIELD VALIDATION STRINGS ########
define("_CALVALIDERRORMSG","Errors were found when attempting to validate this entry!");
define("_CALVALIDSUBJECT","** The 'Subject' is a required field.");
define("_CALVALIDENDDATE","The 'End Date' is not a valid date.");
define("_CALVALIDEVENTDATE","The 'Event Date' is not a valid date.");
define("_CALVALIDDATES","The 'End Date' must be after or equal to the 'Event Date'.");
define("_CALVALIDTIMES","The 'End Time' must be after the 'Start Time'.");
define("_CALVALIDFIXMSG","Please correct these errors before you preview or submit the entry.");
####### CONFIG-ADMINISTRATION ########
define("_CALEDIT_CONFIG","PostCalendar Configuration");
define("_CALEDIT_CONFIG_YES","Yes");
define("_CALEDIT_CONFIG_NO","No");
define("_CALEDIT_CONFIG_24_hrs_","24 hour time");
define("_CALEDIT_CONFIG_AN_PM_","AM/PM time");
define("_CALEDIT_CONFIG_AN_PM_","AM/PM time");
// ----------------------------------------------
// EXPLAINATION OF ALL CONFIGURATIONS
// ----------------------------------------------
define("_CALEDIT_CONFIG_EXPL_SHOW_BLOCK","");
define("_CALEDIT_CONFIG_EXPL_ME","No = Image Bars for multiday events Yes = text for multiday events");
define("_CALEDIT_CONFIG_EXPL_netscapeFriendlyMonthView","If you have users using Netscape set this to \"Yes\". The above \"textEvents\" variable is ignored if this is 1 because the Netscape option is a simpler text based month view. It seems Netscapes HTML parser can not handle the number of nested tables plus images required by the more graphical views. ");
define("_CALEDIT_CONFIG_EXPL_time24Hour","Time format");
define("_CALEDIT_CONFIG_EXPL_useInternationalDates","Date format");
define("_CALEDIT_CONFIG_EXPL_eventsopeninnewwindow","Choose \"Yes\" for display in new window");
define("_CALEDIT_CONFIG_EXPL_monthtableborder","Month Table Border");
define("_CALEDIT_CONFIG_EXPL_monthtablecellspacing","Month Table Cell Spacing");
define("_CALEDIT_CONFIG_EXPL_monthtablecellpadding","Month Table Cell Padding");
define("_CALEDIT_CONFIG_EXPL_yeartableborder","Year Table Border");
define("_CALEDIT_CONFIG_EXPL_yeartablecellspacing","Year Table Cell Spacing");
define("_CALEDIT_CONFIG_EXPL_yeartablecellpadding","Year Table Cell Padding");
// ----------------------------------------------
// TITLE OF CONFIGURATIONS
// ----------------------------------------------
define("_CALEDIT_CONFIG_TITLE_SHOW_BLOCK","Display PostCalendar in the \"Other Options\" menu?");
define("_CALEDIT_CONFIG_TITLE_textEvents","Show text for multiday events?");
define("_CALEDIT_CONFIG_TITLE_netscapeFriendlyMonthView","Netscape Friendly Month View");
define("_CALEDIT_CONFIG_TITLE_time24Hour","24 Hour Time Format?");
define("_CALEDIT_CONFIG_TITLE_useInternationalDates","Use International Date Format?");
define("_CALEDIT_CONFIG_TITLE_eventsopeninnewwindow","Show events in a new window?");
define("_CALEDIT_CONFIG_TITLE_monthtableborder","Month Table Border");
define("_CALEDIT_CONFIG_TITLE_monthtablecellspacing","Month Table Cell Spacing");
define("_CALEDIT_CONFIG_TITLE_monthtablecellpadding","Month Table Cell Padding");
define("_CALEDIT_CONFIG_TITLE_yeartableborder","Year Table Border");
define("_CALEDIT_CONFIG_TITLE_yeartablecellspacing","Year Table Cell Spacing");
define("_CALEDIT_CONFIG_TITLE_yeartablecellpadding","Year Table Cell Padding");
define("_CALEDIT_CONFIG_BUTTON_SAVE","Save Config");
define("_CALEDIT_CONFIG_BUTTON_RESET","Reset to original settings");
###########################
?>
/********************************************************/
/* PostCalendar */
/* Version 2.5, see changes.txt for details */
/* Originally by Rob Sutton (Events Calendar) */
/* Development continued by */
/* */
/* The Calendar Development Team */
/* Mahmood Al-Yousif - mahmood@bahraini.tv */
/* Craig Hamlin - craig@hamlinworld.com */
/* HotBird - ramses@bzone.de */
/* */
/* This program is opensource so you can do whatever */
/* you want with it. However, I'm happy about any */
/* clever idea or nifty change you might have or have */
/* done, send them to */
/* calendar@bahraini.tv */
/* */
/* Any new versions can be found at */
/* http://www.bahraini.tv first */
/********************************************************/
// Common Settings
$ModName = "PostCalendar";
$firstdayoftheweek = 1; // 1 = monday, 0 = sunday and 2 = saturday
$netscapeFriendlyMonthView = 1; // Using old Netscape browsers that can't handle
// building of nested tables properly, set this to 1
$time24Hour = 1; // 1 = 24 hour time... 0 = AM/PM time
$eventsopeninnewwindow = 0; // When you click to view an event it will open into a new window if value = 1
$times = array("08:00:00",
"08:00:00",
"10:00:00",
"12:00:00",
"14:00:00",
"16:00:00",
"18:00:00",
"20:00:00",
"22:00:00"); //The time ranges on the day view
$useInternationalDates = 0; //0 = mm/dd/yyyy, 1 = dd/mm/yyyy
$doappointments = 0; // want to display the appointments block in the day view?
$textEvents = 0; // 0 = Image Bars for multiday events, 1 = text for multiday events
$cat1 = "Music"; // enter your chosen first category here
$cat2 = "Community"; // enter your chosen second category here
$cat3 = "Theater"; // enter your chosen third category here
$cat4 = "Web based"; // enter your chosen fourth category here
$cat5 = "Other"; // enter your chosen fifth category here
$dayhighlightcolor = "cadetblue";
$monthtableborder = 1;
$monthtablecellspacing = 0; // if you change this the bars will not look right only use textEvents if you change these
$monthtablecellpadding = 0; // if you change this the bars will not look right only use textEvents if you change these
$yeartableborder = 0;
$yeartablecellspacing = 2;
$yeartablecellpadding = 3; // this will make the month blocks larger or smaller depending on value
// PostCalendar Block Settings
$displayballs = 0; // display balls?
$eventOverview = 0; // do you want to display the events in the same PostCalendar block?
$pcbtopicdisplay = 1; // do you want to display the events' topics?
$pcblockeventsdatedisplay = 1; // do you want to display the event's date?
$pcblocationdisplay = 1; // display event's location?
// PostEvents Block Settings
$posteventslimit = 2; // how many events do you want displayed in the NextEvent block?
$posteventsdatedisplay = 1; // display dates with the post events?
$pebtopicdisplay = 0; // display post events' topics?
$peblocationdisplay = 1; // display event's location?
// NextEvents Block Settings
$nexteventslimit = 2; // how many events do you want displayed in the NextEvent block?
$nexteventsdatedisplay = 1; // display dates with the next events?
$nebtopicdisplay = 1; // display nextevents' topics?
$neblocationdisplay = 1; // display event's location?
if(!IsSet($mainfile)) { include ("mainfile.php"); }
if (file_exists("modules/$ModName/lang/$currentlang/global.php"))
{
include "modules/$ModName/lang/$currentlang/global.php";
} else {
include "modules/$ModName/lang/eng/global.php";
}
?>
.: Upcoming :.
_CALNOEVENTS
.: Who's online :.
We have 1 guest(s) and 0 member(s) online.
You are an anonymous user. You can register for free by clicking here