scriptz-team

Untitled

Jan 29th, 2012
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. *
  5. * _____ _____ _ _____ _____ _____ _____ _____ _____
  6. * ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  7. * |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  8. * |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  9. * |s C R i P T z - T E A M . i N F O|
  10. *
  11. * This file was created by sCRiPTz-TEAM.iNFO [DEiONCUBE TEAM]
  12. * @ IonCube & Zend & NuSphere DeCoder
  13. *
  14. * @ Version : 1.0.0.3
  15. * @ Author : sCRiPTz-TEAM.iNFO
  16. * @ Released : 26-December-2011
  17. * @ Official site : http://sCRiPTz-TEAM.iNFO
  18. *
  19. */
  20.  
  21. class Configuration
  22. {
  23.  
  24. public $ignore = array( );
  25.  
  26. public function Configuration( $ )
  27. {
  28. $this->ignore = $;
  29. }
  30.  
  31. public function save_config( $, $ )
  32. {
  33. if ( $ = @fopen( $, "w" ) )
  34. {
  35. fwrite( $, $ );
  36. fclose( $ );
  37. return TRUE;
  38. }
  39. return FALSE;
  40. }
  41.  
  42. public function chk_config( $ )
  43. {
  44. if ( !is_array( $ ) )
  45. {
  46. return FALSE;
  47. }
  48. if ( !$ )
  49. {
  50. return FALSE;
  51. }
  52. foreach ( $ as $ => $ )
  53. {
  54. if ( $ === "" && !in_array( $, $this->ignore ) )
  55. {
  56. return FALSE;
  57. }
  58. }
  59. return TRUE;
  60. }
  61.  
  62. public function array_eval( $, $ = 0 )
  63. {
  64. $ = "";
  65. $ = 0;
  66. for ( ; $ <= $; $++ )
  67. {
  68. $ .= "\t";
  69. }
  70. $ = "array(\n";
  71. $ba = $;
  72. foreach ( $ as $ => $ )
  73. {
  74. $ = is_string( $ ) ? "'".addcslashes( $, "'\\" )."'" : $;
  75. $ = is_string( $ ) ? "'".addcslashes( $, "'\\" )."'" : $;
  76. if ( is_array( $ ) )
  77. {
  78. $ =& $ba.$." => ".$this->array_eval( $, $ + 1 );
  79. }
  80. else
  81. {
  82. $ .= $ba.$." => ".( $ === "" || is_null( $ ) ? "" : $ );
  83. }
  84. $ba = ",\n{$}";
  85. }
  86. $ .= "\n)";
  87. return $;
  88. }
  89.  
  90. }
  91.  
  92. if ( !defined( "ROOT" ) )
  93. {
  94. exit( "Access denied" );
  95. }
  96. ?>
Advertisement
Add Comment
Please, Sign In to add comment