MinimalWeblog is a stripped-down, PHP 5 and mysqli only fork of Personal Weblog by Mark Pulford. Current version:
1.0.2, released June 17, 2007.
I created this fork because I used Personal Weblog myself, but found that it sometimes behaved problematically
under PHP 5. I started to update the code for PHP 5, and got carried away in the process: I decided to strip out
stuff I never use and rewrote the code to fit my personal taste.
This project is strictly scratch-my-own-itch-ware, and not meant to be useful to anyone but myself. It is
released under the GPL.
Differences from Personal Weblog 1.0.0
Removals
- removed postgresql support. (db is still abstracted away, so adding support for other RDBMs should be
straightforward)
- handed cookies and timeout stuff over to PHP session defaults
- removed login_expire variable
- removed login_cookie variable
- removed login_timeout variable
- removed last_modified variable
- removed subst_local() and entry_save_local()
- removed restricted topics support
- removed paragraph_split variable and associated method
Additions
- Added option to limit editing of the weblog to certain hosts
Changes
- PHP 5 only (mysqli extension needed)
- MySQL 4.1 only (prepared statements used instead of addslashes())
- All methods (except rss_print()) now return a value instead of echo'ing
- print_error() method renamed to handle_error() and via set_error_handler() used as official error
handler
- weblog-specific error messages triggered with trigger_error()
- PHPDoc style comments
- preg instead of ereg functions
- longer, more descriptive variable names
Todo
- use Exceptions instead of trigger_error()
- write unit tests
Changelog
- version 1.0.2, 2007-06-17: Made sure that normal users are not being annoyed by cookies when just browsing.
Login hopefully still functional for the administrator.
- version 1.0.1, 2007-02-04: Fixed a bug where values loaded from the edit form were overwritten with values
loaded from the database, so that edit → preview → edit again did not work. Values from the form now
have precedence.
Author: Jan Pieter Kunst.