diff --git a/cis/private/profile/index.php b/cis/private/profile/index.php
index 8ccd33b46..e2a9d2f6e 100644
--- a/cis/private/profile/index.php
+++ b/cis/private/profile/index.php
@@ -54,6 +54,39 @@ if(isset($_GET['uid']))
$uid=stripslashes($_GET['uid']);
$ansicht=true;
}
+
+if(!$ansicht && isset($_GET['action']))
+{
+ switch($_GET['action'])
+ {
+ case 'foto_freigabe':
+ $benutzer = new benutzer();
+ if($benutzer->load($uid))
+ {
+ $person = new person();
+ if($person->load($benutzer->person_id))
+ {
+ $person->foto_sperre=false;
+ $person->new=false;
+ $person->save();
+ }
+ }
+ break;
+ case 'foto_sperre':
+ $benutzer = new benutzer();
+ if($benutzer->load($uid))
+ {
+ $person = new person();
+ if($person->load($benutzer->person_id))
+ {
+ $person->foto_sperre=true;
+ $person->new=false;
+ $person->save();
+ }
+ }
+ break;
+ }
+}
$stg = '';
@@ -155,16 +188,27 @@ echo '
';
-//Foto anzeigen oder Upload Button
-//if($foto!='')
+//Foto anzeigen
+
+echo ' ';
+if(!($ansicht && $user->foto_sperre))
echo ' ';
-//else
-//{
+
if(!$ansicht)
echo " ".$p->t('profil/bildHochladen')."";
-//}
+if($user->foto_sperre)
+ echo ' Profilfoto gesperrt';
+
+if(!$ansicht)
+{
+ if($user->foto_sperre)
+ echo ' '.$p->t('profil/fotofreigeben').'';
+ else
+ echo ' '.$p->t('profil/fotosperren').'';
+}
+
+echo ' | ';
echo '
-
'.$p->t('profil/email').'
'.$p->t('profil/intern').': '.$user->uid.'@'.DOMAIN.'
';
@@ -237,7 +281,7 @@ if(!$ansicht)
JOIN public.tbl_funktion USING(funktion_kurzbz)
JOIN public.tbl_organisationseinheit USING(oe_kurzbz)
WHERE
- uid='$uid' AND
+ uid=".$db->db_add_param($uid)." AND
(tbl_benutzerfunktion.datum_von is null OR tbl_benutzerfunktion.datum_von<=now()) AND
(tbl_benutzerfunktion.datum_bis is null OR tbl_benutzerfunktion.datum_bis>=now())";
@@ -295,11 +339,6 @@ if(!$ansicht)
}
}
- if(!$ansicht)
- {
- echo "";
- echo "";
- }
echo "
";
echo '
diff --git a/cis/public/bild.php b/cis/public/bild.php
index 79a21bc19..d8e4c5a11 100644
--- a/cis/public/bild.php
+++ b/cis/public/bild.php
@@ -25,6 +25,7 @@
require_once('../../config/cis.config.inc.php');
require_once('../../include/functions.inc.php');
require_once('../../include/basis_db.class.php');
+require_once('../../include/benutzer.class.php');
if (!$db = new basis_db())
die('Fehler beim Oeffnen der Datenbankverbindung');
@@ -42,12 +43,26 @@ $cTmpHEX='/9j/4AAQSkZJRgABAQEASABIAAD/4QAWRXhpZgAATU0AKgAAAAgAAAAAAAD//gAXQ3JlYX
//Hex Dump aus der DB holen
if(isset($_GET['src']) && $_GET['src']=='person' && isset($_GET['person_id']) && is_numeric($_GET['person_id']))
{
- $qry = "SELECT inhalt as foto FROM public.tbl_akte WHERE person_id='".addslashes($_GET['person_id'])."' AND dokument_kurzbz='Lichtbil'";
+ $qry = "SELECT tbl_akte.inhalt as foto, tbl_person.foto_sperre FROM public.tbl_akte JOIN public.tbl_person USING(person_id) WHERE tbl_akte.person_id='".addslashes($_GET['person_id'])."' AND dokument_kurzbz='Lichtbil'";
if($result = $db->db_query($qry))
{
if($row = $db->db_fetch_object($result))
{
- if($row->foto!='')
+ $gesperrt=false;
+
+ //Schauen ob eine Foto Sperre existiert
+ if($db->db_parse_bool($row->foto_sperre))
+ {
+ $gesperrt=true;
+
+ //Wenn der User selbst darauf zugreift darf er das Bild sehen
+ $benutzer = new benutzer();
+ $benutzer->load($uid);
+ if($benutzer->person_id==$_GET['person_id'])
+ $gesperrt=false;
+ }
+
+ if($row->foto!='' && !$gesperrt)
$cTmpHEX=$row->foto;
}
}
diff --git a/include/person.class.php b/include/person.class.php
index ee887d7f5..5f7140179 100644
--- a/include/person.class.php
+++ b/include/person.class.php
@@ -62,11 +62,12 @@ class person extends basis_db
public $ext_id; // bigint
public $kurzbeschreibung; // text
public $zugangscode = null; // varchar(32)
+ public $foto_sperre=false; // boolean
- // *************************************************************************
- // * Konstruktor - Uebergibt die Connection und laedt optional eine Person
- // * @param $person_id Person die geladen werden soll (default=null)
- // *************************************************************************
+ /**
+ * Konstruktor - Uebergibt die Connection und laedt optional eine Person
+ * @param $person_id Person die geladen werden soll (default=null)
+ */
public function __construct($person_id=null)
{
parent::__construct();
@@ -75,10 +76,10 @@ class person extends basis_db
$this->load($person_id);
}
- // *********************************************************
- // * Laedt Person mit der uebergebenen ID
- // * @param $person_id ID der Person die geladen werden soll
- // *********************************************************
+ /**
+ * Laedt Person mit der uebergebenen ID
+ * @param $person_id ID der Person die geladen werden soll
+ */
public function load($person_id)
{
//person_id auf gueltigkeit pruefen
@@ -87,8 +88,8 @@ class person extends basis_db
$qry = "SELECT person_id, sprache, anrede, titelpost, titelpre, nachname, vorname, vornamen,
gebdatum, gebort, gebzeit, foto, anmerkung, homepage, svnr, ersatzkennzeichen,
familienstand, anzahlkinder, aktiv, insertamum, insertvon, updateamum, updatevon, ext_id,
- geschlecht, staatsbuergerschaft, geburtsnation, kurzbeschreibung, zugangscode
- FROM public.tbl_person WHERE person_id='$person_id'";
+ geschlecht, staatsbuergerschaft, geburtsnation, kurzbeschreibung, zugangscode, foto_sperre
+ FROM public.tbl_person WHERE person_id=".$this->db_add_param($person_id, FHC_INTEGER);
if(!$this->db_query($qry))
{
@@ -116,7 +117,7 @@ class person extends basis_db
$this->ersatzkennzeichen = $row->ersatzkennzeichen;
$this->familienstand = $row->familienstand;
$this->anzahlkinder = $row->anzahlkinder;
- $this->aktiv = ($row->aktiv=='t'?true:false);
+ $this->aktiv = $this->db_parse_bool($row->aktiv);
$this->insertamum = $row->insertamum;
$this->insertvon = $row->insertvon;
$this->updateamum = $row->updateamum;
@@ -127,10 +128,11 @@ class person extends basis_db
$this->geburtsnation = $row->geburtsnation;
$this->kurzbeschreibung = $row->kurzbeschreibung;
$this->zugangscode = $row->zugangscode;
+ $this->foto_sperre = $this->db_parse_bool($row->foto_sperre);
}
else
{
- $this->errormsg = "Es ist kein Personendatensatz mit der ID ".$person_id." vorhanden\n";
+ $this->errormsg = "Es ist kein Personendatensatz mit dieser ID vorhanden";
return false;
}
@@ -138,7 +140,7 @@ class person extends basis_db
}
else
{
- $this->errormsg = "Die person_id muss eine gueltige Zahl sein\n";
+ $this->errormsg = "Die person_id muss eine gueltige Zahl sein";
return false;
}
}
@@ -150,7 +152,7 @@ class person extends basis_db
*/
public function delete($person_id)
{
- $qry = "DELETE from public.tbl_person where person_id = ".addslashes($person_id).";";
+ $qry = "DELETE from public.tbl_person where person_id = ".$this->db_add_param($person_id, FHC_INTEGER).";";
if($this->db_query($qry))
{
@@ -268,7 +270,7 @@ class person extends basis_db
if($this->svnr!='')
{
//Pruefen ob bereits ein Eintrag mit dieser SVNR vorhanden ist
- $qry = "SELECT person_id FROM public.tbl_person WHERE svnr='$this->svnr'";
+ $qry = "SELECT person_id FROM public.tbl_person WHERE svnr=".$this->db_add_param($this->svnr);
if($this->db_query($qry))
{
if($row = $this->db_fetch_object())
@@ -375,12 +377,12 @@ class person extends basis_db
return true;
}
- // ************************************************************
- // * Speichert die Personendaten in die Datenbank
- // * Wenn $new auf true gesetzt ist wird ein neuer Datensatz
- // * angelegt, ansonsten der Datensatz mit $person_id upgedated
- // * @return true wenn erfolgreich, false im Fehlerfall
- // ************************************************************
+ /**
+ * Speichert die Personendaten in die Datenbank
+ * Wenn $new auf true gesetzt ist wird ein neuer Datensatz
+ * angelegt, ansonsten der Datensatz mit $person_id upgedated
+ * @return true wenn erfolgreich, false im Fehlerfall
+ */
public function save()
{
//Variablen auf Gueltigkeit pruefen
@@ -392,73 +394,73 @@ class person extends basis_db
$qry = 'INSERT INTO public.tbl_person (sprache, anrede, titelpost, titelpre, nachname, vorname, vornamen,
gebdatum, gebort, gebzeit, foto, anmerkung, homepage, svnr, ersatzkennzeichen,
familienstand, anzahlkinder, aktiv, insertamum, insertvon, updateamum, updatevon,
- geschlecht, geburtsnation, staatsbuergerschaft, ext_id, kurzbeschreibung, zugangscode)
- VALUES('.$this->addslashes($this->sprache).','.
- $this->addslashes($this->anrede).','.
- $this->addslashes($this->titelpost).','.
- $this->addslashes($this->titelpre).','.
- $this->addslashes($this->nachname).','.
- $this->addslashes($this->vorname).','.
- $this->addslashes($this->vornamen).','.
- $this->addslashes($this->gebdatum).','.
- $this->addslashes($this->gebort).','.
- $this->addslashes($this->gebzeit).','.
- $this->addslashes($this->foto).','.
- $this->addslashes($this->anmerkungen).','.
- $this->addslashes($this->homepage).','.
- $this->addslashes($this->svnr).','.
- $this->addslashes($this->ersatzkennzeichen).','.
- $this->addslashes($this->familienstand).','.
- $this->addslashes($this->anzahlkinder).','.
- ($this->aktiv?'true':'false').','.
+ geschlecht, geburtsnation, staatsbuergerschaft, ext_id, kurzbeschreibung, zugangscode, foto_sperre)
+ VALUES('.$this->db_add_param($this->sprache).','.
+ $this->db_add_param($this->anrede).','.
+ $this->db_add_param($this->titelpost).','.
+ $this->db_add_param($this->titelpre).','.
+ $this->db_add_param($this->nachname).','.
+ $this->db_add_param($this->vorname).','.
+ $this->db_add_param($this->vornamen).','.
+ $this->db_add_param($this->gebdatum).','.
+ $this->db_add_param($this->gebort).','.
+ $this->db_add_param($this->gebzeit).','.
+ $this->db_add_param($this->foto).','.
+ $this->db_add_param($this->anmerkungen).','.
+ $this->db_add_param($this->homepage).','.
+ $this->db_add_param($this->svnr).','.
+ $this->db_add_param($this->ersatzkennzeichen).','.
+ $this->db_add_param($this->familienstand).','.
+ $this->db_add_param($this->anzahlkinder).','.
+ $this->db_add_param($this->aktiv, FHC_BOOLEAN).','.
'now(),'.
- $this->addslashes($this->insertvon).','.
+ $this->db_add_param($this->insertvon).','.
'now(),'.
- $this->addslashes($this->updatevon).','.
- $this->addslashes($this->geschlecht).','.
- $this->addslashes($this->geburtsnation).','.
- $this->addslashes($this->staatsbuergerschaft).','.
- $this->addslashes($this->ext_id).','.
- $this->addslashes($this->kurzbeschreibung).','.
- $this->addslashes($this->zugangscode).');';
+ $this->db_add_param($this->updatevon).','.
+ $this->db_add_param($this->geschlecht).','.
+ $this->db_add_param($this->geburtsnation).','.
+ $this->db_add_param($this->staatsbuergerschaft).','.
+ $this->db_add_param($this->ext_id).','.
+ $this->db_add_param($this->kurzbeschreibung).','.
+ $this->db_add_param($this->zugangscode).','.
+ $this->db_add_param($this->foto_sperre, FHC_BOOLEAN).');';
}
else
{
//person_id auf gueltigkeit pruefen
if(!is_numeric($this->person_id))
{
- $this->errormsg = "person_id muss eine gueltige Zahl sein\n";
+ $this->errormsg = "person_id muss eine gueltige Zahl sein";
return false;
}
$qry = 'UPDATE public.tbl_person SET'.
- ' sprache='.$this->addslashes($this->sprache).','.
- ' anrede='.$this->addslashes($this->anrede).','.
- ' titelpost='.$this->addslashes($this->titelpost).','.
- ' titelpre='.$this->addslashes($this->titelpre).','.
- ' nachname='.$this->addslashes($this->nachname).','.
- ' vorname='.$this->addslashes($this->vorname).','.
- ' vornamen='.$this->addslashes($this->vornamen).','.
- ' gebdatum='.$this->addslashes($this->gebdatum).','.
- ' gebort='.$this->addslashes($this->gebort).','.
- ' gebzeit='.$this->addslashes($this->gebzeit).','.
- ' foto='.$this->addslashes($this->foto).','.
- ' anmerkung='.$this->addslashes($this->anmerkungen).','.
- ' homepage='.$this->addslashes($this->homepage).','.
- ' svnr='.$this->addslashes($this->svnr).','.
- ' ersatzkennzeichen='.$this->addslashes($this->ersatzkennzeichen).','.
- ' familienstand='.$this->addslashes($this->familienstand).','.
- ' anzahlkinder='.$this->addslashes($this->anzahlkinder).','.
- ' aktiv='.($this->aktiv?'true':'false').','.
- //' insertamum='.$this->addslashes($this->insertamum).','.
- //' insertvon='.$this->addslashes($this->insertvon).','.
+ ' sprache='.$this->db_add_param($this->sprache).','.
+ ' anrede='.$this->db_add_param($this->anrede).','.
+ ' titelpost='.$this->db_add_param($this->titelpost).','.
+ ' titelpre='.$this->db_add_param($this->titelpre).','.
+ ' nachname='.$this->db_add_param($this->nachname).','.
+ ' vorname='.$this->db_add_param($this->vorname).','.
+ ' vornamen='.$this->db_add_param($this->vornamen).','.
+ ' gebdatum='.$this->db_add_param($this->gebdatum).','.
+ ' gebort='.$this->db_add_param($this->gebort).','.
+ ' gebzeit='.$this->db_add_param($this->gebzeit).','.
+ ' foto='.$this->db_add_param($this->foto).','.
+ ' anmerkung='.$this->db_add_param($this->anmerkungen).','.
+ ' homepage='.$this->db_add_param($this->homepage).','.
+ ' svnr='.$this->db_add_param($this->svnr).','.
+ ' ersatzkennzeichen='.$this->db_add_param($this->ersatzkennzeichen).','.
+ ' familienstand='.$this->db_add_param($this->familienstand).','.
+ ' anzahlkinder='.$this->db_add_param($this->anzahlkinder).','.
+ ' aktiv='.$this->db_add_param($this->aktiv, FHC_BOOLEAN).','.
' updateamum=now(),'.
- ' updatevon='.$this->addslashes($this->updatevon).','.
- ' geschlecht='.$this->addslashes($this->geschlecht).','.
- ' geburtsnation='.$this->addslashes($this->geburtsnation).','.
- ' staatsbuergerschaft='.$this->addslashes($this->staatsbuergerschaft).','.
- ' ext_id='.$this->addslashes($this->ext_id).','.
- ' kurzbeschreibung='.$this->addslashes($this->kurzbeschreibung).
+ ' updatevon='.$this->db_add_param($this->updatevon).','.
+ ' geschlecht='.$this->db_add_param($this->geschlecht).','.
+ ' geburtsnation='.$this->db_add_param($this->geburtsnation).','.
+ ' staatsbuergerschaft='.$this->db_add_param($this->staatsbuergerschaft).','.
+ ' ext_id='.$this->db_add_param($this->ext_id).','.
+ ' kurzbeschreibung='.$this->db_add_param($this->kurzbeschreibung).','.
+ ' foto_sperre='.$this->db_add_param($this->foto_sperre, FHC_BOOLEAN).
' WHERE person_id='.$this->person_id.';';
}
@@ -473,7 +475,7 @@ class person extends basis_db
$this->person_id=$row->id;
else
{
- $this->errormsg = "Sequence konnte nicht ausgelesen werden\n";
+ $this->errormsg = "Sequence konnte nicht ausgelesen werden";
return false;
}
}
@@ -483,13 +485,12 @@ class person extends basis_db
return false;
}
}
- //Log schreiben
return true;
}
else
{
- $this->errormsg = "Fehler beim Speichern des Person-Datensatzes:".$this->db_last_error();
+ $this->errormsg = "Fehler beim Speichern des Person-Datensatzes";
return false;
}
}
@@ -506,10 +507,10 @@ class person extends basis_db
if($filter!='')
{
- $sql_query.=" AND nachname ~* '".addslashes($filter)."' OR
- vorname ~* '".addslashes($filter)."' OR
- (nachname || ' ' || vorname) ~* '".addslashes($filter)."' OR
- (vorname || ' ' || nachname) ~* '".addslashes($filter)."'";
+ $sql_query.=" AND nachname ~* '".$this->db_escape($filter)."' OR
+ vorname ~* '".$this->db_escape($filter)."' OR
+ (nachname || ' ' || vorname) ~* '".$this->db_escape($filter)."' OR
+ (vorname || ' ' || nachname) ~* '".$this->db_escape($filter)."'";
}
$sql_query .= " ORDER BY $order";
@@ -542,13 +543,14 @@ class person extends basis_db
$l->familienstand = $row->familienstand;
$l->geschlecht = $row->geschlecht;
$l->anzahlkinder = $row->anzahlkinder;
- $l->aktiv = $row->aktiv;
+ $l->aktiv = $this->db_parse_bool($row->aktiv);
$l->updateamum = $row->updateamum;
$l->updatevon = $row->updatevon;
$l->insertamum = $row->insertamum;
$l->insertvon = $row->insertvon;
$l->ext_id = $row->ext_id;
$l->kurzbeschreibung = $row->kurzbeschreibung;
+ $l->foto_sperre = $this->db_parse_bool($row->foto_sperre);
$this->personen[]=$l;
}
}
@@ -588,15 +590,15 @@ class person extends basis_db
$qry.=" WHERE tbl_person.person_id=tbl_personfunktionstandort.person_id";
if($personfunktionstandort_id!='')
- $qry.=" and tbl_personfunktionstandort.personfunktionstandort_id='".addslashes($personfunktionstandort_id)."'";
+ $qry.=" and tbl_personfunktionstandort.personfunktionstandort_id=".$this->db_add_param($personfunktionstandort_id, FHC_INTEGER);
if(is_numeric($standort_id))
- $qry.=" and tbl_personfunktionstandort.standort_id='".addslashes($standort_id)."'";
+ $qry.=" and tbl_personfunktionstandort.standort_id=".$this->db_add_param($standort_id, FHC_INTEGER);
if(is_numeric($person_id))
- $qry.=" and tbl_personfunktionstandort.person_id='".addslashes($person_id)."'";
+ $qry.=" and tbl_personfunktionstandort.person_id=".$this->db_add_param($person_id, FHC_INTEGER);
if(is_numeric($firma_id))
- $qry.=" and public.tbl_standort.firma_id='".addslashes($firma_id)."'";
+ $qry.=" and public.tbl_standort.firma_id=".$this->db_add_param($firma_id, FHC_INTEGER);
if($funktion_kurzbz!='')
- $qry.=" and tbl_personfunktionstandort.funktion_kurzbz='".addslashes($funktion_kurzbz)."'";
+ $qry.=" and tbl_personfunktionstandort.funktion_kurzbz=".$this->db_add_param($funktion_kurzbz);
@@ -630,14 +632,14 @@ class person extends basis_db
$adr_obj->familienstand = $row->familienstand;
$adr_obj->geschlecht = $row->geschlecht;
$adr_obj->anzahlkinder = $row->anzahlkinder;
- $adr_obj->aktiv = $row->aktiv;
+ $adr_obj->aktiv = $this->db_parse_bool($row->aktiv);
$adr_obj->updateamum = $row->updateamum;
$adr_obj->updatevon = $row->updatevon;
$adr_obj->insertamum = $row->insertamum;
$adr_obj->insertvon = $row->insertvon;
$adr_obj->ext_id = $row->ext_id;
$adr_obj->kurzbeschreibung = $row->kurzbeschreibung;
-
+ $adr_obj->foto_sperre = $this->db_parse_bool($row->foto_sperre);
$adr_obj->standort_id = $row->standort_id;
$adr_obj->adresse_id = $row->adresse_id;
@@ -653,7 +655,7 @@ class person extends basis_db
$adr_obj->anrede = $row->anrede;
$adr_obj->funktion_beschreibung = $row->funktion_beschreibung;
- $adr_obj->funktion_aktiv = ($row->funktion_aktiv=='t'?true:false);
+ $adr_obj->funktion_aktiv = $this->db_parse_bool($row->funktion_aktiv);
$adr_obj->funktion_fachbereich = $row->funktion_fachbereich;
$adr_obj->funktion_semester = $row->funktion_semester;
@@ -669,10 +671,14 @@ class person extends basis_db
*/
public function checkZugangscode($zugangscode)
{
- $qry ="Select preincoming_id
- from public.tbl_preincoming
- where person_id = (Select person_id from public.tbl_person where zugangscode='".$zugangscode."')
- order by insertamum DESC;";
+ $qry ="
+ SELECT
+ preincoming_id
+ FROM
+ public.tbl_preincoming
+ WHERE
+ person_id = (SELECT person_id FROM public.tbl_person WHERE zugangscode=".$this->db_add_param($zugangscode).")
+ ORDER BY insertamum DESC;";
if($this->db_query($qry))
{
@@ -697,7 +703,7 @@ class person extends basis_db
*/
public function getPersonFromZugangscode($zugangscode)
{
- $qry ="Select * from public.tbl_person where zugangscode=".$this->addslashes($zugangscode).";";
+ $qry ="SELECT * FROM public.tbl_person WHERE zugangscode=".$this->db_add_param($zugangscode).";";
if($this->db_query($qry))
{
@@ -724,14 +730,15 @@ class person extends basis_db
$this->familienstand = $row->familienstand;
$this->geschlecht = $row->geschlecht;
$this->anzahlkinder = $row->anzahlkinder;
- $this->aktiv = $row->aktiv;
+ $this->aktiv = $this->db_parse_bool($row->aktiv);
$this->updateamum = $row->updateamum;
$this->updatevon = $row->updatevon;
$this->insertamum = $row->insertamum;
$this->insertvon = $row->insertvon;
$this->ext_id = $row->ext_id;
$this->kurzbeschreibung = $row->kurzbeschreibung;
- $this->zugangscode = $row->zugangscode;
+ $this->zugangscode = $row->zugangscode;
+ $this->foto_sperre = $this->db_parse_bool($row->foto_sperre);
}
else
{
diff --git a/locale/de-AT/profil.php b/locale/de-AT/profil.php
index 53b1e5d84..c5fa3f66a 100644
--- a/locale/de-AT/profil.php
+++ b/locale/de-AT/profil.php
@@ -56,4 +56,6 @@ $this->phrasen['profil/nurJPGBilder']='Derzeit koennen nur Bilder im JPG Format
$this->phrasen['profil/BilduploadInfotext']='Derzeit können nur Bilder im JPG Format mit einer Maximalgröße von 15MB hochgeladen werden!
Bitte beachten Sie die Richtlinien für den Bildupload';
$this->phrasen['profil/Bild']='Bild';
$this->phrasen['profil/Bildupload']='Bildupload';
+$this->phrasen['profil/fotofreigeben']='Sperre des Profilfotos aufheben';
+$this->phrasen['profil/fotosperren']='Profilfoto für interne Zwecke sperren';
?>
diff --git a/system/FH-Complete.txp b/system/FH-Complete.txp
index 0ab4ca369..e784e2749 100644
--- a/system/FH-Complete.txp
+++ b/system/FH-Complete.txp
@@ -27112,11 +27112,11 @@
0
0
-28
- 2010
- 6427
+ 2260
+ 6450
0
959
- 1292
+ 1331
0
1
1
@@ -29997,8 +29997,8 @@
{C2303976-8004-4530-A9DC-543D000F94C9}
- 7964
- 2736
+ 7975
+ 2709
8701
@@ -30009,12 +30009,12 @@
2585
- 7417
- 2979
+ 7440
+ 2926
- 7386
- 2979
+ 7409
+ 2926
@@ -30083,16 +30083,16 @@
{003CB043-E645-44CB-A1E7-B2DAB7CD0513}
- 8170
- 1775
+ 7974
+ 1562
- 7386
- 2656
+ 7025
+ 2260
- 7417
- 2656
+ 7025
+ 2229
9430
@@ -30126,16 +30126,16 @@
{6197D07D-4517-402A-9CB4-3BE888A5681A}
- 4653
- 2623
+ 4665
+ 2727
- 6427
- 2494
+ 6450
+ 2704
- 6396
- 2494
+ 6419
+ 2704
1142
@@ -30169,16 +30169,16 @@
{451B8084-866B-49D2-AD9C-4FAF675CDAA6}
- 6262
- 2088
+ 6274
+ 2206
- 6427
- 2172
+ 6450
+ 2408
- 6396
- 2172
+ 6419
+ 2408
5062
@@ -30212,16 +30212,16 @@
{CA4F7EAC-55C4-480E-B7C9-180DB66AC5B0}
- 7749
- 1302
+ 7633
+ 1427
- 7066
- 2010
+ 6834
+ 2260
- 7066
- 1979
+ 6834
+ 2229
8404
@@ -30298,16 +30298,16 @@
{33986E60-971D-45AB-863E-3389A4534998}
- 6307
- 1757
+ 6319
+ 1869
- 6427
- 2333
+ 6450
+ 2556
- 6396
- 2333
+ 6419
+ 2556
3710
@@ -30341,16 +30341,16 @@
{C1125389-C466-4DFA-88C1-872A5EAA6C84}
- 3596
- 3137
+ 3607
+ 3235
- 6427
- 2656
+ 6450
+ 2852
- 6396
- 2656
+ 6419
+ 2852
995
@@ -30384,16 +30384,16 @@
{FFCA6168-3717-4994-BC3B-042505DD8EED}
- 8168
- 2092
+ 8068
+ 2039
- 7386
- 2333
+ 7217
+ 2260
- 7417
- 2333
+ 7217
+ 2229
7521
@@ -30427,16 +30427,16 @@
{C9AFAFC7-19FB-4784-A406-4B4CDEABCD21}
- 7637
- 1147
+ 7585
+ 1272
- 6747
- 2010
+ 6642
+ 2260
- 6747
- 1979
+ 6642
+ 2229
8440
@@ -30470,16 +30470,16 @@
{58DA1692-56FE-4F60-85AF-A1081BBC9D56}
- 5996
- 3060
+ 6007
+ 3150
- 6427
- 2818
+ 6450
+ 2999
- 6396
- 2818
+ 6419
+ 2999
3679
@@ -32331,16 +32331,16 @@
{DBBBEEE5-BBA2-48F5-9350-350BBFF93EC5}
- 5350
- 4406
+ 5282
+ 4550
- 7066
- 3302
+ 6930
+ 3591
- 7066
- 3333
+ 6930
+ 3622
3834
@@ -32460,16 +32460,16 @@
{DBBBEEE5-BBA2-48F5-9350-350BBFF93EC5}
- 5191
- 4256
+ 5027
+ 4312
- 6747
- 3302
+ 6450
+ 3443
- 6747
- 3333
+ 6419
+ 3443
3834
@@ -32503,16 +32503,16 @@
{DBBBEEE5-BBA2-48F5-9350-350BBFF93EC5}
- 5015
- 4010
+ 5027
+ 4088
- 6427
- 3140
+ 6450
+ 3295
- 6396
- 3140
+ 6419
+ 3295
3834
@@ -32546,16 +32546,16 @@
{DBBBEEE5-BBA2-48F5-9350-350BBFF93EC5}
- 5015
- 3773
+ 5027
+ 3857
- 6427
- 2979
+ 6450
+ 3147
- 6396
- 2979
+ 6419
+ 3147
3834
@@ -43131,7 +43131,7 @@
1230
0
877
- 1136
+ 1175
0
1
1
@@ -44309,8 +44309,8 @@
{AC7E9335-6EDA-449D-AAED-066D0C76A911}
- 920
- 1596
+ 921
+ 1602
949
@@ -44322,11 +44322,11 @@
1199
- 1307
+ 1320
1230
- 1307
+ 1320
@@ -44396,7 +44396,7 @@
{AC7E9335-6EDA-449D-AAED-066D0C76A911}
1030
- 2025
+ 2044
1720
@@ -44408,11 +44408,11 @@
1668
- 2095
+ 2134
1668
- 2064
+ 2103
@@ -44481,16 +44481,16 @@
{59E89AFD-49F1-4495-990C-7D1E0CFAE754}
- 1152
- 1709
+ 1151
+ 1722
1230
- 1685
+ 1711
1199
- 1685
+ 1711
1226
@@ -44568,7 +44568,7 @@
{AC7E9335-6EDA-449D-AAED-066D0C76A911}
2410
- 1292
+ 1302
3131
@@ -44580,11 +44580,11 @@
2138
- 1496
+ 1516
2107
- 1496
+ 1516
@@ -49060,7 +49060,7 @@
Technikum Wien
2.0
2009-04-17T11:15:21.000+02:00
- 2012-05-07T14:09:29.873+02:00
+ 2012-06-05T16:21:25.633+02:00
FH-Complete 2.0
<?xml-stylesheet type="text/xsl" href="FHCompleteTDM3PG83.xsl"?>
@@ -93002,6 +93002,47 @@ art=tbl_benutzerrolle.art & tbl_rolleberechtigung.art
0
+
+ {63AF8BE0-0479-4291-9CAF-7E7FF932BF9E}
+ nummer_myfare
+ 0
+ {887B86ED-2777-4771-8690-0BDA46ED379C}
+ 0
+ 0
+ 0
+ 0
+ 1
+
+
+
+
+ 32
+
+ 0
+
+ 0
+ 0
+ nummer_myfare
+ 0
+
+
+
+
+
+
+
+
+
+ {ECB8F02F-B683-4252-8508-ED9D064C9AF3}
+
+
+
+
+
+
+
+ 0
+
@@ -104492,6 +104533,47 @@ ALTER TABLE tbl_mitarbeiter ALTER COLUMN personalnummer DROP NOT NULL;
0
+
+ {D926DDDD-7C90-4CBC-9720-EBA28DA9BA6F}
+ foto_sperre
+ 0
+ {6CC38713-22E1-4879-AB54-E34CDBCAD215}
+ 0
+ 0
+ 0
+ 0
+ 1
+
+
+
+
+
+
+ 0
+ false
+ 1
+ 0
+ foto_sperre
+ 0
+
+
+
+
+
+
+
+
+
+ {D64069A5-B04A-490B-B0A2-5144DEA81A2E}
+
+
+
+
+
+
+
+ 0
+
diff --git a/system/checksystem.php b/system/checksystem.php
index 979dd2e89..3ef6f3382 100644
--- a/system/checksystem.php
+++ b/system/checksystem.php
@@ -3586,6 +3586,27 @@ if(!@$db->db_query("SELECT anmerkung_student FROM public.tbl_preoutgoing LIMIT 1
echo 'Tabelle public.tbl_preoutgoing Spalten anmerkungStudent, anmerkungAdmin, studienrichtungGastuniversitaet';
}
+// foto_intern Boolean
+if(!@$db->db_query("SELECT foto_sperre FROM public.tbl_person LIMIT 1"))
+{
+ $qry = "ALTER TABLE public.tbl_person ADD COLUMN foto_sperre boolean NOT NULL DEFAULT false;";
+
+ if(!$db->db_query($qry))
+ echo 'public.tbl_person: '.$db->db_last_error().'
';
+ else
+ echo 'Tabelle public.tbl_person Spalte foto_intern hinzugefuegt';
+}
+
+// nummer_myfare in Tabelle Betriebsmittel
+if(!@$db->db_query("SELECT nummer_myfare FROM wawi.tbl_betriebsmittel LIMIT 1"))
+{
+ $qry = "ALTER TABLE wawi.tbl_betriebsmittel ADD COLUMN nummer_myfare varchar(32);";
+
+ if(!$db->db_query($qry))
+ echo 'wawi.tbl_betriebsmittel: '.$db->db_last_error().'
';
+ else
+ echo 'Tabelle wawi.tbl_betriebsmittel Spalte nummer_myfare hinzugefuegt';
+}
echo '
';
$tabellen=array(
@@ -3724,7 +3745,7 @@ $tabellen=array(
"public.tbl_ortraumtyp" => array("ort_kurzbz","hierarchie","raumtyp_kurzbz"),
"public.tbl_organisationseinheit" => array("oe_kurzbz", "oe_parent_kurzbz", "bezeichnung","organisationseinheittyp_kurzbz", "aktiv","mailverteiler","freigabegrenze","kurzzeichen"),
"public.tbl_organisationseinheittyp" => array("organisationseinheittyp_kurzbz", "bezeichnung", "beschreibung"),
- "public.tbl_person" => array("person_id","staatsbuergerschaft","geburtsnation","sprache","anrede","titelpost","titelpre","nachname","vorname","vornamen","gebdatum","gebort","gebzeit","foto","anmerkung","homepage","svnr","ersatzkennzeichen","familienstand","geschlecht","anzahlkinder","aktiv","insertamum","insertvon","updateamum","updatevon","ext_id","bundesland_code","kompetenzen","kurzbeschreibung","zugangscode"),
+ "public.tbl_person" => array("person_id","staatsbuergerschaft","geburtsnation","sprache","anrede","titelpost","titelpre","nachname","vorname","vornamen","gebdatum","gebort","gebzeit","foto","anmerkung","homepage","svnr","ersatzkennzeichen","familienstand","geschlecht","anzahlkinder","aktiv","insertamum","insertvon","updateamum","updatevon","ext_id","bundesland_code","kompetenzen","kurzbeschreibung","zugangscode", "foto_sperre"),
"public.tbl_personfunktionstandort" => array("personfunktionstandort_id","funktion_kurzbz","person_id","standort_id","position","anrede"),
"public.tbl_preincoming" => array("preincoming_id","person_id","mobilitaetsprogramm_code","zweck_code","firma_id","universitaet","aktiv","bachelorthesis","masterthesis","von","bis","uebernommen","insertamum","insertvon","updateamum","updatevon","anmerkung","zgv","zgv_ort","zgv_datum","zgv_name","zgvmaster","zgvmaster_datum","zgvmaster_ort","zgvmaster_name","program_name","bachelor","master","jahre","person_id_emergency","person_id_coordinator_dep","person_id_coordinator_int","code","deutschkurs1","deutschkurs2","research_area","deutschkurs3"),
"public.tbl_preincoming_lehrveranstaltung" => array("preincoming_id","lehrveranstaltung_id","insertamum","insertvon"),
@@ -3774,7 +3795,7 @@ $tabellen=array(
"system.tbl_webservicetyp" => array("webservicetyp_kurzbz","beschreibung"),
"system.tbl_server" => array("server_kurzbz","beschreibung"),
"wawi.tbl_betriebsmittelperson" => array("betriebsmittelperson_id","betriebsmittel_id","person_id", "anmerkung", "kaution", "ausgegebenam", "retouram","insertamum", "insertvon","updateamum", "updatevon","ext_id"),
- "wawi.tbl_betriebsmittel" => array("betriebsmittel_id","betriebsmitteltyp","oe_kurzbz", "ort_kurzbz", "beschreibung", "nummer", "hersteller","seriennummer", "bestellung_id","bestelldetail_id", "afa","verwendung","anmerkung","reservieren","updateamum","updatevon","insertamum","insertvon","ext_id","inventarnummer","leasing_bis","inventuramum","inventurvon","anschaffungsdatum","anschaffungswert","hoehe","breite","tiefe"),
+ "wawi.tbl_betriebsmittel" => array("betriebsmittel_id","betriebsmitteltyp","oe_kurzbz", "ort_kurzbz", "beschreibung", "nummer", "hersteller","seriennummer", "bestellung_id","bestelldetail_id", "afa","verwendung","anmerkung","reservieren","updateamum","updatevon","insertamum","insertvon","ext_id","inventarnummer","leasing_bis","inventuramum","inventurvon","anschaffungsdatum","anschaffungswert","hoehe","breite","tiefe","nummer_myfare"),
"wawi.tbl_betriebsmittel_betriebsmittelstatus" => array("betriebsmittelbetriebsmittelstatus_id","betriebsmittel_id","betriebsmittelstatus_kurzbz", "datum", "updateamum", "updatevon", "insertamum", "insertvon","anmerkung"),
"wawi.tbl_betriebsmittelstatus" => array("betriebsmittelstatus_kurzbz","beschreibung"),
"wawi.tbl_betriebsmitteltyp" => array("betriebsmitteltyp","beschreibung","anzahl","kaution","typ_code","mastershapename"),