Exemplo n.º 1
0
 private static function getTargetEndDate()
 {
     date_default_timezone_set('America/New_York');
     $target = CShell::target();
     $duration = CShell::duration();
     $targetEndDate = mktime($target["hour"] + $duration["hour"], $target["minute"] + $duration["minute"], $target["second"], $target["month"], $target["day"], $target["year"]);
     return $targetEndDate;
 }
Exemplo n.º 2
0
 public static function checkCache()
 {
     if (CShell::caching() && ($page = self::isPageReady(PageTool::getVersion(PageTool::getPage(), CShell::pages()), CShell::target(), CShell::duration()))) {
         echo $page;
         return true;
     }
     return false;
 }