Files
xinhu/webmain/reim/index/indexAction.php
2022-08-14 16:47:40 +08:00

63 lines
1.7 KiB
PHP

<?php
class indexClassAction extends ActionNot
{
public function initAction()
{
}
public function defaultAction()
{
$ybarr = $this->option->authercheck();
if(is_string($ybarr))return $ybarr;
if($this->adminid==0){
$this->rock->location('?d=reim&m=login');
}
$this->title = getconfig('reimtitle','REIM');
$my = $this->db->getone('[Q]admin', "`id`='$this->adminid'",'`face`,`id`,`name`,`ranking`,`deptname`,`deptallname`,`type`,`style`');
$this->smartydata['my'] = $my;
$this->smartydata['face'] = $this->rock->repempt($my['face'], 'images/noface.png');
}
public function xinAction()
{
$ybarr = $this->option->authercheck();
if(is_string($ybarr))return $ybarr;
if($this->adminid==0){
$this->rock->location('?d=reim&m=login&a=xin');
}
$this->title = getconfig('reimtitle','REIM');
$my = $this->db->getone('[Q]admin', "`id`='$this->adminid'",'`face`,`id`,`name`,`ranking`,`deptname`,`deptallname`,`type`,`style`');
$this->smartydata['my'] = $my;
$this->smartydata['face'] = $this->rock->repempt($my['face'], 'images/noface.png');
$this->smartydata['logo'] = 'images/logo.png';
$this->smartydata['showtitle'] = TITLE;
if(ISMORECOM){
$companyinfo = m('admin')->getcompanyinfo($this->adminid, 1);
$oaname = $companyinfo['oaname'];
if(!isempt($oaname))$this->smartydata['showtitle'] = $oaname;
$this->smartydata['logo'] = $companyinfo['logo'];
}
}
public function xinaAction()
{
$ybarr = $this->option->authercheck();
if(is_string($ybarr))return $ybarr;
if($this->adminid==0){
$this->rock->location('?d=reim&m=login&a=xina');
}
$this->xinAction();
}
public function istsings()
{
}
}