Changeset 1243632
- Timestamp:
- 09/11/2015 07:51:52 PM (10 years ago)
- File:
-
- 1 edited
-
cyclos/trunk/cyclos.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cyclos/trunk/cyclos.php
r1238070 r1243632 32 32 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 33 33 34 if(version_compare(PHP_VERSION, '5.3.0') < 0) { 35 exit('You are currently using PHP version <strong>' . PHP_VERSION . '</strong>. For this plugin to run you need at least PHP version <strong> 5.3.0</strong> or higher.'); 34 function cyclos_plugin_activate() { 35 if (version_compare(PHP_VERSION, '5.3.0') < 0) { 36 wp_die('The Cyclos plugin requires at least PHP version 5.3. You have ' . PHP_VERSION); 37 deactivate_plugins( basename( __FILE__ ) ); 38 } 36 39 } 40 register_activation_hook( __FILE__, 'cyclos_plugin_activate' ); 37 41 38 42 include_once 'cyclos-common.php'; 39 43 include_once 'cyclos-admin.php'; 40 44 include_once 'cyclos-public.php'; 41 42 45 ?>
Note: See TracChangeset
for help on using the changeset viewer.