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.
<html>
<head>
<title>config</title>
<meta name="author" content="Dieter">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000">
<?php
error_reporting(E_ALL);
define('MYSQL_HOST', 'localhost');
define('MYSQL_USER', 'irgendeiner');
define('MYSQL_PASS', 'irgendwas');
define('MYSQL_DATABASE', 'Login');
function array_stripslashes(&$var)
{
if(is_string($var)) {
$var=stripslashes($var);
} else {
if(is_array($var)) {
foreach($var AS $key => $value) {
array_stripslashes($var[$key]);
}
}
}
}
?>
</body>
</html>
<html>
<head>
<title>Admin</title>
<meta name="author" content="Dieter">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000">
<?php
if(isset($_GET['action']) AND ("logout" == $_GET['action'])) {
session_destroy();
echo "<p>";
echo "Sie haben sich ausgeloggt. Um wieder in den Adminbereich zu kommen, müssen Sie sich wieder Einloggen!";
echo "</p>";
} else {
echo "<form action=\"index.php?section=admin\" method=\"post\" class=\"formular\">";
echo " <p>";
echo " Adminbereich";
echo " </p>";
echo " <ol>";
echo " <li>";
echo " <label for=\"name\">Name</label>";
$sql = "SELECT `ID`,`Name` FROM `Login` ORDER BY `Name ASC`";
$result=mysql_query($sql) OR die(mysql_error());
echo " <select size=\"1\= name=\"UserID\" id=\"name\">";
echo " <option value=\"0\" selected=\"selected\">Bitte wählen</option>";
while($row=mysql_fetch_assoc($result)) {
echo "<option value=\"".$row['ID']."\">".$row['Name']."</option>";
}
echo " </select>";
echo " </li>";
echo " <li>";
echo " <label for=\"passwort\">Passwort</label>";
echo " <input type=\"password\" name=\"Password\" id=\"password\">";
echo " </li>";
echo " <li>";
echo " <input type=\"submit\" name=\"submit\" value=\"Speichern\">";
echo " <input type=\"reset\" name=\"submit\" value=\"Zurücksetzen\">";
echo " </li>";
echo " </ol>";
echo "</form>";
}
?>
</body>
</html>
include('inc/config.php');
$db=mysql_connect($MYSQL_HOST,$MYSQL_USER,$MYSQL_PASS);
$db=mysql_select_db($database);