more changes for eine_uid

This commit is contained in:
Andreas Moik
2016-06-29 12:02:49 +02:00
parent 78c4481ab3
commit 5f07058338
5 changed files with 1038 additions and 1038 deletions
+87 -87
View File
@@ -1,87 +1,87 @@
<?php
/* Copyright (C) 2006 Technikum-Wien
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
header("Cache-Control: no-cache");
header("Cache-Control: post-check=0, pre-check=0",false);
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
header("Content-type: application/vnd.mozilla.xul+xml");
include('../config/vilesci.config.inc.php');
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
echo '<?xml-stylesheet href="'.APP_ROOT.'skin/tempus.css" type="text/css"?>';
?>
<window id="about-window" title="Kontakt"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<vbox>
<hbox style="margin-top: 20px">
<spacer flex="1"/>
<image src='<?php echo APP_ROOT; ?>skin/images/fh_complete_logo_400x61.png' width="400" height="61"/>
<spacer flex="1"/>
</hbox>
<hbox style="margin-top: 20px">
<spacer flex="1"/>
</hbox>
<hbox>
<spacer flex="1"/>
<label value="Copyright (C) 2007 FH Complete" />
<spacer flex="1"/>
</hbox>
<hbox>
<spacer flex="1"/>
<groupbox>
<caption label='GPL' />
<description style="white-space: pre;">
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
Authors: Christian Paminger &lt;christian.paminger@technikum-wien.at&gt;,
Andreas Oesterreicher &lt;andreas.oesterreicher@technikum-wien.at&gt;,
Rudolf Hangl &lt;rudolf.hangl@technikum-wien.at&gt;,
Gerald Raab &lt;gerald.raab@technikum-wien.at&gt; and
Gerald Simane-Sequens &lt;gerald.simane-sequence@technikum-wien.at&gt;
Manfred Kindl &lt;manfred.kindl@technikum-wien.at&gt;
</description>
</groupbox>
<spacer flex="1"/>
</hbox>
<hbox>
<spacer flex="1"/>
<button oncommand="window.close()" label="Close" />
<spacer flex="1"/>
</hbox>
</vbox>
</window>
<?php
/* Copyright (C) 2006 Technikum-Wien
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
header("Cache-Control: no-cache");
header("Cache-Control: post-check=0, pre-check=0",false);
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
header("Content-type: application/vnd.mozilla.xul+xml");
include('../config/vilesci.config.inc.php');
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
echo '<?xml-stylesheet href="'.APP_ROOT.'skin/tempus.css" type="text/css"?>';
?>
<window id="about-window" title="Kontakt"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<vbox>
<hbox style="margin-top: 20px">
<spacer flex="1"/>
<image src='<?php echo APP_ROOT; ?>skin/images/fh_complete_logo_400x61.png' width="400" height="61"/>
<spacer flex="1"/>
</hbox>
<hbox style="margin-top: 20px">
<spacer flex="1"/>
</hbox>
<hbox>
<spacer flex="1"/>
<label value="Copyright (C) 2007 FH Complete" />
<spacer flex="1"/>
</hbox>
<hbox>
<spacer flex="1"/>
<groupbox>
<caption label='GPL' />
<description style="white-space: pre;">
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
Authors: Christian Paminger &lt;christian.paminger@technikum-wien.at&gt;,
Andreas Oesterreicher &lt;andreas.oesterreicher@technikum-wien.at&gt;,
Rudolf Hangl &lt;rudolf.hangl@technikum-wien.at&gt;,
Gerald Raab &lt;gerald.raab@technikum-wien.at&gt; and
Gerald Simane-Sequens &lt;gerald.simane-sequence@technikum-wien.at&gt;
Manfred Kindl &lt;manfred.kindl@technikum-wien.at&gt;
</description>
</groupbox>
<spacer flex="1"/>
</hbox>
<hbox>
<spacer flex="1"/>
<button oncommand="window.close()" label="Close" />
<spacer flex="1"/>
</hbox>
</vbox>
</window>
+119 -119
View File
@@ -1,119 +1,119 @@
<?php
/* Copyright (C) 2006 Technikum-Wien
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
/**
* Die Dokumente werden entweder base64 kodiert in der der Datenbank in der Spalte inhalt gespeichert
* oder im Filesystem in diesem Fall ist die Akte mit einer DMS ID verknuepft in welcher der Dateiname steht.
*/
require_once('../config/vilesci.config.inc.php');
require_once('../include/akte.class.php');
require_once('../include/dms.class.php');
require_once('../include/benutzerberechtigung.class.php');
require_once('../include/functions.inc.php');
$user = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($user);
if(!$rechte->isBerechtigt('admin') && !$rechte->isBerechtigt('assistenz') && !$rechte->isBerechtigt('mitarbeiter'))
die('Keine Berechtigung');
//base64 Dump aus der DB holen
if(isset($_GET['id']) && is_numeric($_GET['id']))
{
$akte = new akte($_GET['id']);
OutputData($akte);
}
if(isset($_GET['akte_id']) && is_numeric($_GET['akte_id']))
{
$akte = new akte();
if(!$akte->load($_GET['akte_id']))
die('Fehler beim Laden der Akte');
OutputData($akte);
}
if(isset($_GET['person_id']) && isset($_GET['dokument_kurzbz']))
{
$akte = new akte();
if(!$akte->getAkten($_GET['person_id'], $_GET['dokument_kurzbz']))
die('Konnte Dokument nicht laden');
// erste Akte
if(isset($akte->result[0]))
{
$akten = $akte->result[0];
$titel = ($akten->titel == '')?$akten->dokument_kurzbz:$akten->titel;
}
else
die('Kein Dokument vorhanden');
OutputData($akten);
}
function OutputData($akte)
{
if($akte->inhalt!='')
{
//Header fuer Bild schicken
header("Content-type: $akte->mimetype");
header('Content-Disposition: attachment; filename="'.$akte->titel.'"');
echo base64_decode($akte->inhalt);
}
elseif($akte->dms_id!='')
{
$dms = new dms();
if(!$dms->load($akte->dms_id))
die('Kein Dokument vorhanden');
$filename=DMS_PATH.$dms->filename;
if(!isset($_GET['notimeupdate']))
$dms->touch($dms->dms_id, $dms->version);
if(file_exists($filename))
{
if($handle = fopen($filename,"r"))
{
if($dms->mimetype=='')
$dms->mimetype='application/octetstream';
header('Content-type: application/octetstream');
header('Content-Disposition: inline; filename="'.$dms->name.'"');
header('Content-Length: ' .filesize($filename));
while (!feof($handle))
{
echo fread($handle, 8192);
}
fclose($handle);
}
else
echo 'Fehler: Datei konnte nicht geoeffnet werden';
}
else
echo 'Die Datei existiert nicht';
}
}
?>
<?php
/* Copyright (C) 2006 Technikum-Wien
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
/**
* Die Dokumente werden entweder base64 kodiert in der der Datenbank in der Spalte inhalt gespeichert
* oder im Filesystem in diesem Fall ist die Akte mit einer DMS ID verknuepft in welcher der Dateiname steht.
*/
require_once('../config/vilesci.config.inc.php');
require_once('../include/akte.class.php');
require_once('../include/dms.class.php');
require_once('../include/benutzerberechtigung.class.php');
require_once('../include/functions.inc.php');
$user = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($user);
if(!$rechte->isBerechtigt('admin') && !$rechte->isBerechtigt('assistenz') && !$rechte->isBerechtigt('mitarbeiter'))
die('Keine Berechtigung');
//base64 Dump aus der DB holen
if(isset($_GET['id']) && is_numeric($_GET['id']))
{
$akte = new akte($_GET['id']);
OutputData($akte);
}
if(isset($_GET['akte_id']) && is_numeric($_GET['akte_id']))
{
$akte = new akte();
if(!$akte->load($_GET['akte_id']))
die('Fehler beim Laden der Akte');
OutputData($akte);
}
if(isset($_GET['person_id']) && isset($_GET['dokument_kurzbz']))
{
$akte = new akte();
if(!$akte->getAkten($_GET['person_id'], $_GET['dokument_kurzbz']))
die('Konnte Dokument nicht laden');
// erste Akte
if(isset($akte->result[0]))
{
$akten = $akte->result[0];
$titel = ($akten->titel == '')?$akten->dokument_kurzbz:$akten->titel;
}
else
die('Kein Dokument vorhanden');
OutputData($akten);
}
function OutputData($akte)
{
if($akte->inhalt!='')
{
//Header fuer Bild schicken
header("Content-type: $akte->mimetype");
header('Content-Disposition: attachment; filename="'.$akte->titel.'"');
echo base64_decode($akte->inhalt);
}
elseif($akte->dms_id!='')
{
$dms = new dms();
if(!$dms->load($akte->dms_id))
die('Kein Dokument vorhanden');
$filename=DMS_PATH.$dms->filename;
if(!isset($_GET['notimeupdate']))
$dms->touch($dms->dms_id, $dms->version);
if(file_exists($filename))
{
if($handle = fopen($filename,"r"))
{
if($dms->mimetype=='')
$dms->mimetype='application/octetstream';
header('Content-type: application/octetstream');
header('Content-Disposition: inline; filename="'.$dms->name.'"');
header('Content-Length: ' .filesize($filename));
while (!feof($handle))
{
echo fread($handle, 8192);
}
fclose($handle);
}
else
echo 'Fehler: Datei konnte nicht geoeffnet werden';
}
else
echo 'Die Datei existiert nicht';
}
}
?>
+3 -3
View File
@@ -41,7 +41,7 @@ require_once('../include/addon.class.php');
require_once('../include/studiengang.class.php');
require_once('../include/studiensemester.class.php');
require_once('../include/studienordnung.class.php');
var_dump("hihasifdhlasdhfl");// TODO EINE
$user = get_uid();
$db = new basis_db();
@@ -79,7 +79,7 @@ else
else
$prestudent_ids[1] = $_GET['prestudent_id'];
$prestudent_obj = new prestudent();
$prestudent_obj = new prestudent();var_dump($prestudent_ids[1]);// TODO EINE
if($prestudent_obj->load($prestudent_ids[1]))
{
$xsl_stg_kz=$prestudent_obj->studiengang_kz;
@@ -579,7 +579,7 @@ else
$prestudent_id = $_REQUEST["prestudent_id"];
$heute = date('Y-m-d');
$prestudent = new prestudent();
$prestudent = new prestudent();var_dump($prestudent_id);// TODO EINE
$prestudent->load($prestudent_id);
$uid = $prestudent->getUid($prestudent_id);
+1 -1
View File
@@ -329,7 +329,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
$anrechnung = new anrechnung();
$anrechnung->getAnrechnungPrestudent($student->prestudent_id, null, $lehrveranstaltung_id);
$anrechnung->getAnrechnungPrestudent($prestudent_id, null, $lehrveranstaltung_id);
$xml .= "<studienverpflichtung>";
$lehrveranstaltung_id_kompatibel = "";
File diff suppressed because it is too large Load Diff