Use faster call of strtolower over utf8_strtolower for exact match to the string 'id'
Remove bug_report_advanced_page - which purely includes bug_report_page and is not referenced from source code
Move bug_update_advanced_page contents into bug_update_page [which was just an include]
fix variable naming to follow mantis coding conventions [which names variables $x_*]
remove db_num_rows where possible (part 1)
Fix: Remove unused count() result
Remove DIRECTORY_SEPERATOR usage where possible
Fix: use require_api to load email api
Make use of DateTimeZone::ALL to remove hard-coded strings