예제 #1
0
    }
}
if (isset($_GET['delete_comment']) && is_numeric($_GET['delete_comment'])) {
    $comment_id = $_GET['delete_comment'];
    $comment_uid = links_get_comment_uid($comment_id);
    if ($user_perm_links_moderate || $comment_uid == $_SESSION['UID']) {
        if (links_delete_comment($comment_id)) {
            $success_msg = gettext("Comment was deleted.");
        } else {
            $error_msg_array[] = gettext("Comment could not be deleted.");
            $valid = false;
        }
    }
}
$folders = links_folders_get(!$user_perm_links_moderate);
$page_title = links_get_folder_page_title($link['FID'], $folders, $link['TITLE']);
html_draw_top(array('title' => $page_title, 'class' => 'window_title'));
echo "<h1>", links_get_folder_path_links($link['FID'], $folders, true, true), html_style_image('separator'), "<a href=\"links.php?webtag={$webtag}&amp;lid={$lid}&amp;action=go\" target=\"_blank\">", word_filter_add_ob_tags($link['TITLE'], true), "</a></h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    html_display_error_array($error_msg_array, '600', 'center');
} else {
    if (isset($success_msg) && strlen($success_msg) > 0) {
        html_display_success_msg($success_msg, '600', 'center');
    }
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
echo "  <tr>\n";
echo "    <td align=\"left\">\n";
echo "      <table class=\"box\" width=\"100%\">\n";
예제 #2
0
    }
}
$viewmode = LINKS_VIEW_HIERARCHICAL;
if (isset($_GET['viewmode']) && is_numeric($_GET['viewmode'])) {
    if ($_GET['viewmode'] == LINKS_VIEW_LIST) {
        $viewmode = LINKS_VIEW_LIST;
    } else {
        $viewmode = LINKS_VIEW_HIERARCHICAL;
    }
}
if (isset($_GET['page']) && is_numeric($_GET['page'])) {
    $page = $_GET['page'] > 0 ? $_GET['page'] : 1;
} else {
    $page = 1;
}
$page_title = links_get_folder_page_title($fid, $folders);
html_draw_top("title={$page_title}", 'class=window_title');
echo "<h1>", links_get_folder_path_links($fid, $folders), "</h1>\n";
if (isset($_GET['link_added']) && strlen(trim($_GET['link_added'])) > 0) {
    $link_added = $_GET['link_added'];
    html_display_success_msg(sprintf(gettext("Successfully added link '%s'"), htmlentities_array($link_added)), '85%', 'center');
} else {
    if (isset($_GET['folder_added']) && strlen(trim($_GET['folder_added'])) > 0) {
        $folder_added = $_GET['folder_added'];
        html_display_success_msg(sprintf(gettext("Successfully added link '%s'"), htmlentities_array($folder_added)), '85%', 'center');
    }
}
// work out where we are in the folder hierarchy and display links to all the higher levels
if ($viewmode == LINKS_VIEW_HIERARCHICAL) {
    echo "<div align=\"right\">", gettext("View Mode"), ": ";
    echo "  <a href=\"links.php?webtag={$webtag}&amp;fid={$fid}&amp;viewmode=0\"><b>", gettext("Hierarchical"), "</b></a> | ";