Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. <?php
  2.   require("components/commentsystem.php");
  3.   $commentsystem = new CommentSystem();
  4.  
  5.   $site = $_GET['site'];
  6.   if($site == 'bugtracker')
  7.   {
  8.     require("components/bugtracker.php");
  9.     $component = new Bugtracker();
  10.     $component.initialize_from($_GET);
  11.   }
  12.   else if($site == 'wiki')
  13.   {
  14.     require("components/wiki.php");
  15.     $component = new Wiki();
  16.     $component.initialize_from($_GET);
  17.   }
  18.   [...]
  19. ?>
  20.  
  21. <head>
  22.   <title>Awesome Website - <?php echo $component.get_title(); ?></title>
  23.   [...]
  24. </head>
  25. <body>
  26.   <div id="sidebar">
  27.     [...]
  28.   </div>
  29.   <div id="content">
  30.     <h1><?php echo $component.get_heading(); ?></h1>
  31.     <?php
  32.       $component.render_content();
  33.       $commentsystem.render_thread();
  34.       $commentsystem.render_comment_form();
  35.      ?>
  36.   </div>
  37. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement