Created
November 19, 2010 18:59
-
-
Save cwage/706959 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once '../classes/user.php'; | |
$usr = new clsUser(); | |
if (isset($_POST['hdnReg']) && $_POST['hdnReg'] == 1) { | |
//[todo] need to check for duplicate usernames | |
$usr->userName = $_POST['txtUName']; | |
$usr->set_password($_POST['pwdPswd']); | |
$usr->firstName = $_POST['txtFnme']; | |
$usr->lastName = $_POST['txtLnme']; | |
$usr->email = $_POST['txtEml']; | |
$usr->Save(); | |
} | |
else { | |
if (isset($_COOKIE['tblgn']) && md5($_COOKIE['tblgn'].SCT_STR) == $_COOKIE['tbsct']) { | |
$usr->userName = $_COOKIE['tblgn']; | |
$usr->Load(); | |
} | |
else { | |
echo "bad cookie!"; | |
} | |
} | |
if ($usr) { | |
$summary = $usr->getBaitsSummary(); | |
} | |
?> | |
<div class="maincont"> | |
<?php include 'user_nav.php'; ?> | |
<div class="leftcol"> | |
<span class="totalbaits"> | |
<span class="graytext">Total outstanding baits:</span> | |
<span class="lgtext"><strong>$<?php print($summary['Total']); ?></strong></span> | |
</span> | |
<div class="headline">My Dashboard</div> | |
<ul class="mainnav"> | |
<li class="active"><a href="">Baits</a></li> | |
<li><a href="feeds.php">Feeds</a></li> | |
<li><a href="friends.php">Friends</a></li> | |
<li><a href="mybands.php">Bands</a></li> | |
<!--li><a href="settings.php">Settings</a></li--> | |
<li><a href="account.php">Account</a></li> | |
<!--li class="navbox_fav_cont"><div id="navbox_fav"><a href="favorites.php">Favorites</a></div></li> | |
<li class="navbox_rec_cont"><div id="navbox_rec"><a href="recs.php">Recommendations</a></div></li--> | |
</ul> | |
<?php | |
//if (isset($_POST['baits']) && $_POST['baits'] == 'songs') { | |
include 'songs.php'; | |
//} | |
//else { | |
// include 'shows.php'; | |
//} | |
?> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment