<?php
/**
* Finish file.
*
* @package Turtle
* @access public
* @desc Finish file.
* @copyright Marcin Sznyra (c) 2005 <marcin@marcinsznyra.info>
* @author Marcin Sznyra <marcin@marcinsznyra.info>
* @version $Id: _file.class.php,v 1.0 2005/12/29 11:39:23 MarcinSznyra Exp $;
* @since Version 1.0
*/
include( realpath( dirname( __FILE__ ) ).'/_file.class.php' );
function ObfOpenRandomsFile( )
{
global $_RANDOMS;
$_FILE = new File( );
$_FILE -> open( realpath( dirname( __FILE__ ) ).'/randoms.dat' );
$_RANDOMS = unserialize( $_FILE -> read( ) );
$_FILE -> close( );
}
function ObfOpenFunctionsFile( )
{
global $_FUNCTIONS;
$_FILE = new File( );
$_FILE -> open( realpath( dirname( __FILE__ ) ).'/functions.dat' );
$_FUNCTIONS = unserialize( $_FILE -> read( ) );
$_FILE -> close( );
}
function ObfOpenClassesFile( )
{
global $_CLASSES;
$_FILE = new File( );
$_FILE -> open( realpath( dirname( __FILE__ ) ).'/classes.dat' );
$_CLASSES = unserialize( $_FILE -> read( ) );
$_FILE -> close( );
}
function ObfOpenVariablesFile( )
{
global $_VARIABLES;
$_FILE = new File( );
$_FILE -> open( realpath( dirname( __FILE__ ) ).'/variables.dat' );
$_VARIABLES = unserialize( $_FILE -> read( ) );
$_FILE -> close( );
}
ObfOpenFunctionsFile( );
ObfOpenClassesFile( );
ObfOpenVariablesFile( );
ObfOpenRandomsFile( );
?>
<h1>Turtle Muddler</h1>
<p>This is the end ;) you can find all of your functions, classes or variables at list below and by the way your project is mess up.</p>
<form method="post" name="form">
<input type="text" name="key" value="">
<input type="submit" name="submit" value="search">
</form>
<?
if( isset( $_POST['key'] ) )
{
echo 'Search process for key :<strong> '.$_POST['key'].' </strong>: <BR>';
echo '====================================<BR>';
if( array_key_exists( strtolower( $_POST['key'] ) , $_CLASSES ) )
{
echo 'Key <b>'.$_POST['key'].'</b> exists in <b>$_CLASSES</b> array and has value <b>'.$_CLASSES[$_POST['key']].'</b><BR>';
}
if( array_key_exists( strtolower( $_POST['key'] ) , $_FUNCTIONS ) )
{
echo 'Key <b>'.$_POST['key'].'</b> exists in <b>$_FUNCTIONS</b> array and has value <b>'.$_FUNCTIONS[$_POST['key']].'</b><BR>';
}
if( array_key_exists( $_POST['key'] , $_VARIABLES ) )
{
echo 'Key <b>'.$_POST['key'].'</b> exists in <b>$_VARIABLES</b> array and has value <b>'.$_VARIABLES[$_POST['key']].'</b><BR>';
}
if( $klucz = array_search( strtolower( $_POST['key'] ) , $_CLASSES ) )
{
echo 'Value <b>'.$_POST['key'].'</b> is in array <b>$_CLASSES</b> array and has key <b>'.$klucz.'</b><BR>';
}
if( $klucz = array_search( strtolower( $_POST['key'] ) , $_FUNCTIONS ) )
{
echo 'Value <b>'.$_POST['key'].'</b> is in array <b>$_FUNCTIONS</b> array and has key <b>'.$klucz.'</b><BR>';
}
if( $klucz = array_search( $_POST['key'] , $_VARIABLES ) )
{
echo 'Value <b>'.$_POST['key'].'</b> is in array <b>$_VARIABLES</b> array and has key <b>'.$klucz.'</b><BR>';
}
if( $klucz = array_search( $_POST['key'] , $_RANDOMS ) )
{
echo 'Value <b>'.$_POST['key'].'</b> is in array <b>$_RANDOMS</b> array and has key <b>'.$klucz.'</b><BR>';
}
}
echo '============== CLASSES =============';
echo '<pre>';
print_r( $_CLASSES );
echo '</pre>';
echo '============== FUNCTIONS =============';
echo '<pre>';
print_r( $_FUNCTIONS );
echo '</pre>';
echo '============== VARIABLES =============';
echo '<pre>';
print_r( $_VARIABLES );
echo '</pre>';
echo '============== RANDOMS =============';
echo '<pre>';
print_r( $_RANDOMS );
echo '</pre>';
?>
|