Skip to content

Instantly share code, notes, and snippets.

@cwage
Created November 19, 2010 17:50
Show Gist options
  • Save cwage/706855 to your computer and use it in GitHub Desktop.
Save cwage/706855 to your computer and use it in GitHub Desktop.
<?php
require_once '../classes/user.php';
include 'header.php';
?>
<table width="100%">
<tr>
<td colspan="5">
<?php
if (isset($_COOKIE['tblgn']) && md5($_COOKIE['tblgn'].SCT_STR) == $_COOKIE['tbsct']) {
$usr = new clsUser();
$usr->userName = $_COOKIE['tblgn'];
if (!$usr->Load()) {
if (isset($_GET['e'])) {
echo('<div class="error">'.$_GET['e'].'</div>');
}
include 'splash.php';
}
else {
if (isset($_GET['act']) && $_GET['act'] == md5($usr->userName.$usr->email)) {
$usr->Activate();
print("Congratulations! You may now bait bands and songs!");
}
if (!$usr->isBand()) {
include 'home.php';
} else {
include 'band_home.php';
}
}
}
else {
include 'splash.php';
}
?>
</td>
</tr>
</table>
<?php
include 'footer.php'
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment