<?php
//update here
if(isset($_GET['update'])) require 'update.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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="prsaar-connect" content="<?php echo $Display->ConnectURL; ?>" />
<title><?php echo $Display->Title; ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo $Display->PrsaarURL; ?>pr-theme/default/style.css" />
</head>
<body>
<div id="header">
<div id="profile_name">
<a href="<?php _P($Display->PrsaarURL); ?>"><?php echo $Display->ProfileName; ?></a>
</div>
<div id="profile_tagline">
<?php echo $Display->ProfileTagline; ?>
</div>
</div>
<div id="main_menu">
<?php if($Display->ProfileTypes)
{
foreach($Display->ProfileTypes as $Key => $KeyValue)
{
print " <span style='color:white'>//</span> <a href='".$Display->PrsaarURL."category/?category={$KeyValue}'>".ucfirst($KeyValue)."</a> ";
}
print " <span style='color:white'>//</span> ";
}
?>
</div>
<div id="left_col">
<h2> Meta </h2>
<ul> <li> <a href="<?php _P($Display->PrsaarURL) ?>pr-admin/">Admin</a> </li>
<li> <a href="<?php _P($Display->PrsaarURL) ?>friend">All Friends</a> </li>
<li> <a href="<?php _P($Display->PrsaarURL) ?>scratch">All Scratches</a> </li>
<li> <a href="<?php _P($Display->PrsaarURL) ?>scratch/write-scratch.php">Write a Scratch</a> </li>
<li> <a href="<?php _P($Display->PrsaarURL) ?>askme">My Answers</a> </li>
<li> <a href="<?php _P($Display->PrsaarURL) ?>askme/ask-question.php">Askme</a> </li>
</ul>
<?php
$Display->ShowProfileLink();
if($Display->ShowLink)
{
foreach($Display->ShowLink as $Key => $KeyValue)
{
print " <h2> $Key </h2> <ul> ";
foreach($KeyValue as $Key2 => $KeyValue2)
{
print " <li> <a href='".$KeyValue2['url']."'>".$KeyValue2['name']."</a> </li> ";
}
print " </ul> ";
}
}
$Display->ShowProfileBlock();
if($Display->ShowBlock)
{
foreach($Display->ShowBlock as $Key=>$KeyValue)
{
if($KeyValue['category'] === 'sidebar')
{
print("<div class=\"block_sidebar\"> \n");
print($KeyValue['value']);
print(" \n </div> \n");
}
}
}
?>
</div>
<div id="page_content">
<?php // get the main content here
$ProfilePage;
switch($ProfilePage)
{
case 'category':
require 'category.php';
break;
case 'scratch':
require 'scratch.php';
break;
case 'friend':
require 'friend.php';
break;
case 'addscratch':
require 'addscratch.php';
break;
case 'answer':
require 'answer.php';
break;
case 'askme':
require 'askme.php';
break;
case 'viewanswer':
require 'viewanswer.php';
break;
case 'main':
case 'index':
default:
require 'main.php';
break;
}
?>
</div>
<div id="footer">
<?php
if($Display->ShowBlock)
{
foreach($Display->ShowBlock as $Key=>$KeyValue)
{
if($KeyValue['category'] === 'footer')
{
print("<div class=\"block_footer\"> \n");
print($KeyValue['value']);
print(" \n </div> \n");
}
}
}
?>
<font size="-1"> "<?php echo $Display->ProfileName; ?>" is powered by <a href='http://colour.prsaar.com/'>//Prsaar Colour(alpha)</a> Social Networking Platform. <!-- Originally developed by vikrant http://vikrant.co.in/ --> </font>
</div>
</body>
</html>