!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/squirrelmail/plugins/calendar/   drwxr-xr-x
Free 129.83 GB of 142.11 GB (91.36%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     event_delete.php (5.69 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Functions to delete a event.
 *
 * @copyright 2002-2010 The SquirrelMail Project Team
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @version $Id: event_delete.php 13893 2010-01-25 02:47:41Z pdontthink $
 * @package plugins
 * @subpackage calendar
 */

/** @ignore */
define('SM_PATH','../../');

/* SquirrelMail required files. */
include_once(SM_PATH 'include/validate.php');
/* date_intl() */
include_once(SM_PATH 'functions/date.php');

/* Calendar plugin required files. */
include_once(SM_PATH 'plugins/calendar/calendar_data.php');
include_once(
SM_PATH 'plugins/calendar/functions.php');

/* get globals */
if (! sqGetGlobalVar('month',$month,SQ_FORM) || ! is_numeric($month)) {
    unset(
$month);
}
if (! 
sqGetGlobalVar('year',$year,SQ_FORM) || ! is_numeric($year)) {
    unset(
$year);
}
if (! 
sqGetGlobalVar('day',$day,SQ_FORM) || ! is_numeric($day)) {
    unset(
$day);
}
if (! 
sqGetGlobalVar('dyear',$dyear,SQ_FORM) || ! is_numeric($dyear)) {
    unset(
$dyear);
}
if (! 
sqGetGlobalVar('dmonth',$dmonth,SQ_FORM) || ! is_numeric($dmonth)) {
    unset(
$dmonth);
}
if (! 
sqGetGlobalVar('dday',$dday,SQ_FORM) || ! is_numeric($dday)) {
    unset(
$dday);
}
if (! 
sqGetGlobalVar('dhour',$dhour,SQ_FORM) || ! is_numeric($dhour)) {
    unset(
$dhour);
}
if (! 
sqGetGlobalVar('dminute',$dminute,SQ_FORM) || ! is_numeric($dminute)) {
    unset(
$dminute);
}
sqGetGlobalVar('confirmed',$confirmed,SQ_POST);

/* got 'em */

/**
 * Displays confirmation form when event is deleted
 * @return void
 */
function confirm_deletion() {
    global 
$calself$dyear$dmonth$dday$dhour$dminute$calendardata$color$year$month$day;

    
$tmparray $calendardata["$dmonth$dday$dyear"]["$dhour$dminute"];

    echo 
html_tag'table',
               
html_tag'tr',
                   
html_tag'th'_("Do you really want to delete this event?") . '<br />'''$color[4], 'colspan="2"' )
               ) .
               
html_tag'tr',
                   
html_tag'td'_("Date:"), 'right'$color[4] ) .
                   
html_tag'td'date_intl(_("m/d/Y"),mktime(0,0,0,$dmonth,$dday,$dyear)), 'left'$color[4] )
               ) .
               
html_tag'tr',
                   
html_tag'td'_("Time:"), 'right'$color[4] ) .
                   
html_tag'td'date_intl(_("H:i"),mktime($dhour,$dminute,0,$dmonth,$dday,$dyear)), 'left'$color[4] )
               ) .
               
html_tag'tr',
                   
html_tag'td'_("Title:"), 'right'$color[4] ) .
                   
html_tag'td'htmlspecialchars($tmparray['title']), 'left'$color[4] )
               ) .
               
html_tag'tr',
                   
html_tag'td'_("Message:"), 'right'$color[4] ) .
                   
html_tag'td'nl2br(htmlspecialchars($tmparray['message'])), 'left'$color[4] )
               ) .
               
html_tag'tr',
                   
html_tag'td',
                       
"    <form name=\"delevent\" method=\"post\" action=\"$calself\">\n".
                       
"       <input type=\"hidden\" name=\"dyear\" value=\"$dyear\" />\n".
                       
"       <input type=\"hidden\" name=\"dmonth\" value=\"$dmonth\" />\n".
                       
"       <input type=\"hidden\" name=\"dday\" value=\"$dday\" />\n".
                       
"       <input type=\"hidden\" name=\"year\" value=\"$year\" />\n".
                       
"       <input type=\"hidden\" name=\"month\" value=\"$month\" />\n".
                       
"       <input type=\"hidden\" name=\"day\" value=\"$day\" />\n".
                       
"       <input type=\"hidden\" name=\"dhour\" value=\"$dhour\" />\n".
                       
"       <input type=\"hidden\" name=\"dminute\" value=\"$dminute\" />\n".
                       
"       <input type=\"hidden\" name=\"confirmed\" value=\"yes\" />\n".
                       
'       <input type="submit" value="' _("Yes") . "\" />\n".
                       
"    </form>\n" ,
                   
'right'$color[4] ) .
                   
html_tag'td',
                       
"    <form name=\"nodelevent\" method=\"post\" action=\"day.php\">\n".
                       
"       <input type=\"hidden\" name=\"year\" value=\"$year\" />\n".
                       
"       <input type=\"hidden\" name=\"month\" value=\"$month\" />\n".
                       
"       <input type=\"hidden\" name=\"day\" value=\"$day\" />\n".
                       
'       <input type="submit" value="' _("No") . "\" />\n".
                       
"    </form>\n" ,
                   
'left'$color[4] )
               ) ,
           
''$color[0], 'border="0" cellpadding="2" cellspacing="1"' );
}

if (
$month <= 0){
    
$month date'm' );
}
if (
$year <= 0){
    
$year date'Y' );
}
if (
$day <= 0){
    
$day date'd' );
}

$calself=basename($PHP_SELF);

displayPageHeader($color'None');
//load calendar menu
calendar_header();

echo 
html_tag'tr'''''$color[0] ) .
           
html_tag'td' ) .
               
html_tag'table'''''$color[0], 'width="100%" border="0" cellpadding="2" cellspacing="1"' ) .
                   
html_tag'tr' ) .
                       
html_tag'td''''left' ) .
     
date_intl_("l, F j Y"), mktime(000$month$day$year));
if (isset(
$dyear) && isset($dmonth) && isset($dday) && isset($dhour) && isset($dminute)){
    if (isset(
$confirmed)){
        
delete_event("$dmonth$dday$dyear""$dhour$dminute");
        echo 
'<br /><br />' _("Event deleted!") . "<br />\n";
        echo 
"<a href=\"day.php?year=$year&amp;month=$month&amp;day=$day\">" .
          
_("Day View") . "</a>\n";
    } else {
        
readcalendardata();
        
confirm_deletion();
    }
} else {
    echo 
'<br />' _("Nothing to delete!");
}

?>
</table></td></tr></table>
</body></html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0145 ]--