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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
/*
	Acknowledgments

	EditArea by Christophe Dolivet
	See http://www.cdolivet.com/index.php?page=editArea for details
	This script is publised under the GNU Lesser General Public License

	jQuery JavaScript Library
	This library is published under both the GNU General Public License and MIT License

	All licenses are GPL compatible (see http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses)
*/
#error_reporting(E_ALL);
// Include support class
require_once 'shortcode-exec-php-class.php';
// Check pre-requisites
WPShortcodeExecPHP::Check_prerequisites();
// Start plugin
global $wp_shortcode_exec_php;
$wp_shortcode_exec_php = new WPShortcodeExecPHP();
// That's it!
 static function Check_prerequisites()
 {
     // Check PHP version
     if (version_compare(PHP_VERSION, '4.3.0', '<')) {
         die('Shortcode Exec PHP requires at least PHP 4.3.0');
     }
     // Check WordPress version
     global $wp_version;
     if (version_compare($wp_version, '2.8') < 0) {
         die('Shortcode Exec PHP requires at least WordPress 2.8');
     }
     // Check basic prerequisities
     WPShortcodeExecPHP::Check_function('register_activation_hook');
     WPShortcodeExecPHP::Check_function('register_deactivation_hook');
     WPShortcodeExecPHP::Check_function('add_action');
     WPShortcodeExecPHP::Check_function('add_filter');
     WPShortcodeExecPHP::Check_function('wp_enqueue_script');
     WPShortcodeExecPHP::Check_function('wp_register_style');
     WPShortcodeExecPHP::Check_function('wp_enqueue_style');
 }