Advertisement
Guest User

Matt Hardwick

a guest
Sep 3rd, 2008
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. <?php
  2.  
  3. // path to random picture app
  4. include_once('/var/www/html/public/apps/randomPicture/randomPicture.php');
  5.  
  6. // path to SMF SSI.php
  7. include_once('/var/www/html/forum/SSI.php');
  8.  
  9.  
  10. class Page extends SiteTree {
  11.     static $db = array(
  12.     );
  13.     static $has_one = array(
  14.    );
  15. }
  16.  
  17. class Page_Controller extends ContentController {
  18.    
  19.     function init() {
  20.         parent::init();    
  21.         Requirements::themedCSS("layout");
  22.         Requirements::themedCSS("typography");
  23.         Requirements::themedCSS("form");
  24.     }
  25.  
  26.     function Content() {
  27.         $content = $this->Content;
  28.         $content = str_replace('[[randomPicture]]', randomPicture(), $content);
  29.         $content = str_replace('[[recentPosts]]', SSI_recentPosts(), $content);
  30.         return $content;
  31.     }
  32. }
  33.  
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement