!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

C:\Intranet\C\xampp\htdocs\xampp\special\ps\   drwxrwxrwx
Free 4.09 GB of 39.52 GB (10.35%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ps.php (15.91 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
          $lang
=@file_get_contents("../../lang.tmp");
        @include(
"../../lang/languages.php");
        @include(
"../../lang/en.php");
        @include(
"../../lang/$lang.php");
        if(
$lang=="zh")
        {
                
header("Content-Type: text/html; charset=gb2312");
        }
        else if(
$lang=="jp")
        {
                
header("Content-Type: text/html; charset=shift-jis");
        }
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta name="author" content="Kai Oswald Seidler, Kay Vogelgesang, Carsten Wiedmann">
        <link href="../../xampp.css" rel="stylesheet" type="text/css">
        <title></title>
    </head>

    <body>
        &nbsp;<p>
        <h1><?php echo $TEXT['ps-head']; ?></h1>

<?php
// Some path variables


$curdir getcwd();
list(
$xamppdir$docdir) = split ('xampp\\\\htdocs'$curdir);
$htdir=ereg_replace("\\\\""/"$docdir);
$fontdir="htdocs".$htdir;

$psdoc="htdocs".$htdir."/draw.ps";
$newpsdoc=ereg_replace("/""\\"$psdoc);
#$newpsdoc = "/tmp/draw.ps";
#$fontdir = "/home/steinm/sourceforge/pslib/tests/c";

// Begin creating ps doc            
if(isset($_REQUEST['submit']) && $_REQUEST['submit']=="OK")
{
define("LEFT_BORDER"50);
define("EXAMPLE_BOX_HEIGHT"120);
define("EXAMPLE_BOX_WIDTH"100);
define("EXAMPLE_BOX_TITLE_HEIGHT"20);

function 
begin_example_box($p$llx$lly$title$font) {
    
ps_save($p);
    
ps_translate($p$llx$lly);
    
ps_setcolor($p"fill""gray"0.50.00.00.0);
    
ps_rect($p0EXAMPLE_BOX_HEIGHT-EXAMPLE_BOX_TITLE_HEIGHT,
               
EXAMPLE_BOX_WIDTHEXAMPLE_BOX_TITLE_HEIGHT);
    
ps_fill($p);
    
ps_setcolor($p"stroke""gray"1.00.00.00.0);
    
ps_setfont($p$font12.0);
    
ps_show_xy($p$title10EXAMPLE_BOX_HEIGHT-EXAMPLE_BOX_TITLE_HEIGHT+5);
    
ps_setlinewidth($p1.0);
    
ps_setcolor($p"stroke""gray"0.00.00.00.0);
    
ps_rect($p00EXAMPLE_BOX_WIDTHEXAMPLE_BOX_HEIGHT);
    
ps_stroke($p);
    
ps_moveto($p0EXAMPLE_BOX_HEIGHT-EXAMPLE_BOX_TITLE_HEIGHT);
    
ps_lineto($pEXAMPLE_BOX_WIDTHEXAMPLE_BOX_HEIGHT-EXAMPLE_BOX_TITLE_HEIGHT);
    
ps_stroke($p);
}

function 
end_example_box($p) {
    
ps_restore($p);
}

$ps ps_new();

if (!
ps_open_file($ps$newpsdoc)) {
    print 
"Cannot open PostScript file\n";
    exit;
}

ps_set_parameter($ps"warning""true");

ps_set_info($ps"Creator""draw.php");
ps_set_info($ps"Author""Uwe Steinmann");
ps_set_info($ps"Title""Many examples");

$pstemplate ps_begin_template($ps30.030.0);
ps_moveto($ps00);
ps_lineto($ps3030);
ps_moveto($ps030);
ps_lineto($ps300);
ps_stroke($ps);
ps_end_template($ps);

$pspattern1 ps_begin_pattern($ps10.010.010.010.01);
ps_setlinewidth($ps0.2);
ps_setcolor($ps"stroke""rgb"0.00.01.00.0);
ps_moveto($ps00);
ps_lineto($ps77);
ps_stroke($ps);
ps_moveto($ps07);
ps_lineto($ps70);
ps_stroke($ps);
ps_end_pattern($ps);

$pspattern2 ps_begin_pattern($ps10.010.010.010.02);
ps_moveto($ps00);
ps_lineto($ps55);
ps_stroke($ps);
ps_end_pattern($ps);


ps_begin_page($ps596842);

ps_set_parameter($ps"transition""wipe");
ps_set_value($ps"duration"0.5);
    

$psfont ps_findfont($ps"$fontdir/Helvetica"""0);

$x 0;
$y 675;
if(isset(
$_REQUEST['box1']) && $_REQUEST['box1']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Lines"$psfont);
$polydash = array(5.03.01.04.0);
ps_moveto($ps1010);
ps_lineto($ps9010);
ps_stroke($ps);

ps_setdash($ps5.05.0);
ps_moveto($ps1015);
ps_lineto($ps9030);
ps_stroke($ps);

ps_setdash($ps0.00.0);
ps_setlinewidth($ps2.0);
ps_moveto($ps1020);
ps_lineto($ps9050);
ps_stroke($ps);

ps_setlinewidth($ps1.0);
ps_setcolor($ps"stroke""rgb"1.00.00.00.0);
ps_moveto($ps1025);
ps_lineto($ps9070);
ps_stroke($ps);

ps_setcolor($ps"stroke""gray"0.00.00.00.0);
ps_setpolydash($ps$polydash);
ps_moveto($ps1030);
ps_lineto($ps9090);
ps_stroke($ps);
end_example_box($ps);
}
if(isset(
$_REQUEST['box2']) && $_REQUEST['box2']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Rectangles"$psfont);
ps_rect($ps10103535);
ps_stroke($ps);
ps_setcolor($ps"both""rgb"0.01.00.00.0);
ps_rect($ps50103535);
ps_stroke($ps);
ps_setcolor($ps"both""rgb"1.01.00.00.0);
ps_rect($ps10503535);
ps_fill($ps);
ps_setlinewidth($ps3.0);
ps_setcolor($ps"both""rgb"1.00.00.00.0);
ps_setdash($ps5.05.0);
ps_rect($ps50503535);
ps_stroke($ps);
end_example_box($ps);
}
if(isset(
$_REQUEST['box3']) && $_REQUEST['box3']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Circles, Arcs"$psfont);
ps_circle($ps303020);
ps_stroke($ps);
ps_circle($ps703020);
ps_fill($ps);
ps_arc($ps3070200270);
ps_fill($ps);
ps_setlinewidth($ps3.0);
ps_setcolor($ps"both""rgb"1.00.00.00.0);
ps_setdash($ps5.05.0);
ps_arc($ps7070200270);
ps_stroke($ps);
end_example_box($ps);
}

if(isset(
$_REQUEST['box4']) && $_REQUEST['box4']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Line joins"$psfont);
ps_setlinewidth($ps5.0);
ps_setlinejoin($ps0);
ps_moveto($ps1010);
ps_lineto($ps2540);
ps_lineto($ps4010);
ps_stroke($ps);
ps_setlinejoin($ps1);
ps_moveto($ps6010);
ps_lineto($ps7540);
ps_lineto($ps9010);
ps_stroke($ps);
ps_setlinejoin($ps2);
ps_moveto($ps1060);
ps_lineto($ps2590);
ps_lineto($ps4060);
ps_stroke($ps);

ps_setlinewidth($ps0.5);
ps_setcolor($ps"both""gray"1.00.00.00.0);
ps_setlinejoin($ps0);
ps_moveto($ps1010);
ps_lineto($ps2540);
ps_lineto($ps4010);
ps_stroke($ps);
ps_moveto($ps6010);
ps_lineto($ps7540);
ps_lineto($ps9010);
ps_stroke($ps);
ps_moveto($ps1060);
ps_lineto($ps2590);
ps_lineto($ps4060);
ps_stroke($ps);
end_example_box($ps);
}
if(isset(
$_REQUEST['box5']) && $_REQUEST['box5']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Line caps"$psfont);
ps_setlinewidth($ps5.0);
ps_setlinecap($ps0);
ps_moveto($ps1010);
ps_lineto($ps2540);
ps_lineto($ps4010);
ps_stroke($ps);
ps_setlinecap($ps1);
ps_moveto($ps6010);
ps_lineto($ps7540);
ps_lineto($ps9010);
ps_stroke($ps);
ps_setlinecap($ps2);
ps_moveto($ps1060);
ps_lineto($ps2590);
ps_lineto($ps4060);
ps_stroke($ps);

ps_setlinewidth($ps0.5);
ps_setcolor($ps"both""gray"1.00.00.00.0);
ps_setlinejoin($ps0);
ps_moveto($ps1010);
ps_lineto($ps2540);
ps_lineto($ps4010);
ps_stroke($ps);
ps_moveto($ps6010);
ps_lineto($ps7540);
ps_lineto($ps9010);
ps_stroke($ps);
ps_moveto($ps1060);
ps_lineto($ps2590);
ps_lineto($ps4060);
ps_stroke($ps);
end_example_box($ps);
}
if(isset(
$_REQUEST['box6']) && $_REQUEST['box6']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Miter limit"$psfont);
ps_show_xy($ps"10"1310);
ps_setmiterlimit($ps10);
ps_moveto($ps1110);
ps_lineto($ps2090);
ps_lineto($ps2910);
ps_stroke($ps);
ps_show_xy($ps"5"4710);
ps_setmiterlimit($ps5);
ps_moveto($ps4110);
ps_lineto($ps5090);
ps_lineto($ps5910);
ps_stroke($ps);
ps_show_xy($ps"1"7710);
ps_setmiterlimit($ps1);
ps_moveto($ps7110);
ps_lineto($ps8090);
ps_lineto($ps8910);
ps_stroke($ps);
end_example_box($ps);
}
if(isset(
$_REQUEST['box7']) && $_REQUEST['box7']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Curves"$psfont);
ps_moveto($ps1010);
ps_curveto($ps104040205020);
ps_curveto($ps502080902070);
ps_curveto($ps207080201010);
ps_stroke($ps);
ps_setcolor($ps"both""rgb"1.00.00.00.0);
ps_moveto($ps5010);
ps_curveto($ps5010110409090);
ps_curveto($ps909030908070);
ps_curveto($ps8070100105010);
ps_fill($ps);
end_example_box($ps);
}

if(isset(
$_REQUEST['box8']) && $_REQUEST['box8']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"EPS-Image"$psfont);
$psimage ps_open_image_file($ps"eps""picture.eps"NULL0);
ps_place_image($ps$psimage10100.3);
ps_close_image($ps$psimage);
end_example_box($ps);
}
if(isset(
$_REQUEST['box9']) && $_REQUEST['box9']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Path (1)"$psfont);
ps_moveto($ps1010);
ps_lineto($ps5050);
ps_moveto($ps2010);
ps_lineto($ps6050);
ps_circle($ps606020);
ps_lineto($ps9070);
ps_stroke($ps);
end_example_box($ps);
}
if(isset(
$_REQUEST['box10']) && $_REQUEST['box10']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Path (2)"$psfont);
ps_moveto($ps1010);
ps_lineto($ps2020);
ps_rect($ps30301020);
ps_lineto($ps5010);
ps_stroke($ps);
ps_moveto($ps7010);
ps_lineto($ps7050);
ps_arc($ps70602060210);
ps_stroke($ps);
end_example_box($ps);
}
if(isset(
$_REQUEST['box11']) && $_REQUEST['box11']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Text"$psfont);
ps_setfont($ps$psfont8.0);
ps_show_xy($ps"This is text in 8.0"1010);
ps_setfont($ps$psfont12.0);
ps_show_xy($ps"and in 12.0"1023);
ps_setfont($ps$psfont18.0);
ps_show_xy($ps"in 18.0"1040);
ps_setfont($ps$psfont36.0);
ps_show_xy($ps"huge"1065);
end_example_box($ps);
}
if(isset(
$_REQUEST['box12']) && $_REQUEST['box12']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Text outlined"$psfont);
ps_setfont($ps$psfont36.0);
ps_set_value($ps"textrendering"1);
ps_show_xy($ps"huge"1015);
ps_setlinewidth($ps0.5);
ps_show_xy($ps"huge"1055);
ps_set_value($ps"textrendering", -1);
end_example_box($ps);
}
if(isset(
$_REQUEST['box13']) && $_REQUEST['box13']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"invisible Text"$psfont);
ps_setfont($ps$psfont10.0);
ps_show_xy($ps"This is "515);
ps_set_value($ps"textrendering"3);
ps_show($ps"invisible");
ps_set_value($ps"textrendering", -1);
ps_show($ps" text.");
ps_show_xy($ps"This is "535);
ps_show($ps"invisible");
ps_show($ps" text.");
end_example_box($ps);
}
if(isset(
$_REQUEST['box14']) && $_REQUEST['box14']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Text in a box (1)"$psfont);
ps_setfont($ps$psfont8.0);
ps_set_value($ps"leading"11);
$str1 "Text can be put into a box of any size. This one is 80x80 pixels and its lower left corner ist at (10, 10). The text is left justified. The font size is 8.0.";
ps_show_boxed($ps$str110108080"left"NULL);
end_example_box($ps);
}
if(isset(
$_REQUEST['box15']) && $_REQUEST['box15']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Text in a box (2)"$psfont);
ps_setfont($ps$psfont8.0);
ps_set_value($ps"leading"11);
$str2 "Text can be put into a box of any size. This one is 80x80 pixels and its lower left corner ist at (10, 10). The text is left and right justified. The font size is 8.0.";
ps_show_boxed($ps$str210108080"justify"NULL);
end_example_box($ps);
}

if(isset(
$_REQUEST['box16']) && $_REQUEST['box16']=="true")
{
if(
$x 3) {$y -= 150$x 0;}
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Text with CR"$psfont);
ps_setfont($ps$psfont8.0);
ps_set_value($ps"leading"11);
ps_set_parameter($ps"linebreak""true");
$str4 "If the parameter linebreak is turned on\neach line will be ended with a carriage return.\nCR are marked with a '\\n' in this paragraph.";
ps_show_boxed($ps$str410108080"center"NULL);
ps_set_parameter($ps"linebreak""false");
end_example_box($ps);
}
ps_end_page($ps);
ps_close($ps);
ps_delete($ps);
}

