Prevent direct access to PHP files to avoid PHP errors
Merge pull request #4 from paulgibbs/load_fixes

Prevent direct access to PHP files to avoid PHP errors. Props paulgibbs
Update README.md
Input handling improvements in postratings-manager.php
Improvements to SQL queries in postratings-manager.php

* Replace some SQL queries with WP API functions where easily possible;
avoids problems with values not being cleared from a post's object
cache.
* Use $wpdb->prepare to make queries safer, where easily possible.
* Add missing sanitisation to $_POST['delete_postid'].
* Add missing sanitisation when building  $postratings_where.
* Add some @todos for future improvements.
Add missing changes from last commit

Sorry!
Remove duplication= when setting the <form> action= property

We already set these at the top of the file
Remove unnecessary switch() block for $_POST['do']
Decrease the line indentation in the form handler
Use $wpdb->prepare() for SQL statements in wp-postratings.php
Merge pull request #5 from paulgibbs/admin_var_improvements

Improvements to postratings-manager.php. Props paulgibbs.
Merge pull request #6 from paulgibbs/more_sql_improvements

Use $wpdb->prepare() for SQL statements in wp-postratings.php. Props paulgibbs.
Update README.md
Corrects typo made in 0212ecb.