@ -1,9 +1,5 @@
<?php
class Admin_AdminController extends Ctrl_Admin{
public $HospitalId;
public function init(){
$this->HospitalId = empty($_SESSION['HospitalID'])?'1':$_SESSION['HospitalID'];
}
public function IndexAction(){
if (!isset($_SESSION['Admin'])) {
$this->redirect('/Admin_Login/Index');
@ -1,7 +1,7 @@
class Admin_LoginController extends Ctrl_Base{
public function indexAction(){
if(isset($_SESSION['admin'])){$this->showMsg('','/admin_index/');}
if(isset($_SESSION['admin'])){$this->showMsg('','/admin_index/index');}
public function loginAction(){
$p = $_REQUEST;