Modified code_generator to include more constants

I've modified code_generator.php so that more constants are generated. I also added a warning for when short_open_tag is disabled (that one bit me :-)