include("_/includes/connection.php"); ?>
include "_/sourcecode/header.php"; ?>
if(isset($_GET['subcriptionconfirm'])){
include "_/sourcecode/pricingconfirmation.php";
}
?>
if(isset($_GET['id'])){
$subscriptionid = $_GET['id'];
$_SESSION['subscriptionid']=$subscriptionid;
}
?>
if ($username){
include "_/sourcecode/primaryposts.php";
include "_/sourcecode/dashnav.php";
}else{
include "_/sourcecode/homenav.php";
}
?>
if(!isset($_GET['id'])){
include "_/sourcecode/pricing.php";
}else{
$info = mysqli_query($con, "select * from newregister where email ='$username'");
$get_info =mysqli_fetch_array($info);
$phone = $get_info['phone'];
$email = $username;
$sql = mysqli_query($con, "select * from subscription where username = '$username' LIMIT 1");
$info =mysqli_fetch_array($sql);
$type = $info['type'];
if ($type == "Premium"){
$price = 2000000;
}else if ($type == "Premium Pro") {
$price = 5000000;
}
include "_/sourcecode/pricingconfirm.php";
}
?>