This commit is contained in:
jakani24
2024-01-21 17:37:21 +01:00
parent 60ecdffce0
commit 21a012a1a2
2 changed files with 84 additions and 11 deletions

View File

@@ -165,10 +165,33 @@
</div>';
} else {
$success=0;
echo '<br><div class="alert alert-danger" role="alert">
echo '<br><div class="alert alert-danger" role="alert">
Error creating table machines: ' . $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">
Created export dir successfully.
</div>';
} else {
$success=0;
echo '<br><div class="alert alert-danger" role="alert">
Error creating export dir.
</div>';
}
// Attempt to create the directory where import files will be stored later on
if (mkdir("/var/www/html/import", 0777, true)) {
echo '<br><div class="alert alert-success" role="alert">
Created export dir successfully.
</div>';
} else {
$success=0;
echo '<br><div class="alert alert-danger" role="alert">
Error creating export dir.
</div>';
}
if($success!==1){
echo '<br><div class="alert alert-danger" role="alert">