Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- *
- * _____ _____ _ _____ _____ _____ _____ _____ _____
- * ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
- * |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
- * |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
- * |s C R i P T z - T E A M . i N F O|
- *
- * This file was created by sCRiPTz-TEAM.iNFO [DEiONCUBE TEAM]
- * @ IonCube & Zend & NuSphere DeCoder
- *
- * @ Version : 1.0.0.3
- * @ Author : sCRiPTz-TEAM.iNFO
- * @ Released : 26-December-2011
- * @ Official site : http://sCRiPTz-TEAM.iNFO
- *
- */
- class Configuration
- {
- public $ignore = array( );
- public function Configuration( $ )
- {
- $this->ignore = $;
- }
- public function save_config( $, $ )
- {
- if ( $ = @fopen( $, "w" ) )
- {
- fwrite( $, $ );
- fclose( $ );
- return TRUE;
- }
- return FALSE;
- }
- public function chk_config( $ )
- {
- if ( !is_array( $ ) )
- {
- return FALSE;
- }
- if ( !$ )
- {
- return FALSE;
- }
- foreach ( $ as $ => $ )
- {
- if ( $ === "" && !in_array( $, $this->ignore ) )
- {
- return FALSE;
- }
- }
- return TRUE;
- }
- public function array_eval( $, $ = 0 )
- {
- $ = "";
- $ = 0;
- for ( ; $ <= $; $++ )
- {
- $ .= "\t";
- }
- $ = "array(\n";
- $ba = $;
- foreach ( $ as $ => $ )
- {
- $ = is_string( $ ) ? "'".addcslashes( $, "'\\" )."'" : $;
- $ = is_string( $ ) ? "'".addcslashes( $, "'\\" )."'" : $;
- if ( is_array( $ ) )
- {
- $ =& $ba.$." => ".$this->array_eval( $, $ + 1 );
- }
- else
- {
- $ .= $ba.$." => ".( $ === "" || is_null( $ ) ? "" : $ );
- }
- $ba = ",\n{$}";
- }
- $ .= "\n)";
- return $;
- }
- }
- if ( !defined( "ROOT" ) )
- {
- exit( "Access denied" );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment