<?php
require 'dbPDO.php';
require 'utilcart.php';
require 'utiluser.php';
$title = 'Checkout';
if ($userCustID == 0) {
    header('location: account.php?checkout=true');
} else {
    header('location: checkout02.php');
    exit();
}
$content = '<h1 class="red subheading">Your Account</h1>
    <p class="center">Please <a href="account.php?checkout=true">create an account</a> before placing your order.</p>';
$cartItems = (count($bookArray) > 0) ? count($bookArray) : 'no';
$items = ($cartItems != 1) ? 'items' : 'item';
$content .= "<p class=\"center\">You have <strong>$cartItems</strong> $items in your cart</p>\n";
require 'template.php';
?>
