first commit
This commit is contained in:
14
application/helpers/admincontrol_helper.php
Executable file
14
application/helpers/admincontrol_helper.php
Executable file
@@ -0,0 +1,14 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Admincontrol_helper{
|
||||
|
||||
|
||||
static function is_logged_in($userName)
|
||||
{
|
||||
if(($userName=="")):
|
||||
$redirect= BASE_URL.'/admin/login';
|
||||
header("Location: $redirect");
|
||||
exit;
|
||||
endif;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user