function __construct($loginInfo, $select_db)
 {
     if ($this->debug) {
         $this->debugMsg .= "sp_permissions() class constructor initiated" . '\\r';
     }
     sp_login::__construct($loginInfo, $select_db);
     if (!sp_login::isLoggedIn()) {
         sp_login::login();
     }
     if (!isset($this->mysqliHandler)) {
         $this->mysqliHandler();
     }
     $this->capabilities = $this->get_capabilities($this->userInfo['id']);
 }
<?php

/* Logout any currently logged in users */
if (isset($_SESSION)) {
    session_unset();
    session_destroy();
}
include 'main/inc/sp_login.class.php';
if (isset($_POST['login'])) {
    $sp_login = new sp_login($_POST);
    $sp_login->authenticate();
    $sp_login->login();
} else {
    expireCookies($_COOKIE['userInfo']);
}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META name="resource-type" content="document">
<META name="description" content="Silverstone Payments specializes in setting your business up with the lowest possible processing rates.">
<META name="keywords" content="Credit Card Processing, Silverstone, Silverstone Payments, Payments Processing, Merchant Accounts, 1.00%, Rates, 1% rates, lower processing rates, lower mechant account fees, Daily Discount, Batch fees, AVS fees, Credit Cards, Money Saving Tips, lower credit card rates">
<title>Russo Corporation - Time Clock</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="external.css" />
</head>
<body onLoad="document.getElementById('email').focus();">  
    <div id="top_div">
        <div style="width:479px;height:221px;margin:0px auto;">
        <img src="images/salespal_logo.png" width="479" height="221">