window.location.href = "login.php" '; exit(); } $username = $_SESSION['username']; $date = date("Y-m-d"); $checksubscription = mysqli_query($con, "SELECT * FROM `subscriptions` WHERE `username` = '$username' AND `active` = '1' AND `expires` >= '$date'") or die(mysqli_error($con)); if (mysqli_num_rows($checksubscription) < 1 && $_SESSION['rank'] != "5") { echo ' '; exit(); } include 'inc/header.php'; $totalaccounts = 0; $accountsquery = mysqli_query($con, "SELECT * FROM `accounts`") or die(mysqli_error($con)); while($row = mysqli_fetch_assoc($accountsquery)) { $countaccountquery = mysqli_query($con, "SELECT * FROM `$row[name]`") or die(mysqli_error($con)); $totalaccounts = $totalaccounts + mysqli_num_rows($countaccountquery); } $subscriptionquery = mysqli_query($con, "SELECT * FROM `subscriptions` WHERE `username` = '$username'") or die(mysqli_error($con)); if (mysqli_num_rows($subscriptionquery) < 1) { $subscription = "0"; } else { $subscription = "1"; while($row = mysqli_fetch_assoc($subscriptionquery)) { $subscriptiondate = $row["date"]; $subscriptionprice = $row["price"]; $subscriptionpayment = $row["payment"]; $package = $row["package"]; $subscriptionexpires = $row["expires"]; $packagequery = mysqli_query($con, "SELECT * FROM `packages` WHERE `id` = '$package'") or die(mysqli_error($con)); while($row1 = mysqli_fetch_array($packagequery)){ $subscriptionpackage = $row1['name']; } } } ?> <?php echo $website;?> - Dashboard
Dashboard
Welcome Back,
Total Accounts
11% Higher than last week
Generated Accounts
8% Higher than last week
Account Quality
100%
3% Higher than last week
Subscription
Expires: '.$subscriptionexpires.'
Date: '.$subscriptiondate.'
Price: $'.$subscriptionprice.'
Payment: '.$subscriptionpayment; } ?>

'.$row['message'].'

'.$row['writer'].' ('.$row['date'].')

'; } ?>