<?php session_start(); include("includes/config.php"); 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><style type="text/css">
.menutitle{
cursor:pointer;
margin-bottom: 5px;
background-color:#ECECFF;
color:#000000;
width:140px;
padding:2px;
text-align:center;
font-weight:bold;
/*/*/border:1px solid #000000;/* */
}
.submenu{
margin-bottom: 0.5em;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Project Fansite - v1.0 By Toli & Joe</title>
<link href="../global.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="banner">
<?
include("includes/banner stats.php");
?>
</div>
<div id="djsays">
<?
include("includes/menu.php");
?>
</div>
<div id="middle">
<div id="left">
<div id="navigation_top"></div>
<div id="small_middle" style="width: 231; height: 24">
<div id="masterdiv">
<?
include("includes/user_menu.php");
?>
</div>
</div>
<div id="small_bottom"></div>
<div id="online_top"></div>
<div id="small_middle" style="width: 231; height: 16">
<?
include("includes/online.php");
?>
</div>
<div id="small_bottom"></div>
<div id="radio_top"></div>
<div id="small_middle" style="width: 231; height: 16">
<?
include("includes/radio.php");
?>
</div>
<div id="small_bottom"></div>
<div id="disclaimer_top"></div>
<div id="small_middle" style="width: 231; height: 12">
<div align="left">
<?
include("includes/adds.php");
?>
</div>
<div align="left">
</div>
</div>
<div id="small_bottom"></div>
</div>
<div id="centre">
<div id="content_top"></div>
<div id="content_middle" style="width: 428; height: 27">
<?
// Checks if user is logged on
if($_SESSION['project_user'] === "yes"){
if($pvip == 1){
?>
<center><font color="#000000" face="Papyrus" size="2">Vip Face Shop</font></center>
<br />
Welcome to the VIP face shop, here you can buy special faces only buyable to VIP's.
The VIP Face Shop is always open, and is owned buy Project Fansite.
</div>
<div id="content_bottom"></div>
<br />
<div id="content_top"></div>
<div id="content_middle" style="width: 428; height: 27">
<?
if(empty($_GET['buy'])){ ?>
<center><font color="#000000" face="Papyrus" size="2">Faces:</font></center>
<table width="99%" cellpadding="0" cellspacing="0" style="border1px solid #000000">
<?
$color1 = "#EAEAEA";
$color2 = "#F0F0F0";
$row_count = 0;
$get_faces= mysql_query("SELECT * FROM vipfaceshop_faces ORDER BY id ASC")or die(mysql_error());
while($faces = mysql_fetch_assoc($get_faces)){
$row_color = ($row_count % 2) ? $color1 : $color2;
?>
<tr>
<td width="50px"><img src="<? echo $faces['path']; ?>" /></td><td style="background-color:<? echo $row_color; ?>">Name: <? echo $faces['name']; ?> Price: <? echo $faces['price']; ?><a href="faceshopvip.php?buy=yes&id=<? echo $faces['id']; ?>" style="float:right;">» Buy</a></td>
</tr>
<?
$row_count++;
}
?>
</table>
<?
} else {
echo"<center><font color='#000000' face='Papyrus' size='2'>Confirm Purchase</font></center>";
$get_face = mysql_query("SELECT * FROM vipfaceshop_faces WHERE id = ".$_GET['id']."")or die(mysql_error());
$face = mysql_fetch_assoc($get_face);
$credits = $ppfc - $face['price'];
mysql_query("UPDATE users SET pfcredits = '$credits' WHERE user_id = '$pid'")or die(mysql_error());
mysql_query("INSERT INTO user_faces(user_id, face_id, vipface) values('$pid', ".$face['id'].", 'Yes')")or die(mysql_error());
echo "You have succesfully bought the face<br />";
echo "<a href='VIPFaces'>Return</a>";
}
} else {
echo"<meta http-equiv='refresh' content='0;URL=index.php'>";
}
} else {
// if he/she isnt, then send them to index.php
echo"<meta http-equiv='refresh' content='0;URL=../index.php'>";
}
?>
</div>
<div id="content_bottom"></div>
</div>
<div id="right">
<div id="news_top"></div>
<div id="small_middle" style="width: 231; height: 19">
<?
include("includes/news.php");
?>
</div>
<div id="small_bottom"></div>
<div id="status_top"></div>
<div id="small_middle" style="width: 231; height: 22">
<?
include("includes/articles.php");
?>
</div>
<div id="small_bottom"></div>
<div id="featured_top"></div>
<div id="small_middle" style="width: 231; height: 25">
<?
include("includes/forum.php");
?>
</div>
<div id="small_bottom"></div>
</div>
</div>
<div id="footer"></div>
<? include("Includes/bottom.php"); ?>
</div>
</body>
</html>