added QUOTE and S_ time defines in inc.php
also added minimal check for php 5.3