コード例 #1
0
ファイル: index.php プロジェクト: severnaya99/Sg-2010
     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'>";
         echo "<h4>" . _AM_FILEDEL . "</h4>";
         $file = new WfsFiles($fileid);
         $filename = XOOPS_URL . "/" . $wfsConfig['filesbasepath'];
         echo $filename . "/" . $file->getFileRealName() . " (" . $file->getDownloadname() . ")\n";
         echo "<table><tr><td><br />";
         echo myTextForm("index.php?op=delfile&amp;fileid=" . $fileid . "&amp;ok=1", _AM_YES);
         echo "</td><td><br />";
         echo myTextForm("javascript:history.go(-1)", _AM_NO);