예제 #1
0
파일: Admin.php 프로젝트: hexing-w/Yaf-CMS
 public function init()
 {
     parent::init();
     $this->getView()->breadcrumb[] = array('Home', array('module' => 'admin', 'controller' => 'index', 'action' => 'index'));
     $this->getView()->setLayout('default');
     $this->getView()->setScriptPath(APPLICATION_PATH . DS . 'modules' . DS . 'Admin' . DS . 'views');
     //$this->getView()->assign('breadcrumb', $this->breadcrumb);
 }
if (is_file($crontabFile)) {
    include $crontabFile;
}
if (WEB_CRONTAB && is_writable($crontabFile) && ((!isset($crontab) || $crontab['date_last_success'] != getDateFromTimestamp(time())) && (!is_file($crontabFile) || isset($crontab) && $crontab['time_last_try'] < time() - TIME_TO_WAIT_FOR_PARALLEL_ARCHIVE))) {
    $crontab['time_last_try'] = time();
    $crontab['date_last_success'] = '2000-12-31';
    saveConfigFile($crontabFile, $crontab, "crontab");
    printDebug('==========================<br>
				CRONTAB BEGIN/			  <br>
				==========================<br>
				');
    require_once INCLUDE_PATH . '/core/include/PmvConfig.class.php';
    require_once INCLUDE_PATH . '/core/include/ApplicationController.php';
    $r =& Request::getInstance();
    $r->setModuleName('send_mail');
    $r->setCrontabAllowed();
    ApplicationController::init();
    printDebug('==========================<br>
				CRONTAB END/			  <br>
				==========================<br>
				');
    $crontab['date_last_success'] = getDateFromTimestamp(time());
    saveConfigFile($crontabFile, $crontab, "crontab");
}
$db->close();
redirectToUrlIfNecessary();
loadImage($logo, $idSite);
// flush content for display
if (DEBUG) {
    ob_end_flush();
}
예제 #3
0
 /**
  * Implement frontend application options for better seo
  **/
 public function init()
 {
     parent::init();
 }
예제 #4
0
 public function init()
 {
     parent::init();
     $this->getView()->setLayoutPath($this->getConfig()->application->directory . "/modules" . "/Admin" . "/views" . "/layouts");
 }