Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Matt Hardwick

By: a guest on Sep 3rd, 2008  |  syntax: PHP  |  size: 0.72 KB  |  hits: 80  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>