<?php
$currentTimeSecond = time();
$currentTimeSecond += 3600; //adding an hour for TIME ZONE differance
$file = 'index2s.php';
function highlightcode($file)
{
ob_start();
show_source( "$file" );
$t = ob_get_contents();
ob_end_clean();
$t = ereg_replace( "<font" , "<span" , $t);
$t = ereg_replace( "</font>", "</span>", $t );
$t = ereg_replace( "color=\"", "style=\"color:", $t);
echo $t;
}
print ("<div style='position: relative; z-index: 4; top:150; height: 8500px; background-color: #FFEBCD; border: thin solid #8B0000;'>");
print (highlightcode($file)); //relative absolute
print ("</div>");
?>
<html>
<head>
<title>SitePoint Contest</title>
<meta name="dc.date.modified" content="2004-10-03">
<style type="text/css">
body{
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
scrollbar-3d-light-color : cyan;
scrollbar-arrow-color : yellow;
scrollbar-base-color : #FFDBFF;
scrollbar-dark-shadow-color : Black;
scrollbar-face-color : #31659C;
scrollbar-highlight-color : #F7F6F3;
scrollbar-shadow-color : Silver;
cursor:url('../images2/3dpg_point4.ani');
}
A:link {
BACKGROUND: #bbddff; COLOR: #0000ff;
}
A:visit {
BACKGROUND: #ffcee7; COLOR: #990000;
}
A:hover {
BACKGROUND: #ccffff; COLOR: black
}
</style>
<script LANGUAGE="JavaScript" SRC="../scripts/awindow.js">
</script>
</head>
<!-- body bgstyle="color:#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000" -->
<?php
print ("<div style='margin-top: -15px;'>"); // border-top: thin dotted;
print ("<span style='border-left: thin dotted;'>");
print( date("l F jS, Y -- g:ia ", ($currentTimeSecond)) );
//which prints: Friday September 24th, 2004 -- 10:22pm
print (" in Calgary Alberta Canada</span>");
print ("</div>");
//print( "</B><br><br>In Numbers:" );
//print( "<br> The Month 1=Jan -- 12=Dec: <B>" );
//print( date("n", ($currentTimeSecond)) );
//print( "</B><br>Day of week - (0 is Sunday): <B>" );
//print( date("w ", ($currentTimeSecond)) );
//print( "</B><br>(If DayLight Savings than it will be 1): <B>" );
//print( date("I ", ($currentTimeSecond)) );
$daywk = date("w", ($currentTimeSecond));
//print( "dayweek daywk=" ); print($daywk); //prints a number
$hours = date("G", ($currentTimeSecond));
$month = date("n", ($currentTimeSecond));
//print( "month=" ); print($month); //prints a number
//$weekdayColor = 'white';
//print( $weekdayColor );
if($daywk == 0)
{$weekdayColor = 'black';} //black Sunday
else if($daywk == 1)
{$weekdayColor = 'blue';} //blue Monday
else if($daywk == 2)
{$weekdayColor = '#32CD32';} //green Tuesday
else if($daywk == 3)
{$weekdayColor = '#FF00FF';} //magenta Wednesday
else if($daywk == 4)
{$weekdayColor = 'orange';} //orange Thursday
else if($daywk == 5)
{$weekdayColor = 'red';} //red Friday
else if($daywk == 6)
{$weekdayColor = 'cyan';} //cyan Saturday
else{$weekdayColor = 'pink';}
//5-6 day = (5am-6am) Forground=darkgray
if ($hours > 4 && $hours < 7)
{
//------Morning-------
if( ($month == 3) || ($month == 4) || ($month == 5) )
{ //Mar.Apr.May. Mar.Apr.May.
print( "<body bgcolor='#6DD000' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on March 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Spring");
}
else if( ($month == 6) || ($month == 7) || ($month == 8) )
{ //Jun.Jul.Aug. Jun.Jul.Aug.
print( "<body bgcolor='yellow' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on June 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Summer");
}
else if( ($month == 9) || ($month == 10) )
{ //Sept.Oct. Sept.Oct.
print( "<body bgcolor='#0070A2' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on September 23rd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Fall");
}
else if( ($month == 11) || ($month == 12) || ($month == 1) || ($month == 2) )
{ //Nov.Dec.Jan.Feb. Nov.Dec.Jan.Feb.
print( "<body bgcolor='#FF5F00' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on December 22nd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, it feels like Winter");
}
else
{
print( "<body bgcolor='steelblue' text='#4c4c4c' LINK='#4c4c4c' VLINK='#6B8E23' ALINK='#4c4c4c'> ");
}
}
//7-9 day = (7-9am) Forground=darkred
if ($hours > 6 && $hours < 10)
{
//------Morning-------
if( ($month == 3) || ($month == 4) || ($month == 5) )
{ //Mar.Apr.May. Mar.Apr.May.
print( "<body bgcolor='#6DD000' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on March 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Spring");
}
else if( ($month == 6) || ($month == 7) || ($month == 8) )
{ //Jun.Jul.Aug. Jun.Jul.Aug.
print( "<body bgcolor='yellow' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on June 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Summer");
}
else if( ($month == 9) || ($month == 10) )
{ //Sept.Oct. Sept.Oct.
print( "<body bgcolor='#50CAFF' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on September 23rd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Fall");
}
else if( ($month == 11) || ($month == 12) || ($month == 1) || ($month == 2) )
{ //Nov.Dec.Jan.Feb. Nov.Dec.Jan.Feb.
print( "<body bgcolor='#FF5F00' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on December 22nd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, it feels like Winter");
}
else
{
print( "<body bgcolor='skyblue' text='#b30000' LINK='#b30000' VLINK='#b30000' ALINK='#b30000'> ");
}
}
//----------------------lightblue&olivgreen change to a hotter color
//10-13 day = (10am-12:59pm) Forground=lightskyblue txt=olivgreen --////////////\\\\\\\\\\--
if ($hours > 9 && $hours < 13)
{
//Morning-NOON+
if( ($month == 3) || ($month == 4) || ($month == 5) )
{ //Mar.Apr.May. Mar.Apr.May.
print( "<body bgcolor='#6DD000' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on March 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Spring");
}
else if( ($month == 6) || ($month == 7) || ($month == 8) )
{ //Jun.Jul.Aug. Jun.Jul.Aug.
print( "<body bgcolor='yellow' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on June 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Summer");
}
else if( ($month == 9) || ($month == 10) )
{ //Sept.Oct. Sept.Oct.
print( "<body bgcolor='#FFE450' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on September 23rd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Fall");
}
else if( ($month == 11) || ($month == 12) || ($month == 1) || ($month == 2) )
{ //Nov.Dec.Jan.Feb. Nov.Dec.Jan.Feb.
print( "<body bgcolor='#FF5F00' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on December 22nd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, it feels like Winter");
} //Comment on what season it is.
else
{
print( "<body bgcolor='#00FFFF' text='#6B8E23' LINK='#6B8E23' VLINK='#6B8E23' ALINK='#6B8E23'> ");
}
}
//13-16 day = (1pm-4pm) <5pm Forground=darkyellow #00FFFF deepskyblue
if ($hours > 12 && $hours < 17)
{
//MID AFTER-NOON
if( ($month == 3) || ($month == 4) || ($month == 5) )
{ //Mar.Apr.May. Mar.Apr.May.
print( "<body bgcolor='#6DD000' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on March 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Spring");
}
else if( ($month == 6) || ($month == 7) || ($month == 8) )
{ //Jun.Jul.Aug. Jun.Jul.Aug.
print( "<body bgcolor='yellow' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on June 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Summer");
}
else if( ($month == 9) || ($month == 10) )
{ //Sept.Oct. Sept.Oct.
print( "<body bgcolor='#FF8850' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on September 23rd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Fall"); //done
}
else if( ($month == 11) || ($month == 12) || ($month == 1) || ($month == 2) )
{ //Nov.Dec.Jan.Feb. Nov.Dec.Jan.Feb.
print( "<body bgcolor='#FF5F00' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on December 22nd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, it feels like Winter");
}
else
{
print( "<body bgcolor='deepskyblue' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
}
}
//==================================================#8B0000darkred
//17-18 night = (5-6pm) Forground=darkblue orange & #0000ff
if ($hours > 16 && $hours < 18)
{
//{ document.write("<FONT COLOR=weekdayColor>Hello Its Wednesday<BR></FONT>"); }
//EVENING
if( ($month == 3) || ($month == 4) || ($month == 5) )
{ //Mar.Apr.May. Mar.Apr.May.
print( "<body bgcolor='#6DD000' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on March 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Spring");
}
else if( ($month == 6) || ($month == 7) || ($month == 8) )
{ //Jun.Jul.Aug. Jun.Jul.Aug.
print( "<body bgcolor='yellow' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on June 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Summer");
}
else if( ($month == 9) || ($month == 10) )
{ //Sept.Oct. Sept.Oct.
print( "<body bgcolor='#5098FF' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on September 23rd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Fall");
}
else if( ($month == 11) || ($month == 12) || ($month == 1) || ($month == 2) )
{ //Nov.Dec.Jan.Feb. Nov.Dec.Jan.Feb.
print( "<body bgcolor='#0000AA' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on December 22nd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, it feels like Winter");
}
else
{
print( "<body bgcolor='orange' text='#0000ff' LINK='#0000ff' VLINK='#0000ff' ALINK='#0000ff'> ");
}
}
//18-19 night = (6-6:59pm) Forground=darkblue orange & #0000ff
if ($hours > 17 && $hours < 20)
{
//NIGHT
if( ($month == 3) || ($month == 4) || ($month == 5) )
{ //Mar.Apr.May. Mar.Apr.May.
print( "<body bgcolor='hotpink' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on March 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Spring");
}
else if( ($month == 6) || ($month == 7) || ($month == 8) )
{ //Jun.Jul.Aug. Jun.Jul.Aug.
print( "<body bgcolor='yellow' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on June 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Summer");
}
else if( ($month == 9) || ($month == 10) )
{ //Sept.Oct. Sept.Oct.
print( "<body bgcolor='#5071FF' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on September 23rd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Fall");
}
else if( ($month == 11) || ($month == 12) || ($month == 1) || ($month == 2) )
{ //Nov.Dec.Jan.Feb. Nov.Dec.Jan.Feb.
print( "<body bgcolor='#000077' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on December 22nd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, it feels like Winter");
}
else
{
print( "<body bgcolor='hotpink' text='#0000a0' LINK='#0000a0' VLINK='#0000a0' ALINK='#0000a0'> ");
}
}
//====================================================#0000a0================
//20-22 night = (8-10:59pm) Background=orangered Forground=verydarkblue
if ($hours > 18 && $hours < 23)
{
//NIGHT
if( ($month == 3) || ($month == 4) || ($month == 5) )
{ //Mar.Apr.May. Mar.Apr.May.
print( "<body bgcolor='hotpink' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on March 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Spring");
}
else if( ($month == 6) || ($month == 7) || ($month == 8) )
{ //Jun.Jul.Aug. Jun.Jul.Aug.
print( "<body bgcolor='yellow' text='#C71585' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on June 21st' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Summer");
}
else if( ($month == 9) || ($month == 10) )
{ //Sept.Oct. Sept.Oct.
print( "<body bgcolor='#000066' text='#FFA9DF' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<span title='on September 23rd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, Its Fall");
}
else if( ($month == 11) || ($month == 12) || ($month == 1) || ($month == 2) )
{ //Nov.Dec.Jan.Feb. Nov.Dec.Jan.Feb.
print( "<body bgcolor='#000066' text='#FFA9DF' LINK='#C71585' VLINK='#C71585' ALINK='#C71585'> ");
print( "<SPAN title='on December 22nd' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Hello, it feels like Winter");
}
else
{
print( "<body bgcolor='#2F4F4F' text='#FF1493' LINK='#FF1493' VLINK='#FF1493' ALINK='#FF1493'> ");
}
}
//23-4 night = (11pm-4am) #696969=Dgray Background=lightPurple #eeb3ff
if ($hours > 22 || $hours < 5)
{
print( "<body bgcolor='black' text='#eeb3ff' LINK='#eeb3ff' VLINK='#eeb3ff' ALINK='#eeb3ff'> "); //xxxxx, xx xxxxx xxxx xxxxxx
print( "<SPAN title='almost everyone is sleeping,... at least around here...' style='border-bottom: thin dotted; border-left: thin dotted; border-right: thin dotted;'>Good Evening, how are you?");
}
print ("</span>");
?>
<!--absolute relative top: 300;-->
<div style="position: relative; left: 165; margin-top:170;">
<?php
if($daywk == 0)
{
print( "<table border='1' cellspacing='5' cellpadding='44' width='505' bgstyle="color:);
print($weekdayColor);
print( ">");
}
else if($daywk == 1)
{
print( "<table border='1' cellspacing='5' cellpadding='44' width='505' bgstyle="color:);
print($weekdayColor);
print( ">");
}
else if($daywk == 2)
{
print( "<table border='1' cellspacing='5' cellpadding='44' width='505' bgstyle="color:);
print($weekdayColor);
print( ">");
}
else if($daywk == 3)
{
print( "<table border='1' cellspacing='5' cellpadding='44' width='505' bgstyle="color:);
print($weekdayColor);
print( ">");
}
else if($daywk == 4)
{
print( "<table border='1' cellspacing='5' cellpadding='44' width='505' bgstyle="color:);
print($weekdayColor);
print( ">");
}
else if($daywk == 5)
{
print( "<table border='1' cellspacing='5' cellpadding='44' width='505' bgstyle="color:);
print($weekdayColor);
print( ">");
}
else if($daywk == 6)
{
print( "<table border='1' cellspacing='5' cellpadding='44' width='505' bgstyle="color:);
print($weekdayColor);
print( ">");
}
//print( "<tr bgcolor=#c0c0c0><td>Wed.good day</td></tr></table>");
//print( "<tr bgcolor=#c0c0c0>");
?>
<tr>
<td align="center" valign="top" bgstyle="color:#D8D8D8" background="fallbkgrnd6.jpg" height="1900">
<img src="skyline1L.jpg" alt="" width="500" height="375" border="0">
<br><br>
<?php
//print ("<a>");
//print (highlightcode($file));
//print ("<a href="index2s.php"><hr></a>");
print ("<hr>");
//print ("</a>");
?>
<br><br>
<img src="skylinebookshelf2L.jpg" alt="" width="500" height="375" border="0">
<img src="skylinebookshelf3L.jpg" alt="" width="500" height="375" border="0">
<img src="calgarybuildingshelf3a.jpg" alt="" width="373" height="271" border="0">
<br><br><br><br>
<div style="color: #AD1A2C; font-family: fantasy; font-size: xx-large; font-variant: font-weight: 900;">
Visit the rest of the site</div>
<a href="http://www.dimensionalized.com/new.php" title=" Home Page "><b>Home</b></font></a> |
<a href="http://www.dimensionalized.com/shop/shop.php" title=" Buy a dimensional game "><b>Shop</b></a> |
<a href="http://www.dimensionalized.com/game/index.html" title=" Show Games "><b>Games</b></a> |
<a href="http://www.dimensionalized.com/bbs/email/formQ1.html" title=" E-mail Feed back Form "><b>Contact</b></a>
<br><br><br> <br><br>
<!-- <img src="znearsighted.jpg" alt="Near Sighted but Focused" width="350" height="263" border="0"><br>
<br><br><br><br><br><br><br><br><br> -->
</td>
</tr>
</table>
</div>
<!-- ----------------------------------------------------------- -->
<div style="position: absolute; top: 50px; left: 32px; z-index: 3; border: thick double #B22222; background-color:#990033; width: 100px;">
<table align="center" style="margin-top: 3px;">
<tr>
<td>
<a href="../new.php"><img src="../images/cube1b3.gif" alt="" width="74" height="80" border="0" title="Back to Homepage"></a>
</td>
</tr>
</table>
</div>
<!-- -------------------------------------------------------------------------------D3D3D3- -->
<div style="position: absolute; left: 8px; margin-top: 88px; top: 88px; background-color:#808080;">
<table width="150">
<tr>
<td style="font-family: Arial, Helvetica, sans-serif; font-size: xx-small;">
<?php
print( "<div style='background-color:");
print( $weekdayColor );
print( "'>" );
print( "<font style="color: );
print( $weekdayColor+9999 );
print( ">" );
print( "<u title='Contest Rules'>These were the <b>contest rules</b>:</u></font></div>" );
?>
<font style="color:#d2ffff">
<br>
From the Eiffel Tower to the Tower of London,
from Brooklyn Bridge to the Big Banana,
SitePoint Books make a great read any place, any time.
So, when you’re out and about, take a picture of yourself reading
your favourite SitePoint book at a local landmark.
Photograph yourself and the book in an imaginative location.<br><br>
The location I chose was the:<br>
<b style="background-color:#ffffff; color:#808080;">SKYLINE BOOKSHELF</b><br>
<hr><!-- http://www.sitepoint.com/competition/ipod_competition/ipod_win_21-09-04.php -->
<a href="javascript:openwindow1a('http://www.sitepoint.com/images/entries/hawaiibuff.gif')" title="">The winning picture</a>
<hr>
Do you need a photographer?<br>
<a href="../bbs/email/formQ2.html">Please contact me here</a>.</font>
</td>
</tr>
</table>
</div>
<!-- -------------------------------relative---top: 1545px; left: 8%; right: 20%;------------------ -->
<div align="left" style="position: absolute; top: 2020px; margin-left: 0; left: 0px;">
<table border="0" align="left">
<tr>
<!-- ------------ -->
<td width="232"><a href="index.php"> <b>←BACK</b> </a>
</td>
<!-- ------------ -->
<!-- ----------- class="footer"- -->
<td>
<table border="0" cellspacing="5">
<tr>
<td><font size="-2">
<?
//$LastMod = filemtime("index.php");
//print("Last modification was on ");
//print(date("l F d, Y", $LastMod));
print("Last modification was on ");
$LastChange = filectime("index.php");
print(date("l F jS, Y -- g:i a ", ($LastChange+3600) ));
?>
-- Paul Glover ©2004</font>
</td>
</tr>
</table>
</td>
<!-- ------------ -->
</tr>
</table>
</div>
</body>
</html>
|
These were the contest rules:
From the Eiffel Tower to the Tower of London, from Brooklyn Bridge to the Big Banana, SitePoint Books make a great read any place, any time. So, when you’re out and about, take a picture of yourself reading your favourite SitePoint book at a local landmark. Photograph yourself and the book in an imaginative location. The location I chose was the: SKYLINE BOOKSHELF The winning picture Do you need a photographer? Please contact me here. |
| ←BACK |
|