directory structure
This commit is contained in:
parent
e01c3c9fb0
commit
896d1936b6
2
base/.htaccess
Normal file
2
base/.htaccess
Normal file
@ -0,0 +1,2 @@
|
||||
DENY FROM ALL
|
||||
ALLOW FROM 127.0.0.1
|
||||
@ -10,7 +10,7 @@ class DB extends PDO
|
||||
{
|
||||
$conn = null;
|
||||
try {
|
||||
$dataAccess = parse_ini_file("configs/db.ini", true);
|
||||
$dataAccess = parse_ini_file("../configs/db.ini", true);
|
||||
|
||||
$conn = new PDO(
|
||||
"mysql:host=" . $dataAccess["ZEDAT"]["host"] .
|
||||
@ -1,3 +1,4 @@
|
||||
<?php
|
||||
ini_set("display_errors", 1);
|
||||
ini_set("default_charset", "utf-8");
|
||||
error_reporting(E_ALL);
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
include_once "errors.php";
|
||||
include_once "headers.php";
|
||||
include_once "database.php";
|
||||
include_once "../base/errors.php";
|
||||
include_once "../base/headers.php";
|
||||
include_once "../base/database.php";
|
||||
|
||||
$act = $_POST["act"];
|
||||
|
||||
@ -12,10 +12,10 @@
|
||||
|
||||
<body>
|
||||
<?php
|
||||
include_once "errors.php";
|
||||
include_once "headers.php";
|
||||
include_once "../base/errors.php";
|
||||
include_once "../base/headers.php";
|
||||
Headers::html();
|
||||
include_once "database.php";
|
||||
include_once "../base/database.php";
|
||||
|
||||
$db = DB::openConnection();
|
||||
|
||||
@ -45,11 +45,11 @@
|
||||
?>
|
||||
</div>
|
||||
<form action="action.php" method="post" class="add">
|
||||
<label >Name:</label>
|
||||
<label>Name:</label>
|
||||
<input name="name" placeholder="Name" required />
|
||||
<button name="act" value="add">Hinzufügen</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user