Please update!"; exit($exit_msg); } } else { $exit_msg = "You are attempting to access this plugin directly."; exit($exit_msg); echo "You are attempting to access this plugin directly."; } /*****************************************************************************/ /************************ CONSTANTS ******************************************/ /*****************************************************************************/ //Define constant varibles define('APL_NAME', 'Advanced Post List'); //FIX ALWAYS - Update version number define('APL_VERSION', '0.3.b1'); //APL_DIR = C:\xampp\htdocs\wordpress\wp-content\plugins\advanced-post-list/ define('APL_DIR', plugin_dir_path(__FILE__)); //APL_URL = http://localhost/wordpress/wp-content/plugins/advanced-post-list/ define('APL_URL', plugin_dir_url(__FILE__)); /*****************************************************************************/ /************************ REQUIRED FILES *************************************/ /*****************************************************************************/ require_once(APL_DIR . 'includes/class/APLCore.php'); require_once(APL_DIR . 'includes/class/APLPresetDbObj.php'); require_once(APL_DIR . 'includes/class/APLPresetObj.php'); require_once(APL_DIR . 'includes/class/APLCallback.php'); require_once(APL_DIR . 'includes/class/APLWidget.php'); require_once(APL_DIR . 'includes/class/APLQuery.php'); /*****************************************************************************/ /************************ LOAD HANDLER ***************************************/ /*****************************************************************************/ //Load Handler $advanced_post_list = new APLCore(__FILE__); ?>