home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / cms / view.php < prev   
PHP Script  |  2004-03-08  |  884b  |  36 lines

  1. <?php
  2. /*
  3. Copyright Intermesh 2003
  4. Author: Merijn Schering <mschering@intermesh.nl>
  5. Version: 1.0 Release date: 08 July 2003
  6.  
  7. This program is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2 of the License, or (at your
  10. option) any later version.
  11. */
  12.  
  13. require("../../Group-Office.php");
  14. //get the site properties and remember the site id
  15. if(isset($_REQUEST['site_id']))
  16. {
  17.     $_SESSION['preview_site_id'] = $_REQUEST['site_id'];
  18.     $site_id = $_REQUEST['site_id'];
  19. }else
  20. {
  21.     if (isset($_SESSION['preview_site_id']))
  22.     {
  23.         $site_id = $_SESSION['preview_site_id'];
  24.     }else
  25.     {
  26.         die('No site requested');
  27.     }
  28. }
  29. if ($cms_module = $GO_MODULES->get_module('cms'))
  30. {
  31.     require('view.inc');
  32. }else
  33. {
  34.     die('Failed to get Content Management Module');
  35. }
  36. ?>