<?php
session_start();
require('classes/config.php');
if(empty($_SESSION['login'])){
header('Location: mainmeineanzeigen');
exit();
}
if($_SESSION['login'] != 1100){
header('Location: mainmeineanzeigen');
exit();
}
include "inc/db.php";
$db = new db();
$db->query('DELETE FROM '.htmlspecialchars($_GET['a']).' WHERE id = "'.$_GET['id'].'"');
?>