Code: Select all
<?php
echo '<body bgcolor="#FFFFFF"><p align="center">';
$pass = is_logged($session_id);
if ($pass == "N")
{
include("member_login.html");
}
elseif ($pass =="Y")
{
$larInfo = get_user_info(get_account_id($session_id),"",false, false);
echo "<b>Welcome " . $larInfo['acount_primary'] . " " . $larInfo['account_name'] . "! ";
echo 'You are now logged into your account area. <a href="?page=account&next_page=account&session_id=' . strval($session_id) . '&action=logout"><big>Log Me Out</big></a></b><br>';
$credits = credit_exsist($account_id);
if ($credits > 0)
{
echo "<br /><b>" . $larInfo['acount_primary'] . ", you have an available account credit of " . setup("currency") . number_format($credits,2) . "</b></p>";
}
$dba = new ps_DB;
$q = "SELECT domain_host_id
FROM domains
WHERE domain_account_id = '$account_id'
AND domain_host_status = 1";
$dba->query($q);
if ($dba->num_rows() > 0)
{
echo '<hr size="1" noshade><p><b>Please use your username and password on file to login to the area(s) below that you have subscribed to.</b><br><br>';
while ( $dba->next_record() )
{
$membership_id = $dba->f("domain_host_id");
$dbz = new ps_DB;
$q = "SELECT membership_name, membership_directory_id
FROM membership
WHERE membership_id = '$membership_id'";
$dbz->query($q);
$dbz->next_record();
$directory_id = $dbz->f("membership_directory_id");
if ($directory_id != 0)
{
$dbd = new ps_DB;
$q = "SELECT directory_url
FROM directory
WHERE directory_id = '$directory_id'";
$dbd->query($q);
$dbd->next_record();
$directory_url = $dbd->f("directory_url");
echo '
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="field_t"><tr>
<td width="20%"><b>' . $dbz->p("membership_name") . '</b></td><td width="49%">
<a href="http://danceurdc.org/HTML/MEMBERS/Members2hidden.php"><big><big>
<font color="#0000FF" size="+1" face="Arial, Helvetica, sans-serif"><strong>CLICK
HERE TO ENTER MEMBERS AREA</strong></font></big></big></a></td></tr>
</table></b>,<br><hr size="1" noshade>';
}
}
}
else
{
echo '
<p>Your account does not have any active subscriptions at this point.<br>
If you have already placed an order, and it shows up below as pending, please
be patient. We are processing your order and will complete it as soon as possible.<br></p>';
}
?>