Location: PHPKode > projects > Nukequiz > html/modules/Nukequiz/admin/NQACheckExported.php
<?php
/*****************************************************************/
/* Nukequiz (tm)    v 3.1.0                                		 */
/* By: Kissoftware (hide@address.com)      		     */
/* http://www.kissoftware.org.uk                           		 */
/* http://www.kissoftware.co.uk                       		     */
/* Copyright © 2003-2008 by Kissoftware         				 */
/* See Docs For Information & Credits                 			 */
/* For More information Visit Forums Or The Online Help Manual	 */
/*****************************************************************/
include("header.php");
nqmenuheader();
OpenTable();
$backupdir = $nq_config['backup_directory'];
$dir_name="modules/$module_name/$backupdir";
$handle=opendir($dir_name);
$fsize=5242880;  // In Bytes (5M quota)
$total= quizdirsize($dir_name);
$total1= quizfilesizepre($total);
$freespace = $fsize - $total;
$freespace=quizfilesizepre($freespace);
$fsize= quizfilesizepre($fsize);
echo "<br><center><font class='title'>"._NQ_VIEWEXPORTFILES."</font><br><br>";
echo "$total1 "._NQ_FREE." $freespace "._NQ_OUTOF." $fsize<center><br>";
echo "<center><table cellpadding='3'cellspacing='3'border='0'><tr>";
echo "<th>"._NQ_FILEAME."</th><th>"._NQ_SIZEOFFILE."</th><th>"._NQ_MODIFIED."</th><th>"._NQ_OPTIONS."</th></tr><tr>"; 
while (($file = readdir($handle))!==false) {
if (substr($file,-4) == ".zip"){ 
$size = filesize("$dir_name/$file");
$fsize= quizfilesizepre($size);
$formatdate = $nq_config['dateformat'];  
$modified=date($formatdate, filemtime("$dir_name/$file"));
echo "<td class='row1'align='center'><a href='modules/$module_name/$backupdir/$file'>$file</a></td><td class='row1'align='center'>[&nbsp;$fsize&nbsp;]</td><td class='row1'align='center'>$modified</td><td class='row1'align='center'>[&nbsp;<a href='".$admin_file.".php?op=nqdeletezipfile&amp;file=$file'>"._NQ_DELETEFILE."</a>&nbsp;]</td></tr><tr>";  
} 
}
echo "</tr></table></center>";
closedir($handle);
CloseTable(); 
include("footer.php");
?>
Return current item: Nukequiz