Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*=========================
- Simple Login System
- ===========================
- Made by Winterpartys
- ===========================*/
- session_start();
- include "config.php";
- if ($session){
- echo "<title>Winterpartys.ORG - $session</title>";
- }else{
- echo "<title>Winterpartys.ORG</title>";
- }
- include "inc-/news.php";
- ?>
- <head>
- <meta http-equiv="Content-Language" content="en-us">
- </head>
- <body bgcolor="#C0C0C0">
- <table border="0" width="100%" id="table1" bgcolor="#000000">
- <tr>
- <td>
- <p align="center"><b><font face="Tahoma" size="6" color="#FFFFFF">
- Winterpartys.ORG</font></b></td>
- </tr>
- </table>
- <table border="0" width="100%" id="table2" bgcolor="#000000">
- <tr>
- <td>
- <p align="center"><font color="#FFFFFF" face="Tahoma" size="2">Navigation bar here soon....</font></td>
- </tr>
- </table>
- <table border="0" width="100%" id="table3" bgcolor="#000000" height="134">
- <tr>
- <td width="165" bgcolor="#C0C0C0">
- <font face="Tahoma">
- <?php
- if($session&&$row['ban']==1)
- {
- echo "<font face='Tahoma' size='2'>It appears you have been user banned, please contact at webmaster@domain.com to see for changes.</font>";
- }
- elseif($session&&$session==$rowq['ip'])
- {
- echo "<font face='Tahoma' size='2'>It appears you have been ip banned, please contact at webmaster@domain.com to see for changes.</font>";
- }
- elseif($session&&$row['ban']==0)
- {
- echo"<font face='Tahoma' size='2'><b>Hello, $session!</b>
- <ul>
- <li>You have <b>".$row['coins']."</b> coins</li>
- <li><a href='?page=what-are-coins'>What are coins?</li>
- <li><a href='?page=edit'>Edit my profile</a><ul>
- <li><a href='?page=edit&do=pass'>Password</a></li>
- <li><a href='?page=edit&do=email'>Email</a></li>
- <li><a href='?page=edit&do=profile'>Profile</a></li>
- </ul></li>";
- if($row['rank'] == 4)
- {
- echo '<li><a href="admincp">AdminCP</a></li>';
- }
- echo" <li><a href='?page=logout'>Logout</a></li>";
- }else{
- echo"<title>Winterpartys.ORG - Site</title><form method='POST' action='?page=login'>
- <p><b><font face='Tahoma' size='2'>Please login, or <a href='?page=register'>
- register</a>.</font></b></p>
- <table border='0' width='100%' id='table1'>
- <tr>
- <td width='102'><font face='Tahoma' size='2'>Username:</font></td>
- <td><font size='1' face='Tahoma'>
- <input type='text' name='user' size='20'></font></td>
- </tr>
- <tr>
- <td width='102'><font face='Tahoma' size='2'>Password:</font></td>
- <td><font size='1' face='Tahoma'>
- <input type='password' name='pass' size='20'></font></td>
- </tr>
- </table>
- <font size='1' face='Tahoma'><input type='submit' value='Submit' name='B1'></font></form>";
- }
- ?></font></td>
- <td bgcolor="#E8E8E8">
- <font face="Tahoma"><?php
- if ($_GET['page'] == "register"){
- include "inc-/register.php";
- }elseif($_GET['page'] == "complete"){
- include "inc-/complete.php";
- }elseif($_GET['page'] == "login"){
- include "inc-/login.php";
- }elseif($_GET['page'] == "logout"){
- include "inc-/logout.php";
- }elseif($_GET['page'] == "edit"){
- include "inc-/edit.php";
- }elseif($_GET['page'] == "what-are-coins"){
- include "inc-/wac.php";
- }else{
- echo '<table border="0" width="100%" id="table4">
- <tr>
- <td width="84"><b><font face="Tahoma" size="2">News Title:</font></b></td>
- <td><?php echo $title ?></td>
- </tr>
- <tr>
- <td width="84"><b><font face="Tahoma" size="2">Description:</font></b></td>
- <td><?php echo $text ?></td>
- </tr>
- <tr>
- <td width="84"><b><font face="Tahoma" size="2">Author:</font></b></td>
- <td><?php echo $author ?></td>
- </tr>
- <tr>
- <td width="84"><b><font face="Tahoma" size="1">Date:</font></b></td>
- <td><?php echo $date ?></td>
- </tr>
- </table>';
- } ?></font></td>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement