UnknownSec Bypass
403
:
/
home
/
growthpharma
/
public_html
/
Master@Growth
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
session_check.php
<?php if(!isset($_SESSION['adminid'])) { $_SESSION['mode1']="Access Denied!"; header("location:index.php"); exit; } if(isset($_SESSION['adminid'])) { $userinfo=mysql_fetch_array(mysql_query("select * from admininfo where adminid='".$_SESSION['adminid']."'")); $permissions=mysql_fetch_array(mysql_query("select * from userpermission where roleid='".$userinfo['type']."'")); function pname() { return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1); } $currentpage=pname(); $checkpage=array( "dashboard.php"=>'viewadmin', "addadmin.php"=>'addadmin', "manageadmin.php"=>'viewadmin', "editadmin.php"=>'editadmin', "deleteadmin.php"=>'deleteadmin', "addpermissions.php"=>'addadmin', "editpermissions.php"=>'editadmin', "addrole.php"=>'addadmin', "managerole.php"=>'viewadmin', "editrole.php"=>'editadmin', "deleterole.php"=>'deleteadmin', "updatestatus.php"=>'editadmin', "addcat.php"=>'addcat', "managecat.php"=>'viewcat', "editcat.php"=>'editcat', "deletecat.php"=>'deletecat', "addsubcat.php"=>'addsubcategory', "managesubcat.php"=>'viewsubcategory', "editsubcat.php"=>'editsubcategory', "deletesubcat.php"=>'deletesubcategory', "addtype.php"=>'addtype', "managetype.php"=>'viewtype', "edittype.php"=>'edittype', "deletetype.php"=>'deletetype', "testscroll.php"=>'addadmin', "addpro.php"=>'addproduct', "managepro.php"=>'viewproduct', "product_detail.php"=>'viewproduct', "editpro.php"=>'editproduct', "deletepro.php"=>'deleteproduct', "addmedia.php"=>'addmedia', "managemedia.php"=>'viewmedia', "editmedia.php"=>'editmedia', "deletemedia.php"=>'deletemedia', "managepage.php"=>'viewpage', "addpage.php"=>'addpage', "editpage.php"=>'editpage', "deletepage.php"=>'deletepage', "addbanner.php"=>'addbanner', "editbanner.php"=>'editbanner', "managebanner.php"=>'viewbanner', "deletebanner.php"=>'deletebanner', "addmenu.php"=>'addmenu', "editmenu.php"=>'editmenu', "menustatus.php"=>'editmenu', "deletemenu.php"=>'deletemenu', "managemenu.php"=>'viewmenu', "addsubmenu.php"=>'addsubmenu', "editsubmenu.php"=>'editsubmenu', "deletesubmenu.php"=>'deletesubmenu', "managesubmenu.php"=>'viewsubmenu', "addsubsubmenu.php"=>'addsubmenu', "editsubsubmenu.php"=>'editsubmenu', "deletesubsubmenu.php"=>'deletesubmenu', "managesubsubmenu.php"=>'viewsubmenu', "addminisite.php"=>'addsubmenu', "editminisite.php"=>'editsubmenu', "deleteminisite.php"=>'deletesubmenu', "manageminisite.php"=>'viewsubmenu', "minisite.php"=>'addsubmenu', "addminisitesubmenu.php"=>'addsubmenu', "manageminisitesubmenu.php"=>'addsubmenu', "managewpage.php"=>'viewmenu', "addbrochure.php"=>'addbanner', "managebrochure.php"=>'viewbanner', "managesitecms.php"=>'viewmenu', "deletewpage.php"=>'deletebanner', "addphoto.php"=>'addbanner', "managephoto.php"=>'viewbanner', "deletephoto.php"=>'deletebanner', "editphoto.php"=>'editbanner', "addvideo.php"=>'addbanner', "managevideo.php"=>'viewbanner', "deletevideo.php"=>'deletebanner', "editvideo.php"=>'editbanner', "addnews.php"=>'addbanner', "managenews.php"=>'viewbanner', "editnews.php"=>'editbanner', "deletenews.php"=>'deletebanner', "editwebpage.php"=>'editbanner', "newsstatus.php"=>'editbanner', "deletebrochure.php"=>'deletebanner', "editbrochure.php"=>'editbanner', "ssmenustatus.php"=>'editbanner', "addtender.php"=>'addbanner', "edittender.php"=>'editbanner', "deletetender.php"=>'editbanner', "managetender.php"=>'viewbanner', "addfooter.php"=>'addbanner', "editfooter.php"=>'editbanner', "deletefooter.php"=>'editbanner', "managefooter.php"=>'viewbanner', "minisitesubmenustatus.php"=>'editsubmenu', "addmessage.php"=>'addbanner', "editmessage.php"=>'editbanner', "managemessage.php"=>'viewbanner', "deletemessage.php"=>'deletebanner', "addmessagegallery.php"=>'addbanner', "managemessagegallery.php"=>'viewbanner', "managecompany.php"=>'viewbanner', "addcompany.php"=>'addbanner', "addinvestor.php"=>'addsubcategory', "manageinvestor.php"=>'viewsubcategory', "editinvestor.php"=>'editsubcategory', "minisitegallery.php"=>'viewbanner', "managesitegallery.php"=>'viewbanner', "adddepartment.php"=>'addbanner', "managedepartment.php"=>'viewbanner', "addjob.php"=>'addbanner', "managejob.php"=>'viewbanner', "deletesitepage.php"=>'deletebanner', "career.php"=>'addbanner', "managecareer.php"=>'viewbanner', "jobstatus.php"=>'editbanner', "editjob.php"=>'editbanner', "deletejob.php"=>'deletebanner', "deletedepartment.php"=>'deletebanner', "addinvestorfor.php"=>'addbanner', "manageaddinvestorfor.php"=>'viewbanner', "deletedepartment.php"=>'deletebanner', "addfaq.php"=>'addbanner', "editfaq.php"=>'deletebanner', "managefaq.php"=>'viewbanner', "deletefaq.php"=>'deletebanner' , "addtenderheader.php"=>'addbanner', "manageaddtenderheader.php"=>'viewbanner', "addstock.php"=>'addbanner', "managestock.php"=>'viewbanner', "editstock.php"=>'editbanner', "deletestock.php"=>'deletebanner', "addbsense.php"=>'addbanner', "managebsense.php"=>'viewbanner', "editbsense.php"=>'editbanner', "deletebsense.php"=>'deletebanner', "addcsr.php"=>'addbanner', "managecsr.php"=>'viewbanner', "editcsr.php"=>'editbanner', "deletecsr.php"=>'deletebanner', "addcsrbanner.php"=>'addbanner', "managecsrbanner.php"=>'viewbanner', "editcsrbanner.php"=>'editbanner', "deletecsrbanner.php"=>'deletebanner', "addmedia.php"=>'addbanner', "managemedia.php"=>'viewbanner', "editmedia.php"=>'editbanner', "deletemedia.php"=>'deletebanner', "companystatus.php"=>'deletebanner', "editcompany.php"=>'editbanner', "minisitemenustatus.php"=>'editbanner', "editsitecms.php"=>'editbanner', "editsitegallery.php"=>'editbanner', "editmessagegallery.php"=>'editbanner', "deletemessagegallery.php"=>'deletebanner', "deleteinvestorfor.php"=>'deletesubcategory', "editinvestorfor.php"=>'editsubcategory', "deleteinvestor.php"=>'deletesubcategory', "manageaddtenderheader.php"=>'viewbanner', "deletetenderheader.php"=>'deletebanner', "edittenderheader.php"=>'editbanner', "deletesitegallery.php"=>'deletebanner', "deletecareer.php"=>'deletebanner', "editcareer.php"=>'viewbanner', "editdepartment.php"=>'editbanner', "deletecsrcms.php"=>'deletebanner', "addcsrgallery.php"=>'addbanner', "managecsrphotogallery.php"=>'viewbanner', "deletecsrgallery.php"=>'deletebanner', "addfounder.php"=>'addbanner', "managefounder.php"=>'viewbanner', "editfounder.php"=>'editbanner', "deletefounder.php"=>'deletebanner', "addproduct.php"=>'addbanner', "manageproduct.php"=>'viewbanner', "editproduct.php"=>'editbanner', "deleteproduct.php"=>'editbanner', "productstatus.php"=>'editbanner', "addcategory.php"=>'addbanner', "managecategory.php"=>'viewbanner', "editcategory.php"=>'editbanner', "deletecategory.php"=>'editbanner', "categorystatus.php"=>'editbanner', "addgallery.php"=>'addbanner', "editgallery.php"=>'editbanner', "managegallery.php"=>'viewbanner', "deletegallery.php"=>'editbanner', "gallerystatus.php"=>'editbanner', "managecontent.php"=>'viewbanner', "contentstatus.php"=>'editbanner', "editcontent.php"=>'editbanner', "addcontent.php"=>'addbanner', "editpageinner.php"=>'editbanner', "pageinnerstatus.php"=>'editbanner', "managepageinner.php"=>'viewbanner', "addnew.php"=>'addbanner', "managenew.php"=>'viewbanner', "newproductstatus.php"=>'editbanner', "editnewproduct.php"=>'editbanner', "deletenewproduct.php"=>'deletebanner', "whtnewstatus.php"=>'editbanner', "jobdepartmentstatus.php"=>'editbanner', "resumeposted.php"=>'viewbanner', "addproduct-test.php"=>'viewbanner', "addcolourcard.php"=>'viewbanner', "managecolourcard.php"=>'viewbanner', "colourcardstatus.php"=>'viewbanner', "editcolourcard.php"=>'editbanner', "deletecolourcards.php"=>'editbanner', "addcontactpage.php"=>'viewbanner', "managecontact.php"=>'viewbanner', "editcontactpage.php"=>'editbanner', "deletecontactpage.php"=>'editbanner' ); $val=$permissions[$checkpage[$currentpage]]; //$page='dashboard.php'; if($val==0) { $_SESSION['mode1']="You have no permission to access this page"; echo "<script> history.go(-1) </script>"; exit(); } } ?>
Copyright © 2024 - UnknownSec