!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)

E:\nuevo\htdocs\xampp\   drwxrwxrwx
Free 8.04 GB of 239.26 GB (3.36%)
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:     biorhythm.php (6.47 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
include("langsettings.php"); 

    
// Biorhythm by Till Gerken
    // http://www.zend.com/zend/tut/dynamic.php
    //
    // Multi-language support by Kai Oswald Seidler, 2003
    //
    // Print a standard page header
    //
    
function pageHeader()
    {
        global 
$TEXT;

        print(
"<html><head>");
        print(
"<title>Biorhythm with PHP</title>");
        print(
'<link href="xampp.css" rel="stylesheet" type="text/css">');
        print(
"</head><body>");
        
        print(
"&nbsp;<p><h1>".$TEXT['bio-head']."</h1>");
        print(
$TEXT['bio-by']." Till Gerken<br><a class=black href=http://www.zend.com/zend/tut/dynamic.php>http://www.zend.com/zend/tut/dynamic.php</a><p>");

    }

    
//
    // Print a standard page footer
    //
    
function pageFooter()
    {

        include(
"lang/".file_get_contents("lang.tmp").".php"); 
        include(
"showcode.php"); 

        print(
"</body></html>");

    }

    
//
    // Function to draw a curve of the biorythm
    // Parameters are the day number for which to draw,
    // period of the specific curve and its color
    //
    
function drawRhythm($daysAlive$period$color)
    {
        global 
$daysToShow$image$diagramWidth$diagramHeight;

        
// get day on which to center
        
$centerDay $daysAlive - ($daysToShow 2);

        
// calculate diagram parameters
        
$plotScale = ($diagramHeight 25) / 2;
        
$plotCenter = ($diagramHeight 25) / 2;

        
// draw the curve
        
for($x 0$x <= $daysToShow$x++)
        {
        
// calculate phase of curve at this day, then Y value
        // within diagram
        
$phase = (($centerDay $x) % $period) / $period pi();
        
$y sin($phase) * (float)$plotScale + (float)$plotCenter;

        
// draw line from last point to current point
        
if($x 0)
            
imageLine($image$oldX$oldY,
                  
$x $diagramWidth $daysToShow$y$color);

        
// save current X/Y coordinates as start point for next line
        
$oldX $x $diagramWidth $daysToShow;
        
$oldY $y;
        }

    }

    
//
    // ---- MAIN PROGRAM START ----

    // check if we already have a date to work with,
    // if not display a form for the user to enter one
    
if(!isset($_REQUEST['birthdate']))
    {
        
pageHeader();

        
?>
         <form method="get" action="biorhythm.php">
         <!-- Please enter your birthday: -->
         <?php print $TEXT['bio-ask']; ?>:
        <br>
         <input type="text" name="birthdate" value="MM/DD/YYYY"><p>
         <input type=submit value="<?php print $TEXT['bio-ok']; ?>">
         <input type="hidden" name="showpng" value=1>
         </form>
        <?php

        pageFooter
();

        exit();
    }

    
// get different parts of the date
    
$birthMonth substr($_REQUEST['birthdate'], 02);
    
$birthDay substr($_REQUEST['birthdate'], 32);
    
$birthYear substr($_REQUEST['birthdate'], 64);

    
// check date for validity, display error message if invalid
    
if(!checkDate($birthMonth$birthDay$birthYear))
    {
        
pageHeader();

        
//print("The date '$birthMonth/$birthDay/$birthYear' is invalid.");
        
print("<h2>".$TEXT['bio-error1']." '$birthMonth/$birthDay/$birthYear' ".$TEXT['bio-error2'].".</h2>");

        
pageFooter();

        exit();
    }

    if(@
$_REQUEST['showpng']==1)
    {
        
pageHeader();
    
        echo 
"<img src=\"biorhythm.php?birthdate=".urlencode($_REQUEST['birthdate'])."\">";
        
pageFooter();
        exit();
    }
    
// specify diagram parameters (these are global)
    
$diagramWidth 710;
    
$diagramHeight 400;
    
$daysToShow 30;

    
// calculate the number of days this person is alive
    // this works because Julian dates specify an absolute number
    // of days -> the difference between Julian birthday and
    // "Julian today" gives the number of days alive
    
$daysGone abs(gregorianToJD($birthMonth$birthDay$birthYear)
            - 
gregorianToJD(date"m"), date"d"), date"Y")));

    
// create image
    
$image imageCreate($diagramWidth$diagramHeight);

    
// allocate all required colors
    
$colorBackgr       imageColorAllocate($image192192192);
    
$colorForegr       imageColorAllocate($image255255255);
    
$colorGrid         imageColorAllocate($image000);
    
$colorCross        imageColorAllocate($image000);
    
$colorPhysical     imageColorAllocate($image00255);
    
$colorEmotional    imageColorAllocate($image25500);
    
$colorIntellectual imageColorAllocate($image02550);

    
// clear the image with the background color
    
imageFilledRectangle($image00$diagramWidth 1$diagramWidth 1$colorBackgr);

    
// calculate start date for diagram and start drawing
    
$nrSecondsPerDay 60 60 24;
    
$diagramDate time() - ($daysToShow $nrSecondsPerDay)
               + 
$nrSecondsPerDay;

    for (
$i 1$i $daysToShow$i++)
    {
        
$thisDate getDate($diagramDate);
        
$xCoord = ($diagramWidth $daysToShow) * $i;

        
// draw day mark and day number
        
imageLine($image$xCoord$diagramHeight 25$xCoord,
              
$diagramHeight 20$colorGrid);
        
imageString($image3$xCoord 5$diagramHeight 16,
            
$thisDate"mday"], $colorGrid);

        
$diagramDate += $nrSecondsPerDay;
    }

    
// draw rectangle around diagram (marks its boundaries)
    
imageRectangle($image00$diagramWidth 1$diagramHeight 20,
               
$colorGrid);

    
// draw middle cross
    
imageLine($image0, ($diagramHeight 20) / 2$diagramWidth,
          (
$diagramHeight 20) / 2$colorCross);
    
imageLine($image$diagramWidth 20$diagramWidth 2$diagramHeight 20,
          
$colorCross);

    
// print descriptive text into the diagram
    
imageString($image31010,  $TEXT['bio-birthday'].": $birthDay.$birthMonth.$birthYear",
            
$colorCross);
    
imageString($image31026,  $TEXT['bio-today'].":    ".  date(  "d.m.Y"),  $colorCross);
    
imageString($image310$diagramHeight 42,  $TEXT['bio-physical'], $colorPhysical);
    
imageString($image310$diagramHeight 58,  $TEXT['bio-emotional'], $colorEmotional);
    
imageString($image310$diagramHeight 74,  $TEXT['bio-intellectual'], $colorIntellectual);

    
// now draw each curve with its appropriate parameters
    
drawRhythm($daysGone23$colorPhysical);
    
drawRhythm($daysGone28$colorEmotional);
    
drawRhythm($daysGone33$colorIntellectual);

    
// set the content type
    
header("Content-type:  image/png");

    
// create an interlaced image for better loading in the browser
    
imageInterlace($image1);

    
// mark background color as being transparent
    
imageColorTransparent($image$colorBackgr);

    
// now send the picture to the client (this outputs all image data directly)
    
imagePNG($image);

?>

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