' . PHP_EOL;
@@ -233,3 +232,4 @@ function list_bookmarks($bookmarks, $show_checkbox, $show_folder, $show_icon, $s
}
echo '' . PHP_EOL;
}
+
diff --git a/bookmarks/delete_bookmark.inc.php b/bookmarks/delete_bookmark.inc.php
index c49ada4..27c7637 100644
--- a/bookmarks/delete_bookmark.inc.php
+++ b/bookmarks/delete_bookmark.inc.php
@@ -4,7 +4,6 @@
logged_in_only();
if (!empty($username) && $username !== 'demo') {
-debug_logger(name: 'SERVER[QUERY_STRING]', variable: $_SERVER['QUERY_STRING'], file: __FILE__, function: __FUNCTION__);
$qs = ltrim($_SERVER['QUERY_STRING'], '?');
parse_str($qs, $qs_arr);
@@ -12,8 +11,6 @@
$bmlist = $qs_arr['bmlist']; // Comma separated string of bookmark ID's, e.g. 4186,4193,5825
$icons_to_delete = $qs_arr['bookmarks']; // Array of favicon name's.
-debug_logger(name: 'bmlist', variable: $bmlist, file: __FILE__, function: __FUNCTION__);
-debug_logger(name: 'icons_to_delete', variable: $icons_to_delete, file: __FILE__, function: __FUNCTION__);
$query_delete = sprintf("
@@ -57,7 +54,6 @@
unlink(DOC_ROOT .'/icons/'. $favicon);
}
else {
- debug_logger(name: 'ERROR -- Favicon was not found: ', variable: $favicon, file: __FILE__, function: __FUNCTION__);
}
}
}
@@ -69,3 +65,4 @@
echo '
';
}
+
diff --git a/bookmarks/delete_bookmark.php b/bookmarks/delete_bookmark.php
index fb3563e..c3583dc 100644
--- a/bookmarks/delete_bookmark.php
+++ b/bookmarks/delete_bookmark.php
@@ -98,7 +98,6 @@
\ No newline at end of file
+ require_once(realpath(DOC_ROOT . '/footer.inc.php'));
+?>
diff --git a/bookmarks/edit_bookmark.php b/bookmarks/edit_bookmark.php
index be0eec4..a89558a 100644
--- a/bookmarks/edit_bookmark.php
+++ b/bookmarks/edit_bookmark.php
@@ -139,7 +139,6 @@
require_once(realpath(DOC_ROOT . '/favicon.inc.php'));
$favicon = new Favicon($used_url);
$new_fav = $favicon->favicon;
-debug_logger(name:'favicon->favicon >>', variable:$new_fav, file:__FILE__, function:__FUNCTION__);
if ($new_fav) {
$update_query = sprintf("
UPDATE `obm_bookmarks`
@@ -152,7 +151,6 @@
$mysql->escape($username),
$mysql->escape($bmlist[0])
);
-debug_logger(name:'bm-query', variable:$update_query, file:__FILE__, function:__FUNCTION__);
if (!$mysql->query($update_query)) {
message($mysql->error);
}
@@ -245,3 +243,4 @@
require_once(realpath(DOC_ROOT . '/footer.php'));
?>
+
diff --git a/bookmarks/move_bookmark.php b/bookmarks/move_bookmark.php
index 2d78d7f..6a54738 100644
--- a/bookmarks/move_bookmark.php
+++ b/bookmarks/move_bookmark.php
@@ -2,14 +2,11 @@
require_once(realpath(dirname(__DIR__, 1) . '/header.php'));
logged_in_only();
-debug_logger( name:'------------', variable: '-------', file: __FILE__, function: __FUNCTION__ );
$bmlist = set_post_num_list('bmlist'); // Returns an array.
-debug_logger( name:'bmlist-1', variable: print_r($bmlist, true), file: __FILE__, function: __FUNCTION__ );
if (count($bmlist) == 0) {
$bmlist = set_get_num_list('bmlist'); // Returns an array.
-debug_logger( name:'bmlist-2', variable: print_r($bmlist, true), file: __FILE__, function: __FUNCTION__ );
?>
Move bookmarks to:
@@ -18,8 +15,6 @@
make_tree(0);
@@ -42,7 +37,6 @@
query($query)) {
-debug_logger( name:'success', variable: $query, file: __FILE__, function: __FUNCTION__ );
echo 'Bookmarks moved.
'. PHP_EOL;
echo '';
}
else {
-debug_logger( name:'error', variable: $query, file: __FILE__, function: __FUNCTION__ );
message($mysql->error);
}
}
- require_once(realpath(DOC_ROOT . '/footer.php'));
+ require_once(realpath(DOC_ROOT . '/footer.inc.php'));
?>
+
diff --git a/bookmarks/new_bookmark.php b/bookmarks/new_bookmark.php
index e27fcfa..37c06bf 100644
--- a/bookmarks/new_bookmark.php
+++ b/bookmarks/new_bookmark.php
@@ -98,7 +98,6 @@
}
unset($_SESSION['title'], $_SESSION['url']);
-debug_logger(variable:$post_url, name:'post_url', file:__FILE__, function:__FUNCTION__);
///////////////////////////
// SAVE Favicon
@@ -109,7 +108,6 @@
if ($settings['show_bookmark_icon']) {
require_once(realpath(DOC_ROOT . '/favicon.inc.php'));
$favicon = new Favicon($post_url);
-debug_logger(variable:print_r($favicon, true), name:'favicon-object', file:__FILE__, function:__FUNCTION__);
if (!empty($favicon->favicon)) {
$update_query = sprintf("
@@ -121,7 +119,6 @@
$mysql->escape($username),
$mysql->escape($bm_id)
);
-debug_logger(variable:$update_query, name:'update-query', file:__FILE__, function:__FUNCTION__);
if (!$mysql->query($update_query)) {
message($mysql->error);
}
@@ -129,8 +126,6 @@
}
else {
$icon = $bookmark_image;
-debug_logger(variable:$icon, name:'favicon->favicon was NOT set', file:__FILE__, function:__FUNCTION__);
-debug_logger(variable:debug_backtrace(), name:'debug_backtrace()', file:__FILE__, function:__FUNCTION__);
}
}
@@ -148,4 +143,4 @@
}
}
require_once(realpath(DOC_ROOT . '/footer.php'));
-?>
\ No newline at end of file
+?>
diff --git a/lib/lib.php b/lib/lib.php
index c8a4fc7..03b56ab 100644
--- a/lib/lib.php
+++ b/lib/lib.php
@@ -33,7 +33,7 @@ function message($message) {
if (isset($message)) {
echo '
' . $message . '
';
}
- require_once(realpath(DOC_ROOT . '/footer.php'));
+ require_once(realpath(DOC_ROOT . '/footer.inc.php'));
}
@@ -45,7 +45,7 @@ function logged_in_only() {
if (empty($_SESSION['logged_in']) || ! $_SESSION['logged_in']) {
global $auth;
$auth->display_login_form();
- require_once(realpath(DOC_ROOT . '/footer.php'));
+ require_once(realpath(DOC_ROOT . '/footer.inc.php'));
}
}