Hackfut Security File Manager
Current Path:
/home/u126195517/domains/rddvc.com/public_html/members
home
/
u126195517
/
domains
/
rddvc.com
/
public_html
/
members
/
📁
..
📁
assets
📄
bank.php
(4.65 KB)
📄
bank_form.php
(1.83 KB)
📄
bio.php
(3.01 KB)
📄
bio_form.php
(1.9 KB)
📄
breadcrumb.php
(250 B)
📄
brochure_download_kriya.php
(676 B)
📄
brochures.php
(4.47 KB)
📄
brochures_form.php
(2.54 KB)
📄
change_dvc_color.php
(7.48 KB)
📄
change_dvc_color_form.php
(23.01 KB)
📄
change_dvc_design.php
(2.94 KB)
📄
change_dvc_design_links.php
(2.95 KB)
📄
changepassword.php
(6.39 KB)
📄
changepasswordform.php
(1.89 KB)
📄
counter.php
(1.88 KB)
📄
cover_image.php
(3.05 KB)
📄
cover_image_form.php
(4.58 KB)
📁
cssphp
📄
diamond.php
(23.79 KB)
📄
disp_pln_amt.js
(454 B)
📄
enquiry.php
(4.13 KB)
📄
enquiry_form.php
(837 B)
📄
final_dvc.php
(2.74 KB)
📄
final_dvc_qrlink.php
(3.13 KB)
📄
final_dvc_qrlink_form.php
(6.09 KB)
📄
final_payment.php
(11.18 KB)
📄
final_payment_form.php
(1.52 KB)
📄
footer.php
(312 B)
📄
gallery.php
(2.8 KB)
📄
gallery_form.php
(3.8 KB)
📄
get_discount_rate.php
(1.24 KB)
📄
get_plan_amount.php
(1.05 KB)
📄
gold.php
(15.13 KB)
📄
googlereview.php
(3.04 KB)
📄
googlereview_form.php
(1.99 KB)
📄
header.php
(1.99 KB)
📄
movetop.php
(806 B)
📄
myprofile.php
(3.2 KB)
📄
payment-failed.php
(96 B)
📄
payment-success.php
(1.01 KB)
📄
payment.php
(3.16 KB)
📄
payment_link.php
(6.29 KB)
📄
products.php
(2.81 KB)
📄
products_form.php
(8.18 KB)
📄
profile_form.php
(10.99 KB)
📄
redeemcoupon.js
(1.17 KB)
📄
renewal.php
(6.5 KB)
📄
renewal_form.php
(2.16 KB)
📄
scripts.php
(1.46 KB)
📄
sidebar_diamond.php
(3.18 KB)
📄
sidebar_gold.php
(2.69 KB)
📄
social_links.php
(3.06 KB)
📄
social_links_form.php
(5.84 KB)
📄
statistics.php
(4.31 KB)
📄
tax_info.php
(3.03 KB)
📄
tax_info_form.php
(2.08 KB)
📄
user_forgot_password.php
(3.62 KB)
📄
user_new_password.php
(6.55 KB)
📄
youtube_links.php
(2.81 KB)
📄
youtube_links_form.php
(3.4 KB)
Editing: renewal.php
<?php // Start PHP session (if not already started) if (session_status() == PHP_SESSION_NONE) { session_start(); require_once('assets/controlers/rddvcparamconfig.php'); // Corrected the path if (!isset($_SESSION['userid'])) { // Redirect to the login page if not logged in header("Location: ../login.php"); exit(); } // Access the username from the session $userid = $_SESSION['userid']; $rddvcplan = $_SESSION['rddvcplan']; $query = "SELECT * FROM rd_dvc_user_dt WHERE user_id = :uid"; $stmt = $RDSDVCUSER->prepare($query); $stmt->bindParam(':uid', $userid); $stmt->execute(); $row = $stmt->fetch(PDO::FETCH_ASSOC); } ?> <!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>RD's Digital Visiting Card | Upgrade Plan </title> <link href="../images/rddvc_icon.png" rel="shortcut icon" /> <!-- Template CSS --> <link rel="stylesheet" href="assets/css/style-liberty.css"> <!-- google fonts --> <link href="//fonts.googleapis.com/css?family=Nunito:300,400,600,700,800,900&display=swap" rel="stylesheet"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="disp_pln_amt.js"></script> <script src="redeemcoupon.js"></script> </head> <body class="sidebar-menu-collapsed"> <div class="se-pre-con"></div> <section> <!-- sidebar menu start --> <?php if ($rddvcplan == "diamond") { include_once('sidebar_diamond.php'); } else if ($rddvcplan == "gold") { include_once('sidebar_gold.php'); } ?> <!-- //sidebar menu end --> <!-- header-starts --> <?php include_once('header.php'); ?> <!-- //header-ends --> <!-- main content start --> <div class="main-content"> <!-- content --> <div class="container-fluid content-top-gap"> <!-- breadcrumbs --> <nav aria-label="breadcrumb" class="mb-4"> <ol class="breadcrumb my-breadcrumb"> <li class="breadcrumb-item"><a href="myprofile.php">Home</a></li> <li class="breadcrumb-item"><a href="myprofile.php">Setting</a></li> <li class="breadcrumb-item active" aria-current="page">Renew Plan</li> </ol> </nav> <!-- //breadcrumbs --> <!-- card heading --> <div class="cards__heading"> <h3>Renew and Update Plan<span></span></h3> </div> <!-- //card heading --> <!-- statistics data --> <div class="statistics"> <div class="row"> <div class="col-xl-6 pr-xl-2"> <div class="row"> <div class="col-sm-6 pr-sm-2 statistics-grid"> <div class="card card_border border-primary-top p-4"> <i class="lnr lnr-users"> </i> <h3 class="text-primary number" style="text-transform:capitalize"><?php echo isset($row['user_name']) ? $row['user_name'] : ''; ?></h3> <p class="stat-text">https://www.rddvc.com/<?php echo isset($row['login_name']) ? $row['login_name'] : ''; ?> </p> </div> </div> <div class="col-sm-6 pl-sm-2 statistics-grid"> <div class="card card_border border-primary-top p-4"> <i class="lnr lnr-database"> </i> <h3 class="text-secondary number" style="text-transform:capitalize"><?php echo isset($row['rddvc_plan']) ? $row['rddvc_plan'] : ''; ?></h3> <p class="stat-text">Current Plan</p> </div> </div> </div> </div> <div class="col-xl-6 pl-xl-2"> <div class="row"> <div class="col-sm-6 pr-sm-2 statistics-grid"> <div class="card card_border border-primary-top p-4"> <i class="lnr lnr-clock"> </i> <h3 class="text-danger number" style="text-transform:capitalize"><?php echo isset($row['login_renew_date']) ? $row['login_renew_date'] : ''; ?></h3> <p class="stat-text">Renewal Date</p> </div> </div> <div class="col-sm-6 pl-sm-2 statistics-grid"> <div class="card card_border border-primary-top p-4"> <i class="lnr lnr-eye"> </i> <h3 class="text-success number"><span id="viewCount">Loading...</span></h3> <p class="stat-text">Visitors</p> </div> </div> </div> </div> </div> </div> <!-- //statistics data --> <!-- Tech News --> <?php include_once('renewal_form.php'); ?> <!-- //Tech News --> </div> <!-- //content --> </div> <!-- main content end--> </section> <!--footer section start--> <?php include_once('footer.php'); ?> <!--footer section end--> <!-- move top --> <?php include_once('movetop.php'); ?> <!-- /move top --> <!-- Scripts --> <?php include_once('scripts.php'); ?> <script> function fetchDVCViews() { // Assuming you have the userid variable defined somewhere in your code var userid = <?php echo json_encode($row['user_id']); ?>; // Replace with the actual user ID value // Fetch record count from the server fetch('assets/kiryacontrolers/user_view_counter.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', // Adjusted content type }, body: 'userid=' + encodeURIComponent(userid), // Use URL-encoded form data }) .then(response => response.json()) .then(data => { console.log('Response from server:', data); if (data.success) { // Update the record count on the page document.getElementById('viewCount').textContent = data.count; } else { console.error(data.message); } }) .catch(error => console.error('Error fetching record count:', error)); } // Fetch record count initially fetchDVCViews(); // Refresh every minute setInterval(fetchDVCViews, 60000); </script> <!-- //Script --> </body> </html>
Upload File
Create Folder