!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:     image.php (7.09 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

define
("LEFT_BORDER"50);
define("EXAMPLE_BOX_HEIGHT"190);
define("EXAMPLE_BOX_WIDTH"150);
define("EXAMPLE_BOX_TITLE_HEIGHT"40);

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"D:/xampp/htdocs/xampp/external/ps/image.ps")) {
    print 
"Cannot open PostScript file\n";
    exit;
}

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

ps_set_info($ps"Creator""image.php");
ps_set_info($ps"Author""Uwe Steinmann");
ps_set_info($ps"Title""Image examples");

ps_begin_page($ps596842);
$psfont ps_findfont($ps"D:/xampp/htdocs/xampp/external/ps/Helvetica"""0);
ps_setfont($ps$psfont12.0);

    
$x 0;
    
$y 625;
    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Indexed image without alpha channel"$psfont);
    
$psimage ps_open_image_file($ps"png""indexed.png"NULL0);
    
ps_place_image($ps$psimage10301.0);
    
$buffer sprintf("%.0f x %.0f pixel"ps_get_value($ps"imagewidth"$psimage), ps_get_value($ps"imageheight"$psimage));
    
ps_setfont($ps$psfont10.0);
    
ps_show_xy($ps$bufferEXAMPLE_BOX_WIDTH-10-ps_stringwidth($ps$buffer$psfont10), 10);
    
end_example_box($ps);

    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"RGB image without alpha channel"$psfont);
    
$psimage ps_open_image_file($ps"png""rgb.png"NULL0);
    
ps_place_image($ps$psimage10301.0);
    
end_example_box($ps);

    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Indexed image with alpha channel"$psfont);
    
$psimage ps_open_image_file($ps"png""indexed-alpha.png"NULL0);
    
ps_place_image($ps$psimage10301.0);
    
end_example_box($ps);

    
$x 0;
    
$y 405;
    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"RGB image with alpha channel"$psfont);
    
$psimage ps_open_image_file($ps"png""rgb-alpha.png"NULL0);
    
ps_place_image($ps$psimage10301.0);
    
end_example_box($ps);

    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Jpeg gray scale image"$psfont);
    
$psimage ps_open_image_file($ps"jpeg""gnu-head.jpg"NULL0);
    
ps_place_image($ps$psimage10200.45);
    
$buffer sprintf("%.0f x %.0f pixel"ps_get_value($ps"imagewidth"$psimage), ps_get_value($ps"imageheight"$psimage));
    
ps_setfont($ps$psfont10.0);
    
ps_show_xy($ps$bufferEXAMPLE_BOX_WIDTH-10-ps_stringwidth($ps$buffer$psfont10), 10);
    
end_example_box($ps);

    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y""$psfont);
    
$psimage ps_open_image_file($ps"jpeg""exiftest.jpg"NULL0);
    
ps_place_image($ps$psimage30100.30);
    
end_example_box($ps);

    
$x 0;
    
$y 185;
    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Images created in memory"$psfont);
    
$imagedata "01234567890123456";
    
/* RGB */
    
for($i=0$i<16$i++)
        
$imagedata[$i] = chr(0);
    
$imagedata[0] = chr(255);
    
$imagedata[4] = chr(255);
    
$imagedata[8] = chr(255);
    
$psimage ps_open_image($ps"memory""memory"$imagedata122238NULL);
    
ps_place_image($ps$psimage202020.0);
    
/* Gray */
    
for($i=0$i<16$i++)
        
$imagedata[$i] = chr(0);
    
$imagedata[0] = chr(192);
    
$imagedata[1] = chr(128);
    
$imagedata[2] = chr(64);
    
$imagedata[3] = chr(0);
    
$psimage ps_open_image($ps"memory""memory"$imagedata42218NULL);
    
ps_place_image($ps$psimage902020.0);
    
/* CMYK */
    
for($i=0$i<16$i++)
        
$imagedata[$i] = chr(255);
    
$imagedata[0] = chr(0);
    
$imagedata[5] = chr(0);
    
$imagedata[10] = chr(0);
    
$imagedata[15] = chr(0);
    
$psimage ps_open_image($ps"memory""memory"$imagedata162248NULL);
    
ps_place_image($ps$psimage209020.0);
    
ps_setfont($ps$psfont8.0);
    
ps_show_xy($ps"CMYK"2080);
    
ps_show_xy($ps"RGB"2010);
    
ps_show_xy($ps"Gray"9010);

    
end_example_box($ps);

    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Jpeg cmyk image, rotated"$psfont);
    
$psimage ps_open_image_file($ps"jpeg""cne-cmyk.jpg"NULL0);
    
ps_save($ps);
    
ps_translate($ps7210);
    
ps_rotate($ps45);
    
ps_place_image($ps$psimage000.45);
    
ps_restore($ps);
    
$buffer sprintf("%.0f x %.0f pixel"ps_get_value($ps"imagewidth"$psimage), ps_get_value($ps"imageheight"$psimage));
    
ps_setfont($ps$psfont10.0);
    
ps_show_xy($ps$bufferEXAMPLE_BOX_WIDTH-10-ps_stringwidth($ps$buffer$psfont10), 10);
    
end_example_box($ps);

    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"EPS read from memory"$psfont);
    
$data file_get_contents("picture.eps");    
    
$psimage ps_open_image($ps"eps""memory"$datastrlen($data), 0000NULL);
    
ps_place_image($ps$psimage15250.45);
    
$buffer sprintf("%.0f x %.0f pixel"ps_get_value($ps"imagewidth"$psimage), ps_get_value($ps"imageheight"$psimage));
    
ps_setfont($ps$psfont10.0);
    
ps_show_xy($ps$bufferEXAMPLE_BOX_WIDTH-10-ps_stringwidth($ps$buffer$psfont10), 10);
    
end_example_box($ps);

ps_end_page($ps);

ps_begin_page($ps596842);
$psfont ps_findfont($ps"Helvetica"""0);
ps_setfont($ps$psfont12.0);

    
$x 0;
    
$y 625;
    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Gif image"$psfont);
    
$psimage ps_open_image_file($ps"gif""debian.gif"NULL0);
    
ps_place_image($ps$psimage25102.0);
    
end_example_box($ps);

    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Gif image with transparency"$psfont);
    
$psimage ps_open_image_file($ps"gif""debian-transparent.gif"NULL0);
    
ps_place_image($ps$psimage25102.0);
    
end_example_box($ps);

    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Gif image interlaced"$psfont);
    
$psimage ps_open_image_file($ps"gif""interlaced.gif"NULL0);
    
ps_place_image($ps$psimage10100.65);
    
end_example_box($ps);

    
$x 0;
    
$y 405;
    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Tiff image"$psfont);
    
$psimage ps_open_image_file($ps"tiff""debian.tiff"NULL0);
    
ps_place_image($ps$psimage25102.0);
    
end_example_box($ps);

    
$x 0;
    
$y 185;
    
begin_example_box($psLEFT_BORDER+(EXAMPLE_BOX_WIDTH+30)*($x++), $y"Bmp image"$psfont);
    
$psimage ps_open_image_file($ps"bmp""debian.bmp"NULL0);
    
ps_place_image($ps$psimage25102.0);
    
end_example_box($ps);

ps_end_page($ps);

ps_close($ps);
ps_delete($ps);
?>

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