!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:\xampp\xampp\htdocs\jaime\Xcode\DateTime\   drwxrwxrwx
Free 8.8 GB of 239.26 GB (3.68%)
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:     14.php (5.34 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// Include DateMath class
require_once ('DateTime/DateMath.php');
// Include the TimeUnitValidator
require_once ('DateTime/TimeUnitValidator.php');

// Include Calendar and subclasses
require_once ('DateTime/Calendar.php');
require_once (
'DateTime/Month.php');
require_once (
'DateTime/Day.php');
require_once (
'DateTime/Hour.php');

// Set up initial variables
if ( !isset ( $_GET['y'] ) ) $_GET['y']=date('Y');
if ( !isset ( 
$_GET['m'] ) ) $_GET['m']=date('m');
if ( !isset ( 
$_GET['d'] ) ) $_GET['d']=date('d');

// Instantiate the Month class
$month=new Month($_GET['y'],$_GET['m']);

// Get the details of the months as timestamps
$last=$month->lastMonth(true);
$next=$month->nextMonth(true);
$thisMonth=$month->thisMonth(true);

// Start building the calendar
$calendar ="<table class=\"cal\" width=\"450\">\n<tr>\n";
$calendar.="<td colspan=\"2\"> ".
           
"<a class=\"cal_nav\" href=\"".$_SERVER['PHP_SELF'].
           
"?y=".date('Y',$last).
           
"&m=".date('m',$last)."&d=1\">".
           
date('F',$last)."</a></td>";
$calendar.="<td class=\"cal_now\" colspan=\"3\" align=\"center\">".
           
date('F',$thisMonth)." ".date('Y',$thisMonth)."</td>";
$calendar.="<td colspan=\"2\" align=\"right\">".
           
"<a class=\"cal_nav\" href=\"".$_SERVER['PHP_SELF'].
           
"?y=".date('Y',$next).
           
"&m=".date('m',$next)."&d=1\">".
           
date('F',$next)."</a>".
           
" </td></tr>";

// Array for selected days
$sDays = array (
    new 
Day($_GET['y'],$_GET['m'],$_GET['d'])
    );

// Build the days of the month
$month->buildWeekDays($sDays);

// Define the days of the week for column headings
$daysOfWeek= array('Monday','Tuesday','Wednesday',
    
'Thursday','Friday','Saturday','Sunday');

// Build the column headings
$calendar.="<tr class=\"cal_top\">\n";
// Display the days of the week
foreach ( $daysOfWeek as $dayOfWeek ) {
    
$calendar.="<th class=\"cal_week\">".$dayOfWeek."</th>";
}
$calendar.="\n</tr>\n";

$alt='';

// Loop through the day entries
while ( $day $month->fetch() ) {

    
// For display alternate rows
    
$alt$alt=="cal_row" "cal_row_alt" "cal_row";

    
// If its the start of a week, start a new row
    
if ( $day->isFirst() ) {
        
$calendar.="<tr class=\"".$alt."\">\n";
    }

    
// Check to see if day is an "empty" day
    
if ( ! $day->isEmpty() ) {

        
// If it's the current day, highlight it
        
if ( !$day->isSelected() )
            
$calendar.="<td>";
        else
            
$calendar.="<td class=\"cal_current\">";

        
// Display the day inside a link
        
$calendar.="<a class=\"cal_entry\" href=\"".
                   
$_SERVER['PHP_SELF']."?y".
                   
$day->thisYear().
                   
"&m=".$day->thisMonth().
                   
"&d=".$day->thisDay()."\">".
                   
$day->thisDay()."</a></td>";

    
// Display an empty cell for empty days
    
} else {
        
$calendar.="<td class=\"cal_entry\">&nbsp;</td>";
    }

    
// If its the end of a week, close the row
    
if ( $day->isLast() ) {
        
$calendar.="\n</tr>\n";
    }
}
$calendar.="</table>\n";

// Create a new day
$day = new Day($_GET['y'],$_GET['m'],$_GET['d']);

// Initialize the current hour
if ( !isset($_GET['h']) ) $_GET['h'] = date('H');

$sHours = array (
    new 
Hour($_GET['y'],$_GET['m'],$_GET['d'],$_GET['h'])
    );

// Build the hour list for that day
$day->build($sHours);

$calendar.="<br />\n";
$calendar.="<table class=\"cal\" width=\"450\">\n";
$calendar.="<caption>Your schedule for ".date('l',$day->thisDay(true)).
           
"</caption>\n";

$alt='';

// Loop through the hours
while ( $hour $day->fetch() ) {
    
// Set a range for the hours; only between 8am and 6pm
    
if ( $hour->thisHour() < || $hour->thisHour() > 18 )
        continue;

    
// For alternating row colors
    
$alt$alt=="cal_row" "cal_row_alt" "cal_row";

    
// If it's the current day, highlight it
    
if ( !$hour->isSelected() )
        
$calendar.="<tr class=\"".$alt."\">\n";
    else
        
$calendar.="<tr class=\"cal_current\">\n";

    
$calendar.="<td align=\"right\" >";

    
// Display the hour inside a link
    
$calendar.="<a class=\"cal_entry\" href=\"".
               
$_SERVER['PHP_SELF']."?y".
               
$hour->thisYear().
               
"&m=".$hour->thisMonth().
               
"&d=".$hour->thisDay().
               
"&h=".$hour->thisHour()."\">".
               
date('g A',$hour->thisHour(true))."</a></td>";

    
$calendar.="<td align=\"right\" >".
               
"Timestamp is ".$hour->getTimeStamp()."</td>";

    
$calendar.="</tr>\n";
}
$calendar.="</table>\n";
?>
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> A PHP Calendar </title>
<style type="text/css">
.cal {
    background-color: gray;
    font-family: verdana;
    font-size: 12px;
}
.cal_nav {
    color: #000000;
}
.cal_now {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
}
.cal_top {
    background-color: #000000;
}
.cal_week {
    color: #ffffff;
}
.cal_row {
    background-color: #f5f6f7;
}
.cal_row_alt {
    background-color: #f1f2f3;
}
.cal_entry {
    color: #000066;
}
.cal_current {
    background-color: yellow;
}
</style>
</head>

<body>

<?php echo ( $calendar ); ?>

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