/** * 'include_file' tpl func */ public static function include_file($params, $tpl = NULL) { $file = $params['name']; $zip = isset($params['zip']) ? $params['zip'] : 0; $file = View::tpl_realpath($file); if (!$tpl->is_cached($file)) { } $result = $tpl->fetch($file); if ($zip) { $result = simphp_ziphtml($result); } return $result; }
/** * Generating hash format content * @param string $content * @return array */ public static function hashContent($content) { $jscontent = array('flag' => 'SUC', 'maxage' => isset($_GET['maxage']) ? intval($_GET['maxage']) : 60, 'body' => simphp_ziphtml($content)); return $jscontent; }