![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/.cursor-server/data/User/History/-312d9de1/ |
<?php
session_start();
require_once 'config/database.php';
// Check if user is logged in
if (!isset($_SESSION['user_id'])) {
header('Location: /auth/login.php');
exit;
}
// Get user name from database
$stmt = $pdo->prepare("SELECT name FROM users WHERE id = ?");
$stmt->execute([$_SESSION['user_id']]);
$user = $stmt->fetch();
$user_name = $user['name'] ?? 'User';
$credits = $_SESSION['credits'] ?? 10;
$current_plan = $_SESSION['plan'] ?? 'free';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pricing - SoundStudioPro</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: #0f0f23;
color: white;
line-height: 1.6;
}
.navbar {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding: 1rem 2rem;
position: sticky;
top: 0;
z-index: 100;
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1400px;
margin: 0 auto;
}
.logo {
font-size: 1.8rem;
font-weight: 700;
color: #667eea;
text-decoration: none;
}
.nav-menu {
display: flex;
align-items: center;
gap: 2rem;
}
.nav-link {
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
color: #667eea;
}
.user-menu {
display: flex;
align-items: center;
gap: 1rem;
}
.credits {
background: linear-gradient(135deg, #667eea, #764ba2);
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 600;
}
.main-container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.page-title {
font-size: 3rem;
font-weight: 700;
margin-bottom: 1rem;
text-align: center;
background: linear-gradient(135deg, #667eea, #764ba2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.page-subtitle {
color: rgba(255, 255, 255, 0.7);
font-size: 1.2rem;
text-align: center;
margin-bottom: 3rem;
}
.pricing-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.pricing-card {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
padding: 2rem;
text-align: center;
transition: all 0.3s ease;
position: relative;
}
.pricing-card:hover {
transform: translateY(-4px);
border-color: rgba(102, 126, 234, 0.3);
}
.pricing-card.current {
border-color: #667eea;
background: rgba(102, 126, 234, 0.1);
}
.plan-name {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.plan-price {
font-size: 2.5rem;
font-weight: 700;
color: #667eea;
margin-bottom: 0.5rem;
}
.plan-period {
color: rgba(255, 255, 255, 0.6);
font-size: 0.9rem;
margin-bottom: 2rem;
}
.plan-features {
list-style: none;
margin-bottom: 2rem;
}
.plan-features li {
padding: 0.5rem 0;
color: rgba(255, 255, 255, 0.8);
}
.plan-features li:before {
content: "✓ ";
color: #48bb78;
font-weight: bold;
}
.btn {
width: 100%;
padding: 1rem;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
border: none;
border-radius: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.btn.current {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.6);
cursor: default;
}
.current-badge {
position: absolute;
top: -10px;
right: 20px;
background: #48bb78;
color: white;
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 600;
}
</style>
</head>
<body>
<nav class="navbar">
<div class="nav-container">
<a href="/dashboard.php" class="logo">🎵 SoundStudioPro</a>
<div class="nav-menu">
<a href="/dashboard.php" class="nav-link">Dashboard</a>
<a href="/create.php" class="nav-link">Create Music</a>
<a href="/library.php" class="nav-link">My Library</a>
<a href="/community.php" class="nav-link">Community</a>
<a href="/pricing.php" class="nav-link active">Pricing</a>
</div>
<div class="user-menu">
<div class="credits">
<i class="fas fa-coins"></i> <?php echo $credits; ?> Credits
</div>
<a href="/auth/logout.php" class="nav-link">
<i class="fas fa-sign-out-alt"></i> Logout
</a>
</div>
</div>
</nav>
<div class="main-container">
<h1 class="page-title">Choose Your Plan</h1>
<p class="page-subtitle">Unlock the full potential of AI music creation</p>
<div class="pricing-grid">
<div class="pricing-card <?php echo $current_plan === 'free' ? 'current' : ''; ?>">
<?php if ($current_plan === 'free'): ?>
<div class="current-badge">Current Plan</div>
<?php endif; ?>
<div class="plan-name">Free</div>
<div class="plan-price">$0</div>
<div class="plan-period">Forever</div>
<ul class="plan-features">
<li>10 credits per month</li>
<li>Basic music generation</li>
<li>MP3 download format</li>
<li>Community support</li>
<li>Basic lyrics generation</li>
</ul>
<?php if ($current_plan === 'free'): ?>
<button class="btn current">Current Plan</button>
<?php else: ?>
<button class="btn">Get Started</button>
<?php endif; ?>
</div>
<div class="pricing-card <?php echo $current_plan === 'starter' ? 'current' : ''; ?>">
<?php if ($current_plan === 'starter'): ?>
<div class="current-badge">Current Plan</div>
<?php endif; ?>
<div class="plan-name">Starter</div>
<div class="plan-price">$9.99</div>
<div class="plan-period">per month</div>
<ul class="plan-features">
<li>100 credits per month</li>
<li>Advanced music generation</li>
<li>Multiple download formats</li>
<li>Priority support</li>
<li>Advanced lyrics generation</li>
<li>Music video creation</li>
</ul>
<?php if ($current_plan === 'starter'): ?>
<button class="btn current">Current Plan</button>
<?php else: ?>
<button class="btn">Upgrade Now</button>
<?php endif; ?>
</div>
<div class="pricing-card <?php echo $current_plan === 'pro' ? 'current' : ''; ?>">
<?php if ($current_plan === 'pro'): ?>
<div class="current-badge">Current Plan</div>
<?php endif; ?>
<div class="plan-name">Pro</div>
<div class="plan-price">$24.99</div>
<div class="plan-period">per month</div>
<ul class="plan-features">
<li>Unlimited credits</li>
<li>Premium music generation</li>
<li>All download formats</li>
<li>24/7 priority support</li>
<li>Advanced AI features</li>
<li>Commercial licensing</li>
<li>API access</li>
</ul>
<?php if ($current_plan === 'pro'): ?>
<button class="btn current">Current Plan</button>
<?php else: ?>
<button class="btn">Go Pro</button>
<?php endif; ?>
</div>
</div>
<div style="text-align: center; margin-top: 3rem;">
<a href="/dashboard.php" class="btn" style="width: auto;">
<i class="fas fa-arrow-left"></i> Back to Dashboard
</a>
</div>
</div>
</body>
</html>