mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
- Bildpruefung zeigt nun das große Profilbild an statt dem kleinen
- Englischer Text für Infomail beim Bildcheck hinzugefügt
This commit is contained in:
+12
-2
@@ -24,18 +24,28 @@
|
||||
// Aufruf mit <img src='bild.php?src=frage&frage_id=1
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../include/basis_db.class.php');
|
||||
$db = new basis_db();
|
||||
//base64 Dump aus der DB holen
|
||||
$cTmpHEX='/9j/4AAQSkZJRgABAQEASABIAAD/4QAWRXhpZgAATU0AKgAAAAgAAAAAAAD//gAXQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q/9sAQwAFAwQEBAMFBAQEBQUFBgcMCAcHBwcPCwsJDBEPEhIRDxERExYcFxMUGhURERghGBodHR8fHxMXIiQiHiQcHh8e/9sAQwEFBQUHBgcOCAgOHhQRFB4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4e/8AAEQgAAQABAwEiAAIRAQMRAf/EABUAAQEAAAAAAAAAAAAAAAAAAAAI/8QAFBABAAAAAAAAAAAAAAAAAAAAAP/EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCywAf/2Q==';
|
||||
if(isset($_GET['src']) && $_GET['src']=='person' && isset($_GET['person_id']))
|
||||
{
|
||||
$qry = "SELECT foto FROM public.tbl_person WHERE person_id='".addslashes($_GET['person_id'])."'";
|
||||
$db = new basis_db();
|
||||
$qry = "SELECT foto FROM public.tbl_person WHERE person_id=".$db->db_add_param($_GET['person_id'], FHC_INTEGER);
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
if($row = $db->db_fetch_object($result))
|
||||
$cTmpHEX=$row->foto;
|
||||
}
|
||||
}
|
||||
elseif(isset($_GET['src']) && $_GET['src']=='akte' && isset($_GET['person_id']))
|
||||
{
|
||||
$qry = "SELECT inhalt as foto FROM public.tbl_akte WHERE person_id=".$db->db_add_param($_GET['person_id'], FHC_INTEGER)." AND dokument_kurzbz='Lichtbil'";
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
if($row = $db->db_fetch_object($result))
|
||||
$cTmpHEX=$row->foto;
|
||||
}
|
||||
}
|
||||
|
||||
//Header fuer Bild schicken
|
||||
header("Content-type: image/gif");
|
||||
//base64 Werte in Zeichen umwandeln und ausgeben
|
||||
|
||||
@@ -112,7 +112,20 @@ if(isset($_POST['person_id']))
|
||||
$text .= "Bitte Laden Sie ein entsprechendes Profilbild im CIS unter 'Mein CIS'->'Profil' hoch.\n";
|
||||
$text .= "\n";
|
||||
$text .= "Herzlichen Dank\n";
|
||||
$text .= "Fachhochschule Technikum Wien";
|
||||
$text .= "Fachhochschule Technikum Wien\n";
|
||||
$text .= "\n------------------\n\n";
|
||||
if($person->geschlecht=='m')
|
||||
$text .= "Dear Mr ".$person->vorname.' '.$person->nachname.",\n\n";
|
||||
else
|
||||
$text .= "Dear Ms ".$person->vorname.' '.$person->nachname.",\n\n";
|
||||
$text .= "Your profile photograph has been checked and does not fulfil the photo criteria.\n";
|
||||
$text .= "The current criteria can be found under the following link:\n";
|
||||
$text .= "https://cis.technikum-wien.at/cms/content.php?content_id=6174\n";
|
||||
$text .= "\n";
|
||||
$text .= "Please upload a suitable profile photo in the CIS under 'My CIS'->'Profile'.\n";
|
||||
$text .= "\n";
|
||||
$text .= "Thank you\n";
|
||||
$text .= "University of Applied Sciences Technikum Wien";
|
||||
|
||||
$mail = new mail($to, $from, $subject, $text);
|
||||
if($mail->send())
|
||||
@@ -240,7 +253,7 @@ if($result = $db->db_query($qry))
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="../../content/bild.php?src=person&person_id='.$row->person_id.'" height="100px" width="75px">
|
||||
<img src="../../content/bild.php?src=akte&person_id='.$row->person_id.'" height="100px" width="75px">
|
||||
</td>
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user