!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/billing/ofc-library/   drwxr-xr-x
Free 13.06 GB of 57.97 GB (22.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     open_flash_chart_object.php (3.97 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

$base_url 
= ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" "http");
$base_url .= "://".$_SERVER['HTTP_HOST'];
if (!isset(
$_SERVER['ORIG_SCRIPT_NAME'])) {
    
$base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
}
else {
    
$base_url .= str_replace(basename($_SERVER['ORIG_SCRIPT_NAME']),"",$_SERVER['ORIG_SCRIPT_NAME']);
}

define('ROOT_URL'$base_url);

function 
open_flash_chart_object_str$width$height$url$use_swfobject=true$base='' )
{
    
//
    // return the HTML as a string
    //
    
return _ofc$width$height$url$use_swfobject$base );
}

function 
open_flash_chart_object$width$height$url$use_swfobject=true$base='' )
{
    
//
    // stream the HTML into the page
    //
    
echo _ofc$width$height$url$use_swfobject$base );
}

function 
_ofc$width$height$url$use_swfobject$base )
{
    
//
    // I think we may use swfobject for all browsers,
    // not JUST for IE...
    //
    //$ie = strstr(getenv('HTTP_USER_AGENT'), 'MSIE');

    //
    // escape the & and stuff:
    //
    
$url urlencode($url);

    
//
    // output buffer
    //
    
$out = array();

    
//
    // check for http or https:
    //
    
if (isset ($_SERVER['HTTPS']))
    {
        if (
strtoupper ($_SERVER['HTTPS']) == 'ON')
        {
            
$protocol 'https';
        }
        else
        {
            
$protocol 'http';
        }
    }
    else
    {
        
$protocol 'http';
    }

    
$base 'http://localhost/office/rabbany/billing/admin/';
    
//
    // if there are more than one charts on the
    // page, give each a different ID
    //
    
global $open_flash_chart_seqno;
    
$obj_id 'chart';
    
$div_name 'flashcontent';

    
//$out[] = '<script type="text/javascript" src="'. $base .'js/ofc.js"></script>';

    
if( !isset( $open_flash_chart_seqno ) )
    {
        
$open_flash_chart_seqno 1;
        
$out[] = '<script type="text/javascript" src="'$base .'js/swfobject.js"></script>';
    }
    else
    {
        
$open_flash_chart_seqno++;
        
$obj_id .= '_'$open_flash_chart_seqno;
        
$div_name .= '_'$open_flash_chart_seqno;
    }

    if( 
$use_swfobject )
    {
    
// Using library for auto-enabling Flash object on IE, disabled-Javascript proof
    
$out[] = '<div id="'$div_name .'"></div>';
    
$out[] = '<script type="text/javascript">';
    
$out[] = 'var so = new SWFObject("'$base .'open-flash-chart.swf", "'$obj_id .'", "'$width '", "' $height '", "9", "#FFFFFF");';
    
//$out[] = 'so.addVariable("width", "' . $width . '");';
    //$out[] = 'so.addVariable("height", "' . $height . '");';
    
$out[] = 'so.addVariable("data", "'$url '");';
    
$out[] = 'so.addParam("allowScriptAccess", "sameDomain");';
    
$out[] = 'so.write("'$div_name .'");';
    
$out[] = '</script>';
    
$out[] = '<noscript>';
    }

    
$out[] = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="' $protocol '://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ';
    
$out[] = 'width="' $width '" height="' $height '" id="ie_'$obj_id .'" align="middle">';
    
$out[] = '<param name="allowScriptAccess" value="sameDomain" />';
    
$out[] = '<param name="movie" value="'$base .'open-flash-chart.swf?width='$width .'&height='$height '&data='$url .'" />';
    
$out[] = '<param name="quality" value="high" />';
    
$out[] = '<param name="bgcolor" value="#FFFFFF" />';
    
$out[] = '<embed src="'$base .'open-flash-chart.swf?data=' $url .'" quality="high" bgcolor="#FFFFFF" width="'$width .'" height="'$height .'" name="'$obj_id .'" align="middle" allowScriptAccess="sameDomain" ';
    
$out[] = 'type="application/x-shockwave-flash" pluginspage="' $protocol '://www.macromedia.com/go/getflashplayer" id="'$obj_id .'"/>';
    
$out[] = '</object>';

    if ( 
$use_swfobject ) {
    
$out[] = '</noscript>';
    }

    return 
implode("\n",$out);
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0063 ]--