if (!$upload->isAllowedMineType()) { echo _AM_NOTALLOWEDMINETYPE . "<br />"; } if (!$upload->isAllowedFileSize()) { echo _AM_FILETOOBIG . "<br />"; } echo "</td></tr></table>"; } break; case "fileedit": include_once "../class/wfsfiles.php"; $file = new WfsFiles($fileid); //xoops_cp_header(); //echo"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class='odd'>"; //echo "<h4>"._AM_EDITFILE."</h4>"; $file->editform(); //echo"</td></tr></table>"; break; case "delfile": include_once "../class/wfsfiles.php"; if ($ok) { $file = new WfsFiles($fileid); $articleid = $file->getArticleid(); $file->delete(); redirect_header("index.php?op=edit&articleid=" . $articleid, 1, _AM_DBUPDATED); exit; } else { xoops_cp_header(); global $xoopsConfig, $wfsConfig; echo "<table width='100%' border='0' cellspacing='1'><tr><td>"; echo "<div class='confirmMsg'>";