public function writeStationConf($Sc_serv_conf_id)
{
# Einlesen der Daten für SC_Serv
$Sc_Serv_conf = \DB::queryFirstRow("SELECT * FROM sc_serv_conf WHERE id=%s", $Sc_serv_conf_id);
# Proof if Dir exist
if (is_dir("userconf/" . $Sc_Serv_conf['PortBase']) == false) {
$this->creatDirHome($Sc_Serv_conf['PortBase']);
}
# ColumList aus der Datenbank
$columns = \DB::columnList('sc_serv_conf');
$Sc_Serv['conf'] = '';
# Array für die Spalte
# Datei öffnen
$datei = fopen("userconf/" . $Sc_Serv_conf['PortBase'] . "/sc_serv.conf", "w+");
foreach ($columns as $column) {
$Sc_Serv['conf'][$column] = $Sc_Serv_conf[$column];
# Speichert alles in einem Array für Fehlerauswerung
}
foreach ($Sc_Serv['conf'] as $name => $wert) {
if ($name == 'id' or $wert == '') {
} else {
fwrite($datei, $name . '=' . $wert . "\r\n");
}
}
fclose($datei);
# Datei schließen
}