Location: PHPKode > scripts > GigKalender > install/iniTables.php
<?php
/*
    CREATIVE COMMONS - Attribution-No Derivative Works 3.0 Germany:
    - You may not alter, transform, or build upon this work.
    - Dieses Werk darf nicht bearbeitet oder in anderer Weise verändert werden.
*/
  //Tabelle Setup initialisieren
    if (iniSetup()) { echo "."; }
    else { echo '<span class="ERROR">'.$L_ERROR_Table_not_initialized.' (Setup).</span><br />'; $installationOK = false; }

  //Tabelle User initialisieren
    if (iniUser()) { echo "."; }
    else { echo '<span class="ERROR">'.$L_ERROR_Table_not_initialized.' (User).</span><br />'; $installationOK = false; }

  //Tabelle Gigs initialisieren
    if (iniGigs()) { echo "."; }
    else { echo '<span class="ERROR">'.$L_ERROR_Table_not_initialized.' (Gigs).</span><br />'; $installationOK = false; }

  //Tabelle Venues initialisieren
    if (iniVenues()) { echo "."; }
    else { echo '<span class="ERROR">'.$L_ERROR_Table_not_initialized.' (Venues).</span><br />'; $installationOK = false; }

  //Tabelle Artists initialisieren
    if (iniArtists()) { echo "."; }
    else { echo '<span class="ERROR">'.$L_ERROR_Table_not_initialized.' (Artists).</span><br />'; $installationOK = false; }

  //Tabelle Organizers initialisieren
    if (iniOrganizers()) { echo "."; }
    else { echo '<span class="ERROR">'.$L_ERROR_Table_not_initialized.' (Organizers).</span><br />'; $installationOK = false; }

  //Tabelle Gaestebuch initialisieren
    if (iniGuestbook()) { echo "."; }
    else { echo '<span class="ERROR">'.$L_ERROR_Table_not_initialized.' (Guestbook).</span><br />'; $installationOK = false; }
          
  //Tabelle News initialisieren
    if (iniNews()) { echo "."; }
    else { echo '<span class="ERROR">'.$L_ERROR_Table_not_initialized.' (News).</span><br />'; $installationOK = false; }

  //Tabelle Menu initialisieren
    if ($ShowCMS)
      if (iniMenu()) { echo "."; }
      else { echo '<span class="ERROR">'.$L_ERROR_Table_not_initialized.' (Menu).</span><br />'; $installationOK = false; }


  //User 'Admin' hinzufügen
    switch ( substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 3, 2) )
    {
      case 'US': $DateFormat = 'm/d/Y'; $FirstDayOfWeek='Sunday'; break;
      case 'CA': $DateFormat = 'm/d/Y'; $FirstDayOfWeek='Sunday'; break;
      case 'AU': $DateFormat = 'm/d/Y'; $FirstDayOfWeek='Sunday'; break;
      default: $DateFormat = 'd.m.Y'; $FirstDayOfWeek='Monday';
    }
    if (addUser("Admin","Admin","admin", "hide@address.com", "", "", 0, $StandardUserBackendCalenderListCols, 1, 1, 1, 1, 13, 11, 0, $FirstDayOfWeek)) { echo "."; }
    else { echo '<span class="ERROR">'.$L_ERROR_User_not_added.' (Admin).</span><br />'; $installationOK = false; }
?>
Return current item: GigKalender