cvs: phpweb / cal.php

From: Date: Thu, 12 Jul 2001 11:52:04 +0000
Subject: cvs: phpweb / cal.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5482@lists.php.net to get a copy of this message
goba Thu Jul 12 07:52:04 2001 EDT Modified files: /phpweb cal.php Log: Adding some mousse around this (make it look like as a php.net page) Index: phpweb/cal.php diff -u phpweb/cal.php:1.5 phpweb/cal.php:1.6 --- phpweb/cal.php:1.5 Wed Jul 11 17:45:15 2001 +++ phpweb/cal.php Thu Jul 12 07:52:04 2001 @@ -1,5 +1,8 @@ <? - require 'cvs-auth.inc'; + require_once 'prepend.inc'; + commonHeader("PHP Event Calendar"); + + require_once 'cvs-auth.inc'; if (isset($save) && isset($pw)) { # non-developers don't have $user set setcookie("MAGIC_COOKIE",base64_encode("$user:$pw"),time()+3600*24*20,'/'); } @@ -35,7 +38,7 @@ * which 1 = first * 2 = second * 3 = third - * -1 = last + * -1 = last * -2 = second-last */ function weekday($year, $month, $day, $which) { @@ -422,12 +425,11 @@ if(isset($HTTP_GET_VARS['a'])) $a = $HTTP_GET_VARS['a']; else $a=0; } -?> -<html><head><title>PHP Event Calendar</title></head> -<body> -<h1>PHP Event Calendar</h1> -<? -if(!isset($cm)) $cm = strftime('%m'); -if(!isset($cy)) $cy = strftime('%Y'); -draw_cal($cy,$cm)?> -<body></html> + + echo "<h1>Event Calendar</h1>"; + if (!isset($cm)) $cm = strftime('%m'); + if (!isset($cy)) $cy = strftime('%Y'); + draw_cal($cy,$cm) + + commonFooter(); +?> \ No newline at end of file

« previous php.mirrors (#5482) next »