indexAction.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. class indexClassAction extends ActionNot
  3. {
  4. public function initAction()
  5. {
  6. }
  7. public function defaultAction()
  8. {
  9. $ybarr = $this->option->authercheck();
  10. if(is_string($ybarr))return $ybarr;
  11. if($this->adminid==0){
  12. $this->rock->location('?d=reim&m=login');
  13. }
  14. $this->title = getconfig('reimtitle','REIM');
  15. $my = $this->db->getone('[Q]admin', "`id`='$this->adminid'",'`face`,`id`,`name`,`ranking`,`deptname`,`deptallname`,`type`,`style`');
  16. $this->smartydata['my'] = $my;
  17. $this->smartydata['face'] = $this->rock->repempt($my['face'], 'images/noface.png');
  18. }
  19. public function xinAction()
  20. {
  21. $ybarr = $this->option->authercheck();
  22. if(is_string($ybarr))return $ybarr;
  23. if($this->adminid==0){
  24. $this->rock->location('?d=reim&m=login&a=xin');
  25. }
  26. $this->title = getconfig('reimtitle','REIM');
  27. $my = $this->db->getone('[Q]admin', "`id`='$this->adminid'",'`face`,`id`,`name`,`ranking`,`deptname`,`deptallname`,`type`,`style`');
  28. $this->smartydata['my'] = $my;
  29. $this->smartydata['face'] = $this->rock->repempt($my['face'], 'images/noface.png');
  30. $this->smartydata['logo'] = 'images/logo.png';
  31. $this->smartydata['showtitle'] = TITLE;
  32. if(ISMORECOM){
  33. $companyinfo = m('admin')->getcompanyinfo($this->adminid, 1);
  34. $oaname = $companyinfo['oaname'];
  35. if(!isempt($oaname))$this->smartydata['showtitle'] = $oaname;
  36. $this->smartydata['logo'] = $companyinfo['logo'];
  37. }
  38. }
  39. public function xinaAction()
  40. {
  41. $ybarr = $this->option->authercheck();
  42. if(is_string($ybarr))return $ybarr;
  43. if($this->adminid==0){
  44. $this->rock->location('?d=reim&m=login&a=xina');
  45. }
  46. $this->xinAction();
  47. }
  48. public function istsings()
  49. {
  50. }
  51. }
粤ICP备19079148号