for(
$x=1$x<=16$x++)
    
$checked[$x]="";          
foreach (
$_GET as $key => $value) {
    list(
$nothing$number) = split ('box'$key); 
    if (
$value=="true"){ 
        
$checked[$number]="checked"; } else {
        
$checked[$number]="";          
    }
}
$x=1
?>
<form name="ff" action="ps.php" method="get">
            
             <p class=small>
            <?=$TEXT['ps-text1']?>
        
            <p>
            
            <?php 
      
if(isset($_REQUEST['submit']) && $_REQUEST['submit']=="OK") {
      
       
        echo 
"<br /><i>Successfully published new PostScript file";
        if (
getenv('REMOTE_ADDR') == "127.0.0.1") {
         echo 
" as ".$xamppdir."xampp\\".$newpsdoc."</i>";
         }
         echo 
"!<p /><br />".$TEXT["ps-text2"]."</p>";         
      }
            
?>
            <table border="0" width="100%">
            <tr>
               <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Lines
            <p></td>
            <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Rectangles
            <p></td>
            <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Circle,Args
            <p></td>
                <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Line joins
            <p></td>
            </tr>
                <tr>
               <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Line caps
            <p></td>
            <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Miter limit
            <p></td>
            <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Curves
            <p></td>
                <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example EPS-Image
            <p></td>
            </tr>
            <tr>
               <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Path (1)
            <p></td>
            <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Path (2)
            <p></td>
            <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Text
            <p></td>
                <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Text outlined
            <p></td>
            </tr>
                <tr>
               <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box invisible Text
            <p></td>
            <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Text in a box (1)
            <p></td>
            <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Text in a box (2)
            <p></td>
                <td>    <p class=small>
            <input name="box<?=$x++?>" value="true" type="checkbox" <?=$checked[$x-1]?>> Example Box Text with CR
            <p></td>
            </tr>
            
            </table>
            
            

        
        <p /> <p />
            <input type="submit" name="submit" value="<?=$TEXT['flash-ok']?>">
        </form>
        <?php include("../../showcode.php"); ?>
    </body>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]--