Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
abend, gibt es eine andere Möglichkeit außer header zu benutzen, kann diese leider nicht nutzen, da eine Ausgabe davor getätigt wird.
<?php
$file = "../config/mysql.php";
include '../config/general.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de">
<head>
<title>Teamsystem</title>
<meta name="author" content="Marcel" />
<meta name="editor" content="html-editor phase 5" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="de" />
<link rel="stylesheet" type="text/css" href="../styles.css"/>
<script type="text/javascript">
<!--
function hideDiv() {
document.getElementById("a").style.display = "none";
}
//-->
</script>
</head>
<body onLoad="window.setTimeout('hideDiv()',2500);" link="#000000" alink="#000000" vlink="#000000">
<div class="main">
<?php
//exists the mysql-file
if(file_exists($file)){
?>
<div class="head">Installationhinweis</div>
<div class="content">
<center>
Die Installation wurde bereits abgeschlossen.<br />
<a href="../index.php" class="button">zur Startseite</a>
</center>
</div>
</div>
<?php
}else{
$action = isset($_GET['step']) ? $_GET['step'] : '1';
switch($action){
case "1": include 'step/step_1.php';
break;
case "2": include 'step/step_2.php';
break;
case "3": include 'step/step_3.php';
break;
}
}
include '../src/footer.php';
?>
<?php
/**
* Install step 1
* author: Marcel Liebgott
* link: http://www.tt-otg1902.de
* email: [email protected]
* copyright: 2008 Marcel Liebgott
*/
$error = false;
$host = $_POST["host"];
$user = $_POST["user"];
$pass = $_POST["pass"];
$data = $_POST["database"];
$submit = $_POST["submit"];
if($submit){
if(empty($host) || empty($user) || empty($pass) || empty($data)){
$error = true;
}
}
if($submit && $error == false){
$handle = fopen($file, 'w+');
$do = fputs($handle,'schreib was');
header("Location:index.php?step=2");
}
?>
<div class="head">Installation von Teamsystem <?php echo VERSION; ?></div>
<?php
if($error){
?>
<div class="msg_edit">
<!-- noch eine extra warnung class machen -->
<img title="Warnung" src="../../images/warning.gif"/>
Es wurden nicht alle Felder ausgefüllt!<br />
Alle <font color="red">rot</font> markierten Felder sind nicht ausgefüllt.
</div>
<?php
}
?>
//HTML Formular