echo $news->newsPanel(); break; case 'staff': require_once CORE_DIR . "/admin/staff.php"; $staff = new Staff(); head(); if (isset($_GET['deluse'])) { $staff->remStaff($_GET['deluse'], 0, 0); } if (valid('admin')) { echo $staff->getStaff(); } else { error("Permission denied"); } if (isset($_POST['user']) && isset($_POST['pwd1']) && isset($_POST['pwd2']) && isset($_POST['action'])) { $staff->addStaff($_POST['user'], $_POST['pwd1'], $_POST['pwd2'], $_POST['action']); } break; case "modipost": require_once CORE_DIR . "/admin/modifyPost.php"; $modify = new Modify(); echo $modify->mod($_GET['no'], $_GET['action']); break; default: head(); echo "<div class='managerBanner' >" . S_MANAMODE . "</div></div>"; aform($post, $res, 1); admindel($pass); die("</body></html>"); break; }
rebuild(1); break; case 'reports': head(0); require_once CORE_DIR . "/admin/report.php"; $getReport = new Report(); if (isset($_GET['no'])) { $getReport->reportClear($_GET['no']); } $active = $getReport->reportGetAllBoard(); echo $getReport->reportList(); break; case 'news': head(0); if (!valid('admin')) { error(S_NOPERM); } require_once CORE_DIR . "/admin/news.php"; $news = new News(); //lol if (isset($_POST['update']) && isset($_POST['file']) || isset($_POST['boardlist'])) { $news->newsUpdate($_POST['update'], $_POST['file']); } echo $news->newsPanel(); break; default: head(0); aform($post = '', 0, 1); $table->display($type = 'all', 0); break; }
<h4>--rename</h4> <?php aform("rename", array("0" => array("", "", "from", "(pagenames)"), "1" => array("", "", "to"))); ?> </td> <td width="40%" valign="top" class="add-border-right"> <h4>--chmod</h4> <?php aform("chmod", array("file" => array("SandBox", "", "page", ""), "0" => array("+TEXT,-OFF", "", "flags", "can be either decimal (54), octal (0377) or hex (0x137f) - or a combination of <a href=\"t_commander/info.php\">flag abbreviations</a> separated by comma, + or a - sign<br> like <tt>+HTM,WRITE,-OFF</tt>"))); ?> </td> <td width="40%" valign="top"> <h4>--unlink</h4> deletes a page completely (with all its versions)<br><br> <?php aform("unlink", array("0" => array("SandBox", "", "page", ""))); ?> </td> </tr></table> <br> <br> There are equations for some of the above commands in the collection of <a href=".">database tools</a>, that sometimes provide more options or are easier to use. <br> <br>