#'); $html_entities_replace = array('&', '<', '>'); /// Dont Anything Change below // // GMT Date function function gmtdate($format, $gmepoch, $timezone) { return ( @gmdate($format, $gmepoch + (3600 * $timezone))); } function verifyuser() { global $user, $pass; session_start(); if (isset($_SESSION['username']) && isset($_SESSION['passwd'])) { $username = $_SESSION['username'] ; $passwd = $_SESSION['passwd'] ; if( $user==$username && $pass==$passwd) return true; } return false; } function message( $alert, $message ) { ?>



| Edit / Delete Event | Add Event | Admin |
= '5.0.0' && (!@ini_get('register_long_arrays') || @ini_get('register_long_arrays') == '0' || strtolower(@ini_get('register_long_arrays')) == 'off')) { $HTTP_POST_VARS = $_POST; $HTTP_GET_VARS = $_GET; $HTTP_SERVER_VARS = $_SERVER; $HTTP_COOKIE_VARS = $_COOKIE; $HTTP_ENV_VARS = $_ENV; $HTTP_POST_FILES = $_FILES; // _SESSION is the only superglobal which is conditionally set if (isset($_SESSION)) { $HTTP_SESSION_VARS = $_SESSION; } } // Protect against GLOBALS tricks if (isset($HTTP_POST_VARS['GLOBALS']) || isset($HTTP_POST_FILES['GLOBALS']) || isset($HTTP_GET_VARS['GLOBALS']) || isset($HTTP_COOKIE_VARS['GLOBALS'])) { die("Possibility of hacking attempt ! IP registered"); } if (isset($_POST['GLOBALS']) || isset($_FILES['GLOBALS']) || isset($_GET['GLOBALS']) || isset($_COOKIE['GLOBALS']) || isset($_REQUEST['GLOBALS'] )) { die("Possibility of hacking attempt !"); } if (isset($_SESSION) && !is_array($_SESSION)) { die("Possibility of hacking attempt !"); } if (isset($_GET['eventdate'])) { $eventdate = htmlspecialchars($_GET['eventdate']); // change dateformat if ( $dateformat == 1) { list($yyyy, $mm, $dd) = explode('-',$eventdate); } else { list($dd, $mm, $yyyy ) = explode('-',$eventdate); } $monthno = $mm; $year = $yyyy; $displaydate = date('d M Y', mktime(0,0,0,$mm,$dd,$yyyy)); $eventdate = $yyyy."-".$mm."-".$dd; $imageno = $dd ; } else { $today = gmtdate('Y-m-d', time(), $timezone ); $eventdate = $today; // list($yyyy, $mm, $dd) = explode('-',$eventdate); $monthno = gmtdate('n', time(), $timezone ); $year = gmtdate('Y', time(), $timezone ); $displaydate = gmtdate('d M Y', time(), $timezone ); $imageno = gmtdate('d', time(), $timezone ); } if (isset($_GET['monthno']) ) { $monthno = intval(htmlspecialchars($_GET['monthno'])); } elseif (!isset($monthno) ) { $monthno= gmtdate('n', time(), $timezone ); } if (isset($_GET['year']) or isset($_GET['year'])) { $year = intval(htmlspecialchars($_GET['year'])); } elseif (!isset($year) ) { $year = gmtdate('Y', time(), $timezone ); } if (isset($_GET['view'])) { $view = htmlspecialchars($_GET['view']); } else { $view = 0; } $monthfulltext = date("F", mktime(0, 0, 0, $monthno, 1, $year)); $monthshorttext = date("M", mktime(0, 0, 0, $monthno, 1, $year)); $day_in_mth = date("t", mktime(0, 0, 0, $monthno, 1, $year)) ; $day_text = date("D", mktime(0, 0, 0, $monthno, 1, $year)); $today = gmtdate('Y-m-d', time(), $timezone ); //$template = new Template('./templates/') ; ?>
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /home/content/t/h/e/thehiveccd/html/projects/altenheim/calendar/index.html on line 11
The Altenheim - Caring and Beyond

Calendar

set_filenames(array( 'event' => 'event.tpl', )); if ( $mode == 1) { ?> " . mysql_error()); $event = mysql_num_rows($results); if ($event>0) { while ($row = mysql_fetch_array($results)) { $template->assign_block_vars('mode', array( 'EVENTDESC' => $bullet1." ".$row['event_desc'], )); } } else { $template->assign_block_vars('mode', array( 'EVENTDESC' => $bullet1." ".$noeventmsg, )); } } else { if (isset($_GET['eventdate'])) { $heading = $lang['Upcoming']; } else { $heading = $lang['Today_Event']; } $evdate =$displaydate; $sql = "SELECT * FROM event WHERE date = '$eventdate'" ; $results = mysql_query($sql) or die("Cannot query the database.
" . mysql_error()); $event = mysql_num_rows($results); if ($event>0) { while ($row = mysql_fetch_array($results)) { $template->assign_block_vars('mode', array( 'EVENTDESC' => $bullet1." ".$row['event_desc'], )); } } else { $template->assign_block_vars('mode', array( 'EVENTDESC' => $noeventmsg, )); } } $template->assign_vars(array( 'HEADING' => $heading, 'EVENTDATE' => $evdate, 'L_DATE' => $lang['Date'], 'SHORTMONTH' => $lang["$todaymon"], 'PATH' => $myevent_path, )); $template->pparse('event'); ?> 0){ for ($i=0; $i<$day_of_wk; $i++) { ?> " . mysql_error()); $event = mysql_num_rows($results); // change Dateformat if ( $dateformat == 1 ){ $currentdate = date("Y-m-j", mktime(0, 0, 0, $monthno, $date_of_mth, $year) ); } else { $currentdate = date("j-m-Y", mktime(0, 0, 0, $monthno, $date_of_mth, $year) ); } //////////////////// if ( $date_no == gmtdate('j', time(), $timezone ) && $monthno == gmtdate('n', time(), $timezone ) ){ if ($event > 0 ) { $alt = "".$lang['Events']." :
"; while ($row = mysql_fetch_array($results)) { $alt.=" ".$row['event_desc']."
"; } $alt = strip_tags($alt, "


" ); if ($mode==1) { //viewevent.php?eventdate= //$linkdate ="".$date_no.""; $linkdate ="".$date_no.""; } elseif($mode==3) { //$linkdate ="".$date_no.""; $linkdate ="".$date_no.""; } elseif($mode==2) { //$linkdate ="".$date_no.""; $linkdate ="".$date_no.""; } } else { $linkdate = $date_no ; } ?>

0 ){ $alt = "".$lang['Events']." :
"; while ($row = mysql_fetch_array($results)) { //$alt.=" ".$row['event_desc']."\r\n"; $alt.=$bullet." ".$row['event_desc']."
"; } $alt = strip_tags($alt, "


" ); //$alt = str_replace($healthy, $yummy, $phrase); if ($mode==1) { //$linkdate ="".$date_no.""; $linkdate ="".$date_no.""; } if ($mode==3) { //$linkdate ="".$date_no.""; $linkdate ="".$date_no.""; } elseif($mode==2) { // $linkdate ="".$date_no.""; $linkdate ="".$date_no.""; } } else { $linkdate = $date_no ; } if ($day_of_wk == 0 or $day_of_wk == 7 ) { $class = "sunday"; } else { $class = "tddate"; } ?>

<? echo date('M', mktime(0, 0, 0, $monthchange, 1, $yearchange))." /> <? echo date('M', mktime(0, 0, 0, $monthchange, 1, $yearchange))." />