Location: PHPKode > scripts > QwikStats > QwikStats/save.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/>.
$year = date("y");
chdir('Stats/');
mkdir($year);
copy('jan.txt', $year . '/jan.txt');
copy('feb.txt', $year . '/feb.txt');
copy('mar.txt', $year . '/mar.txt');
copy('apr.txt', $year . '/apr.txt');
copy('may.txt', $year . '/may.txt');
copy('jun.txt', $year . '/jun.txt');
copy('jul.txt', $year . '/jul.txt');
copy('aug.txt', $year . '/aug.txt');
copy('sep.txt', $year . '/sep.txt');
copy('oct.txt', $year . '/oct.txt');
copy('nov.txt', $year . '/nov.txt');
copy('dec.txt', $year . '/dec.txt');
echo '<style type="text/css">
<!--
.style1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: small;
	color: #000000;
}
-->
</style>';
echo '<span class="style1">Files have been copied to the ' . $year . ' directory</span>';
?>
Return current item: QwikStats