Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require("components/commentsystem.php");
- $commentsystem = new CommentSystem();
- $site = $_GET['site'];
- if($site == 'bugtracker')
- {
- require("components/bugtracker.php");
- $component = new Bugtracker();
- $component.initialize_from($_GET);
- }
- else if($site == 'wiki')
- {
- require("components/wiki.php");
- $component = new Wiki();
- $component.initialize_from($_GET);
- }
- [...]
- ?>
- <head>
- <title>Awesome Website - <?php echo $component.get_title(); ?></title>
- [...]
- </head>
- <body>
- <div id="sidebar">
- [...]
- </div>
- <div id="content">
- <h1><?php echo $component.get_heading(); ?></h1>
- <?php
- $component.render_content();
- $commentsystem.render_thread();
- $commentsystem.render_comment_form();
- ?>
- </div>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement