add APP constant define() to fix notice in PHP 5.3.25