Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement