<?php
/* Functions for Page */
function page_header()
{
include("/style/head.php");
}
function page_templatetop()
{
include("/style/page-body.php");
}
function page_templatebottom()
{
include("/style/page-body-end.php");
}
function page_footer()
{
include("/style/footer.php");
}
//---Database connection Functions---//
function connect_db()
{
global $shelldb_host, $shelldb_user, $shelldb_pass;
$mysql = mysql_connect ($shelldb_host, $shelldb_user, $shelldb_pass);
if(!$mysql)
{
echo "Sorry, An Error Has Occured, Please Email The Webmaster";
echo "Error:- <B>MySQL Cannot Connect To Database</B>";
exit;
}
$mysql = mysql_select_db ($shelldb_db);
if(!$mysql)
{
echo "Sorry, An Error Has Occured, Please Email The Webmaster";
echo "Error:- <B>MySQL Cannot Select The Database</B>";
exit;
}
}
?>