//commented out for now, because we cant add a manual ban based on a non existing hash suffix (or fetch the full hash from a non existing post), and the user wouldnt know if it the post didn't exist so its pointless anyway.
//commented out for now, because we cant add a manual ban based on a non existing hash suffix (or fetch the full hash from a non existing post), and the user wouldnt know if it the post didn't exist so its pointless anyway.
//router.post('/global/addban', geoAndTor, torPreBypassCheck, processIp, useSession, sessionRefresh, csrf, calcPerms, isLoggedIn, hasPerms(1), paramConverter, addBanController); //add ban manually without post
//router.post('/global/addban', geoAndTor, torPreBypassCheck, processIp, useSession, sessionRefresh, csrf, calcPerms, isLoggedIn, hasPerms(1), paramConverter, addBanController); //add ban manually without post
router.post('/global/deleteboard',useSession,sessionRefresh,csrf,paramConverter,calcPerms,isLoggedIn,hasPerms(Math.min(deleteBoardPermLevel,1)),deleteBoardController);//delete board from global management panel
router.post('/global/addnews',useSession,sessionRefresh,csrf,calcPerms,isLoggedIn,hasPerms(0),addNewsController);//add new newspost
router.post('/global/addnews',useSession,sessionRefresh,csrf,calcPerms,isLoggedIn,hasPerms(0),addNewsController);//add new newspost
router.post('/global/editnews',useSession,sessionRefresh,csrf,calcPerms,isLoggedIn,hasPerms(0),paramConverter,editNewsController);//add new newspost
router.post('/global/editnews',useSession,sessionRefresh,csrf,calcPerms,isLoggedIn,hasPerms(0),paramConverter,editNewsController);//add new newspost