<?php session_start(); include '../../../blog/conexao.php'; if (isset($_SESSION['prioridade']) && $_SESSION['prioridade'] == 1) { $banco = new Conexao(); if (isset($_REQUEST['id'])) { $result = $banco->excluir('postagem', $_REQUEST['id']); header('location:index.php'); } } else { header('location:logar.php'); }
public function excluir() { return parent::excluir(); }