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.b8'); //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'); require_once(APL_DIR . 'includes/class/APLUpdater.php'); require_once(APL_DIR . 'includes/import.php'); require_once(APL_DIR . 'includes/export.php'); /*****************************************************************************/ /************************ LOAD HANDLER ***************************************/ /*****************************************************************************/ //Load Handler $advanced_post_list = new APLCore(__FILE__); // A LIST DEBUGGIN METHODS THAT USERS MAY USE OR BE // REFERRED TO DURING ANY POSSIBLE TROUBLESHOOTING // ISSUES THAT MAY OCCURE /****************************************************** * | * * |.===. * * {}o o{} * * .----------------------------------ooO--(_)--Ooo-. * * | | * * | ___ _ _____ _ | * * | | \ ___| |__ _ _ __ _ |_ ____ ___| |___ | * * | | |) / -_| '_ | || / _` | | |/ _ / _ | (_-< | * * | |___/\___|_.__/\_,_\__, | |_|\___\___|_/__/ | * * | |___/ | * * | DESCRIPTIONS | * * | #1 - Var(iable)_Dump * | #2 - Callstack | * * |________________________________________________| * * * ******************************************************/ //Tool #1 //var_dump($example_variable); // //Tool #2 //$e = new Exception; //var_dump($e->getTraceAsString()); ?>