Skip to content
Snippets Groups Projects
Commit 15c99a4e authored by Jonas Leder's avatar Jonas Leder
Browse files

move new comment in API dor

parent 9ff9fc11
Branches
Tags
No related merge requests found
......@@ -8,7 +8,7 @@ class newComment extends HTMLElement {
let sitekey = await (await fetch("/API/config.php?name=sitekey")).text();
this.innerHTML = `
<form action="/newComment.php" method="post">
<form action="/API/newComment.php" method="post">
<label for="name">Name:</label><br>
<input type="text" id="name" name="name"><br><br>
......
......
<?php
include("./internal/mysql.php");
include("./lib/config.php");
include("./lib/mysql.php");
$data = array(
'secret' => $secretkey,
......
......
<?php
include "internal/header.php";
include "internal/footer.php";
include "internal/mysql.php";
getHeader("Jonas Leder", "home");
?>
......
......
<?php
include "config.php";
$conn = new mysqli($mysqlServer, $mysqlUser, $mysqlPassword, $mysqlDatabase);
// Check connection
if ($conn->connect_error) {
include "500.php";
header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);
die(getError500());
}
<?php
include "internal/mysql.php";
include "internal/header.php";
include "internal/footer.php";
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment