Guest User

Untitled

a guest
Jul 29th, 2011
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.3.0
  8. * @ Author : DeZender
  9. * @ Release on : 17.05.2011
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function wps_new_version_check() {
  15. $licence = unserialize( base64_decode( strrev( get_option( 'wps_cache' ) ) ) );
  16.  
  17. if (strnatcmp( WPS_VERSION, str_replace( 'v', '', $licence['latest_version'] ) ) < 0) {
  18. return $licence['latest_version'];
  19. }
  20.  
  21. return false;
  22. }
  23.  
  24. function wps_get_errors() {
  25. $errors = array( );
  26.  
  27. if ((bool)ini_get( 'safe_mode' )) {
  28. $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.';
  29. }
  30.  
  31. if (!function_exists( 'curl_init' )) {
  32. $errors[] = 'It looks like your server doesn\'t have cURL installed - you\'ll need this. Ask your host to install it for you.';
  33. }
  34.  
  35. if (WPS_FOL !== str_replace( '.php', '', WPS_PLUG_FILE_NAME )) {
  36. $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 :)';
  37. }
  38.  
  39. if (strnatcmp( phpversion( ), '5.2' ) < 0) {
  40. $errors[] = 'Your PHP version is ' . phpversion( ) . ' and not the minimum required (5.2). Upgrade the PHP version or try WPS on a different server.';
  41. }
  42.  
  43. global $wp_version;
  44.  
  45. if (strnatcmp( $wp_version, '3' ) < 0) {
  46. $errors[] = 'Your WordPress version is ' . $wp_version . ' and not the minimum recommended (3). Upgrade WordPress to fix this issue.';
  47. }
  48.  
  49. if (!(bool)ini_get( 'allow_url_fopen' )) {
  50. $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.';
  51. }
  52.  
  53. if (file_exists( ABSPATH . PLUGINDIR . '/' . WPS_PLUG_FILE_NAME )) {
  54. $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.';
  55. }
  56.  
  57. if (wps_is_win( )) {
  58. $errors[] = 'It looks like you\'re running on Windows. This plugin is designed for a *nix enviroment, not Win*.';
  59. }
  60.  
  61. if (wps_is_local( )) {
  62. $errors[] = 'It looks like you\'re running on localhost. The plugin isn\'t designed to run in this enviroment.';
  63. }
  64.  
  65. return $errors;
  66. }
Add Comment
Please, Sign In to add comment