Location: PHPKode > scripts > GigKalender > functions/import/11/setup.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.
*/
$daten = fgetcsv($datei, 10000, ';');
        while ($daten)
        {
          $amountDaten = count($daten);
          for ($i=0; $i<$amountDaten; $i++)
          {
            $daten[$i] = str_replace('\'', '', $daten[$i]);
            $daten[$i] = utf8_encode($daten[$i]);
          }
            if ( $daten[12]=='' )
            {
              echo 'Error: Setup UserMaximumInactivityTime is missing!<br />';
              echo "=> UserMaximumInactivityTime set to '10' minutes.<br />";
              $daten[12]='10';
            }
            $sql = "UPDATE ".$prefix."setup SET
              SetupRefreshtime = '$daten[0]',
              SetupRowsTextareas = '$daten[1]',
              SetupExportSeparator = ';',
              SetupFrontendLanguage = '$daten[5]',
              SetupGuestbookEntriesPerPage = '$daten[6]',
              SetupGuestbookMail = '$daten[7]',
              SetupFrontendCssFile = '',
              SetupGuestbookEntriesUnlock = '1',
              SetupGuestbookSpamDomains = '$daten[10]',
              SetupGuestbookSpamIPs = '$daten[11]',
              SetupGuestbookSpamWords = '$daten[12]',
              SetupUserMaximumInactivityTime = '$daten[13]',
              SetupNewsEntriesPerPage = '10',
              SetupFrontendAllowOptionalGigs = '0',
              SetupFrontendAllowPrivateGigs = '0',
              SetupAllowDoubleDates = '0',
              SetupCalendarAttributeInAddGigForm = '$allBackendCalenderFormAttributes',
              SetupFrontendAttributes = '$StandardFrontendAttributes',
              SetupFrontendDetailAttributes = '$StandardFrontendDetailAttributes',
              SetupNewsChannelTitle = 'Band-News',
              SetupNewsChannelURL = '$GigKalenderPath',
              SetupNewsChannelDescription = 'Band-News...',
              SetupNewsChannelLanguage = 'de-DE',
              SetupNewsChannelCopyright = 'Max Mustermann',
              SetupFrontendCalendarCharsInFields = '20',
              SetupFrontendCalendarShowTableHeads = '1',
              SetupFrontendCalendarSelector = 'list',
              SetupFrontendCalendarMaxAmountOfGigs = '20',
              SetupFrontendCalendarPeriodSelector = 'future',
              SetupFrontendCalendarShowMonthlySeparator = '1',
              SetupShowEditorInAddGigForm = '0'";
            $resultat = mysql_query($sql);
            if ($resultat) { echo $L_Setup_successfully_imported.'<br />'; }
            else { echo '<span class="ERROR">'.$L_ERROR_Setup_NOT_imported.'</span><br />'; }
        $daten = fgetcsv($datei, 10000, ';');
      }
?>
Return current item: GigKalender