discourse-legacysite-perl/site/stackreach/delete_model.php
2024-06-17 22:42:14 +10:00

28 lines
481 B
PHP
Executable File

<?php
include_once './config.php';
include_once './models/services/ModelService.php';
include_once './config.php';
if ( ! is_updater() )
return header('location:http://www.slowtwitch.com');
if($_SERVER['REQUEST_METHOD']=='POST')
{
if (is_updater ())
{
$modelID = $_POST['id'];
$modelService = new ModelService();
$modelService->deleteModel($modelID);
}
}
else
{
echo $_SERVER['REQUEST_METHOD'];
}
header('location:models.php');
?>