public function b56sg4zdzv5zd4fgsz()
 {
     $this->_return = self::VIEW;
     $this->setPage('system/info.html.twig');
     date_default_timezone_set('America/New_York');
     $systemTime = date('Y-m-d H:i:s', time());
     $targetTime = CShell::target();
     $targetString = $targetTime['year'] . '-' . $targetTime['month'] . '-' . $targetTime['day'] . ' ' . $targetTime['hour'] . ':' . $targetTime['minute'] . ':' . $targetTime['second'];
     $epochTarget = EventTool::getTargetDate();
     $this->set('systemTime', $systemTime);
     $this->set('targetTime', $targetString);
     $this->set('epochTarget', $epochTarget);
 }
Esempio n. 2
0
 /**
  * @param string $page
  * @return mixed
  */
 public static function isPageReady($page)
 {
     if (CShell::cache_trigger() && !self::isCacheClear() && ($cache = apc_fetch($page))) {
         date_default_timezone_set('America/New_York');
         $time = time();
         $timestamp = $cache['timestamp'];
         //Where is now?
         $now = EventTool::getTimePos($time);
         //Where is timestamp?
         $page = EventTool::getTimePos($timestamp);
         if ($now === $page) {
             return $cache['page'];
         }
     }
     return false;
 }
 public function why_us_enemies_buying_all_gold()
 {
     if (APCTool::checkCache()) {
         $this->_return = self::CACHE;
         exit;
     }
     $this->setPage('streetweb/why_us_enemies_buying_gold.html.twig');
     $ep = EventTool::getTimePos(time());
     if ($ep == EventTool::BEFORE) {
         $url = 'http://www.caseyresearch.com/go/bxg4T/CSR';
         $thumb = 'http://d15s74raupkmp7.cloudfront.net/sites/streetgold-event/images/webinar-crofthumb75.png';
         $copy = '<strong>And for just $75 for a one-year membership</strong> – 41% discount – you literally make up the cost and are in the black on your very first gold purchase.';
     } else {
         $url = $url = 'http://www.caseyresearch.com/go/bxg71/CSR';
         $thumb = 'http://d15s74raupkmp7.cloudfront.net/sites/streetgold-event/images/webinar-crofthumb79.png';
         $copy = '<strong>And for just $79 for a one-year membership</strong> – a savings of $50 off the normal price – you literally make up the cost and are in the black on your very first gold purchase.';
     }
     $this->set('cr', true);
     $this->set('url', $url);
     $this->set('thumb', $thumb);
     $this->set('copy', $copy);
 }