This commit is contained in:
jakani24
2024-03-10 09:18:31 +01:00
parent c21f532dcc
commit b457bde30d
3 changed files with 101 additions and 12 deletions

View File

@@ -254,6 +254,42 @@
</div>';
}
// Create sig_ex messages table
$sql = "CREATE TABLE IF NOT EXISTS sig_ex (
id INT AUTO_INCREMENT PRIMARY KEY,
signature VARCHAR(255) NOT NULL,
description VARCHAR(255) NOT NULL
)";
if ($conn->query($sql) === TRUE) {
echo '<br><div class="alert alert-success" role="alert">
Table excluded signatures created successfully!
</div>';
} else {
$success=0;
echo '<br><div class="alert alert-danger" role="alert">
Error creating table excluded signatures: ' . $conn->error .'
</div>';
}
// Create sig_in messages table
$sql = "CREATE TABLE IF NOT EXISTS sig_in (
id INT AUTO_INCREMENT PRIMARY KEY,
signature VARCHAR(255) NOT NULL,
description VARCHAR(255) NOT NULL
)";
if ($conn->query($sql) === TRUE) {
echo '<br><div class="alert alert-success" role="alert">
Table included signatures created successfully!
</div>';
} else {
$success=0;
echo '<br><div class="alert alert-danger" role="alert">
Error creating table included signatures: ' . $conn->error .'
</div>';
}
// Attempt to create the directory where export files will be stored later on
if (mkdir("/var/www/html/export", 0777, true)) {
echo '<br><div class="alert alert-success" role="alert">