Johannes Zellner 5 лет назад
Родитель
Сommit
0c7e610e74
2 измененных файлов с 15 добавлено и 11 удалено
  1. 13 10
      website/app/index.php
  2. 2 1
      website/app/util.php

+ 13 - 10
website/app/index.php

@@ -1,16 +1,19 @@
-<html>
-<head>
-	<title> Index </title>
+<?php
+
+require_once("util.php");
 
-<!-- <script>
+?>
 
-    location.replace('bill.php');
+<html>
+<head>
+	<title>Mitarbeiter</title>
+  <link rel="icon" href="/app/Icons/bill.png">
 
-</script> -->
+  <frameset rows="*, 150">
+    <frame src="bill.php" name="main" noresize frameborder="0" marginwidth="0px" marginheight="0px"/>
+    <frame src="action_status.php" name="action" noresize frameborder="0" marginwidth="0px" marginheight="0px"/>
+  </frameset>
 
-<frameset rows="*, 150">
-        <frame src="bill.php" name="main" noresize frameborder="0" marginwidth="0px" marginheight="0px">
-        <frame src="action_status.php" name="action" noresize frameborder="0" marginwidth="0px" marginheight="0px">
-</frameset>
+</head>
 
 </html>

+ 2 - 1
website/app/util.php

@@ -61,7 +61,8 @@ if (isset($_SESSION['valid'])) {
 } else {
 	if (isset($loginView)) return;
 
-	header("Location: login.php");
+	echo "<script> window.parent.location.href = '/app/login.php'; </script>";
+
 	exit();
 }