$host = "heim.db.3959197.hostedresource.com"; // Fill up mySQL information $login = "heim"; // required to access database $password = "Altenad09"; // here $base = "heim"; $user="admin"; // Fill up admin user name $pass="admin"; // Fill up admin password $language = "lang_eng.php"; // mode no // 1 = Java Pop-up with fixed window size // 2 = open-up a new browser window // 3 = Display changes on the same screen/browser $mode = 3; // dateformat no // 1 = YYYY-MM-DD // 2 = DD-MM-YYYY $dateformat = 1; $timezone=-0; // hours GMT = ??? $eventbgcolor = "#333666"; $tblbgcolor = ""; $tblbgcolor1 = ""; $noeventmsg = "Nothing for today"; $sundayfirst = true; $bullet =""; $bullet1 ="*"; $version =1.6; $html_entities_match = array('#&(?!(\#[0-9]+;))#', '#<#', '#>#'); $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 ) { ?>
|
echo $message ?> |
| | Edit / Delete Event | Add Event | Admin | |
$monthchange = $monthno-1; $yearchange=$year;
if ($monthchange==0){ $monthchange=12; $yearchange=$year-1;} else { $yearchange=$year; }
?>
">
" />
|
echo $lang["$monthfulltext"]." ".$year ?> |
$monthchange = $monthno+1;
if ($monthchange==13){ $monthchange=1; $yearchange=$year+1;} else { $yearchange=$year; }
?>
">
" />
|
|||||||||||
| echo $lang['Sun'] ; ?> | echo $lang['Mon'] ; ?> | echo $lang['Tue'] ; ?> | echo $lang['Wed'] ; ?> | echo $lang['Thu'] ; ?> | echo $lang['Fri'] ; ?> | echo $lang['Sat'] ; ?> | } else { ?>echo $lang['Mon'] ; ?> | echo $lang['Tue'] ; ?> | echo $lang['Wed'] ; ?> | echo $lang['Thu'] ; ?> | echo $lang['Fri'] ; ?> | echo $lang['Sat'] ; ?> | echo $lang['Sun'] ; ?> | } ?>
| } } } else { if ($day_of_wk == 0) { $day_of_wk = 7 ; } if ($day_of_wk != 1){ for ($i=1; $i<$day_of_wk; $i++) { ?> | } } } for ($date_of_mth = 1; $date_of_mth <= $day_in_mth; $date_of_mth++) { $date_no = date("j", mktime(0, 0, 0, $monthno, $date_of_mth, $year)); $day_of_wk = date("w", mktime(0, 0, 0, $monthno, $date_of_mth, $year)); if (!$sundayfirst) { if ($day_of_wk == 0) $day_of_wk = 7 ; } $currentdate = date("Y-m-j", mktime(0, 0, 0, $monthno, $date_of_mth, $year) ); $sql = "SELECT * FROM event WHERE date = '$currentdate'" ; $results = mysql_query($sql) or die("Cannot query the database. | echo $linkdate ?> | } else{ if ($event > 0 ){ $alt = "".$lang['Events']." :echo $linkdate ?> } if ($sundayfirst) { if ( $day_of_wk == 6 ) { ?> | ||||||||||
| echo "\n"; } ?> | |||||||||||||
| echo "\n"; } ?> | |||||||||||||