Compare commits

..

No commits in common. "master" and "andreas" have entirely different histories.

2 changed files with 38 additions and 25 deletions

25
Vagrantfile vendored
View File

@ -1,25 +0,0 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
BOX_IMAGE = "debian/stretch64"
Vagrant.configure("2") do |config|
config.vm.box = BOX_IMAGE
config.vm.hostname = "webtech"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "private_network", type: "dhcp"
config.vm.provision "shell", inline: <<-SHELL
DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y apache2 php7.0 php7.0-mysql php7.0-xml mariadb-server avahi-daemon libnss-mdns
phpenmod mysqli
mysql < /vagrant/sql/remove_db.sql
mysql < /vagrant/sql/create_db.sql
mysql < /vagrant/sql/add_data.sql
if ! [ -L /var/www/html ]; then
rm -rf /var/www/html
ln -s /vagrant /var/www/html
fi
SHELL
end

38
admin/index.php Normal file
View File

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<!-- enable utf-8 encoding for umlauts etc.-->
<meta charset="utf-8">
<!-- Description of what this dose -->
<meta name ="viewport" content="width=device-width, initial-scale=1">
<!-- link to the default css file -->
<link rel="stylesheet" href="css/stylesheet.css"/>
</head>
<body>
<div>
<div>
<header>
<!-- The title begins here -->
<h1>Admin</h1>
<!-- The title begins here -->
<!-- The sidebar naviagtion begins here -->
<nav>
<?php
include 'navigation.php';
?>
<!--Login-->
<form action="signup.php" method="post">
<input type="text" name="uid" placeholder="Username"><br>
<input type="password" name="pwd" placeholder="Password"><br>
<button type="submit">Login</button>
</form>
<!--Login end-->
</nav>
<!-- The sidebar naviagtion ends here -->
</header>
</div>
</div>
</body>
</html>