yangsai@163.com 6 months ago
parent 8b0a49cdf3
commit d44a2772ae
  1. 4
      application/controllers/Admin/Admin.php
  2. 2
      application/controllers/Admin/Login.php

@ -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 @@
<?php
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;

Loading…
Cancel
Save