Arbpen Website Design Services

1436 West Glenoaks Blvd Glendale, CA 91201 USA
Phone: 818 627 6565 Email:

Coding for Commemoration of the Armenian Genocide

I have friends, neighbors, and clients who are Armenian, and I want to show my support for the Armenian people. Therefore, on April 24th, I am closing down my website and those clients who also wished to be closed down.

If you would also like to close down your own website, here is some code that you can use. I have an include file that is included in all my pages, and I simply put this in it. Be sure that if you use this code, that you place it before any headers are sent to the browser.

For more information, please visit these sources:

Snapshot

View snapshot

PHP Code

	
	$aarr = explode("/",$_SERVER['SCRIPT_NAME']);
	$thisurlname = $aarr[count($aarr)-1]; 
	if(date('m') == "4" and date('j') == "24")
		{$isarmenian = true;
		if($thisurlname!="armclosed.php"){
		header("Location:armclosed.php" );
		}
	}

Here is the CSS, markup and graphic for the page itself.

CSS

<style type="text/css">
body {background-image:url(armflag.png)}
#content {background-color:#fff; width:60%; margin:auto; color:000; padding:1em;}
</style>

Markup

<h1>April 24th - Closed for Commemoration of the Armenian Genocide</h1>
<div id="content">
<h1><?php echo $thispage; ?></h1>
<p>In support of our Armenian friends and neighbors, this web site is closed to
commemorate the Armenian Genocide.</p>
<p>For more information, please visit these sources:</p>
<?php  
$linksarr = array("http://www.armenian-genocide.org/genocidefaq.html","http://en.wikipedia.org/wiki/United_States_resolution_on_Armenian_genocide","http://en.wikipedia.org/wiki/Armenian_Genocide");
$pagesarr = array("Armenian Genocide FAQ","United States resolution on Armenian genocide","Armenian Genocide");
?>
<ul>
<?php 
for ($i=0; $i<count($linksarr ); $i++)
{?>
<li><a href="<?php echo $linksarr[$i]; ?>"><?php echo $pagesarr[$i]; ?></a></li>
<?php } ?>
</ul>
</div>

Image

Right click and save - please do not link to the image itself. Armenian Flag (1K)

Snapshot

This is a snapshot of what the page might look like. You can play around with the CSS.