From 6ba0787cb7cd5a9cf880cd09c882c96a88f6f16a Mon Sep 17 00:00:00 2001 From: kindlm Date: Fri, 8 Jul 2016 17:41:19 +0200 Subject: [PATCH] =?UTF-8?q?Neues=20Logo;=20user=20als=20Parameter=20f?= =?UTF-8?q?=C3=BCr=20admins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/tw/abgabe_lektor_benotung.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/include/tw/abgabe_lektor_benotung.php b/include/tw/abgabe_lektor_benotung.php index 3eb00949e..5972d3a3b 100644 --- a/include/tw/abgabe_lektor_benotung.php +++ b/include/tw/abgabe_lektor_benotung.php @@ -33,6 +33,7 @@ require_once('../../include/datum.class.php'); require_once('../../include/person.class.php'); require_once('../../include/benutzer.class.php'); require_once('../../include/mitarbeiter.class.php'); +require_once('../../include/benutzerberechtigung.class.php'); if (!$db = new basis_db()) die('Fehler beim Herstellen der Datenbankverbindung'); @@ -44,6 +45,20 @@ require_once('../../include/pdf/fpdf.php'); require_once('../../include/pdf.inc.php'); $getuid=get_uid(); + +$rechte = new benutzerberechtigung(); +$rechte->getBerechtigungen($getuid); + +if (isset($_GET['user'])) +{ + if ($rechte->isBerechtigt('admin',null,'suid')) + $getuid = $_GET['user']; + else + $getuid=get_uid(); +} +else + $getuid=get_uid(); + $datum_obj = new datum(); $htmlstr = ""; $qualitaet=''; @@ -153,7 +168,7 @@ else $pdf->SetXY(30,30); //Logo - $pdf->Image("../../skin/images/logo.jpg","400","25","160","54","jpg",""); + $pdf->Image("../../skin/styles/tw/logo.jpg","400","25","150","78","jpg",""); $pdf->SetFont('Arial','',12); $pdf->SetFillColor(190,190,190);