This works for V2
login.php
<?php
/*-----------------------------------------------------
-- # Created by wrx 1/15/2010
-- # This file is Creative Commons Attribution-Share Alike 3.0
-- # Attribution &#8212; You must attribute the work in the manner specified by the author or licensor
(but not in any way that suggests that they endorse you or your use of the work).
# Share Alike &#8212; If you alter, transform, or build upon this work, you may distribute the
resulting work only under the same, similar or a compatible license.
-- # Filename : login.php
-----------------------------------------------------*/
session_start();
include "config.php";
echo "
<!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' />
<title>{$set['game_name']}</title>
<link href='style.css' rel='stylesheet' type='text/css' />
</head>
<body>
";
$IP = $_SERVER['REMOTE_ADDR'];
if(file_exists('ipbans/'.$IP))
{
echo("<b><font color=red size=+1>Your IP has been banned, there is no way around this.</font></b></body></html>");
$h->endpage();
exit;
}
echo "
<div id='topPan'>
<div id='topHeaderPan'>
<ul>
<li class='company'><a href=''>News</a></li>
<li class='company'><a href=''>Legal</a></li>
<li class='company'><a href=''>Privacy Policy</a></li>
<li class='company'><a href=''></a></li>
</ul>
<a href=''><img src='t1_images/logo.jpg' title='Game Title' alt='Game Title' width='191' height='84' border='0' /></a> </div>
<div id='toprightPan'>
<ul>
<li class='home'>Home</li>
<li class='about'><a href=''>Story</a></li>
<li class='contact'><a href=''>Contact</a></li>
</ul>
</div>
</div>
<div id='bodyPan'>
<div id='bodyleftPan'>
<br /><br />
<p class='greentext'>Game Description</p>
<p>Game information and description more information here
information and description more information here information and description more information here
information and description more information here information and description more information here
information and description more information here information and description more information here</p>
</div>
<div id='bodyrightPan'>
<div id='loginPan'>
<h2>Ballers <span> Login</span></h2>
<form action=authenticate.php method=post name=login>
<label>Baller ID:</label>
<input name='username' type='text' id='username' />
<label>Password:</label>
<input name='password' type='password' id='password' />
<input name='Input' type='submit' class='button' value='Login' />
</form>
<ul>
<li class='nonregister'>Not a baller ?</li>
<li class='register'><a href='register.php'>Resister now</a> </li>
</ul>
</div>
<div id='loginBottomPan'> </div>
";
//////Start Top Users/////////////
echo "<div id='servicesPan'> </div><div id='servicesBodyPan'><b class='greentext'> Top Users :</b>";
$utop=mysql_query("SELECT * FROM users ORDER BY level DESC LIMIT 0"); /* ORDER BY 'level' is default,change to your desired order pref.. Set LIMIT to number of top users to display ex : LIMIT 5 */
echo "<table align='center' width='90%'><tr class='coltext'><td><b class='coltext'>Username</b></td><td><b class='coltext'>Level</b></td></tr>";
while($r=mysql_fetch_array($utop))
{
echo "<tr><td><img src=t1_images/user.png>".htmlentities(stripslashes($r['username']))."</td><td>".abs(intval($r['level']))."</td></tr>";
}
echo "</table></div><div id='servicesBottomPan'> </div>";
//////End Top Users///////////////
echo "
</div>
</div>
<div id='footermainPan'>
<div id='footerPan'>
<ul>
<li><a href=''>Home</a>| </li>
<li><a href=''>Privacy Policy</a>| </li>
<li><a href=''>Legal</a> | </li>
<li><a href=''>Register</a> |</li>
<li><a href=''>Contact</a> </li>
</ul>
";
/////////////Online Users/////////////
$numb = mysql_num_rows(mysql_query("SELECT userid FROM users"));
echo "<p class='onlineusers'> There are: ".number_format($numb)." registered users";
$online = mysql_num_rows(mysql_query("SELECT userid FROM users WHERE laston>(unix_timestamp()-15*60)"));
echo " | There are ".number_format($online)." users online</p>";
///////////End Online Users///////////
echo" <p class='copyright'>Creative Commons Attribution-Share Alike 3.0</p>
</div>
</div>
</body>
</html>
";
I changed the login around to become your other pages...IE: story
To use it on the other pages just change the name/s
Create
story.php
<?php
/*-----------------------------------------------------
-- # Login Template Created by wrx 1/15/2010
-- # Edited to story.php by Marzy 21/01/2010
-- # This file is Creative Commons Attribution-Share Alike 3.0
-- # Attribution &#38;#8212; You must attribute the work in the manner specified by the author or licensor
(but not in any way that suggests that they endorse you or your use of the work).
# Share Alike &#38;#8212; If you alter, transform, or build upon this work, you may distribute the
resulting work only under the same, similar or a compatible license.
-- # Filename : story.php
-----------------------------------------------------*/
session_start();
include "config.php";
echo "
<!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' />
<title>{$set['game_name']}</title>
<link href='style.css' rel='stylesheet' type='text/css' />
</head>
<body>
";
$IP = $_SERVER['REMOTE_ADDR'];
echo "
<div id='topPan'>
<div id='topHeaderPan'>
<ul>
<li class='company'><a href=''>News</a></li>
<li class='company'><a href=''>Legal</a></li>
<li class='company'><a href=''>Privacy Policy</a></li>
<li class='company'><a href=''></a></li>
</ul>
<a href=''><img src='t1_images/logo.jpg' title='Game Title' alt='Game Title' width='300' height='200' border='0' /></a> </div>
<div id='toprightPan'>
<ul>
<li class='home'><a href='login.php'>Home</li>
<li class='about'><a href='story.php'>Story</a></li>
<li class='contact'><a href=''>Contact</a></li>
</ul>
</div>
</div>
<div id='bodyPan'>
<div id='bodycenterPan'>
<br /><br />
<center><p class='greentext'><img src='t1_images/story.jpg'></p>
</ br>Story line here soon! </ center>";
echo "
</div>
</div>
<div id='footermainPan'>
<div id='footerPan'>
<ul>
<li><a href=''>Home</a>| </li>
<li><a href=''>Privacy Policy</a>| </li>
<li><a href=''>Legal</a> | </li>
<li><a href=''>Register</a> |</li>
<li><a href=''>Contact</a> </li>
</ul>
";
/////////////Online Users/////////////
$numb = mysql_num_rows(mysql_query("SELECT userid FROM users"));
echo "<p class='onlineusers'> There are: ".number_format($numb)." registered users";
$online = mysql_num_rows(mysql_query("SELECT userid FROM users WHERE laston>(unix_timestamp()-15*60)"));
echo " | There are ".number_format($online)." users online</p>";
///////////End Online Users///////////
echo" <p class='copyright'>Creative Commons Attribution-Share Alike 3.0</p>
</div>
</div>
</body>
</html>
";
contact.php
<?php
/*-----------------------------------------------------
-- # Login Template Created by wrx 1/15/2010
-- # Edited to contact.php by Marzy 21/01/2010
-- # This file is Creative Commons Attribution-Share Alike 3.0
-- # Attribution &#38;#8212; You must attribute the work in the manner specified by the author or licensor
(but not in any way that suggests that they endorse you or your use of the work).
# Share Alike &#38;#8212; If you alter, transform, or build upon this work, you may distribute the
resulting work only under the same, similar or a compatible license.
-- # Filename : contact.php
-----------------------------------------------------*/
session_start();
include "config.php";
echo "
<!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' />
<title>{$set['game_name']}</title>
<link href='style.css' rel='stylesheet' type='text/css' />
</head>
<body>
";
$IP = $_SERVER['REMOTE_ADDR'];
echo "
<div id='topPan'>
<div id='topHeaderPan'>
<ul>
<li class='company'><a href=''>News</a></li>
<li class='company'><a href='legal.php'>Legal</a></li>
<li class='company'><a href='privacy.php'>Privacy Policy</a></li>
<li class='company'><a href=''></a></li>
</ul>
<a href=''><img src='t1_images/logo.jpg' title='Game Title' alt='Game Title' width='300' height='200' border='0' /></a> </div>
<div id='toprightPan'>
<ul>
<li class='home'><a href='login.php'>Home</li>
<li class='about'><a href='story.php'>Story</a></li>
<li class='contact'><a href='contact.php'>Contact</a></li>
</ul>
</div>
</div>
<div id='bodyPan'>
<div id='bodycenterPan'>
<br /><br />
<center><p class='greentext'><img src='t1_images/contact.jpg'><p>PLEASE NOTE: The contact form below opens your email client...</p>";
echo "<fieldset><legend><font color=black>Contact Form</font></legend><center>
<form method=post action='mailto:admin@yoursite.com' enctype='text/plain'>
<table border=0 width=50% class=table>
<tr>
<td>Your Name:</td><td><input type= 'text' name= 'name'></td><tr>
<td>Your Email:</td><td><input type= 'text' name= 'email'></td><tr>
<td>Subject:</td><td>
<select name= 'subject'>
<option value='Account Enquiry'>Account Enquiry</option>
<option value='Website Problems'>Website Problems</option>
<option value='Advertising Plan'>Advertising Plan</option>
<option selected>Select a Option</option>
</select>
</td><tr>
<td colspan=2>Your Message:</td><tr>
<td colspan=2><textarea name='message' rows='10' cols='50'></textarea></td><tr>
<td colspan=2><input type='submit' value='Submit'></td>
</table>
</form>";
///end of contact form
echo "
</div>
</div>
<div id='footermainPan'>
<div id='footerPan'>
<ul>
<li><a href=''>Home</a>| </li>
<li><a href=''>Privacy Policy</a>| </li>
<li><a href=''>Legal</a> | </li>
<li><a href=''>Register</a> |</li>
<li><a href=''>Contact</a> </li>
</ul>
";
/////////////Online Users/////////////
$numb = mysql_num_rows(mysql_query("SELECT userid FROM users"));
echo "<p class='onlineusers'> There are: ".number_format($numb)." registered users";
$online = mysql_num_rows(mysql_query("SELECT userid FROM users WHERE laston>(unix_timestamp()-15*60)"));
echo " | There are ".number_format($online)." users online</p>";
///////////End Online Users///////////
echo" <p class='copyright'>Creative Commons Attribution-Share Alike 3.0</p>
</div>
</div>
</body>
</html>
";
Use this image below or create your own