if(!empty($TemplateData['refresh'])) {
header("Location: ".$TemplateData['refresh']);
+ exit();
}
# header information
header('Content-type: text/html; charset=UTF-8');
+if($Summoner::simpleAuthCheck() === true) {
+ header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
+ header("Cache-Control: post-check=0, pre-check=0", false);
+ header("Pragma: no-cache");
+}
require 'view/_head.php';
require 'view/'.$View;
*
* @param array $array
* @param string $key
- * @return bool
+ * @return mixed
*/
- static function ifset(array $array, string $key): bool {
- return isset($array[$key]) ? $array[$key] : false;
+ static function ifset(array $array, string $key) {
+ return $array[$key] ?? false;
}
/**