Server IP : 162.240.98.243 / Your IP : 3.143.247.53 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/public_html/login.easenup.in/ |
Upload File : |
<?php session_start(); include('dbconnection.php'); require_once('../LoginManager.php'); require_once('../DBManager.php'); $narayan=LoginManager::currentUser(); $harilal=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM site_users WHERE userno='$harilal'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { switch ($rs[usertype]) { case 'Hospital': echo "<script>window.location='inhouse.php';</script>"; break; case 'RMO': echo "<script>window.location='NewRMO/inhouse.php';</script>"; break; case 'Doctor': echo "<script>window.location='NewDoctor/inhouse.php';</script>"; break; case 'FrontOffice': echo "<script>window.location='FrontOffice/inhouse.php';</script>"; // echo "<script>window.location='inhouse.php';</script>"; break; case 'Lab': echo "<script>window.location='lab_inhousefinal.php';</script>"; break; case 'Account': echo "<script>window.location='accountance/acc_inhouse.php';</script>"; break; case 'pharma': echo "<script>window.location='Pharmacy/pharma_inhouse.php';</script>"; //echo "<script>window.location='pharma_inhouse.php';</script>"; break; case 'Diagnostic': echo "<script>window.location='Diagnostic_inhouse.php';</script>"; break; case 'HR': echo "<script>window.location='NewHR/inhouse.php';</script>"; break; case 'Nurse': echo "<script>window.location='NewNurse/inhouse.php';</script>"; break; case 'OT': echo "<script>window.location='inhouse.php';</script>"; break; case 'Super_Admin': //echo "<script>window.location='superindex.php';</script>"; echo "<script>window.location='SuperAdmin/index.php';</script>"; case 'Family': echo "<script>window.location='/online/page.php';</script>"; break; case 'Optometrist': echo "<script>window.location='Optometrist/inhouse.php';</script>"; break; case 'counselor': echo "<script>window.location='inhouse.php';</script>"; break; case 'Clinic': echo "<script>window.location='inhouse.php';</script>"; break; case 'DP_SEMI_Pvt_ward': echo "<script>window.location='inhouse.php';</script>"; break; case 'DP_Pvt_Ward': echo "<script>window.location='inhouse.php';</script>"; break; case 'DP_Intensive_care': echo "<script>window.location='inhouse.php';</script>"; break; case 'DP_OT_complex': echo "<script>window.location='inhouse.php';</script>"; break; case 'DP_Accounts': echo "<script>window.location='inhouse.php';</script>"; break; case 'DP_reception': echo "<script>window.location='inhouse.php';</script>"; break; case 'DP_Doctors_Notepad': echo "<script>window.location='inhouse.php';</script>"; break; case 'OPD_Front_desk': echo "<script>window.location='opddrlist.php';</script>"; break; case 'DP_Pharmacy': echo "<script>window.location='inhouse.php';</script>"; break; case 'DP_Laboratory': echo "<script>window.location='inhouse.php';</script>"; break; case 'DP_Diagnostic': echo "<script>window.location='inhouse.php';</script>"; break; case 'DP_Accounts': echo "<script>window.location='inhouse.php';</script>"; break; case 'Vendor': echo "<script>window.location='/Venders/venders_basic.php';</script>"; break; case 'Subadmin': echo "<script>window.location='inhouse.php';</script>"; break; case 'LABORATORY': echo "<script>window.location='lab_inhouse.php';</script>"; break; case 'lab_Doctor': echo "<script>window.location='lab_inhouse.php';</script>"; break; default: echo "Invalid request <a href='logout.php'>Go back</a>"; } } ?>