query($sql); if (!$result || $result->num_rows == 0) { session_destroy(); redirect(SITE_URL . '/login.php'); exit; } $member = $result->fetch_assoc(); // Check approval and payment status $is_approved = $member['is_approved'] == 1; $payment_status = $member['payment_status'] == 1; $payment_amount = get_setting('payment_amount'); $is_verified = $member['is_verified'] == 1; // If payment amount is 0, grant immediate access after email verification if ($payment_amount == 0 && $is_verified) { $has_access = true; } else { // Original logic: need approval and payment $has_access = ($is_approved && ($payment_status || $payment_amount == 0)); } // If approved but payment not done and payment amount > 0, redirect to payment info if ($is_approved && !$payment_status && $payment_amount > 0) { redirect(SITE_URL . '/payment-info.php'); exit; } $page_title = 'Dashboard'; include 'includes/header.php'; ?>
Please check your email and click the verification link to activate your account.
Thank you for your interest! We have received your registration. To access all verified survey sites, please:
If you have already made the payment and sent the proof, your account will be activated within 24 working hours. Please be patient!
View Payment InstructionsThank you for your registration! We are verifying your account details and will activate your account within 24 working hours (Monday to Saturday, 9 AM to 6 PM IST).
You will receive full access to all verified survey sites once your account is approved.
Browse through our collection of verified survey sites and start earning! Click on any survey site below to view details and visit their website.
query($ranked_sql); // Store ranked surveys in arrays $first_ranked = null; $other_ranked = []; if ($ranked_result && $ranked_result->num_rows > 0) { while ($survey = $ranked_result->fetch_assoc()) { if ($survey['rank'] == 1) { $first_ranked = $survey; } else { $other_ranked[] = $survey; } } } // Get unranked surveys (randomized once per page load) $unranked_sql = "SELECT s.*, COALESCE(AVG(r.rating), 0) as avg_rating, COUNT(r.id) as review_count FROM survey_sites s LEFT JOIN survey_reviews r ON s.id = r.survey_id AND r.is_approved = 1 WHERE s.rank IS NULL GROUP BY s.id ORDER BY RAND()"; $unranked_result = $conn->query($unranked_sql); $unranked_surveys = []; if ($unranked_result && $unranked_result->num_rows > 0) { while ($survey = $unranked_result->fetch_assoc()) { $unranked_surveys[] = $survey; } } $has_surveys = ($first_ranked !== null || !empty($other_ranked) || !empty($unranked_surveys)); ?>