Sponsorenverwaltung - Team StarCraft e.V.
 All Data Structures Files Functions Variables
home.php
Go to the documentation of this file.
1 <?php
2  /**
3  * @file home.php
4  *
5  * @brief Displays the content of the first page after login
6  *
7  * @details
8  * Displays the content of the first page after login and provides access-
9  * controll to its contents.
10  *
11  * This file depends on inc/common.php and inc/templaes/home.tpl
12  *
13  * @copyright (c) 2013, Team StarCraft e.V.
14  * @version 1.0.0
15  * @author Danien Seichter
16  * @date 02.07.2013
17  */
18 
19 
20  /// @cond MAINPART
21  // include
22  include("inc/common.php");
23 
24 
25  if(!accessGranted($_SERVER['PHP_SELF'])) {
26  if (isUserLoggedIn()) {
27  exitWithErrorTemplate(array('Die angeforderte Seite ist gesperrt.'));
28  }
29  else {
30  exitWithErrorTemplateAndRedirect(array('Die angeforderte Seite ist gesperrt oder geschützt.'), 'login.php', 2);
31  }
32  }
33 
34 
35  // run template
36  displayTemplateWithErrorsAndSuccesses('Startseite', 'home.tpl');
37  /// @endcond
38 ?>