} //feature video if (isset($_POST['unfeature']) && isset($_POST['list'])) { //delete each posted video foreach ($_POST['list'] as $image_id) { manageimages($image_id, 'unfeature'); } //notifications $show_notification = 1; $message = notifications(1); } //feature video if (isset($_POST['reset_flags']) && isset($_POST['list'])) { //delete each posted video foreach ($_POST['list'] as $image_id) { manageimages($image_id, 'reset_flags'); } //notifications $show_notification = 1; $message = notifications(1); } //Display Results >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> //pagination first ///////////////// if ($show_t == 1) { //active videos $pagination = pagination("SELECT * FROM images WHERE approved='yes' {$sort}", $limit); } if ($show_t == 2) { //Video approval $pagination = pagination("SELECT * FROM images WHERE approved='pending' {$sort}", $limit);
//so no table/submit form is shown after this process switch ($type) { //Videos case 1: $usercheck = new LoadPermissions('', $contentid, 'videos'); $usercheck->CheckPermissions(); $usercheck->ActionsCheck('delete'); managevideo($contentid, 'delete'); break; //Images //Images case 2: $usercheck = new LoadPermissions('', $contentid, 'images'); $usercheck->CheckPermissions(); $usercheck->ActionsCheck('delete'); manageimages($contentid, 'delete'); break; //Blogs (actual blog) //Blogs (actual blog) case 3: $usercheck = new LoadPermissions('', $contentid, 'blogs'); $usercheck->CheckPermissions(); $usercheck->ActionsCheck('delete'); manageblogs($contentid, 'delete'); break; //Audio //Audio case 4: $usercheck = new LoadPermissions('', $contentid, 'audios'); $usercheck->CheckPermissions(); $usercheck->ActionsCheck('delete');