From 5834625948e21672afb15783ad2463133d58d1a2 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Nov 2010 22:08:40 +0100 Subject: [PATCH] little bookmakr system --- bookmarks/README | 12 ++++ bookmarks/config.php | 10 ++++ bookmarks/db_structure.sql | 9 +++ bookmarks/edit.png | Bin 0 -> 3326 bytes bookmarks/index.php | 116 +++++++++++++++++++++++++++++++++++++ 5 files changed, 147 insertions(+) create mode 100644 bookmarks/README create mode 100644 bookmarks/config.php create mode 100644 bookmarks/db_structure.sql create mode 100644 bookmarks/edit.png create mode 100644 bookmarks/index.php diff --git a/bookmarks/README b/bookmarks/README new file mode 100644 index 0000000..0eaf9f6 --- /dev/null +++ b/bookmarks/README @@ -0,0 +1,12 @@ +A simple Script to manage your Bookmarks without any third-party hoster eg. xmarks, apple etc. + +All you need is this script a MySQL Database and one table in it. + +Create your own subdomain and protect it with the htaccess file and your can now access and manage +your Bookmarks everywhere. + +Independent to a browser or location. + +AND your data is where YOU know. Not in a cloud without security. You control it and decide where and who has access. + +copyright 2010 Johannes 'Banana' Keßler diff --git a/bookmarks/config.php b/bookmarks/config.php new file mode 100644 index 0000000..de91638 --- /dev/null +++ b/bookmarks/config.php @@ -0,0 +1,10 @@ + diff --git a/bookmarks/db_structure.sql b/bookmarks/db_structure.sql new file mode 100644 index 0000000..d010c50 --- /dev/null +++ b/bookmarks/db_structure.sql @@ -0,0 +1,9 @@ +CREATE TABLE `bookmarks` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `category` varchar(128) DEFAULT NULL, + `title` varchar(128) DEFAULT NULL, + `link` varchar(255) DEFAULT NULL, + `date_added` int(10) DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `link` (`link`) +) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; diff --git a/bookmarks/edit.png b/bookmarks/edit.png new file mode 100644 index 0000000000000000000000000000000000000000..f4232c67819035ab59a66f8addb5cd1922b3c6e7 GIT binary patch literal 3326 zcm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vi^s`AHkk9n2dY ztIU86ikc+U`WMm-$(1!&nlCd7%0wY@1e18axwWM%tk+{~2PI%)q_3hOHz zs6SE`Hc;QbwR+GiEA8Bsx*}~)NZ(Bdo z*{B|+@N}S|vrR?vxca3k5lAZ_-q)C%K3AHsnWWm_;MudDd1fno9pSFj{rpUvn9yb` zp*~iINi4V(DIG9Xlvrm&ZnraM5mfmzIf;3xMY}F-_qyzdKh@lGI@tVV!~j-nSVM$c z{-XA`Z0Z1@?_%)EOf}Z9vjp7HSsv0}%NuE$Nz=0IyrmvJJLumkzg-Z`wy?oTHdb^Y zMm1t|r89)xgW}RT#28;po{rpLH!;0uT;gck6?LNHVl027|3aw6r}C2ATs{&=Y_ZhR z29=YVDhT-77!1ZOw?@N=XgAf7@KaUf4ClJc?TobX-iwBZXo`qFCS^Gz(xG2tPD2zG?%UFuq|nM z7nZA6TIej+x&?k!&R2ctT|P0W9qV^c+vn6}T1YLI`(R#juwmCOy>PhdKFwHo zoBU_f)(V)Cq&uuwY=ia9y`x5LxR2YkhfB{oi`_p1oAOR~oZRaTg9km)P%L|wN|ha| zyE%~OEGAih`9yj-wjw|*)h~d{cWY9szObz=nXt}P-WCzNXy2Z38=4nKni)(QSxxi!N#YCiq_bGMeSYl?CjJ&BQt)SM?dhUNW2SZS zR@JkDTSjOsL6x*i>b$<6j-SE!(e~|S3 z#~+(1e>NA3Hj$6Dsa0)I9oI_A)|7BD_y{)R*s^a67jz1e;sU9Yi#{sN=j!9m|EW9G lrTb@Ut8Y!J)*`)eQKYYV8{X3~dHHXPgPpVOWt)J+e*<;Ia>D=s literal 0 HcmV?d00001 diff --git a/bookmarks/index.php b/bookmarks/index.php new file mode 100644 index 0000000..c855926 --- /dev/null +++ b/bookmarks/index.php @@ -0,0 +1,116 @@ + 0) { + while($result = mysql_fetch_assoc($query)) { + $bookmarks[$result['id']] = $result; + } +} +?> + + + Bookmarks for myself + + + + +
+ Link:
+
+ Titel:
+
+ Kategorie:
+
+ +
+ +
+ Link:
+
+ Titel:
+
+ Kategorie:
+
+ +
+ '; + echo '

'.$entry['category'].'

'; + echo ''; + } +?> + + -- 2.39.5