//=========================================== //GET MAIN VARIABLE //=========================================== //include the required php files require_once("../admin/databaseinfo.php"); include('../admin/variables.php'); include('../admin/browserdetect.php'); //select page colors $query = "SELECT * FROM Colors WHERE Section='Main'"; $result = mysql_query($query); $row = mysql_fetch_array($result); extract($row); //get meta info $MetaTitleM = $MetaTitle; $MetaKeyM = $MetaKey; $MetaDescriptionM = $MetaDescription; //set variables $SITE = $Site; //=========================================== //GET Calendar PAGE IMAGE INFO //=========================================== //find post data $monthC = $_GET['monthC']; $yearC = $_GET['yearC']; //set month and year if none is set if($monthC == "" || $monthC == undefined) { $today = getdate(); $monthC = $today["mon"]; if($monthC < 10){ $monthC = "0".$monthC; } $yearC = $today["year"]; } //find calendar information $daysInMonth = cal_days_in_month(CAL_JULIAN, $monthC, $yearC); //find day of the week the month starts $tstamp=mktime(0,0,0,$monthC,1,$yearC); $Tdate = getdate($tstamp); $startDay = $Tdate["wday"]; $startDay = $startDay-0 + 1; //find today $today = getdate(); $yearT = $today["year"]; $monthT = $today["mon"]; //find this year plus the next two, plus full name of month $tstamp=mktime(0,0,0,$monthC,1,$yearC); $Tdate = getdate($tstamp); $fullMonth = $Tdate["month"]; $tstamp=mktime(0,0,0,$monthC,1,$yearT); $Tdate = getdate($tstamp); $currYear = $Tdate["year"]; $fullMonth = $Tdate["month"]; $tstamp=mktime(0,0,0,$monthC,1,$yearT-0+1); $Tdate = getdate($tstamp); $currYear2 = $Tdate["year"]; $tstamp=mktime(0,0,0,$monthC,1,$yearT-0+2); $Tdate = getdate($tstamp); $currYear3 = $Tdate["year"]; //GET SECTION INFO $query = "select * FROM Menu WHERE MenuID = '17'"; $result = mysql_query($query) or die ("Couldn't execute query."); $row = mysql_fetch_array($result); extract($row); //remove slashes and change paragraphs to end lines for easy viewing $Section = stripslashes(trim($Section)); $Button = stripslashes(trim($Button)); $Position = stripslashes(trim($Position)); $Description = stripslashes(trim($Description)); //get meta info if($MetaTitle != "" ) { $MetaTitleM = $MetaTitle; } if($MetaKey != "" ) { $MetaKeyM = $MetaKey; } if($MetaDescription != "" ) { $MetaDescriptionM = $MetaDescription; } if($Position == "left") { $sideWidth = 0; } else { $sideWidth = 15; } $textWidth = 700 - $Width; //convert text from flash formatting to html formatting for ($i=1; $i<12; $i++) { $Description = ereg_replace('SIZE="'.$i.'"', '', $Description); } for ($i=12; $i<14; $i++) { $Description = ereg_replace('SIZE="'.$i.'"', 'SIZE="2"', $Description); } for ($i=14; $i<16; $i++) { $Description = ereg_replace('SIZE="'.$i.'"', 'SIZE="3"', $Description); } for ($i=16; $i<19; $i++) { $Description = ereg_replace('SIZE="'.$i.'"', 'SIZE="4"', $Description); } for ($i=19; $i<30; $i++) { $Description = ereg_replace('SIZE="'.$i.'"', 'SIZE="5"', $Description); } for ($i=30; $i<60; $i++) { $Description = ereg_replace('SIZE="'.$i.'"', 'SIZE="6"', $Description); } $Description = ereg_replace("'", "'", $Description); //get info colors---------------------------------- $prefix = "slideshow"; $query7 = "SELECT * FROM Colors Where Section = 'Calendar'"; $result7 = @mysql_query($query7); $row7 = mysql_fetch_array($result7, MYSQL_BOTH); $ColorM = urlencode($row7['Color1']); $ColorMa = urlencode($row7['Color2']); ?>
include ("logo.php"); ?>
|
|
|||||||||||||||||||||||||||||||||
|
|