die("Redirecting to login.php"); } $d = new Domains(); $r = new Registrars(); // check if we're deleting a domain if (isset($_GET['id']) && $_GET['id'] != '') { if (isset($_POST['action']) && $_POST['action'] == 'delete') { $confirmed = true; } else { $confirmed = false; } $id = $_GET['id']; } else { $id = -1; } pageHead(); ?> <body> <?php headerHere('Delete', 'Make sure you know what you are doing'); ?> <div class="container top30"> <div class="row"> <div class="span3"> <ul class="nav nav-tabs nav-stacked sidebar"> <li class=""><a href="index.php"><i class="icon-home"></i> Home</a></li> <li class="active"><a href="domains.php"><i class="icon-briefcase"></i> Domains<span class="badge badge-info"><?php echo $d->numTotal(); ?> </span></a></li> <li class=""><a href="registrars.php"><i class="icon-folder-open"></i> Registrars<span class="badge badge-info"><?php
<?php require_once __DIR__ . '/includes/includes.php'; if (empty($_SESSION['user'])) { header("Location: login.php"); die("Redirecting to login.php"); } $d = new Domains(); $r = new Registrars(); $domains = $d->fetchAll(); $good = $d->fetchGood(); $expiring = $d->fetchExpiring(); $expired = $d->fetchExpired(); pageHead('Domains'); ?> <body> <?php headerHere('Domains', 'Here you can browse all your domains and see if they require attention'); ?> <div class="container top30"> <div class="row"> <div class="span3"> <ul class="nav nav-tabs nav-stacked sidebar"> <li class=""><a href="index.php"><i class="icon-home"></i> Home</a></li> <li class="active"><a href="domains.php"><i class="icon-briefcase"></i> Domains<span class="badge badge-info"><?php echo $d->numTotal(); ?> </span></a></li> <li class=""><a href="registrars.php"><i class="icon-folder-open"></i> Registrars<span class="badge badge-info"><?php echo $r->getTotal(); ?>