Views/Clear the Geeklog Google Analytics Files.

" . "

" . "File:   "; $files = array(); if ($dir = @opendir($fpath)) { while(($file = readdir($dir)) !== false) { if (is_file($fpath . $file)) { array_push($files,$file); } } closedir($dir); } $display .= '    " . "" . "    " . "" . "
"; if ($action == 'Clear Google Analytics File') { unlink($fpath . $log); $timestamp = strftime( "%c" ); $fd = fopen( $fpath . $log, a ); fputs( $fd, "$timestamp - Google Analytics File Cleared \n" ); fclose($fd); $action = 'View Google Analytics File'; } if ($action == 'View Google Analytics File') { $display .= "

Stats File: $log

"
        . implode('', file($fpath . $log))
        . "
"; } $display .= COM_endBlock() . COM_siteFooter(false); echo $display; ?>