$delete_comment1
$delete_comment2 $delete_comment3."; $icon = "./images/key.gif"; } elseif($weblog_info[show_comments] == "2" & $is_logged_in == "no" & $is_admin_logged_in != "yes") { $is_error = "yes"; $error = "$delete_comment1
$delete_comment4 $delete_comment3."; $icon = "./images/key.gif"; } elseif($entry_info[comments] == "0") { $is_error = "yes"; $error = "$delete_comment5
$delete_comment6"; $icon = "./images/error.gif"; } elseif($owner_group_info[allow_comments] == "0" | $weblog_info[show_comments] == "0") { $is_error = "yes"; $error = "$delete_comment5
$delete_comment7"; $icon = "./images/error.gif"; } elseif(($weblog_info[manage_comments] == "0" | $weblog_info[manage_comments] == "1") & ($user_status != "owner" & $user_status != "admin" & $user_status != "member" & $user_status != "site_owner") & $is_admin_logged_in != "yes") { $is_error = "yes"; $error = "$delete_comment8
$delete_comment9"; $icon = "./images/error.gif"; } elseif($is_logged_in != "yes" & $is_admin_logged_in != "yes") { $is_error = "yes"; $error = "$delete_comment1
$delete_comment4 $delete_comment3."; $icon = "./images/key.gif"; } elseif(($user_info[username] != $comment_info[username] | $user_info[u_id] != $comment_info[author_u_id]) & ($user_status != "owner" & $user_status != "admin" & $user_status != "member" & $user_status != "site_owner") & $is_admin_logged_in != "yes") { $is_error = "yes"; $error = "$delete_comment1
$delete_comment10 $delete_comment3"; $icon = "./images/key.gif"; } if($is_error == "yes") { echo $head; echo "
$error
"; echo $foot; exit(); } if($task == "cancel") { $url = url("entry", "$weblog_info[weblog]", "", "$e_id", "", "", "#c$c_id"); header("Location: $url"); exit(); } if($task == "dodelete") { mysql_query("DELETE FROM bhost_comments WHERE c_id='$c_id' AND e_id='$e_id' AND w_id='$weblog_info[w_id]'"); $url = url("entry", "$weblog_info[weblog]", "", "$e_id"); header("Location: $url"); exit(); } echo $head; echo "

$delete_comment11

$delete_comment12

 
"; echo $foot; ?>