home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / wiki / index.php < prev    next >
PHP Script  |  2004-03-08  |  1KB  |  42 lines

  1. <?php
  2. /*
  3.  * index page of a new Group-Office module based on Wikki Tikki Tavi 0.25
  4.  * which is available at http://tavi.sourceforge.net
  5.  *
  6.  * Group-Office Module Author: Markus Schabel <markus.schabel@tgm.ac.at>
  7.  */
  8.  
  9. // Require main configuration file
  10. require( "../../Group-Office.php" );
  11.  
  12. // Check if a user is logged in. If not try to login via cookies. If that
  13. // also fails then show the login-screen.
  14. $GO_SECURITY->authenticate();
  15.  
  16. // Check if the user is allowed to access this module.
  17. $GO_MODULES->authenticate( 'wiki' );
  18.  
  19. // This is the title of this page. Needed in header.inc for displaying the
  20. // correct title in the titlebar of the browser.
  21. $page_title = "wiki";
  22.  
  23. // Require theme-header, most times this will be the navigation with some
  24. // design issues.
  25. require( $GO_THEME->theme_path."header.inc" );
  26.  
  27. // All output should be aligned in a table to have correct distances
  28. // between the window-borders and our output.
  29. echo "<table border='0' cellpadding='10'><tr><td align='center'>";
  30.  
  31. require('lib/main.php');
  32.  
  33. // Since all our output goes into a table we have to close the following tags
  34. echo "</td></tr></table>";
  35.  
  36. // Load theme-footer, this is probably some kind of "Group-Office Version..."
  37. require( $GO_THEME->theme_path."footer.inc" );
  38.  
  39. // That's it, we've printed what the user wanted to do and can now exit.
  40. // Maybe that would be the correct place to close database connections...
  41. ?>
  42.