Source for file index.php5

Documentation is available at index.php5

  1. <?php
  2.  
  3. // +----------------------------------------------------------------------+
  4. // | PHP Version 5                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 2003-2005 TSS-Bitburg (IT02) + Kay Koch                |
  7. // +----------------------------------------------------------------------+
  8. // | Dieser Quellcode ist frei verfügbar und unterliegt keinen Lizenzen   |
  9. // | Er kann frei weiterentwickelt werden.                                   |
  10. // +----------------------------------------------------------------------+
  11. // | Authors: Kay Koch <kay.koch@gmx.de>                                  |
  12. // | Maintainer: Kay Koch <kay.koch@gmx.de>                               |
  13. // +----------------------------------------------------------------------+
  14.  
  15. /**
  16.  * Startscript zur Durchführung der Seeanmeldung des LVST
  17.  *
  18.  * abh?ngig von den Eingabeparametern werden die jeweiligen Klassen
  19.  * aufgerufen, die für die Ausgabe der HTML-Seiten zuständig sind
  20.  *
  21.  * @author Kay Koch
  22.  * @since 15.12.04
  23.  * @copyright 2005
  24.  */
  25.  
  26. if (version_compare(PHP_VERSION'5'))
  27.    die('This file was generated for PHP 5');
  28.  
  29. // Fehlermeldungen umlenken
  30. new src_tools_ERROR()"getErrorHandler"));
  31.  
  32. // Spracheinstellungen auf Deusch einstellen
  33. setlocale(LC_ALL"de_DE.UTF8");
  34.  
  35. // Zeitzone einstellen
  36. date_default_timezone_set('Europe/Berlin');
  37.  
  38. // erlaubte Übergabeparameter zur Auswahl überprüfen
  39. $arrKeys array (
  40.    "action",
  41.    "todo",
  42.    "data",
  43.    "buch_id",
  44.    "pwd",
  45.    "confirm",
  46.    "_token"
  47. );
  48. foreach ($arrKeys as $key{
  49.    $$key (isset ($_REQUEST[$key])) $_REQUEST[$key"";
  50. }
  51. #$time=src_tools_TIME :: start_timer("start");
  52. // Cache anfang
  53.  
  54. require_once ("src/tools/class.CACHE.php");
  55. src_tools_CACHE :: checkCache($_SERVER['REQUEST_URI']$data);
  56. // Cache ende
  57. // Abfrage der Anweisungen
  58.  
  59. switch ($action{
  60.    case "tag" :
  61.       new src_foundation_user_TAGAUSWAHL($data);
  62.       break;
  63.    case "stunde" :
  64.       new src_foundation_user_STUNDENAUSWAHL($data);
  65.       break;
  66.    case "eingabe" :
  67.       if ($todo == "insert"{
  68.          src_tools_CACHE :: setNoCache();
  69.          src_tools_CHECK :: checkToken($_tokentrue);
  70.       }
  71.       new src_foundation_user_EINGABE($todo$data);
  72.       break;
  73.    case "bestaetigung" :
  74.       src_tools_CACHE :: setNoCache();
  75.       new src_foundation_user_BESTAETIGUNG($buch_id$pwd$confirm$action);
  76.       break;
  77.    default :
  78.       src_tools_CACHE :: setNoCache();
  79.       new src_foundation_user_INTRO();
  80. // switch
  81. #src_tools_TIME :: next_timer($time,"ende");
  82.  
  83. exit;
  84.  
  85. /**
  86.  * lädt den Sourcecode für die Klasse
  87.  *
  88.  * @param string $klasse Klassenname des Sourcecode geladen werden soll
  89.  * @return void 
  90.  */
  91. function __autoload($klasse{
  92.    $path str_replace("_""/"$klasse);
  93.    $w substr_replace($path"/class."strrpos($path"/")1".php";
  94.    require_once (substr_replace($path"/class."strrpos($path"/")1".php");
  95. }
  96. ?>

Documentation generated on Sat, 24 Mar 2007 10:00:19 +0100 by phpDocumentor 1.3.1