<?php
// path to random picture app
include_once('/var/www/html/public/apps/randomPicture/randomPicture.php');
// path to SMF SSI.php
include_once('/var/www/html/forum/SSI.php');
class Page extends SiteTree {
static $db = array(
);
static $has_one = array(
);
}
class Page_Controller extends ContentController {
function init() {
parent::init();
Requirements::themedCSS("layout");
Requirements::themedCSS("typography");
Requirements::themedCSS("form");
}
function Content() {
$content = $this->Content;
$content = str_replace('[[randomPicture]]', randomPicture(), $content);
$content = str_replace('[[recentPosts]]', SSI_recentPosts(), $content);
return $content;
}
}
?>