Bildsperre für Interne Zwecke

This commit is contained in:
Andreas Österreicher
2012-06-08 11:29:11 +00:00
parent 81a3e22709
commit b8ca77e38a
6 changed files with 383 additions and 217 deletions
+51 -12
View File
@@ -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 '
</P>
</td>
<td align="right">';
//Foto anzeigen oder Upload Button
//if($foto!='')
//Foto anzeigen
echo '<br>';
if(!($ansicht && $user->foto_sperre))
echo '<img id="personimage" src="../../public/bild.php?src=person&person_id='.$user->person_id.'" alt="'.$user->person_id.'" height="100px" width="75px">';
//else
//{
if(!$ansicht)
echo "<br><a href='#BildUpload' onclick='window.open(\"../bildupload.php?person_id=$user->person_id\",\"BildUpload\", \"height=500,width=500,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes\"); return false;'>".$p->t('profil/bildHochladen')."</a>";
//}
if($user->foto_sperre)
echo '<br><b>Profilfoto gesperrt</b>';
if(!$ansicht)
{
if($user->foto_sperre)
echo '<br><a href="'.$_SERVER['PHP_SELF'].'?action=foto_freigabe">'.$p->t('profil/fotofreigeben').'</a>';
else
echo '<br><a href="'.$_SERVER['PHP_SELF'].'?action=foto_sperre">'.$p->t('profil/fotosperren').'</a>';
}
echo '</td></tr></table>';
echo '
</td></tr></table>
<P>
<b>'.$p->t('profil/email').'</b><br>
'.$p->t('profil/intern').': <a class="Item" href="mailto:'.$user->uid.'@'.DOMAIN.'">'.$user->uid.'@'.DOMAIN.'</a><br>';
@@ -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 "</P>";
echo '
+17 -2
View File
@@ -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;
}
}
+105 -98
View File
@@ -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
{
+2
View File
@@ -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!<br><br><b>Bitte beachten Sie die <a href="../../cms/content.php?content_id=%s">Richtlinien für den Bildupload</a></b>';
$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';
?>
+185 -103
View File
@@ -27112,11 +27112,11 @@
<FontStyle>0</FontStyle>
<FormatLocked>0</FormatLocked>
<FontHeight>-28</FontHeight>
<Top>2010</Top>
<Left>6427</Left>
<Top>2260</Top>
<Left>6450</Left>
<z>0</z>
<Width>959</Width>
<Height>1292</Height>
<Height>1331</Height>
<dz>0</dz>
<RecalculateSizes>1</RecalculateSizes>
<UseWorkSpaceRecalculateSizes>1</UseWorkSpaceRecalculateSizes>
@@ -29997,8 +29997,8 @@
<WorkSpaceShape2>
<Id>{C2303976-8004-4530-A9DC-543D000F94C9}</Id>
</WorkSpaceShape2>
<NamePositionX>7964</NamePositionX>
<NamePositionY>2736</NamePositionY>
<NamePositionX>7975</NamePositionX>
<NamePositionY>2709</NamePositionY>
<Points>
<Point>
<x>8701</x>
@@ -30009,12 +30009,12 @@
<y>2585</y>
</Point>
<Point>
<x>7417</x>
<y>2979</y>
<x>7440</x>
<y>2926</y>
</Point>
<Point>
<x>7386</x>
<y>2979</y>
<x>7409</x>
<y>2926</y>
</Point>
</Points>
</WorkSpaceLinePERRelationPG83>
@@ -30083,16 +30083,16 @@
<WorkSpaceShape2>
<Id>{003CB043-E645-44CB-A1E7-B2DAB7CD0513}</Id>
</WorkSpaceShape2>
<NamePositionX>8170</NamePositionX>
<NamePositionY>1775</NamePositionY>
<NamePositionX>7974</NamePositionX>
<NamePositionY>1562</NamePositionY>
<Points>
<Point>
<x>7386</x>
<y>2656</y>
<x>7025</x>
<y>2260</y>
</Point>
<Point>
<x>7417</x>
<y>2656</y>
<x>7025</x>
<y>2229</y>
</Point>
<Point>
<x>9430</x>
@@ -30126,16 +30126,16 @@
<WorkSpaceShape2>
<Id>{6197D07D-4517-402A-9CB4-3BE888A5681A}</Id>
</WorkSpaceShape2>
<NamePositionX>4653</NamePositionX>
<NamePositionY>2623</NamePositionY>
<NamePositionX>4665</NamePositionX>
<NamePositionY>2727</NamePositionY>
<Points>
<Point>
<x>6427</x>
<y>2494</y>
<x>6450</x>
<y>2704</y>
</Point>
<Point>
<x>6396</x>
<y>2494</y>
<x>6419</x>
<y>2704</y>
</Point>
<Point>
<x>1142</x>
@@ -30169,16 +30169,16 @@
<WorkSpaceShape2>
<Id>{451B8084-866B-49D2-AD9C-4FAF675CDAA6}</Id>
</WorkSpaceShape2>
<NamePositionX>6262</NamePositionX>
<NamePositionY>2088</NamePositionY>
<NamePositionX>6274</NamePositionX>
<NamePositionY>2206</NamePositionY>
<Points>
<Point>
<x>6427</x>
<y>2172</y>
<x>6450</x>
<y>2408</y>
</Point>
<Point>
<x>6396</x>
<y>2172</y>
<x>6419</x>
<y>2408</y>
</Point>
<Point>
<x>5062</x>
@@ -30212,16 +30212,16 @@
<WorkSpaceShape2>
<Id>{CA4F7EAC-55C4-480E-B7C9-180DB66AC5B0}</Id>
</WorkSpaceShape2>
<NamePositionX>7749</NamePositionX>
<NamePositionY>1302</NamePositionY>
<NamePositionX>7633</NamePositionX>
<NamePositionY>1427</NamePositionY>
<Points>
<Point>
<x>7066</x>
<y>2010</y>
<x>6834</x>
<y>2260</y>
</Point>
<Point>
<x>7066</x>
<y>1979</y>
<x>6834</x>
<y>2229</y>
</Point>
<Point>
<x>8404</x>
@@ -30298,16 +30298,16 @@
<WorkSpaceShape2>
<Id>{33986E60-971D-45AB-863E-3389A4534998}</Id>
</WorkSpaceShape2>
<NamePositionX>6307</NamePositionX>
<NamePositionY>1757</NamePositionY>
<NamePositionX>6319</NamePositionX>
<NamePositionY>1869</NamePositionY>
<Points>
<Point>
<x>6427</x>
<y>2333</y>
<x>6450</x>
<y>2556</y>
</Point>
<Point>
<x>6396</x>
<y>2333</y>
<x>6419</x>
<y>2556</y>
</Point>
<Point>
<x>3710</x>
@@ -30341,16 +30341,16 @@
<WorkSpaceShape2>
<Id>{C1125389-C466-4DFA-88C1-872A5EAA6C84}</Id>
</WorkSpaceShape2>
<NamePositionX>3596</NamePositionX>
<NamePositionY>3137</NamePositionY>
<NamePositionX>3607</NamePositionX>
<NamePositionY>3235</NamePositionY>
<Points>
<Point>
<x>6427</x>
<y>2656</y>
<x>6450</x>
<y>2852</y>
</Point>
<Point>
<x>6396</x>
<y>2656</y>
<x>6419</x>
<y>2852</y>
</Point>
<Point>
<x>995</x>
@@ -30384,16 +30384,16 @@
<WorkSpaceShape2>
<Id>{FFCA6168-3717-4994-BC3B-042505DD8EED}</Id>
</WorkSpaceShape2>
<NamePositionX>8168</NamePositionX>
<NamePositionY>2092</NamePositionY>
<NamePositionX>8068</NamePositionX>
<NamePositionY>2039</NamePositionY>
<Points>
<Point>
<x>7386</x>
<y>2333</y>
<x>7217</x>
<y>2260</y>
</Point>
<Point>
<x>7417</x>
<y>2333</y>
<x>7217</x>
<y>2229</y>
</Point>
<Point>
<x>7521</x>
@@ -30427,16 +30427,16 @@
<WorkSpaceShape2>
<Id>{C9AFAFC7-19FB-4784-A406-4B4CDEABCD21}</Id>
</WorkSpaceShape2>
<NamePositionX>7637</NamePositionX>
<NamePositionY>1147</NamePositionY>
<NamePositionX>7585</NamePositionX>
<NamePositionY>1272</NamePositionY>
<Points>
<Point>
<x>6747</x>
<y>2010</y>
<x>6642</x>
<y>2260</y>
</Point>
<Point>
<x>6747</x>
<y>1979</y>
<x>6642</x>
<y>2229</y>
</Point>
<Point>
<x>8440</x>
@@ -30470,16 +30470,16 @@
<WorkSpaceShape2>
<Id>{58DA1692-56FE-4F60-85AF-A1081BBC9D56}</Id>
</WorkSpaceShape2>
<NamePositionX>5996</NamePositionX>
<NamePositionY>3060</NamePositionY>
<NamePositionX>6007</NamePositionX>
<NamePositionY>3150</NamePositionY>
<Points>
<Point>
<x>6427</x>
<y>2818</y>
<x>6450</x>
<y>2999</y>
</Point>
<Point>
<x>6396</x>
<y>2818</y>
<x>6419</x>
<y>2999</y>
</Point>
<Point>
<x>3679</x>
@@ -32331,16 +32331,16 @@
<WorkSpaceShape2>
<Id>{DBBBEEE5-BBA2-48F5-9350-350BBFF93EC5}</Id>
</WorkSpaceShape2>
<NamePositionX>5350</NamePositionX>
<NamePositionY>4406</NamePositionY>
<NamePositionX>5282</NamePositionX>
<NamePositionY>4550</NamePositionY>
<Points>
<Point>
<x>7066</x>
<y>3302</y>
<x>6930</x>
<y>3591</y>
</Point>
<Point>
<x>7066</x>
<y>3333</y>
<x>6930</x>
<y>3622</y>
</Point>
<Point>
<x>3834</x>
@@ -32460,16 +32460,16 @@
<WorkSpaceShape2>
<Id>{DBBBEEE5-BBA2-48F5-9350-350BBFF93EC5}</Id>
</WorkSpaceShape2>
<NamePositionX>5191</NamePositionX>
<NamePositionY>4256</NamePositionY>
<NamePositionX>5027</NamePositionX>
<NamePositionY>4312</NamePositionY>
<Points>
<Point>
<x>6747</x>
<y>3302</y>
<x>6450</x>
<y>3443</y>
</Point>
<Point>
<x>6747</x>
<y>3333</y>
<x>6419</x>
<y>3443</y>
</Point>
<Point>
<x>3834</x>
@@ -32503,16 +32503,16 @@
<WorkSpaceShape2>
<Id>{DBBBEEE5-BBA2-48F5-9350-350BBFF93EC5}</Id>
</WorkSpaceShape2>
<NamePositionX>5015</NamePositionX>
<NamePositionY>4010</NamePositionY>
<NamePositionX>5027</NamePositionX>
<NamePositionY>4088</NamePositionY>
<Points>
<Point>
<x>6427</x>
<y>3140</y>
<x>6450</x>
<y>3295</y>
</Point>
<Point>
<x>6396</x>
<y>3140</y>
<x>6419</x>
<y>3295</y>
</Point>
<Point>
<x>3834</x>
@@ -32546,16 +32546,16 @@
<WorkSpaceShape2>
<Id>{DBBBEEE5-BBA2-48F5-9350-350BBFF93EC5}</Id>
</WorkSpaceShape2>
<NamePositionX>5015</NamePositionX>
<NamePositionY>3773</NamePositionY>
<NamePositionX>5027</NamePositionX>
<NamePositionY>3857</NamePositionY>
<Points>
<Point>
<x>6427</x>
<y>2979</y>
<x>6450</x>
<y>3147</y>
</Point>
<Point>
<x>6396</x>
<y>2979</y>
<x>6419</x>
<y>3147</y>
</Point>
<Point>
<x>3834</x>
@@ -43131,7 +43131,7 @@
<Left>1230</Left>
<z>0</z>
<Width>877</Width>
<Height>1136</Height>
<Height>1175</Height>
<dz>0</dz>
<RecalculateSizes>1</RecalculateSizes>
<UseWorkSpaceRecalculateSizes>1</UseWorkSpaceRecalculateSizes>
@@ -44309,8 +44309,8 @@
<WorkSpaceShape2>
<Id>{AC7E9335-6EDA-449D-AAED-066D0C76A911}</Id>
</WorkSpaceShape2>
<NamePositionX>920</NamePositionX>
<NamePositionY>1596</NamePositionY>
<NamePositionX>921</NamePositionX>
<NamePositionY>1602</NamePositionY>
<Points>
<Point>
<x>949</x>
@@ -44322,11 +44322,11 @@
</Point>
<Point>
<x>1199</x>
<y>1307</y>
<y>1320</y>
</Point>
<Point>
<x>1230</x>
<y>1307</y>
<y>1320</y>
</Point>
</Points>
</WorkSpaceLinePERRelationPG83>
@@ -44396,7 +44396,7 @@
<Id>{AC7E9335-6EDA-449D-AAED-066D0C76A911}</Id>
</WorkSpaceShape2>
<NamePositionX>1030</NamePositionX>
<NamePositionY>2025</NamePositionY>
<NamePositionY>2044</NamePositionY>
<Points>
<Point>
<x>1720</x>
@@ -44408,11 +44408,11 @@
</Point>
<Point>
<x>1668</x>
<y>2095</y>
<y>2134</y>
</Point>
<Point>
<x>1668</x>
<y>2064</y>
<y>2103</y>
</Point>
</Points>
</WorkSpaceLinePERRelationPG83>
@@ -44481,16 +44481,16 @@
<WorkSpaceShape2>
<Id>{59E89AFD-49F1-4495-990C-7D1E0CFAE754}</Id>
</WorkSpaceShape2>
<NamePositionX>1152</NamePositionX>
<NamePositionY>1709</NamePositionY>
<NamePositionX>1151</NamePositionX>
<NamePositionY>1722</NamePositionY>
<Points>
<Point>
<x>1230</x>
<y>1685</y>
<y>1711</y>
</Point>
<Point>
<x>1199</x>
<y>1685</y>
<y>1711</y>
</Point>
<Point>
<x>1226</x>
@@ -44568,7 +44568,7 @@
<Id>{AC7E9335-6EDA-449D-AAED-066D0C76A911}</Id>
</WorkSpaceShape2>
<NamePositionX>2410</NamePositionX>
<NamePositionY>1292</NamePositionY>
<NamePositionY>1302</NamePositionY>
<Points>
<Point>
<x>3131</x>
@@ -44580,11 +44580,11 @@
</Point>
<Point>
<x>2138</x>
<y>1496</y>
<y>1516</y>
</Point>
<Point>
<x>2107</x>
<y>1496</y>
<y>1516</y>
</Point>
</Points>
</WorkSpaceLinePERRelationPG83>
@@ -49060,7 +49060,7 @@
<Company>Technikum Wien</Company>
<Version>2.0</Version>
<CreatedDate>2009-04-17T11:15:21.000+02:00</CreatedDate>
<ModifiedDate>2012-05-07T14:09:29.873+02:00</ModifiedDate>
<ModifiedDate>2012-06-05T16:21:25.633+02:00</ModifiedDate>
<Project>FH-Complete 2.0</Project>
<Description>&lt;?xml-stylesheet type="text/xsl" href="FHCompleteTDM3PG83.xsl"?&gt;
</Description>
@@ -93002,6 +93002,47 @@ art=tbl_benutzerrolle.art &amp; tbl_rolleberechtigung.art</Comments>
<ArrDims></ArrDims>
<IsArray>0</IsArray>
</PERAttributePG83>
<PERAttributePG83 ObjectType="2003" CSAOName="PERAttributePG83">
<Id>{63AF8BE0-0479-4291-9CAF-7E7FF932BF9E}</Id>
<Name>nummer_myfare</Name>
<Ordinal>0</Ordinal>
<HistoryID>{887B86ED-2777-4771-8690-0BDA46ED379C}</HistoryID>
<GlobalOrder>0</GlobalOrder>
<RNOffset>0</RNOffset>
<RNLength>0</RNLength>
<IgnoreNC>0</IgnoreNC>
<GenerateCode>1</GenerateCode>
<BeforeScript></BeforeScript>
<AfterScript></AfterScript>
<Notes></Notes>
<Comments></Comments>
<DataTypeParam1>32</DataTypeParam1>
<DataTypeParam2></DataTypeParam2>
<KeepForeignKey>0</KeepForeignKey>
<DefaultValue></DefaultValue>
<NotNull>0</NotNull>
<Migrated>0</Migrated>
<Caption>nummer_myfare</Caption>
<Unique>0</Unique>
<OriginalName></OriginalName>
<CheckConstraint></CheckConstraint>
<CheckConstraintName></CheckConstraintName>
<KeyConstraintItems/>
<PKForeignKeys/>
<FKForeignKeys/>
<DictType/>
<Domain/>
<DataType>
<Id>{ECB8F02F-B683-4252-8508-ED9D064C9AF3}</Id>
</DataType>
<UserDataType/>
<IndexItems/>
<Default/>
<CheckConstraints/>
<KeyConstraint/>
<ArrDims></ArrDims>
<IsArray>0</IsArray>
</PERAttributePG83>
</Attributes>
<Keys>
<PERKeyConstraintPG83 ObjectType="2010" CSAOName="PERKeyConstraintPG83">
@@ -104492,6 +104533,47 @@ ALTER TABLE tbl_mitarbeiter ALTER COLUMN personalnummer DROP NOT NULL;</Comments
<ArrDims></ArrDims>
<IsArray>0</IsArray>
</PERAttributePG83>
<PERAttributePG83 ObjectType="2003" CSAOName="PERAttributePG83">
<Id>{D926DDDD-7C90-4CBC-9720-EBA28DA9BA6F}</Id>
<Name>foto_sperre</Name>
<Ordinal>0</Ordinal>
<HistoryID>{6CC38713-22E1-4879-AB54-E34CDBCAD215}</HistoryID>
<GlobalOrder>0</GlobalOrder>
<RNOffset>0</RNOffset>
<RNLength>0</RNLength>
<IgnoreNC>0</IgnoreNC>
<GenerateCode>1</GenerateCode>
<BeforeScript></BeforeScript>
<AfterScript></AfterScript>
<Notes></Notes>
<Comments></Comments>
<DataTypeParam1></DataTypeParam1>
<DataTypeParam2></DataTypeParam2>
<KeepForeignKey>0</KeepForeignKey>
<DefaultValue>false</DefaultValue>
<NotNull>1</NotNull>
<Migrated>0</Migrated>
<Caption>foto_sperre</Caption>
<Unique>0</Unique>
<OriginalName></OriginalName>
<CheckConstraint></CheckConstraint>
<CheckConstraintName></CheckConstraintName>
<KeyConstraintItems/>
<PKForeignKeys/>
<FKForeignKeys/>
<DictType/>
<Domain/>
<DataType>
<Id>{D64069A5-B04A-490B-B0A2-5144DEA81A2E}</Id>
</DataType>
<UserDataType/>
<IndexItems/>
<Default/>
<CheckConstraints/>
<KeyConstraint/>
<ArrDims></ArrDims>
<IsArray>0</IsArray>
</PERAttributePG83>
</Attributes>
<Keys>
<PERKeyConstraintPG83 ObjectType="2010" CSAOName="PERKeyConstraintPG83">
+23 -2
View File
@@ -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 '<strong>public.tbl_person: '.$db->db_last_error().'</strong><br>';
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 '<strong>wawi.tbl_betriebsmittel: '.$db->db_last_error().'</strong><br>';
else
echo 'Tabelle wawi.tbl_betriebsmittel Spalte nummer_myfare hinzugefuegt';
}
echo '<br>';
$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"),