Nur Mitarbeiter und Studenten können Daten abfragen

Link "Zurück zur Übersicht" eingefügt
This commit is contained in:
Karl Burkhart
2012-09-04 07:58:23 +00:00
parent 41414f75fb
commit af194a99a3
5 changed files with 17 additions and 9 deletions
+3 -1
View File
@@ -27,7 +27,7 @@ require_once('../include/basis_db.class.php');
$method = (isset($_GET['method'])?$_GET['method']:'studiengang');
$getuid = get_uid();
if(!check_lektor($getuid))
if(!check_lektor($getuid) && !check_student($getuid))
die('Sie haben keine Berechtigung für diese Seite');
$db = new basis_db();
@@ -211,6 +211,8 @@ $db = new basis_db();
</script>';
}
echo '<a href="index.html">Zurück zur Übersicht</a>';
class foo {};
+2 -1
View File
@@ -27,7 +27,7 @@ require_once('../include/basis_db.class.php');
$method = (isset($_GET['method'])?$_GET['method']:'getLVPlanFromUser');
$getuid = get_uid();
if(!check_lektor($getuid))
if(!check_lektor($getuid) && !check_student($getuid))
die('Sie haben keine Berechtigung für diese Seite');
$db = new basis_db();
?>
@@ -425,6 +425,7 @@ $db = new basis_db();
</script>
';
}
echo '<a href="index.html">Zurück zur Übersicht</a>';
echo '<div id="output">';
class foo {};
+4 -3
View File
@@ -28,7 +28,7 @@ $db = new basis_db();
$method = (isset($_GET['method'])?$_GET['method']:'getMitarbeiterFromUID');
$getuid = get_uid();
if(!check_lektor($getuid))
if(!check_lektor($getuid) && !check_student($getuid))
die('Sie haben keine Berechtigung für diese Seite');
?>
<html>
@@ -78,8 +78,8 @@ if(!check_lektor($getuid))
</td>
</tr>
</table>
</form>';
echo '
</form>
<script type="text/javascript">
function gettimestamp()
{
@@ -276,6 +276,7 @@ if(!check_lektor($getuid))
</script>
';
}
echo '<a href="index.html">Zurück zur Übersicht</a>';
echo '<div id="output">';
class foo {};
+5 -3
View File
@@ -27,7 +27,7 @@ require_once('../include/basis_db.class.php');
$method = (isset($_GET['method'])?$_GET['method']:'getOrtFromKurzbz');
$getuid = get_uid();
if(!check_lektor($getuid))
if(!check_lektor($getuid) && !check_student($getuid))
die('Sie haben keine Berechtigung für diese Seite');
$db = new basis_db();
?>
@@ -77,8 +77,8 @@ $db = new basis_db();
</td>
</tr>
</table>
</form>';
echo '
</form>
<script type="text/javascript">
function gettimestamp()
{
@@ -319,6 +319,8 @@ $db = new basis_db();
';
}
echo '<a href="index.html">Zurück zur Übersicht</a>';
echo '<div id="output">';
class foo {};
+3 -1
View File
@@ -27,8 +27,9 @@ require_once('../include/basis_db.class.php');
$method = (isset($_GET['method'])?$_GET['method']:'uid');
$getuid = get_uid();
if(!check_lektor($getuid))
if(!check_lektor($getuid) && !check_student($getuid))
die('Sie haben keine Berechtigung für diese Seite');
$db = new basis_db();
?>
<html>
@@ -286,6 +287,7 @@ $db = new basis_db();
</script>';
}
echo '<a href="index.html">Zurück zur Übersicht</a>';
if(isset($_REQUEST['submit_matrikelnummer']))
{