!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/promonte/   drwxr-xr-x
Free 3.94 GB of 27.03 GB (14.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     statistika_maint.php (19.28 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//Include Common Files @1-5471E0F2
define("RelativePath", ".");
include(
RelativePath . "/Common.php");
include(
RelativePath . "/Template.php");
include(
RelativePath . "/Sorter.php");
include(
RelativePath . "/Navigator.php");
  
//End Include Common Files

//Include Page implementation @14-39DC296A
include_once("./Header.php");
//End Include Page implementation

Class clsRecordstatistika { //statistika Class @2-492B5901

//Variables @2-4A82E0A3

    // Public variables
    
var $ComponentName;
    var
$HTMLFormAction;
    var
$PressedButton;
    var
$Errors;
    var
$ErrorBlock;
    var
$FormSubmitted;
    var
$FormEnctype;
    var
$Visible;
    var
$Recordset;

    var
$CCSEvents = "";
    var
$CCSEventResult;

    var
$InsertAllowed;
    var
$UpdateAllowed;
    var
$DeleteAllowed;
    var
$ds;
    var
$EditMode;
    var
$ValidatingControls;
    var
$Controls;

    
// Class variables
//End Variables

//Class_Initialize Event @2-18BDA2B1
    
function clsRecordstatistika()
    {

        global
$FileName;
        
$this->Visible = true;
        
$this->Errors = new clsErrors();
        
$this->ErrorBlock = "Record statistika/Error";
        
$this->ds = new clsstatistikaDataSource();
        
$this->InsertAllowed = true;
        
$this->UpdateAllowed = true;
        
$this->DeleteAllowed = true;
        if(
$this->Visible)
        {
            
$this->ComponentName = "statistika";
            
$CCSForm = split(":", CCGetFromGet("ccsForm", ""), 2);
            if(
sizeof($CCSForm) == 1)
                
$CCSForm[1] = "";
            list(
$FormName, $FormMethod) = $CCSForm;
            
$this->EditMode = ($FormMethod == "Edit");
            
$this->FormEnctype = "application/x-www-form-urlencoded";
            
$this->FormSubmitted = ($FormName == $this->ComponentName);
            
$Method = $this->FormSubmitted ? ccsPost : ccsGet;
            
$this->request = new clsControl(ccsTextBox, "request", "Request", ccsText, "", CCGetRequestParam("request", $Method));
            
$this->request->Required = true;
            
$this->host = new clsControl(ccsTextBox, "host", "Host", ccsText, "", CCGetRequestParam("host", $Method));
            
$this->host->Required = true;
            
$this->address = new clsControl(ccsTextBox, "address", "Address", ccsText, "", CCGetRequestParam("address", $Method));
            
$this->address->Required = true;
            
$this->user = new clsControl(ccsTextBox, "user", "User", ccsText, "", CCGetRequestParam("user", $Method));
            
$this->user->Required = true;
            
$this->date = new clsControl(ccsTextBox, "date", "Date", ccsDate, Array("GeneralDate"), CCGetRequestParam("date", $Method));
            
$this->DatePicker_date = new clsDatePicker("DatePicker_date", "statistika", "date");
            
$this->Button_Insert = new clsButton("Button_Insert");
            
$this->Button_Update = new clsButton("Button_Update");
            
$this->Button_Delete = new clsButton("Button_Delete");
        }
    }
//End Class_Initialize Event

//Initialize Method @2-F98A764E
    
function Initialize()
    {

        if(!
$this->Visible)
            return;

        
$this->ds->Parameters["urlid"] = CCGetFromGet("id", "");
    }
//End Initialize Method

//Validate Method @2-FC49ABBF
    
function Validate()
    {
        
$Validation = true;
        
$Where = "";
        
$Validation = ($this->request->Validate() && $Validation);
        
$Validation = ($this->host->Validate() && $Validation);
        
$Validation = ($this->address->Validate() && $Validation);
        
$Validation = ($this->user->Validate() && $Validation);
        
$Validation = ($this->date->Validate() && $Validation);
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate");
        return ((
$this->Errors->Count() == 0) && $Validation);
    }
//End Validate Method

//CheckErrors Method @2-F3C71A78
    
function CheckErrors()
    {
        
$errors = false;
        
$errors = ($errors || $this->request->Errors->Count());
        
$errors = ($errors || $this->host->Errors->Count());
        
$errors = ($errors || $this->address->Errors->Count());
        
$errors = ($errors || $this->user->Errors->Count());
        
$errors = ($errors || $this->date->Errors->Count());
        
$errors = ($errors || $this->DatePicker_date->Errors->Count());
        
$errors = ($errors || $this->Errors->Count());
        
$errors = ($errors || $this->ds->Errors->Count());
        return
$errors;
    }
//End CheckErrors Method

//Operation Method @2-7A6BEC73
    
function Operation()
    {
        if(!
$this->Visible)
            return;

        global
$Redirect;
        global
$FileName;

        
$this->ds->Prepare();
        
$this->EditMode = $this->ds->AllParametersSet;
        if(!
$this->FormSubmitted)
            return;

        if(
$this->FormSubmitted) {
            
$this->PressedButton = $this->EditMode ? "Button_Update" : "Button_Insert";
            if(
strlen(CCGetParam("Button_Insert", ""))) {
                
$this->PressedButton = "Button_Insert";
            } else if(
strlen(CCGetParam("Button_Update", ""))) {
                
$this->PressedButton = "Button_Update";
            } else if(
strlen(CCGetParam("Button_Delete", ""))) {
                
$this->PressedButton = "Button_Delete";
            }
        }
        
$Redirect = "statistika_list.php" . "?" . CCGetQueryString("QueryString", Array("ccsForm"));
        if(
$this->PressedButton == "Button_Delete") {
            if(!
CCGetEvent($this->Button_Delete->CCSEvents, "OnClick") || !$this->DeleteRow()) {
                
$Redirect = "";
            }
        } else if(
$this->Validate()) {
            if(
$this->PressedButton == "Button_Insert") {
                if(!
CCGetEvent($this->Button_Insert->CCSEvents, "OnClick") || !$this->InsertRow()) {
                    
$Redirect = "";
                }
            } else if(
$this->PressedButton == "Button_Update") {
                if(!
CCGetEvent($this->Button_Update->CCSEvents, "OnClick") || !$this->UpdateRow()) {
                    
$Redirect = "";
                }
            }
        } else {
            
$Redirect = "";
        }
    }
//End Operation Method

//InsertRow Method @2-CBFF7968
    
function InsertRow()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeInsert");
        if(!
$this->InsertAllowed) return false;
        
$this->ds->request->SetValue($this->request->GetValue());
        
$this->ds->host->SetValue($this->host->GetValue());
        
$this->ds->address->SetValue($this->address->GetValue());
        
$this->ds->user->SetValue($this->user->GetValue());
        
$this->ds->date->SetValue($this->date->GetValue());
        
$this->ds->Insert();
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterInsert");
        if(
$this->ds->Errors->Count() > 0) {
            echo
"Error in Record " . $this->ComponentName . " / Insert Operation";
            
$this->ds->Errors->Clear();
            
$this->Errors->AddError("Database command error.");
        }
        return (!
$this->CheckErrors());
    }
//End InsertRow Method

//UpdateRow Method @2-100649D1
    
function UpdateRow()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeUpdate");
        if(!
$this->UpdateAllowed) return false;
        
$this->ds->request->SetValue($this->request->GetValue());
        
$this->ds->host->SetValue($this->host->GetValue());
        
$this->ds->address->SetValue($this->address->GetValue());
        
$this->ds->user->SetValue($this->user->GetValue());
        
$this->ds->date->SetValue($this->date->GetValue());
        
$this->ds->Update();
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterUpdate");
        if(
$this->ds->Errors->Count() > 0) {
            echo
"Error in Record " . $this->ComponentName . " / Update Operation";
            
$this->ds->Errors->Clear();
            
$this->Errors->AddError("Database command error.");
        }
        return (!
$this->CheckErrors());
    }
//End UpdateRow Method

//DeleteRow Method @2-EA88835F
    
function DeleteRow()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeDelete");
        if(!
$this->DeleteAllowed) return false;
        
$this->ds->Delete();
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterDelete");
        if(
$this->ds->Errors->Count() > 0) {
            echo
"Error in Record " . ComponentName . " / Delete Operation";
            
$this->ds->Errors->Clear();
            
$this->Errors->AddError("Database command error.");
        }
        return (!
$this->CheckErrors());
    }
