This commit is contained in:
Christian Paminger
2007-08-13 09:03:29 +00:00
parent 5c93bd7529
commit 654f1b1aef
2 changed files with 15 additions and 8 deletions
@@ -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
+11 -4
View File
@@ -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;
?>
<html>
@@ -466,10 +473,10 @@
<body>
<?php
/* ($sendmail)
if ($sendmail)
echo 'Mail wurde verschickt an '.$adress.'!<br>';
else
echo "Mail konnte nicht verschickt werden!<br>";*/
echo "Mail konnte nicht verschickt werden!<br>";
echo $headtext;
echo "<br><br>";
echo $text;