Getting rid of dangeros in export.php, import.php and folders.php.
This commit is contained in:
@@ -3,7 +3,7 @@ if (basename ($_SERVER['SCRIPT_NAME']) == basename (__FILE__)) {
|
||||
die ("no direct access allowed");
|
||||
}
|
||||
|
||||
function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $show_link, $show_desc, $show_date, $show_edit, $show_move, $show_delete, $show_share, $show_header) {
|
||||
function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $show_link, $show_desc, $show_date, $show_edit, $show_move, $show_delete, $show_share, $show_header, $user = false) {
|
||||
global $folderid,
|
||||
$expand,
|
||||
$settings,
|
||||
@@ -61,8 +61,8 @@ function list_bookmarks ($bookmarks, $show_checkbox, $show_folder, $show_icon, $
|
||||
'expand' => implode (",", $expand),
|
||||
'order' => $sort_d,
|
||||
);
|
||||
if (isset ($GLOBALS['user']) && $GLOBALS['user'] != '') {
|
||||
$query_data['user'] = $GLOBALS['user'];
|
||||
if ($user) {
|
||||
$query_data['user'] = $user;
|
||||
}
|
||||
$query_string = assemble_query_string ($query_data);
|
||||
echo "\t\t" . '<div class="bmright">' . "\n";
|
||||
|
||||
Reference in New Issue
Block a user