0.9.0 - the ZapV version updated to current php standards. Brave search used, while Bing and Google search api are deprecated
This commit is contained in:
parent
3d4298fe8b
commit
4ddaddda3d
31 changed files with 1778 additions and 1 deletions
40
lib/ZAPHome.class.php
Executable file
40
lib/ZAPHome.class.php
Executable file
|
|
@ -0,0 +1,40 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue