Sync Person (email an fas_sync)

This commit is contained in:
Rudolf Hangl
2007-02-14 13:22:42 +00:00
parent 15b19bb02c
commit d660c8023e
2 changed files with 7 additions and 4 deletions
+3 -3
View File
@@ -23,8 +23,8 @@ $conn_fas=pg_connect(CONN_STRING_FAS) or die("Connection zur FAS Datenbank fehlg
//set_time_limit(60);
$adress='ruhan@technikum-wien.at; pam@technikum-wien.at';
//$adress='fas_sync@technikum-wien.at';
//$adress='ruhan@technikum-wien.at; pam@technikum-wien.at';
$adress='fas_sync@technikum-wien.at';
$error_log='';
$text = '';
@@ -221,7 +221,7 @@ else
echo nl2br("\n".$error_log);
echo nl2br("\n\nGesamt: $anzahl_quelle / Eingefügt: $anzahl_eingefuegt / Fehler: $anzahl_fehler");
$error_log="Person Sync\n-------------\n\nGesamt: $anzahl_quelle / Eingefügt: $anzahl_eingefuegt / Fehler: $anzahl_fehler\n\n".$error_log;
mail($adress, 'SYNC Personen', $error_log);
mail($adress, 'SYNC Personen', $error_log,"From: vilesci@technikum-wien.at");
?>
</body>
</html>
+4 -1
View File
@@ -36,6 +36,7 @@ class fachbereich
var $bezeichnung; // @var string
var $farbe; // @var string
var $studiengang_kz; // @var integer
var $aktiv; // @var boolean
var $ext_id; // @var bigint
@@ -177,10 +178,11 @@ class fachbereich
return false;
}
//Neuen Datensatz anlegen
$qry = 'INSERT INTO public.tbl_fachbereich (fachbereich_kurzbz, bezeichnung, farbe, ext_id, studiengang_kz) VALUES ('.
$qry = 'INSERT INTO public.tbl_fachbereich (fachbereich_kurzbz, bezeichnung, farbe, aktiv, ext_id, studiengang_kz) VALUES ('.
$this->addslashes($this->fachbereich_kurzbz).', '.
$this->addslashes($this->bezeichnung).', '.
$this->addslashes($this->farbe).', '.
($this->aktiv?'true':'false').', '.
$this->addslashes($this->ext_id).', '.
$this->addslashes($this->studiengang_kz).');';
}
@@ -199,6 +201,7 @@ class fachbereich
'fachbereich_kurzbz='.$this->addslashes($this->fachbereich_kurzbz).', '.
'bezeichnung='.$this->addslashes($this->bezeichnung).', '.
'farbe='.$this->addslashes($this->farbe).', '.
'aktiv='.($this->aktiv?'true':'false').', '.
'ext_id='.$this->addslashes($this->ext_id).', '.
'studiengang_kz='.$this->addslashes($this->studiengang_kz).' '.
'WHERE fachbereich_kurzbz = '.$this->addslashes($this->fachbereich_kurzbz).';';