{"id":708,"date":"2007-02-03T02:22:12","date_gmt":"2007-02-03T00:22:12","guid":{"rendered":"http:\/\/www.rare-it.com\/blog\/index.php\/2007\/02\/03\/you-are-now-logged-in\/"},"modified":"2007-02-03T02:22:12","modified_gmt":"2007-02-03T00:22:12","slug":"you-are-now-logged-in","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2007\/02\/you-are-now-logged-in\/","title":{"rendered":"You are now logged in"},"content":{"rendered":"<p>As a thingie to enhance my PHP knowledge (I can read it, but writing is something else) I&#8217;m creating my own photo-gallery application. I just started two days ago and can only work on it in my spare time, but I have the following in place now:<\/p>\n<ul>\n<li \/>PostgreSQL server installed; user, tablespace and database created\n<li \/>Basic tables for users and their albums created\n<li \/>Index page in PHP, basically displaying a login when you first access it, or the entries in the albums table when logged in\n<li \/>Login page in PHP, checking the supplied username and password against the users-table in the database\n<li \/>Logout page, destroying the session and return to the index-page like you first accessed it\n<\/ul>\n<p>To do:<\/p>\n<ul>\n<li \/>Store passwords as md5-hashes (or something) instead of plain-text\n<li \/>Create an Items table (detail-records of albums table)\n<li \/>Create an Item_types table (picture, movie, etc)\n<li \/>Display pictures!\n<li \/>Create a Tags table\n<li \/>Create an Item_tags table (link between Items and Tags)\n<li \/>Functionality (->page) to link tags to items (preferable AJAXified)\n<li \/>Create tags-based search page\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>As a thingie to enhance my PHP knowledge (I can read it, but writing is something else) I&#8217;m creating my own photo-gallery application. I just started two days ago and can only work on it in my spare time, but I have the following in place now: PostgreSQL server installed; user, tablespace and database created <a href='https:\/\/www.switchbl8.nl\/blog\/2007\/02\/you-are-now-logged-in\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-708","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=708"}],"version-history":[{"count":0,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/708\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}