// EasyPHPCalendar // Version 6 // Copyright 2001-2005 NashTech, Inc. // http://www.EasyPHPCalendar.com // SET ERROR REPORTING LEVEL error_reporting(E_ALL ^ E_NOTICE); if ($epcGetInit!=1) { // DETERMINE NAME OF CURRENT FILE if (!isset($thisFile) || (isset($_GET['thisFile']) || isset($_POST['thisFile']))) { $thisFile = $_SERVER['SCRIPT_NAME']; $thisFile = explode("/",trim($thisFile)); $thisFile = $thisFile[count($thisFile)-1]; if (!file_exists($thisFile)) $thisFile = htmlentities($_SERVER['PHP_SELF']); } // SERVER (ROOT) PATH TO ESCAL FOLDER // This address should start and end with a "/" unless this is on a windows server where it will start with a drive letter; if (!isset($serverPath) || $serverPath!="../" || $getPaths==1) { $serverPath="/home/ofma01/domains/richlandcountyfair.com/public_html/events/"; } // URL PATH TO ESCAL FOLDER // This address should start and end with a "/". * // It is usually the name of the directory this file is in (Example: "/escal/"); // * If you enter the full URL starting with "http://", this address will not be verified by the calendar script! $urlPath="/events/"; } if ($getPaths!=1 && $epcGetInit!=1) { // GET HTML FUNCTIONS require_once($serverPath."functions/functions.inc.php"); // CURRENT THEME $currentTheme="default"; // INCLUDE CSS ROUTINE if ($CSS!="") { if (!file_exists($serverPath."config.inc.php")) die ("Server Path Error.
Please run the Setup Manager to correct this problem.

"); require_once($serverPath."config.inc.php"); if ($urlPath=="") { echo ""; require($serverPath."functions/categories.php"); } else { if (!isset($showTheme) && $_REQUEST['showTheme']!="") $showTheme=$_REQUEST['showTheme']; if (isset($showTheme)) { $checkTheme = $serverPath."theme/".$showTheme."/esstyle.css"; if (file_exists($checkTheme)) { $currentTheme = $showTheme; } } echo ""; require($serverPath."functions/categories.php"); } } if ($PCSS==1) { echo "\n"; echo "\n"; require($serverPath."functions/categories.php"); } // INCLUDE OVERLIB ROUTINE if ($OL==1) { if (!file_exists($serverPath."config.inc.php")) die ("Server Path Error.
Please run the Setup Manager to correct this problem.

"); require_once($serverPath."config.inc.php"); // DETERMINE FILENAME $olFileName = "overlib.js"; if (file_exists($serverPath."overLIB/overlib_mini.js")) $olFileName = "overlib_mini.js"; echo "\n"; echo "

"; if ($ol_anchor==1) echo ""; } // DISPLAY EVENT LIST if ($LIST==1) { if ($license=="" || !isset($license) || !isset($gmt) || $gmt=="") {require ($serverPath."config.inc.php");} require ($serverPath."functions/listings.php"); } // DISPLAY EVENT LIST if ($EPCBLOG==1) { if ($license=="" || !isset($license) || !isset($gmt) || $gmt=="") {require ($serverPath."config.inc.php");} require ($serverPath."functions/calendar.php"); } if ($EPCBLOG==2) { if ($license=="" || !isset($license) || !isset($gmt) || $gmt=="") {require ($serverPath."config.inc.php");} require ($serverPath."functions/blog.php"); } // DISPLAY TEXT ON CALENDAR if ($TOC==1) { if (!file_exists($serverPath."config.inc.php")) die ("Server Path Error.
Please run the Setup Manager to correct this problem.

"); if ($license=="" || !isset($license) || !isset($gmt) || $gmt=="") {require ($serverPath."config.inc.php");} require ($serverPath."functions/tocCalendar.php"); } // SHOW MULTIPLE CALENDARS if ($MULTI==1) { if (!file_exists($serverPath."config.inc.php")) die ("Server Path Error.
Please run the Setup Manager to correct this problem.

"); if ($license=="" || !isset($license) || !isset($gmt) || $gmt=="") {require ($serverPath."config.inc.php");} require($serverPath."plugins/multiShow.php"); $MULTIX=1; } // AJAX JAVASCRIPT if ($EPCAJAX==1) { } // DISPLAY CALENDAR if ($CSS=="" && $OL!=1 && $LIST!=1 && $PCSS=="" && $TOC=="" && $MULTIX=="" && $EPCBLOG=="" && $EPCAJAX=="") { if (!file_exists($serverPath."config.inc.php")) die ("Server Path Error.
Please run the Setup Manager to correct this problem.

"); if ($license=="" || !isset($license) || !isset($gmt) || $gmt=="") {require ($serverPath."config.inc.php");} require ($serverPath."functions/calendar.php"); } // UNSET MODE VARIABLES unset ($CSS,$PCSS,$OL,$LIST,$TOC,$MULTI,$MULTIX,$EPCAJAX); }