예제 #1
0
 /**
  *  preprocess before forwarding.
  *
  *  @access public
  */
 function preforward()
 {
     parent::preforward();
     $cookie_path = str_replace(rtrim($_SERVER['DOCUMENT_ROOT'], '/'), '', $this->af->get('xoops_root_path'));
     !$cookie_path and $cookie_path = '/';
     $xoops_url = sprintf('http://%s%s', $_SERVER['SERVER_NAME'], $cookie_path);
     $this->af->setApp('xoops_cookie_path', $cookie_path);
     $this->af->setApp('xoops_url', $xoops_url);
     $this->af->setApp('prefix', Ethna_Util::getRandom(6));
     $this->af->setApp('salt', Ethna_Util::getRandom(8));
 }
예제 #2
0
 /**
  *  preprocess before forwarding.
  *
  *  @access public
  */
 function preforward()
 {
     parent::preforward();
 }
예제 #3
0
파일: Reload.php 프로젝트: hiro1173/legacy
 /**
  *  preprocess before forwarding.
  *
  *  @access public
  */
 function preforward()
 {
     $this->backend->ctl->cleanUpTmp();
     parent::preforward();
 }
예제 #4
0
 /**
  *  preprocess before forwarding.
  *
  *  @access public
  */
 function preforward()
 {
     parent::preforward();
     $this->af->set('xoops_root_path', dirname(BASE) . '/html');
     $this->af->set('xoops_trust_path', dirname(BASE) . '/xoops_trust_path');
 }