[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: sidebar.php
<div class="vertical-menu"> <div data-simplebar class="h-100"> <!--- Sidemenu --> <div id="sidebar-menu"> <!-- Left Menu Start --> <?php //include("../functions.php"); $s_code = $_SESSION['s_code_Xw2119904']; $uname = $_SESSION['name_Xw2119904']; $stmt = $con->prepare("SELECT * FROM schools WHERE user_name = ? AND school_code = ?"); $stmt->execute(array($uname, $s_code)); $userstatus = $stmt->fetchAll(); // Initialize $namee to prevent potential errors $namee = null; foreach ($userstatus as $sta) { $namee = $sta['user_name']; $userid = $sta['id']; $school_name = $sta['school_name']; } if($namee != "Admin"){?> <ul class="metismenu list-unstyled" id="side-menu"> <li class="menu-title" data-key="t-menu">Menu</li> <li> <?php $permission_name = 'dashboard'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<a href="index"> <i data-feather="home"></i> <span data-key="t-dashboard">Dashboard</span> </a>'; } else {} ?> </li> <li> <a href="javascript: void(0);" class="has-arrow"> <i data-feather="users"></i> <span data-key="t-authentication">Resources</span> </a> <ul class="sub-menu" aria-expanded="false"> <?php $permission_name = 'houses'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="house" data-key="t-login">Houses</a></li>'; } else {} ?> <?php $permission_name = 'admission_doc'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="admission-docs" data-key="t-lock-screen">Admission Docs</a></li>'; } else {} ?> <?php $permission_name = 'admission_setup'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="admission-setup" data-key="t-lock-screen">Admission Setup</a></li>'; } else {} ?> </ul> </li> <li> <a href="javascript: void(0);" class="has-arrow"> <i data-feather="file-text"></i> <span data-key="t-pages">Placement list</span> </a> <ul class="sub-menu" aria-expanded="false"> <?php $permission_name = 'manage_cssps_list'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="manage-cssps" data-key="t-starter-page">Manage CSSPS list</a></li>'; } else {} ?> <?php $permission_name = 'all_payment'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="all-payment" data-key="t-starter-page">All payment</a></li>'; } else {} ?> <?php if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="upload_student" data-key="t-starter-page">Non-registered</a></li>'; } else {} ?> </ul> </li> <li> <a href="javascript: void(0);" class="has-arrow"> <i data-feather="briefcase"></i> <span data-key="t-components">Admission list</span> </a> <ul class="sub-menu" aria-expanded="false"> <?php $permission_name = 'manage_admission_list'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="manage-student" data-key="t-buttons">Manage Admission list</a></li>'; } else {} ?> <?php $permission_name = 'manage_house_location'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="manage-house-allocation" data-key="t-carousel">Manage House allocation</a></li> '; } else {} ?> <?php $permission_name = 'manage_class_location'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="manage-class-allocation" data-key="t-cards">Manage class allocation</a></li> '; } else {} ?> <?php $permission_name = 'manage_bed_location'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="manage_bed_location" data-key="t-cards">Manage bed allocation</a></li> '; } else {} ?> </ul> </li> <li> <a href="javascript: void(0);" class="has-arrow"> <i data-feather="briefcase"></i> <span data-key="t-components">Academic</span> </a> <ul class="sub-menu" aria-expanded="false"> <?php $permission_name = 'programme'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="programme" data-key="t-register">Programme</a></li>'; } else {} ?> <?php $permission_name = 'class_subject'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="classes" data-key="t-recover-password">Classes/Subject</a></li>'; } else {} ?> <?php $permission_name = 'Exams_timetable'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="time-table" data-key="t-recover-password">Exams timetable</a></li>'; } else {} ?> <?php $permission_name = 'Setup_semester'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="setup_semester" data-key="t-recover-password">Setup Semester</a></li>'; } else {} ?> <?php $permission_name = 'Assign_Class_Teacher'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="assign_class_teacher" data-key="t-recover-password">Assign class teacher</a></li>'; } else {} ?> <?php $permission_name = 'Upload_results'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="submit_result" data-key="t-recover-password">Upload results</a></li>'; } else {} ?> <?php $permission_name = 'Manage_results'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="manage-result" data-key="t-recover-password">Manage results</a></li>'; } else {} ?> <?php $permission_name = 'Promote_student'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="Promote_student" data-key="t-recover-password">Promotion</a></li>'; } else {} ?> <?php $permission_name = 'Student_report'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="studentreporting" data-key="t-recover-password">Student report</a></li>'; } else {} ?> <?php $permission_name = 'View_My_Class'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="myclass" data-key="t-recover-password">My Class</a></li>'; } else {} ?> <?php $permission_name = 'My_Student'; if (has_permission($userid, $permission_name,'can_view', $new)) { echo '<li><a href="mystudent" data-key="t-recover-password">My Student</a></li>'; } else {} ?> </ul> </li> </ul> <?php } else {?> <ul class="metismenu list-unstyled" id="side-menu"> <li class="menu-title" data-key="t-menu">Menu</li> <li> <a href="index"> <i data-feather="home"></i> <span data-key="t-dashboard">Dashboard</span> </a> </li> <li> <a href="javascript: void(0);" class="has-arrow"> <i data-feather="users"></i> <span data-key="t-authentication">Resources</span> </a> <ul class="sub-menu" aria-expanded="false"> <li><a href="house" data-key="t-login">Houses</a></li> <li><a href="admission-docs" data-key="t-lock-screen">Admission Docs</a></li> <li><a href="admission-setup" data-key="t-lock-screen">Admission Setup</a></li> </ul> </li> <li> <a href="javascript: void(0);" class="has-arrow"> <i data-feather="file-text"></i> <span data-key="t-pages">Placement list</span> </a> <ul class="sub-menu" aria-expanded="false"> <li><a href="manage-cssps" data-key="t-starter-page">Manage CSSPS list</a></li> <li><a href="protocol-list" data-key="t-starter-page">Protocol list</a></li> <li><a href="all-payment" data-key="t-starter-page">Admission payment</a></li> <li><a href="upload_student" data-key="t-starter-page">Non-registered</a></li> <li><a href="result-check-payment" data-key="t-starter-page">Result check payment</a></li> </ul> </li> <li> <a href="javascript: void(0);" class="has-arrow"> <i data-feather="briefcase"></i> <span data-key="t-components">Admission list</span> </a> <ul class="sub-menu" aria-expanded="false"> <li><a href="manage-student" data-key="t-buttons">Manage Admission list</a></li> <li><a href="manage-class-allocation" data-key="t-cards">Manage class allocation</a></li> <li><a href="manage-house-allocation" data-key="t-carousel">Manage house allocation</a></li> <li><a href="manage_bed_allocation" data-key="t-carousel">Manage bed allocation</a></li> </ul> </li> <li> <a href="javascript: void(0);" class="has-arrow"> <i data-feather="briefcase"></i> <span data-key="t-components">Academic</span> </a> <ul class="sub-menu" aria-expanded="false"> <li><a href="programme" data-key="t-register">Programme</a></li> <li><a href="classes" data-key="t-recover-password">Classes/Subject</a></li> <li><a href="setuprooms" data-key="t-recover-password">Setup Halls/Rooms/Venues</a></li> <!-- <li><a href="schooltimetable" data-key="t-buttons">Timetable(School)</a></li> --> <li><a href="timetable-list" data-key="t-buttons">Timetable list(School)</a></li> <!-- <li><a href="print-timetable" data-key="t-buttons">Print timetable</a></li> --> <li><a href="time-table" data-key="t-buttons">Timetable(Exams)</a></li> <li><a href="setup_semester" data-key="t-carousel">Setup Semester</a></li> <li><a href="assign_class_teacher" data-key="t-carousel">Assign class teacher</a></li> <li><a href="submit_result" data-key="t-carousel">Submit results</a></li> <li><a href="manage-result" data-key="t-carousel">Manage results</a></li> <li><a href="promotion" data-key="t-carousel">Promotion</a></li> <li><a href="studentreporting" data-key="t-carousel">Student report</a></li> </ul> </li> <li> <a href="javascript: void(0);" class="has-arrow"> <i data-feather="briefcase"></i> <span data-key="t-components">Human Resources</span> </a> <ul class="sub-menu" aria-expanded="false"> <li><a href="student-records?schoolCode=<?php echo $s_code ;?>" data-key="t-register">Attendance(StudentID)</a></li> <li><a href="student-attendance-class?schoolCode=<?php echo $s_code ;?>" data-key="t-register">Attendance(Class)</a></li> <li><a href="student-history" data-key="t-register">Student History</a></li> <li><a href="setup-sms?myschoolcode=<?php echo $s_code ;?>" data-key="t-register">SMS Setup</a></li> <li><a href="bulk-sms?myschoolcode=<?php echo $s_code ;?>" data-key="t-register">Bulk SMS</a></li> <li><a href="student-exit?myschoolcode=<?php echo $s_code ;?>" data-key="t-register">Student Exits</a></li> </ul> </li> <li> <a href="javascript: void(0);" class="has-arrow"> <i data-feather="briefcase"></i> <span data-key="t-components">E-Voting</span> </a> <ul class="sub-menu" aria-expanded="false"> <li><a href="manage-position?schoolCode=<?php echo $s_code ;?>" data-key="t-register">Manage position</a></li> <li><a href="manage-candidate?schoolCode=<?php echo $s_code ;?>" data-key="t-register">Manage candidate</a></li> <li><a href="votingcode?schoolCode=<?php echo $s_code ;?>" data-key="t-register">Voting code</a></li> <!--<li><a href="ballot?schoolCode=<?php echo $s_code ;?>" data-key="t-register">Balloting</a></li>--> <li><a href="studentballot?schoolCode=<?php echo $s_code ;?>" data-key="t-register">Student vote </a></li> <li><a href="electionresults?schoolCode=<?php echo $s_code ;?>" data-key="t-register">Election result </a></li> <!-- <li><a href="all-voters?schoolCode=<?php echo $s_code ;?>" data-key="t-register">All voters</a></li> <li><a href="voting-result?schoolCode=<?php echo $s_code ;?>" data-key="t-register">All voters</a></li> --> </ul> </li> <li class="menu-title mt-2" data-key="t-components">Elements</li> <li> <a href="javascript: void(0);" class="has-arrow"> <i data-feather="gift"></i> <span data-key="t-ui-elements">Staff</span> </a> <ul class="sub-menu" aria-expanded="false"> <li><a href="all-users" data-key="t-lightbox">All Staff</a></li> <li><a href="users-permissions" data-key="t-range-slider">Staff permissions</a></li> </ul> </li> <li> <a href="http://portal.bbecas.org"> <i data-feather="gift"></i> <span data-key="t-ui-users">BBECAS LMS </span> </a> </li> </ul> <?php }?> <?php $stmt = $con->prepare("Select * from schools where school_code = ?"); $stmt->execute(array($s_code)); $row = $stmt->fetch(); $logo = $row['logo']; $school_name = $row['school_name']; ?> <div class="card sidebar-alert border-0 text-center mx-4 mb-0 mt-5"> <div class="card-body"> <img style="width: 90px " src="<?php echo $logo;?>"> <div class="mt-4"> <h5 class="alertcard-title font-size-16"><?php echo $school_name;?></h5> </div> </div> </div> </div> </div> </div>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002