Unable to delete file ' . safeHTMLstr($file) . '

'; } issueSQL("UPDATE `" . OCC_TABLE_PAPER . "` SET " . $formatField . "=NULL WHERE `paperid`='" . safeSQLstr($filematch[1]) . "' AND " . $formatField . "='" . safeSQLstr($filematch[2]) . "' LIMIT 1"); } } } // Display files if ($pdh = opendir($dir)) { $fAR = array(); while(($f = readdir($pdh)) !== false) { if (is_file($dir.$f) && !in_array($f,$skipAR)) { $fAR[$f] = oc_fileMtime($dir.$f); } } closedir($pdh); if (oc_hookSet('chair-list_files')) { foreach ($GLOBALS['OC_hooksAR']['chair-list_files'] as $hook) { require_once $hook; } } $type = ((isset($_GET['oc_multifile_type']) && ctype_digit($_GET['oc_multifile_type'])) ? urlencode($_GET['oc_multifile_type']) : 1); if (count($fAR) > 0) { if (isset($_GET['s']) && ($_GET['s'] == 'date')) { $dsort = 'Last Updated
' . $OC_sortImg; $fsort = 'File'; arsort($fAR,SORT_NUMERIC); } else { $fsort = 'File
' . $OC_sortImg; $dsort = 'Last Updated'; ksort($fAR,SORT_NUMERIC); } print '
icon
ZIP
all files
icon
ZIP
accepted only
'; print '
'; $row = 1; foreach ($fAR as $f => $d) { print '\n"; $row = $rowAR[$row]; } print '
 ' . $fsort . 'Size' . $dsort . '
' . urlencode($f) . '' . safeHTMLstr(oc_formatNumber(oc_fileSize($dir.$f))) . '' . safeHTMLstr(date("d M Y H:i:s", $d)) . "
'; } else { // 0 files print '

No files found

'; } } else { print '

Unable to open files directory

'; } printFooter(); ?>