Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.3.0
- * @ Author : DeZender
- * @ Release on : 17.05.2011
- * @ Official site : http://DeZender.Net
- *
- */
- function wps_new_version_check() {
- $licence = unserialize( base64_decode( strrev( get_option( 'wps_cache' ) ) ) );
- if (strnatcmp( WPS_VERSION, str_replace( 'v', '', $licence['latest_version'] ) ) < 0) {
- return $licence['latest_version'];
- }
- return false;
- }
- function wps_get_errors() {
- $errors = array( );
- if ((bool)ini_get( 'safe_mode' )) {
- $errors[] = 'Your php.ini settings show that safe_mode is ON which can cause problems. Contact your host to see if they will turn this off.';
- }
- if (!function_exists( 'curl_init' )) {
- $errors[] = 'It looks like your server doesn\'t have cURL installed - you\'ll need this. Ask your host to install it for you.';
- }
- if (WPS_FOL !== str_replace( '.php', '', WPS_PLUG_FILE_NAME )) {
- $errors[] = 'The plugin folder is incorrectly named! Please change the plugin folder to "' . str_replace( '.php', '', WPS_PLUG_FILE_NAME ) . '" (without quotes) to ensure things work correctly :)';
- }
- if (strnatcmp( phpversion( ), '5.2' ) < 0) {
- $errors[] = 'Your PHP version is ' . phpversion( ) . ' and not the minimum required (5.2). Upgrade the PHP version or try WPS on a different server.';
- }
- global $wp_version;
- if (strnatcmp( $wp_version, '3' ) < 0) {
- $errors[] = 'Your WordPress version is ' . $wp_version . ' and not the minimum recommended (3). Upgrade WordPress to fix this issue.';
- }
- if (!(bool)ini_get( 'allow_url_fopen' )) {
- $errors[] = 'The php.ini setting "allow_url_fopen" is disabled which may cause problems with fetching some content and images. You should ask your host to enable this.';
- }
- if (file_exists( ABSPATH . PLUGINDIR . '/' . WPS_PLUG_FILE_NAME )) {
- $errors[] = 'It looks like you haven\'t uploaded the plugin correctly. It should be in it\'s own folder - not directly in the plugins folder. The correct path should be "wp-content/plugins/' . WPS_FOL . '/". Please upload the plugin in it\'s own folder.';
- }
- if (wps_is_win( )) {
- $errors[] = 'It looks like you\'re running on Windows. This plugin is designed for a *nix enviroment, not Win*.';
- }
- if (wps_is_local( )) {
- $errors[] = 'It looks like you\'re running on localhost. The plugin isn\'t designed to run in this enviroment.';
- }
- return $errors;
- }
Add Comment
Please, Sign In to add comment