require_once '../bootstrap.php'; // require_once '../views/partials/header.php'; if (!Auth::checkUser()) { header("Location: /auth.login.php"); exit; } $limit = 6; $count = Ad::count(); $numPages = ceil($count / $limit); $page = isset($_GET['page']) ? $_GET['page'] : 1; $offset = ($page - 1) * 4; $nextPage = $page + 1; $prevPage = $page - 1; $errors = []; $items = Ad::paginate($limit, $offset); ?> <html> <head> <title>WoW Lister</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" href="/css/main.css"> <style> body { background-image: url("/img/auction.jpg"); background-attachment: fixed; } table {