2026-07-15 13:57:05 +02:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Index class
|
|
|
|
|
*/
|
2026-07-18 11:56:54 +02:00
|
|
|
class ZAPHome implements ZAPHandler {
|
2026-07-15 13:57:05 +02:00
|
|
|
/**
|
|
|
|
|
* Template file prefix
|
|
|
|
|
*/
|
|
|
|
|
private $template = 'index';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Parsable content
|
|
|
|
|
*/
|
|
|
|
|
private $tpl = '';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Constructor
|
|
|
|
|
*/
|
|
|
|
|
public function __construct() {
|
|
|
|
|
ob_start();
|
2026-07-20 01:14:00 +02:00
|
|
|
$ver = ZAP_VERSION;
|
2026-07-15 13:57:05 +02:00
|
|
|
include getZAPTemplate($this->template);
|
|
|
|
|
$this->tpl .= ob_get_clean();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return cotent string
|
|
|
|
|
*/
|
|
|
|
|
public function getContent() {
|
|
|
|
|
return $this->tpl;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|