From 654f1b1aefc1113de2a04612b7fa870c4780afb7 Mon Sep 17 00:00:00 2001 From: Christian Paminger Date: Mon, 13 Aug 2007 09:03:29 +0000 Subject: [PATCH] --- .../fas/sync_fas_vilesci_lehrveranstaltungen.php | 8 ++++---- system/sync/fas/sync_fas_vilesci_note.php | 15 +++++++++++---- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/system/sync/fas/sync_fas_vilesci_lehrveranstaltungen.php b/system/sync/fas/sync_fas_vilesci_lehrveranstaltungen.php index d3035f3f5..d1d6946f1 100644 --- a/system/sync/fas/sync_fas_vilesci_lehrveranstaltungen.php +++ b/system/sync/fas/sync_fas_vilesci_lehrveranstaltungen.php @@ -8,7 +8,7 @@ require_once('../../../vilesci/config.inc.php'); require_once('../../../include/lehrveranstaltung.class.php'); require_once('../sync_config.inc.php'); - //$adress='fas_sync@technikum-wien.at'; + $adress='fas_sync@technikum-wien.at'; //$adress='oesi@technikum-wien.at'; //$adress='ruhan@technikum-wien.at'; @@ -263,7 +263,7 @@ { //Eintrag zur Synctabelle hinzufuegen synctabentry($row_found->lehrveranstaltung_id, $row_fas_alle->lehrveranstaltung_pk); - $text.="LVA wurde aktualisiert: $qry\n"; + //$text.="LVA wurde aktualisiert: $qry\n"; $anz_update++; } else @@ -312,7 +312,7 @@ { //Eintrag zur Synctabelle hinzufuegen synctabentry($row_found->lehrveranstaltung_id, $row_fas_alle->lehrveranstaltung_pk); - $text.="LVA wurde aktualisiert: $qry\n"; + //$text.="LVA wurde aktualisiert: $qry\n"; $anz_update++; } else @@ -402,7 +402,7 @@ { if(pg_query($conn, $qry)) { - $text.="LVA wurde aktualisiert: $qry\n"; + //$text.="LVA wurde aktualisiert: $qry\n"; $anz_update++; } else diff --git a/system/sync/fas/sync_fas_vilesci_note.php b/system/sync/fas/sync_fas_vilesci_note.php index 38923da9e..d26544a11 100644 --- a/system/sync/fas/sync_fas_vilesci_note.php +++ b/system/sync/fas/sync_fas_vilesci_note.php @@ -10,8 +10,8 @@ require_once('../../../vilesci/config.inc.php'); require_once('../../../include/zeugnisnote.class.php'); require_once('../../../include/pruefung.class.php'); - //$adress='fas_sync@technikum-wien.at'; - //$adress='oesi@technikum-wien.at'; + $adress='fas_sync@technikum-wien.at'; + //$adress='pam@technikum-wien.at'; $conn=pg_connect(CONN_STRING) or die("Connection zur Portal Datenbank fehlgeschlagen"); $conn_fas=pg_connect(CONN_STRING_FAS) or die("Connection zur Vilesci Datenbank fehlgeschlagen"); @@ -456,6 +456,13 @@ $text .= "Dauer: ".$runzeit." s"; } + + $text.="\nEND OF SYNCHRONISATION\n"; + + if (mail($adress,"FAS - Vilesci (Noten/Pruefungen)",$headtext."\n\n".$text,"From: vilesci@technikum-wien.at")) + $sendmail=true; + else + $sendmail=false; ?> @@ -466,10 +473,10 @@ '; else - echo "Mail konnte nicht verschickt werden!
";*/ + echo "Mail konnte nicht verschickt werden!
"; echo $headtext; echo "

"; echo $text;