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

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/home/mnnews/public_html/mina/user/admin/   drwxr-xr-x
Free 3.89 GB of 27.03 GB (14.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     CalendarNavigator.php (5.74 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

//CalendarNavigator Class @0-8E8EFA31


class clsCalendarNavigator {


  var
$ComponentType = "CalendarNavigator";
  var
$CalendarNavigatorName;
  var
$TargetName;
  var
$CalendarType;
  var
$Visible;
  var
$CCSEvents;
  var
$CCSEventResult;
  var
$Parent;
  var
$YearsRange;
  var
$CurrentProcessingDate;
  var
$NextProcessingDate;
  var
$PrevProcessingDate;

  var
$CurrentDate;


  function
clsCalendarNavigator($ComponentName, $CalendarNavigatorName, $CalendarType, $YearsRange = 10, & $Parent){
    
$this->TargetName = $ComponentName;
    
$this->CalendarNavigatorName = $CalendarNavigatorName;
    
$this->CalendarType = $CalendarType;
    
$this->YearsRange = $YearsRange;
    
$this->Visible = true;
    
$this->CCSEvents = array();
    
$this->Parent = & $Parent;
  }

  function
CreateURL($QueryString) {
    global
$FileName;
    
$datestr = CCFormatDate($this->CurrentProcessingDate, array("yyyy","-", "mm"));
    return
$FileName . "?" . CCAddParam($QueryString, $this->TargetName . "Date", $datestr);

  }


  function
ShowBlock($QueryString, $name="", $to = "", $accumulate = true) {
    global
$Tpl;
    
$Tpl->SetVar("URL", $this->CreateURL($QueryString));
    
$Tpl->SetVar("CalendarName", $this->TargetName);
    
$Tpl->SetVar("Year", CCFormatDate($this->CurrentProcessingDate, array("yyyy")));
    if (
strpos($name, "CalendarNavigator")  !== false || strpos($name, "Month")  !== false || strpos($name, "Quarter")  !== false) {
      
$Tpl->SetVar("Quarter", CCFormatDate($this->CurrentProcessingDate, array("q")));
      
$Tpl->SetVar("Month", CCFormatDate($this->CurrentProcessingDate, array("m")));
      
$Tpl->SetVar("MonthFullName", CCFormatDate($this->CurrentProcessingDate, array("mmmm")));
      
$Tpl->SetVar("MonthShortName", CCFormatDate($this->CurrentProcessingDate, array("mmm")));
    }
    if (
$to)
      
$Tpl->ParseTo($name, $accumulate, $to);
    else
     
$Tpl->Parse($name, $accumulate);
  }

  function
Show() {
    global
$Tpl;
    global
$FileName;

    
$this->EventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);

    if(!
$this->Visible) { return; }

    
$RemoveFromUrl = array(
      
$this->TargetName . "Year",
      
$this->TargetName . "Month",
      
$this->TargetName . "Date",
      );
    
$QueryString = CCGetQueryString("QueryString", $RemoveFromUrl);

    
    
$ParentPath = $Tpl->block_path;
    
$CalendarNavigatorBlock = "CalendarNavigator " . $this->CalendarNavigatorName;
    
$Tpl->block_path = $ParentPath . "/" . $CalendarNavigatorBlock;
    
$Tpl->SetBlockVar("", "");
    
$Tpl->SetBlockVar("Years", "");
    
$Tpl->SetBlockVar("Months", "");
    
$Tpl->SetBlockVar("Quarters", "");
    
$Blocks = array("Months", "Quarters", "Years");
    foreach (
$Blocks as $Block) {
      if (
$Tpl->BlockExists($Block)) {
        if (
$Block == "Years") {
          
$this->CurrentProcessingDate = CCDateAdd($this->CurrentDate, "-" . $this->YearsRange . "years");
          
$LastDate = CCDateAdd($this->CurrentDate, "+" . $this->YearsRange . "years");
          
$add = "1year";
          
$name = "Year";
        } elseif (
$Block == "Quarters") {
          
$this->CurrentProcessingDate = CCParseDate(CCFormatDate($this->CurrentDate, array("yyyy","-01-01 00:00:00")), array("yyyy","-","mm","-","dd"," ","HH",":","nn",":","ss"));
          
$LastDate = CCDateAdd($this->CurrentProcessingDate, "+1year -1sec");
          
$add = "3month";
          
$name = "Quarter";
        } else {
          
$this->CurrentProcessingDate = CCParseDate(CCFormatDate($this->CurrentDate, array("yyyy","-01-01 00:00:00")), array("yyyy","-","mm","-","dd"," ","HH",":","nn",":","ss"));
          
$LastDate = CCDateAdd($this->CurrentProcessingDate, "+1year -1sec");
          
$add="1month";
          
$name = "Month";
        }

        while (
CCCompareValues($this->CurrentProcessingDate, $LastDate, ccsDate) <= 0) {
          
$NextDate = CCDateAdd($this->CurrentProcessingDate, $add);
          if ((
$Block == "Years" && $this->CurrentProcessingDate[ccsYear] ==  $this->CurrentDate[ccsYear]) ||
             (
$Block == "Months" && $this->CurrentProcessingDate[ccsMonth] ==  $this->CurrentDate[ccsMonth]) ||
             (
$Block == "Quarters" && ceil($this->CurrentProcessingDate[ccsMonth] / 3 + 0.1) ==  ceil($this->CurrentDate[ccsMonth] / 3))) {
            
$this->ShowBlock($QueryString, $Block . "/Current_" . $name, $Block . "/Regular_" . $name);
          } else {
            
$this->ShowBlock($QueryString, $Block . "/Regular_" . $name);
          }
          
$this->CurrentProcessingDate = $NextDate;
        }
        
$this->ShowBlock($QueryString, $Block);
      }
    }
    if (
$Tpl->BlockExists("Prev_Year")) {
      
$this->CurrentProcessingDate = CCDateAdd($this->CurrentDate, "-1year");
      
$this->ShowBlock($QueryString, "Prev_Year", "", false);
    }
    if (
$Tpl->BlockExists("Next_Year")) {
      
$this->CurrentProcessingDate = CCDateAdd($this->CurrentDate, "+1year");
      
$this->ShowBlock($QueryString, "Next_Year", "", false);
    }
    if (
$this->CalendarType != 12) {

      if (
$Tpl->BlockExists("Prev")){
        
$this->CurrentProcessingDate = $this->PrevProcessingDate;
        
$this->ShowBlock($QueryString, "Prev", "", false);
      }
      if (
$Tpl->BlockExists("Next")){
        
$this->CurrentProcessingDate = $this->NextProcessingDate;
        
$this->ShowBlock($QueryString, "Next", "", false);
      }
    }

    
$Tpl->block_path = $ParentPath;
    
$Tpl->SetVar("Action", $FileName . "?" . CCAddParam($QueryString, "ccsForm", $this->TargetName));
    
$Tpl->SetVar("CalendarName", $this->TargetName);
    
$this->CurrentProcessingDate = $this->CurrentDate;
    
$this->ShowBlock($QueryString, $CalendarNavigatorBlock, "", false);
  }
}
//End CalendarNavigator Class


?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

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