Commit aa09b096 by Manoj

changes

parent 669ba57c
...@@ -77,12 +77,8 @@ class AuthController extends CI_Controller ...@@ -77,12 +77,8 @@ class AuthController extends CI_Controller
{ {
$this->session->unset_userdata('logged_in'); $this->session->unset_userdata('logged_in');
$this->authentication->logout(); $this->session->sess_destroy();
redirect(base_url());
// Set redirect protocol
$redirect_protocol = USE_SSL ? 'https' : null;
redirect(site_url(LOGIN_PAGE . '?logout=1', $redirect_protocol));
} }
} }
<!--********************************** <!--**********************************
Sidebar start Sidebar start
***********************************--> ***********************************-->
<?php $authLevel = $this->session->userdata('auth_level');
$userId = $this->session->userdata('user_id');
$checkUser = $this->mcommon->specific_row_value('exam_assigned',array('user_id' => $userId), 'user_id');
?>
<div class="dlabnav"> <div class="dlabnav">
<div class="dlabnav-scroll"> <div class="dlabnav-scroll">
<ul class="metismenu" id="menu"> <ul class="metismenu" id="menu">
...@@ -10,6 +13,7 @@ ...@@ -10,6 +13,7 @@
<span class="nav-text">Dashboard</span> <span class="nav-text">Dashboard</span>
</a> </a>
</li> </li>
<?php if($authLevel==9) {?>
<li><a class="has-arrow " href="javascript:void(0);" aria-expanded="false"> <li><a class="has-arrow " href="javascript:void(0);" aria-expanded="false">
<i class="material-symbols-outlined">book</i> <i class="material-symbols-outlined">book</i>
...@@ -98,11 +102,16 @@ ...@@ -98,11 +102,16 @@
</a> </a>
</li> </li>
<?php } ?>
<?php if($authLevel==9 || $checkUser!='' ) {?>
<li><a href="<?php echo base_url(); ?>ExamController/viewExam/" aria-expanded="false"> <li><a href="<?php echo base_url(); ?>ExamController/viewExam/" aria-expanded="false">
<i class="material-symbols-outlined">filter</i> <i class="material-symbols-outlined">filter</i>
<span class="nav-text">Exam</span> <span class="nav-text">Exam</span>
</a> </a>
</li> </li>
<?php } ?>
<!-- <li><a href="<?php echo base_url(); ?>ApplicationController/scoreList/" aria-expanded="false"> <!-- <li><a href="<?php echo base_url(); ?>ApplicationController/scoreList/" aria-expanded="false">
<i class="material-symbols-outlined"></i> <i class="material-symbols-outlined"></i>
......
...@@ -421,6 +421,7 @@ ...@@ -421,6 +421,7 @@
success: function(response) { success: function(response) {
$('#assignModal').modal('hide'); $('#assignModal').modal('hide');
// alert('Successfully test assigned');
window.location.href = '<?= base_url("ApplicationController/completedformdetails") ?>'; window.location.href = '<?= base_url("ApplicationController/completedformdetails") ?>';
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment