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 UpdatedNo files found
'; } } else { print 'Unable to open files directory
'; } printFooter(); ?>