<?php
//OS Commerce Counter Reset v0.15
//Author: Ben Allen
//Email: hide@address.com
//Site: http://www.ballen.bytehost.com
//
//Based On Original Contribution By
// OS Commerce Counter reset
// Author: Richard Nero
// Email: hide@address.com
// Site: http://www.rlnero.com
include('includes/application_top.php');
// Make query and execute it
$query = "UPDATE counter SET counter = 0";
$today = date("Ymd");
$date = "UPDATE counter SET startdate = $today";
$counterquery = mysql_query($query);
$datequery = mysql_query($date);
echo "<font face=arial size=3><b>Reset Successful!<p>Your hit counter is now reset to zero. Please use your browser's back button to return.";
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>