40 lines
517 B
PHP
40 lines
517 B
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* Index class
|
||
|
|
*/
|
||
|
|
class ZAPHome {
|
||
|
|
/**
|
||
|
|
* Template file prefix
|
||
|
|
*/
|
||
|
|
private $template = 'index';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ZAP version
|
||
|
|
*/
|
||
|
|
private $ver;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Parsable content
|
||
|
|
*/
|
||
|
|
private $tpl = '';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*/
|
||
|
|
public function __construct() {
|
||
|
|
$this->ver = ZAP_VERSION;
|
||
|
|
extract(get_object_vars($this));
|
||
|
|
|
||
|
|
ob_start();
|
||
|
|
include getZAPTemplate($this->template);
|
||
|
|
$this->tpl .= ob_get_clean();
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @return cotent string
|
||
|
|
*/
|
||
|
|
public function getContent() {
|
||
|
|
return $this->tpl;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
?>
|