render($MEDIA->display($id)); } elseif($do == "commentadd") { $PAGE->render($MEDIA->add($id)); } elseif(!isset($do) && isset($id) && $MEDIA->getfile($id) && $MEDIA->is_dir==0 && ($CURRENT_USER->id>0 && $MEDIA->access=="user" || $MEDIA->access=="public" || $MEDIA->access=="secret" && $ADMIN->check(IS_ADMIN))) { $MEDIA->updatecounter(); $MEDIA->output(FALSE,TRUE); exit(); } else { header("HTTP/1.0 404 Not Found"); echo "404 Not Found

Not Found

"; exit(); } ?>