Example #1
0
geschrieben. Diese Datensammlung wird abschließend im Projektverzeichnis unter dem Dateinamen
data-{projektspezifische Endung} serialisiert.
*/
include 'classDefinition.php';
include 'makeEntry.php';
include 'ingest.php';
include 'encode.php';
include 'makeIndex.php';
//include('makeSection.php');
include 'makeNavigation.php';
include 'makeHead.php';
include 'makeGeoDataSheet.php';
include 'storeBeacon.php';
include 'setConfiguration.php';
//$thisCatalogue = setConfiguration('bahn');
$thisCatalogue = setConfiguration('rehl');
$facets = $thisCatalogue->facets;
// Erstelle ein Verzeichnis für das Projekt
$folderName = fileNameTrans($thisCatalogue->heading);
if (is_dir($folderName) == FALSE) {
    mkdir($folderName, 0700);
}
// Lade die Daten aus der Datenbank in die Variable $data
$data = load_data_mysql('localhost', 'root', '', $thisCatalogue->database, 'zusammenfassung');
// Suche in BEACON-Dateien nach Einträgen zu den erwähnten Personen und füge diese den Daten hinzu
//storeBeacon($data, $folderName, $thisCatalogue->key);
$data = addBeacon($data, $folderName, $thisCatalogue->key);
// Speichere die Daten im Projektverzeichnis
$serialize = serialize($data);
file_put_contents($folderName . '/data-' . $thisCatalogue->key, $serialize);
var_dump($data);
Example #2
0
					<input type="submit" name="Abschicken" />';
        echo '
				</form>';
    } elseif ($test2 == 1) {
        $selectedBeacon = array();
        foreach ($_POST as $key => $value) {
            if (in_array($key, $beaconKeys)) {
                if ($value == 'on') {
                    $selectedBeacon[] = $key;
                }
            }
        }
        $dataString = file_get_contents($_SESSION['folderName'] . '/dataPHP');
        $data = unserialize($dataString);
        unset($dataString);
        //Update of the stored Beacon files if they are older than one week, i. e. 604800 Seconds
        cacheBeacon($beaconSources, 604800, $userAgentHTTP);
        storeBeacon($data, $_SESSION['folderName'], $selectedBeacon);
        $data = addBeacon($data, $_SESSION['folderName']);
        $_SESSION['beacon'] = 1;
        $serialize = serialize($data);
        file_put_contents($_SESSION['folderName'] . '/dataPHP', $serialize);
        echo '<p>Die Anreicherung mit biographischen Links war erfolgreich.<br>
				Weiter zur <a href="select.php">Feldauswahl</a>.</p>';
    }
}
?>
				
			</div>
		</body>
</html>