Location: PHPKode > scripts > QwikStats > QwikStats/clear.php
<?php
//Copyright (C) 2010 Joe Tasker

//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.

//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.

//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
$file = fopen('Stats/jan.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/feb.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/mar.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/apr.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/may.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/jun.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/jul.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/aug.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/sep.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/oct.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/nov.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/dec.txt','w');
fwrite($file, '0');
fclose($file);
$file = fopen('Stats/access.php','w');
fwrite($file, '');
fclose($file);
echo '<style type="text/css">
<!--
.style1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: small;
	color: #000000;
}
-->
</style>';
echo '<span class="style1">All records have been cleared</span>';
?>
Return current item: QwikStats