* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2, as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // define some usefull constants if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR); if (!defined('PROSPEK_MAIN_MENU_POSITION')) define('PROSPEK_MAIN_MENU_POSITION', 1000); // requires PHP >= 5.1.0 if (version_compare(PHP_VERSION, '5.1.0') >= 0) { // load plugin core require 'core.php'; // instantiate new Prospek_Strings_Sanitizer( realpath(dirname(__FILE__)), 'prospek-strings-sanitizer' ); // register basic hooks register_activation_hook(__FILE__, array('Prospek_Strings_Sanitizer', 'activate')); register_deactivation_hook(__FILE__, array('Prospek_Strings_Sanitizer', 'deactivate')); } else { require_once 'classes/admin_notices.php'; new WP_Admin_Notices('Prospek | Strings Sanitizer plugin is active, but requires PHP 5.1.0 or later to be initialized. Sorry : (', 'error'); }