//End DeleteRow Method

//Show Method @2-1C8598D4
    
function Show()
    {
        global
$Tpl;
        global
$FileName;
        
$Error = "";

        if(!
$this->Visible)
            return;

        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect");


        
$this->ds->open();

        
$RecordBlock = "Record " . $this->ComponentName;
        
$ParentPath = $Tpl->block_path;
        
$Tpl->block_path = $ParentPath . "/" . $RecordBlock;
        if(
$this->EditMode)
        {
            if(
$this->Errors->Count() == 0)
            {
                if(
$this->ds->Errors->Count() > 0)
                {
                    echo
"Error in Record statistika";
                }
                else if(
$this->ds->next_record())
                {
                    
$this->ds->SetValues();
                    if(!
$this->FormSubmitted)
                    {
                        
$this->request->SetValue($this->ds->request->GetValue());
                        
$this->host->SetValue($this->ds->host->GetValue());
                        
$this->address->SetValue($this->ds->address->GetValue());
                        
$this->user->SetValue($this->ds->user->GetValue());
                        
$this->date->SetValue($this->ds->date->GetValue());
                    }
                }
                else
                {
                    
$this->EditMode = false;
                }
            }
        }
        if(!
$this->FormSubmitted)
        {
        }

        if(
$this->FormSubmitted || $this->CheckErrors()) {
            
$Error .= $this->request->Errors->ToString();
            
$Error .= $this->host->Errors->ToString();
            
$Error .= $this->address->Errors->ToString();
            
$Error .= $this->user->Errors->ToString();
            
$Error .= $this->date->Errors->ToString();
            
$Error .= $this->DatePicker_date->Errors->ToString();
            
$Error .= $this->Errors->ToString();
            
$Error .= $this->ds->Errors->ToString();
            
$Tpl->SetVar("Error", $Error);
            
$Tpl->Parse("Error", false);
        }
        
$CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
        
$this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
        
$Tpl->SetVar("Action", $this->HTMLFormAction);
        
$Tpl->SetVar("HTMLFormName", $this->ComponentName);
        
$Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");
        if(!
$this->Visible) {
            
$Tpl->block_path = $ParentPath;
            return;
        }

        
$this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
        
$this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
        
$this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
        
$this->request->Show();
        
$this->host->Show();
        
$this->address->Show();
        
$this->user->Show();
        
$this->date->Show();
        
$this->DatePicker_date->Show();
        
$this->Button_Insert->Show();
        
$this->Button_Update->Show();
        
$this->Button_Delete->Show();
        
$Tpl->parse();
        
$Tpl->block_path = $ParentPath;
        
$this->ds->close();
    }
