Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
assignment.work.zone /
user /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
197
B
-r--r--r--
2026-04-01 03:43
AssignmentWorkZone.apk
19.5
MB
-rw-r--r--
2026-03-28 16:09
assignment.php
20.18
KB
-rw-r--r--
2026-03-31 10:04
checkout.php
10.61
KB
-rw-r--r--
2026-03-13 17:01
dashboard.php
10.53
KB
-rw-r--r--
2026-03-31 10:21
history.php
3.6
KB
-rw-r--r--
2026-03-12 12:52
logout.php
91
B
-rw-r--r--
2026-03-11 23:27
pending.php
4.56
KB
-rw-r--r--
2026-03-12 01:29
plan-current.php
2.55
KB
-rw-r--r--
2026-03-11 23:27
profile.php
5.04
KB
-rw-r--r--
2026-03-28 15:45
referral-commissions.php
6.07
KB
-rw-r--r--
2026-03-12 00:37
referral.php
8.61
KB
-rw-r--r--
2026-03-28 15:31
select-plan.php
3.4
KB
-rw-r--r--
2026-03-11 23:27
support.php
12.43
KB
-rw-r--r--
2026-03-12 13:23
team-commission.php
2.82
KB
-rw-r--r--
2026-03-12 12:52
team-details.php
4.46
KB
-rw-r--r--
2026-03-12 15:31
withdraw-history.php
3.53
KB
-rw-r--r--
2026-03-12 12:52
withdraw.php
8.18
KB
-rw-r--r--
2026-03-12 15:18
wp-blog-header.php
2.74
KB
-r--r--r--
2026-04-01 03:43
wp-cron.php
2.74
KB
-rw-r--r--
2026-04-01 03:43
Save
Rename
<?php require_once '../includes/config.php'; require_once '../includes/header_dashboard.php'; require_once '../includes/sidebar.php'; $stmt = $pdo->prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$_SESSION['user_id']]); $user = $stmt->fetch(); if (!$user || $user['status'] != 'active') { header("Location: ../login.php"); exit; } // Get user's active plan to know assignment_pay $plan_stmt = $pdo->prepare("SELECT p.assignment_pay FROM user_plans up JOIN plans p ON up.plan_id = p.id WHERE up.user_id = ? AND up.status = 'active' LIMIT 1"); $plan_stmt->execute([$user['id']]); $assignment_pay = $plan_stmt->fetchColumn() ?: 0; // Fetch Today's Assignment (Consistent selection for the whole day) // We use the day of the year to pick a consistent index from the pool $day_seed = (int)date('z'); // 0 to 365 $count_stmt = $pdo->query("SELECT COUNT(*) FROM assignments"); $total_pool = $count_stmt->fetchColumn(); // --- Assignment Cycle Logic --- $stmt_settings = $pdo->query("SELECT setting_key, setting_value FROM site_settings WHERE setting_key IN ('assignment_days_limit', 'referrals_per_cycle')"); $settings = $stmt_settings->fetchAll(PDO::FETCH_KEY_PAIR); $days_limit = (int)($settings['assignment_days_limit']); $refers_needed_per_cycle = (int)($settings['referrals_per_cycle']); // Get current referral count for this user $ref_stmt = $pdo->prepare("SELECT COUNT(*) FROM referrals WHERE referrer_id = ?"); $ref_stmt->execute([$user['id']]); $current_referral_count = $ref_stmt->fetchColumn(); $is_cycle_blocked = false; $new_referrals_count = max(0, $current_referral_count - $user['last_refill_referral_count']); // Initialize cycle if not set if (is_null($user['assignment_work_started_at'])) { // Check their earliest submission to guess when they actually started working $first_sub = $pdo->prepare("SELECT MIN(created_at) FROM assignment_submissions WHERE user_id = ?"); $first_sub->execute([$user['id']]); $first_date = $first_sub->fetchColumn(); // If they have history, use that date. If not, use now. $start_date = $first_date ?: date('Y-m-d H:i:s'); // For existing users with history, we count referrals starting from their TOTAL count // to ensure they need NEW referrals to refill. $upd = $pdo->prepare("UPDATE users SET assignment_work_started_at = ?, last_refill_referral_count = ? WHERE id = ?"); $upd->execute([$start_date, $current_referral_count, $user['id']]); $user['assignment_work_started_at'] = $start_date; $user['last_refill_referral_count'] = $current_referral_count; } // Calculate dynamic expiration $expiry_time = strtotime($user['assignment_work_started_at']) + ($days_limit * 86400); // Check if expired if ($expiry_time < time()) { // Check if they have enough new referrals to refill if ($new_referrals_count >= $refers_needed_per_cycle) { // Refill logic: Advance start time to effectively start a new cycle $now = date('Y-m-d H:i:s'); $new_last_refill_count = $user['last_refill_referral_count'] + $refers_needed_per_cycle; $upd = $pdo->prepare("UPDATE users SET assignment_work_started_at = ?, last_refill_referral_count = ? WHERE id = ?"); $upd->execute([$now, $new_last_refill_count, $user['id']]); $user['assignment_work_started_at'] = $now; $user['last_refill_referral_count'] = $new_last_refill_count; $new_referrals_count = max(0, $current_referral_count - $new_last_refill_count); $is_cycle_blocked = false; } else { $is_cycle_blocked = true; } } if ($total_pool > 0 && !$is_cycle_blocked) { $offset = $day_seed % $total_pool; $assign_stmt = $pdo->prepare("SELECT * FROM assignments ORDER BY id ASC LIMIT 1 OFFSET :offset"); $assign_stmt->bindValue(':offset', (int)$offset, PDO::PARAM_INT); $assign_stmt->execute(); $current_assignment = $assign_stmt->fetch(); } else { $current_assignment = null; } $error = ''; $success = ''; if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_FILES['work_file']) && $current_assignment) { // Check if user already submitted today $check_stmt = $pdo->prepare("SELECT id FROM assignment_submissions WHERE user_id = ? AND DATE(created_at) = CURDATE()"); $check_stmt->execute([$user['id']]); if ($check_stmt->rowCount() > 0) { $error = "You have already submitted an assignment today. Please come back tomorrow."; } else { $upload_dir = '../assets/files/submissions/'; if (!is_dir($upload_dir)) mkdir($upload_dir, 0777, true); $file_name = $_FILES['work_file']['name']; $file_tmp = $_FILES['work_file']['tmp_name']; $ext = strtolower(pathinfo($file_name, PATHINFO_EXTENSION)); $allowed = ['pdf', 'doc', 'docx', 'jpg', 'png', 'zip', 'txt']; if (in_array($ext, $allowed)) { $new_name = "sub_" . time() . "_" . $user['id'] . "." . $ext; if (move_uploaded_file($file_tmp, $upload_dir . $new_name)) { $sub_stmt = $pdo->prepare("INSERT INTO assignment_submissions (user_id, assignment_id, file_path, pay_amount, status) VALUES (?, ?, ?, ?, 'pending')"); $sub_stmt->execute([$user['id'], $current_assignment['id'], $upload_dir . $new_name, $assignment_pay]); $success = "Work submitted successfully! Admin will review it shortly."; } else { $error = "File upload failed."; } } else { $error = "Invalid file type. Allowed: PDF, DOC, DOCX, JPG, PNG, ZIP, TXT."; } } } ?> <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px;"> <h2 style="margin: 0;">Today's Assignment</h2> <button onclick="openModal()" class="btn-outline" style="padding: 8px 20px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; border-radius: 12px; border-width: 1px;"> <i class="fas fa-info-circle"></i> How to Work? </button> </div> <?php if ($error): ?> <div class="badge badge-danger" style="display:block; margin-bottom:20px; text-align:center; padding:15px; font-size:1rem; border-radius:var(--border-radius);"><?php echo htmlspecialchars($error); ?></div> <?php endif; ?> <?php if ($success): ?> <div class="badge badge-success" style="display:block; margin-bottom:20px; text-align:center; padding:15px; font-size:1rem; border-radius:var(--border-radius);"><?php echo htmlspecialchars($success); ?></div> <?php endif; ?> <?php if ($current_assignment): ?> <div class="card" style="text-align:left; margin-bottom:30px; border-left:4px solid var(--primary-color);"> <h3 style="margin-bottom:10px;"><?php echo htmlspecialchars($current_assignment['topic']); ?></h3> <p style="color:var(--text-muted); font-size:0.9rem; margin-bottom:15px;"> Subject: <?php echo htmlspecialchars($current_assignment['subject']); ?> </p> <div style="background:rgba(255,255,255,0.05); padding:15px; border-radius:8px; margin-bottom:20px;"> <strong style="display:block; margin-bottom:10px;">Instructions:</strong> <div style="max-height: 180px; overflow-y: auto; padding-right: 10px; line-height: 1.6;" class="custom-scrollbar"> <?php echo nl2br(htmlspecialchars($current_assignment['instructions'])); ?> </div> </div> <p style="font-weight:600; font-size:1.1rem; color:var(--primary-color);"> Potential Earning: Rs <?php echo number_format($assignment_pay, 2); ?> </p> </div> <div class="card" style="text-align:left;"> <h3 style="margin-bottom:20px;">Submit Your Work</h3> <form method="POST" action="" enctype="multipart/form-data"> <div class="form-group"> <label>Select File</label> <input type="file" name="work_file" class="form-control" required> </div> <button type="submit" class="btn-primary" style="width:100%; margin-top:10px;">Upload & Submit for Review</button> </form> </div> <?php elseif ($is_cycle_blocked): ?> <div class="card blocked-card" style="text-align:center; padding:60px 30px; border:none; position:relative; overflow:hidden; background: linear-gradient(145deg, var(--card-bg), rgba(231, 76, 60, 0.05));"> <!-- Background Decoration --> <div style="position:absolute; top:-50px; right:-50px; width:150px; height:150px; background:rgba(231, 76, 60, 0.1); border-radius:50%; filter:blur(40px);"></div> <div style="position:absolute; bottom:-50px; left:-50px; width:150px; height:150px; background:rgba(231, 76, 60, 0.1); border-radius:50%; filter:blur(40px);"></div> <div style="position:relative; z-index:1;"> <div style="width:100px; height:100px; background:rgba(231, 76, 60, 0.1); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 25px;"> <i class="fas fa-hourglass-end" style="font-size:3rem; color:#e74c3c; animation: pulse 2s infinite;"></i> </div> <h2 style="color:#fff; margin-bottom:10px; font-weight:700;">Assignment Cycle Ended</h2> <p style="color:var(--text-muted); font-size:1.1rem; margin-bottom:30px;">Your <?php echo $days_limit; ?>-day earning period has expired. <br>To unlock your next cycle, please follow the requirement below.</p> <div style="max-width:500px; margin:0 auto; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.05); padding:30px; border-radius:20px; box-shadow:0 15px 35px rgba(0,0,0,0.2);"> <p style="margin-bottom:20px; font-size:1rem; font-weight:500;">Requirement: Add <span style="color:#e74c3c; font-weight:700;"><?php echo $refers_needed_per_cycle; ?> New Referrals</span></p> <!-- Progress Bar --> <?php $progress_percent = min(100, ($new_referrals_count / $refers_needed_per_cycle) * 100); ?> <div style="height:12px; background:rgba(255,255,255,0.05); border-radius:10px; margin-bottom:15px; position:relative; overflow:hidden;"> <div style="position:absolute; top:0; left:0; height:100%; width:<?php echo $progress_percent; ?>%; background:linear-gradient(90deg, #e74c3c, #ff7675); border-radius:10px; transition: width 1s ease-in-out;"></div> </div> <div style="display:flex; justify-content:space-between; align-items:center;"> <span style="font-size:0.9rem; color:var(--text-muted);">Current Progress</span> <span style="font-weight:700; color:#fff;"><?php echo $new_referrals_count; ?> / <?php echo $refers_needed_per_cycle; ?></span> </div> </div> <div style="margin-top:40px; display:flex; gap:15px; justify-content:center; flex-wrap:wrap;"> <a href="referral.php" class="btn-primary" style="padding:15px 40px; font-weight:700; box-shadow: 0 10px 20px rgba(231, 76, 60, 0.2); background:#e74c3c; border-color:#e74c3c;"> <i class="fas fa-user-plus" style="margin-right:10px;"></i> Start Inviting </a> <a href="support.php" class="btn-outline" style="padding:15px 40px; border-color:rgba(255,255,255,0.1); color:rgba(255,255,255,0.6);"> Need Help? </a> </div> </div> </div> <style> @keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } } .blocked-card { animation: fadeIn 0.5s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 600px) { .blocked-card { padding: 40px 20px !important; } .blocked-card h2 { font-size: 1.5rem; } .btn-primary, .btn-outline { width: 100%; } } </style> <?php else: ?> <div class="card" style="text-align:center; padding:50px;"> <i class="fas fa-clipboard-check" style="font-size:3rem; color:var(--text-muted); margin-bottom:20px;"></i> <p>No new assignments are currently available. Please check back later.</p> </div> <?php endif; ?> <!-- Instruction Modal --> <div id="instructionModal" class="modal-overlay"> <div class="modal-content"> <div class="modal-header"> <h3><i class="fas fa-lightbulb" style="color: var(--primary-color); margin-right: 10px;"></i> Work Submission Guide</h3> <button class="close-modal" onclick="closeModal()">×</button> </div> <div class="modal-body custom-scrollbar"> <div class="guide-step-card"> <div class="step-badge">Phase 1</div> <div class="guide-step-content"> <div class="step-icon-premium"><i class="fas fa-book-open"></i></div> <div class="step-text"> <h4>Understand Topic</h4> <p>Read the subject and topic carefully. Ensure you follow all specific instructions provided in the details box.</p> </div> </div> </div> <div class="guide-step-card"> <div class="step-badge">Phase 2</div> <div class="guide-step-content"> <div class="step-icon-premium"><i class="fas fa-pen-nib"></i></div> <div class="step-text"> <h4>Write on Paper Sheet</h4> <p>Write your complete assignment clearly on a <b>Clean Paper Sheet</b>. Use a blue or black pen for a professional look.</p> </div> </div> </div> <div class="guide-step-card"> <div class="step-badge">Phase 3</div> <div class="guide-step-content"> <div class="step-icon-premium"><i class="fas fa-camera"></i></div> <div class="step-text"> <h4>Capture Clear Photo</h4> <p>Take a high-quality picture of your written sheet. Make sure the lighting is good and the <b>text is easy to read</b>.</p> </div> </div> </div> <div class="guide-step-card"> <div class="step-badge">Phase 4</div> <div class="guide-step-content"> <div class="step-icon-premium"><i class="fas fa-cloud-upload-alt"></i></div> <div class="step-text"> <h4>Upload & Submit</h4> <p>Select your photo or scan (JPG, PNG, PDF) and click "Submit". Double check before uploading the wrong file.</p> </div> </div> </div> <div class="guide-step-card" style="border-bottom: none; margin-bottom: 0;"> <div class="step-badge">Phase 5</div> <div class="guide-step-content"> <div class="step-icon-premium"><i class="fas fa-check-double"></i></div> <div class="step-text"> <h4>Approval & Earning</h4> <p>Our team will verify your handwriting and quality. Once approved (24-48h), balance will be added instantly.</p> </div> </div> </div> </div> <div class="modal-footer"> <button class="btn-primary" style="width: 100%; border-radius: 12px; height: 50px; font-weight: 700; letter-spacing: 0.5px;" onclick="closeModal()">I UNDERSTAND, LET'S WORK</button> </div> </div> </div> <style> .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); display: none; align-items: center; justify-content: center; z-index: 10000; padding: 20px; opacity: 0; transition: opacity 0.3s ease; } .modal-overlay.show { display: flex; opacity: 1; } .modal-content { background: #111; width: 100%; max-width: 520px; border-radius: 28px; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8); overflow: hidden; transform: translateY(40px) scale(0.95); transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); } .modal-overlay.show .modal-content { transform: translateY(0) scale(1); } .modal-header { padding: 25px 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(to right, rgba(0, 210, 106, 0.05), transparent); } .modal-header h3 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; } .close-modal { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-muted); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; } .close-modal:hover { background: rgba(255, 0, 0, 0.1); color: #ff4b2b; } .modal-body { padding: 30px; max-height: 65vh; overflow-y: auto; } .guide-step-card { position: relative; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); } .step-badge { position: absolute; right: 0; top: 0; font-size: 10px; text-transform: uppercase; font-weight: 800; color: var(--primary-color); background: rgba(0, 210, 106, 0.1); padding: 4px 10px; border-radius: 20px; letter-spacing: 1px; } .guide-step-content { display: flex; gap: 20px; } .step-icon-premium { width: 50px; height: 50px; background: linear-gradient(135deg, rgba(0, 210, 106, 0.1), rgba(0, 210, 106, 0.03)); border: 1px solid rgba(0, 210, 106, 0.2); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--primary-color); flex-shrink: 0; transition: all 0.4s; } .guide-step-card:hover .step-icon-premium { transform: rotate(-5deg) scale(1.1); background: var(--primary-color); color: #000; } .step-text h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: #fff; } .step-text p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; } .modal-footer { padding: 0 30px 30px; } body.light-theme .modal-content { background: #fff; border-color: #eee; } body.light-theme .modal-header h3, body.light-theme .guide-step h4 { color: var(--text-dark); } </style> <script> function openModal() { const modal = document.getElementById('instructionModal'); modal.style.display = 'flex'; setTimeout(() => { modal.classList.add('show'); }, 10); } function closeModal() { const modal = document.getElementById('instructionModal'); modal.classList.remove('show'); setTimeout(() => { modal.style.display = 'none'; }, 300); } // Show automatically on first visit of the session window.addEventListener('DOMContentLoaded', () => { if (!sessionStorage.getItem('assignment_guide_shown')) { setTimeout(openModal, 800); sessionStorage.setItem('assignment_guide_shown', 'true'); } }); // Close modal if clicking outside content window.onclick = function(event) { const modal = document.getElementById('instructionModal'); if (event.target == modal) { closeModal(); } } </script> <?php require_once '../includes/footer_dashboard.php'; ?>