File: /home/u590867752/domains/himanshuartinstitute.com/public_html/wall/user/setting.php
<?php
session_start();
include($_SERVER['DOCUMENT_ROOT']."/wall/baba/shiva.php");
include($_SERVER['DOCUMENT_ROOT']."/wall/bcknds/user-auth.php");
?>
<?php
$create_post_name = $login_user;
$create_post_image = "default-user.png";
$userData = mysqli_query($conn, "
SELECT name, image, about
FROM wall_users
WHERE username='$login_user'
LIMIT 1
");
$userRow = mysqli_fetch_assoc($userData);
$username = !empty($userRow['name']) ? $userRow['name'] : $login_user;
$userimg = !empty($userRow['image']) ? $userRow['image'] : "default-user.png";
$about = !empty($userRow['about']) ? $userRow['about'] : "";
if($userData && mysqli_num_rows($userData) > 0){
if(!empty($userRow['name'])){
$create_post_name = $userRow['name'];
}
if(!empty($userRow['image'])){
$create_post_image = $userRow['image'];
}
}
error_reporting(0);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Setting | HAI WALL</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="../../codes/glry/js/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<link rel="shortcut icon" href="https://www.himanshuartinstitute.com/wall/bcknds/hai-wall.png" type="image/x-icon" >
<link href="../bcknds/css/wall-home.css?v=20260722-5" media="screen" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<!-- HEADER -->
<?php include($_SERVER['DOCUMENT_ROOT']."/wall/bcknds/header.php"); ?>
<!-- MAIN -->
<div class="container">
<!-- LEFT SIDEBAR -->
<div class="sidebar leftcolmn">
<!-- TOP LIKED POST -->
<?php include($_SERVER['DOCUMENT_ROOT']."/wall/bcknds/top-liked-post.php"); ?>
<!-- NEW USER SLIDER -->
<?php include($_SERVER['DOCUMENT_ROOT']."/wall/bcknds/new-users.php"); ?>
</div>
<!-- CENTER WALL -->
<div class="haifeed-colum">
<div class="wall-container">
<div class="card profile-card">
<h2>Setting</h2>
<div class="profile-section">
<div class="section-header">
<h2>Change Your Password</h2>
</div>
<input type="password" name="oldPassword" id="oldPassword" placeholder="Old Password" autocomplete="new-password" autocorrect="off" spellcheck="false">
<input type="password" id="newPassword" placeholder="New Password">
<input type="password" id="confirmPassword" placeholder="Re-enter New Password">
<button id="changePasswordBtn">Save</button>
</div>
<div class="profile-section">
<h2>Delete Your Profile</h2>
<div class="section-header"><button class="delacont" id="deleteAccountBtn"><i class="fa fa-ban" aria-hidden="true"></i> Delete Profile</button></div>
</div>
</div>
</div></div>
<!-- RIGHT SIDEBAR -->
<div class="sidebar">
<!-- LATEST POSTS -->
<?php include($_SERVER['DOCUMENT_ROOT']."/wall/bcknds/latest-post-slider.php"); ?>
<!-- HAI BLOG SLIDER -->
<?php include($_SERVER['DOCUMENT_ROOT']."/wall/bcknds/hai-blog-slider.php"); ?>
<!-- FOLLOW US -->
<?php include($_SERVER['DOCUMENT_ROOT']."/wall/bcknds/follow-us.php"); ?>
</div>
</div>
<!-- FOOTER -->
<?php include($_SERVER['DOCUMENT_ROOT']."/wall/bcknds/footer.php"); ?>
<script src="../bcknds/hai-blog-slidr.js"></script>
<script src="../bcknds/search.js"></script>
<script src="../bcknds/user-menu.js"></script>
<script src="../bcknds/dashboard.js"></script>
<script src="../bcknds/jv-setting.js"></script>
<a href="javascript:history.back()" class="back-floating"><i class="fa fa-arrow-left"></i></a>
<div id="overlay" class="popup-overlay" style="display:none;"></div>
<div id="deletePopup" style="display:none;">
<h3>Are you sure?</h3>
<input type="password" id="deletePassword" placeholder="Enter Password">
<button id="confirmDelete">Delete</button>
<button id="cancelDelete">Cancel</button>
</div>
</body>
</html>