Articles RSS Feed

Blite Blog

Blite : a lightweight blog app

Blite 0.1-beta3 Available

Posted 13 Apr 2012, 5:48 pm in Blite Development

This beta is now obsolete and should not be used.

Changes:

  • Use sqlite3 prepare() and execute() instead of query().
  • Include the admin's IP and browser user-agent in the cookie hash.
  • Code cleanup to (hopefully) eliminate PHP notices. Seems clean now with "error_reporting = E_ALL | E_STRICT".
  • Some basic checks to see if the environment is OK. Check for: PHP 5.3+; PHP SQLite3 extension; writable database directory; writable sqlite database.
  • Rework the Settings page.
  • Password field in Settings now takes a text password.
  • Also in Settings, disable blogspam.net config if PHP xmlrpc extension is not installed.
  • Remove config.php in favour of three new files - configure.php, lang_en.php, init.php - to facilitate upgrading.

Thanks again to everyone who provided feedback.

11 Comments
Comments RSS Feed
Nick:
Great dude. Now it's more awesome than it was. Keep it up!!
13 Apr 2012, 11:15 pm · Permalink
Doug:
Bug: total post count (used to build pagination) should not include retracted and draft posts.

In index.php at line 138, find:

$rowcount = $db->query("SELECT COUNT(*) as count FROM posts");

And edit it to:

$rowcount = $db->query("SELECT COUNT(*) as count FROM posts WHERE status='1'");
14 Apr 2012, 7:22 pm · Permalink
I love you for this. Following you a while on LET. This is really awesome :)
14 Apr 2012, 7:51 pm · Permalink
Doug wrote:
Bug: total post count (used to build pagination) should not include retracted and draft posts.

In index.php at line 138, find:

$rowcount = $db->query("SELECT COUNT(*) as count FROM posts");

And edit it to:

$rowcount = $db->query("SELECT COUNT(*) as count FROM posts WHERE status='1'");

Awesome! Thank you :)
14 Apr 2012, 7:54 pm · Permalink
Doug:
If only all bugs were that easy :)
14 Apr 2012, 8:03 pm · Permalink
Roph:
A few PHP notices still left:

Undefined index for h, logout, loginsubmit and msg when at login.php, and an undefined var for sidebarcnt in the settings area.

Clean 0.1-Beta3 install, EasyPHP/Win32.

Thanks for the updates :D
14 Apr 2012, 9:10 pm · Permalink
Nick:
Try this: create a post named '"' and go to edit it. The title will disappear. When you're getting the title to the editor you actually have to make it go throught a "htmlspecialchars".
15 Apr 2012, 3:01 am · Permalink
Doug:
Roph wrote:
A few PHP notices still left:

Got 'em, plus a few others.
15 Apr 2012, 10:54 am · Permalink
Doug:
Nick wrote:
Try this: create a post named '"' and go to edit it. The title will disappear. When you're getting the title to the editor you actually have to make it go throught a "htmlspecialchars".

Thanks Nicks. htmlspecialchars done.
15 Apr 2012, 10:55 am · Permalink
Nick:
Great. Please make the comment form to remember the name and the email longer. Every time I have to type them. Also a comment preview before posting would be awesome!!

There are some errors in the login page:
Undefined index: h
Undefined index: logout
Undefined index: loginsubmit
Undefined index: msg

Hope you fixed them ;)
15 Apr 2012, 12:13 pm · Permalink
Doug:
Comment form now sets cookies instead of relying only on session vars. Try another comment here and then check your cookies for this domain.

Yup, I've fixed those pesky notices :)
15 Apr 2012, 12:27 pm · Permalink
Comments are closed for this post.