//End Show Method

} //End statistika Class @2-FCB6E20C

class clsstatistikaDataSource extends clsDBConnection1 {  //statistikaDataSource Class @2-E6ADE34E

//DataSource Variables @2-2E22C0C6
    
var $CCSEvents = "";
    var
$CCSEventResult;
    var
$ErrorBlock;

    var
$InsertParameters;
    var
$UpdateParameters;
    var
$DeleteParameters;
    var
$wp;
    var
$AllParametersSet;


    
// Datasource fields
    
var $request;
    var
$host;
    var
$address;
    var
$user;
    var
$date;
//End DataSource Variables

//DataSourceClass_Initialize Event @2-20F8CC2F
    
function clsstatistikaDataSource()
    {
        
$this->ErrorBlock = "Record statistika/Error";
        
$this->Initialize();
        
$this->request = new clsField("request", ccsText, "");
        
$this->host = new clsField("host", ccsText, "");
        
$this->address = new clsField("address", ccsText, "");
        
$this->user = new clsField("user", ccsText, "");
        
$this->date = new clsField("date", ccsDate, Array("dd", "/", "mm", "/", "yyyy", " ", "HH", ":", "nn", ":", "ss"));

    }
//End DataSourceClass_Initialize Event

//Prepare Method @2-1A2D9971
    
function Prepare()
    {
        
$this->wp = new clsSQLParameters($this->ErrorBlock);
        
$this->wp->AddParameter("1", "urlid", ccsInteger, "", "", $this->Parameters["urlid"], "", false);
        
$this->AllParametersSet = $this->wp->AllParamsSet();
        
$this->wp->Criterion[1] = $this->wp->Operation(opEqual, "id", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsInteger),false);
        
$this->Where = $this->wp->Criterion[1];
    }
//End Prepare Method

//Open Method @2-BB66482B
    
function Open()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect");
        
$this->SQL = "SELECT *  " .
        
"FROM statistika";
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect");
        
$this->query(CCBuildSQL($this->SQL, $this->Where, $this->Order));
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect");
        
$this->MoveToPage($this->AbsolutePage);
    }
//End Open Method

//SetValues Method @2-58F050B0
    
