aboutsummaryrefslogtreecommitdiffstats
path: root/event.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-10-04 02:32:28 +0000
committerjwangen <jwangen>2002-10-04 02:32:28 +0000
commit3d3e022345611be7e3bb61dc5478873082b03d2a (patch)
treeb0a28edb4af1627c64b46fa41e13aa9ce8efc180 /event.php
parentd6958637d6263bf539bced5c0d2d73d58b0dc5c0 (diff)
downloadphpicalendar-3d3e022345611be7e3bb61dc5478873082b03d2a.tar.gz
phpicalendar-3d3e022345611be7e3bb61dc5478873082b03d2a.tar.bz2
phpicalendar-3d3e022345611be7e3bb61dc5478873082b03d2a.zip
Modified event and init so HTTP_GET_VARS is explicitly called instead of
assuming vars are globally set. Modified language files so there are no more double quotes.
Diffstat (limited to 'event.php')
-rw-r--r--event.php44
1 files changed, 36 insertions, 8 deletions
diff --git a/event.php b/event.php
index 38058da..ec0a51d 100644
--- a/event.php
+++ b/event.php
@@ -1,17 +1,45 @@
<?php
-include ("./functions/init.inc.php");
+include ('./functions/init.inc.php');
+
+if (isset($HTTP_GET_VARS['event']) && ($HTTP_GET_VARS['event'] !== '') ) {
+ $event = $HTTP_GET_VARS['event'];
+} else {
+ $event = '';
+}
+if (isset($HTTP_GET_VARS['description']) && ($HTTP_GET_VARS['description'] !== '') ) {
+ $description = $HTTP_GET_VARS['description'];
+} else {
+ $description = '';
+}
+if (isset($HTTP_GET_VARS['calendar_name']) && ($HTTP_GET_VARS['calendar_name'] !== '') ) {
+ $calendar_name = $HTTP_GET_VARS['calendar_name'];
+} else {
+ $calendar_name = '';
+}
+
+if (isset($HTTP_GET_VARS['start']) && ($HTTP_GET_VARS['start'] !== '') ) {
+ $start = $HTTP_GET_VARS['start'];
+} else {
+ $start = '';
+}
+if (isset($HTTP_GET_VARS['end']) && ($HTTP_GET_VARS['end'] !== '') ) {
+ $end = $HTTP_GET_VARS['end'];
+} else {
+ $end = '';
+}
+
$event = urldecode($event);
$event = stripslashes($event);
-$event = str_replace("\\", "", $event);
+$event = str_replace('\\', '', $event);
$event = htmlspecialchars($event);
$description = urldecode($description);
$description = stripslashes($description);
-$description = str_replace("\\", "", $description);
+$description = str_replace('\\', '', $description);
//$description = htmlspecialchars($description);
$calendar_name2 = urldecode($calendar_name);
$calendar_name2 = stripslashes($calendar_name2);
-$calendar_name2 = str_replace("\\", "", $calendar_name2);
+$calendar_name2 = str_replace('\\', '', $calendar_name2);
//$calendar_name2 = htmlspecialchars($calendar_name2);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
@@ -19,7 +47,7 @@ $calendar_name2 = str_replace("\\", "", $calendar_name2);
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
- <title><?php echo "$calendar_name2"; ?></title>
+ <title><?php echo $calendar_name2; ?></title>
<link rel="stylesheet" type="text/css" href="styles/<?php echo "$style_sheet"; ?>">
</head>
<body bgcolor="#eeeeee"><center>
@@ -35,16 +63,16 @@ $calendar_name2 = str_replace("\\", "", $calendar_name2);
<tr>
<td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
- <?php if (($start) && ($end)) $event_times = " - <font class=\"V9\">(<i>$start - $end</i>)</font>"; ?>
+ <?php if (($start) && ($end)) $event_times = ' - <font class="V9">(<i>'.$start.' - '.$end.'</i>)</font>'; ?>
<tr>
<td width="1%"><img src="images/spacer.gif" width="6" height="1"></td>
- <td align="left" colspan="2" class="V12"><?php echo "$event $event_times<br><br>"; ?></td>
+ <td align="left" colspan="2" class="V12"><?php echo $event.' '.$event_times.'<br><br>'; ?></td>
</tr>
<?php if ($description) { ?>
<tr>
<td width="1%"><img src="images/spacer.gif" width="6" height="1"></td>
- <td align="left" colspan="2" class="V12"><?php echo "$description"; ?></td>
+ <td align="left" colspan="2" class="V12"><?php echo $description; ?></td>
</tr>
<?php } ?>

© 2014-2024 Faster IT GmbH | imprint | privacy policy