reindent; switch <?PHP to <?php
remove unused database query (modules/xerte/duplicate_template.php)
remove unused database connecting; exit early rather than nest code more; cast to int not mysql_escape_string
this seems better - refactoring of  website_code/php/properties/properties_template.php
replace PHP with php (/properties.php)
refactor SQL; remove some more mysql_ stuff (/play.php)
refactor SQL; remove mysql_ stuff; ensure we display some sort of error message if e.g. permission is denied
refactor SQL; remove mysql_ stuff; ensure we display some sort of error message if e.g. permission is denied
remove unused mysql connect; unpack loops; ensure we display something (no blank response)
reduce nesting; reindent; ensure something is always returned (not empty response)
refactor engine flags update code