<?php
/*
Created by: Adam Patterson
This is a free aplication you can cahnge what
ever you like as long as you keep mention of my name.
Copyright (c) 2007, Adam Patterson
http://www.adam-patterson.com | http://www.studiolounge.net
Addressbook is released under the GPL license
http://www.gnu.org/licenses/gpl.txt
If you need any help please go to the setup folder and
read the instructions in the "index.php" file.
Otherwise is can assist you here: http://www.studiolounge.net/2007/01/28/addressbook/
*/
$time_start = microtime(true);
session_start();
if (!session_is_registered(myemail)){
header("location:index.php");
}
include_once("functions.php");
include_once("case-secure.php");
include_once("config.php");
include_once("open-db.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="js/pngfix.js"></script>
<![endif]-->
<script src="http://maps.google.com/maps?file=api&v=2&key=<? echo"$key";?>" type="text/javascript"></script>
<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript">
<? if ($title == "fullview"){
echo"window.addEvent('domready', function(){
var divs = $$(['email']);
divs.each(function(div){
var link = $(div.id + 'code');
div.setStyle('display', 'none');
link.addEvent('click', function(e){
e = new Event(e);
divs.each(function(other){
if (other != div) other.setStyle('display', 'none');
});
div.setStyle('display', (div.getStyle('display') == 'block') ? 'none' : 'block');
e.stop();
});
});
});
";}?>
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=75');");
}
// End -->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Address Book v<?php echo ($version); ?>-<?php echo (!$title)?'home':$title ?></title>
<style type="text/css" media="screen">
@import url( style.css );
</style>
<style type="text/css" media="print">
@import url( print.css );
</style>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
</head>
<body <? if ($title == "google"){ echo"onload=\"load()\" onunload=\"GUnload()\"";}?> >
<div id="wrapper">
<div id="header-wrapper">
<?php include"header.php"; ?>
</div>
<div id="content">
<h1><?php echo (!$location)?'View Information':$location ?>:</h1>
<?php include("$content"); ?>
<div class="clearfix"></div>
</div>
<div id="footer-wrapper">
<div class="footer-wrapperBarLeft">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" class="donate" >
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="hide@address.com">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="CA">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" class="donate" src="http://www.studiolounge.net/donate.png" border="0" name="submit" alt="make a donation" />
</form>
</div>
<div class="footer-wrapperBarRight">designed by <a href="http://www.adam-patterson.com" target="_blank"><img src="images/adam-patterson.png" width="20" height="15" border="0" alt="adam patterson" /></a> </div>
</div>
<div id="print-show">Address Book by www.adam-patterson.com</div>
<?
$time_end = microtime(true);
$time = $time_end - $time_start;
//echo "<div id='load'>Loaded in $time seconds</div>\n";?>
</div>
</body>
</html>