Added log-entry for Zahlungsbestaetigung-Download

Will log the accounting number and the uid of the person who made the
download to be able to detect:
. how many users downloaded a payment confirmation
. how many payment confirmations were downloaded

Signed-off-by: Cris <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2020-09-08 12:00:04 +02:00
parent 9b3036e95d
commit 9b78acb655
+16
View File
@@ -38,6 +38,7 @@ require_once('../../include/student.class.php');
require_once('../../include/prestudent.class.php');
require_once('../../include/dokument_export.class.php');
require_once('../../include/person.class.php');
require_once('../../include/webservicelog.class.php');
if (!$db = new basis_db())
die('Fehler beim Oeffnen der Datenbankverbindung');
@@ -139,6 +140,21 @@ if (isset($_GET['all']))
if (isset($_GET['xsl_oe_kurzbz']))
$params .= '&xsl_oe_kurzbz='. $_GET['xsl_oe_kurzbz'];
// Logeintrag bei Download von Zahlungsbestaetigungen
if (isset($_GET['xsl']) && $_GET['xsl'] == 'Zahlung')
{
$requestdata = $_SERVER['QUERY_STRING'];
$log = new Webservicelog();
$log->webservicetyp_kurzbz = 'content';
$log->request_id = isset($_GET['buchungsnummern']) && !empty($_GET['buchungsnummern']) ? $_GET['buchungsnummern'] : NULL;
$log->beschreibung = 'Zahlungsbestaetigungsdownload';
$log->request_data = $requestdata;
$log->execute_user = $user;
$log->save(true);
}
//OE fuer Output ermitteln
if ($xsl_oe_kurzbz != '')