// Check permissions if (!$g_user->hasPermission('plugin_blog_admin')) { camp_html_display_error(getGS('You do not have the right to manage blogs.')); exit; } $f_entry_id = Input::Get('f_entry_id', 'int'); $f_comment_id = Input::Get('f_comment_id', 'int'); if (!$f_comment_id) { $user_id = $g_user->getUserId(); } $BlogComment = new BlogComment($f_comment_id, $f_entry_id); if ($BlogComment->store($is_admin, $user_id)) { camp_html_add_msg(getGS('Blog comment saved.'), 'ok'); ?> <script language="javascript"> window.opener.location.reload(); window.close(); </script> <?php exit(); } ?> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <META HTTP-EQUIV="Expires" CONTENT="now"> <link rel="stylesheet" type="text/css" href="<?php echo $Campsite['WEBSITE_URL']; ?>/admin-style/admin_stylesheet.css" />