OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
creamAdmin
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/17/2025 10:17:24 AM
rwxrwxr-x
📁
PHPMailer
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📄
addPro.php
800 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
dash.php
0 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
dashboard.php
21.19 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
db_connect.php
292 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
mail.php
2.01 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
proUsers.php
21.74 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
send_otp.php
1.38 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
userActivity.php
13.57 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
verification.php
4.83 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
verify_otp.php
644 bytes
05/19/2025 10:07:22 AM
rw-r--r--
Editing: addPro.php
Close
<?php include 'db_connect.php'; $pro = "Pro"; $end_date = isset($_POST['end_date']) ? $_POST['end_date'] : ''; $userId = isset($_POST['userId']) ? $_POST['userId'] : ''; // Corrected SQL query to insert data $sql = "INSERT INTO cream_subscription (userID, end_date,plan) VALUES (?, ?,?)"; $stmt = $conn->prepare($sql); // Bind parameters and execute $stmt->bind_param("iss", $userId, $end_date, $pro); // "i" for integer and "s" for string // Execute the statement if ($stmt->execute()) { header("Location: proUsers.php?success=true"); exit(); // Ensure the script stops execution after the redirect } else { // If something goes wrong with the query, you can handle it here (e.g., show an error message) echo "Error: " . $stmt->error; } $stmt->close();