function SetValues()
    {
        
$this->request->SetDBValue($this->f("request"));
        
$this->host->SetDBValue($this->f("host"));
        
$this->address->SetDBValue($this->f("address"));
        
$this->user->SetDBValue($this->f("user"));
        
$this->date->SetDBValue(trim($this->f("date")));
    }
//End SetValues Method

//Insert Method @2-A6985175
    
function Insert()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildInsert");
        
$this->SQL = "INSERT INTO statistika ("
             
. "request, "
             
. "host, "
             
. "address, "
             
. "`user`, "
             
. "`date`"
             
. ") VALUES ("
             
. $this->ToSQL($this->request->GetDBValue(), $this->request->DataType) . ", "
             
. $this->ToSQL($this->host->GetDBValue(), $this->host->DataType) . ", "
             
. $this->ToSQL($this->address->GetDBValue(), $this->address->DataType) . ", "
             
. $this->ToSQL($this->user->GetDBValue(), $this->user->DataType) . ", "
             
. $this->ToSQL($this->date->GetDBValue(), $this->date->DataType)
             .
")";
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteInsert");
        
$this->query($this->SQL);
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteInsert");
        if(
$this->Errors->Count() > 0)
            
$this->Errors->AddError($this->Errors->ToString());
        
$this->close();
    }
//End Insert Method

//Update Method @2-4DA5387D
    
function Update()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildUpdate");
        
$this->SQL = "UPDATE statistika SET "
             
. "request=" . $this->ToSQL($this->request->GetDBValue(), $this->request->DataType) . ", "
             
. "host=" . $this->ToSQL($this->host->GetDBValue(), $this->host->DataType) . ", "
             
. "address=" . $this->ToSQL($this->address->GetDBValue(), $this->address->DataType) . ", "
             
. "`user`=" . $this->ToSQL($this->user->GetDBValue(), $this->user->DataType) . ", "
             
. "`date`=" . $this->ToSQL($this->date->GetDBValue(), $this->date->DataType);
        
$this->SQL = CCBuildSQL($this->SQL, $this->Where, "");
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteUpdate");
        
$this->query($this->SQL);
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteUpdate");
        if(
$this->Errors->Count() > 0)
            
$this->Errors->AddError($this->Errors->ToString());
        
$this->close();
    }
//End Update Method

//Delete Method @2-9F55B812
    
function Delete()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildDelete");
        
$this->SQL = "DELETE FROM statistika";
        
$this->SQL = CCBuildSQL($this->SQL, $this->Where, "");
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteDelete");
        
$this->query($this->SQL);
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteDelete");
        if(
$this->Errors->Count() > 0)
            
$this->Errors->AddError($this->Errors->ToString());
        
$this->close();
    }
//End Delete Method

} //End statistikaDataSource Class @2-FCB6E20C

//Include Page implementation @15-5CD56755
include_once("./Footer.php");
//End Include Page implementation

//Initialize Page @1-D3C0038A
// Variables
$FileName = "";
$Redirect = "";
$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";

// Events;
$CCSEvents = "";
$CCSEventResult = "";

$FileName = "statistika_maint.php";
$Redirect = "";
$TemplateFileName = "statistika_maint.html";
$BlockToParse = "main";
$PathToRoot = "./";
//End Initialize Page

//Authenticate User @1-DC94A87D
CCSecurityRedirect("1", "");
//End Authenticate User

//Initialize Objects @1-ECCB132E
$DBConnection1 = new clsDBConnection1();

// Controls
$Header = new clsHeader();
$Header->BindEvents();
$Header->TemplatePath = "./";
$Header->Initialize();
$statistika = new clsRecordstatistika();
$Footer = new clsFooter();
$Footer->BindEvents();
$Footer->TemplatePath = "./";
$Footer->Initialize();
$statistika->Initialize();

$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects

//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template

//Execute Components @1-A1FAEA3C
$Header->Operations();
$statistika->Operation();
$Footer->Operations();
//End Execute Components

//Go to destination page @1-6F9FD7CC
if($Redirect)
{
    
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
    
$DBConnection1->close();
    
header("Location: " . $Redirect);
    exit;
}
//End Go to destination page

//Show Page @1-9431D1D9
$Header->Show("Header");
$statistika->Show();
$Footer->Show("Footer");
$Tpl->PParse("main", false);
//End Show Page

//Unload Page @1-A4D34ABE
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
$DBConnection1->close();
unset(
$Tpl);
//End Unload Page


?>

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