!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.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     berza_list.php (12.62 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 @26-3DD2EFDC
include_once(RelativePath . "/Header.php");
//End Include Page implementation

//Include Page implementation @38-9090FF7A
include_once(RelativePath . "/Header1.php");
//End Include Page implementation

class clsGridberza { //berza class @2-46ED79D5

//Variables @2-5F9920B0

    // Public variables
    
var $ComponentName;
    var
$Visible;
    var
$Errors;
    var
$ErrorBlock;
    var
$ds; var $PageSize;
    var
$SorterName = "";
    var
$SorterDirection = "";
    var
$PageNumber;

    var
$CCSEvents = "";
    var
$CCSEventResult;

    
// Grid Controls
    
var $StaticControls; var $RowControls;
    var
$Sorter_stock_exchange_id;
    var
$Sorter_stock_id;
    var
$Sorter_exchange_level;
    var
$Sorter_exchange_date;
    var
$Navigator;
//End Variables

//Class_Initialize Event @2-9FEE2B64
    
function clsGridberza()
    {
        global
$FileName;
        
$this->ComponentName = "berza";
        
$this->Visible = True;
        
$this->Errors = new clsErrors();
        
$this->ErrorBlock = "Grid berza";
        
$this->ds = new clsberzaDataSource();
        
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
        if(!
is_numeric($this->PageSize) || !strlen($this->PageSize))
            
$this->PageSize = 20;
        else
            
$this->PageSize = intval($this->PageSize);
        if (
$this->PageSize > 100)
            
$this->PageSize = 100;
        if(
$this->PageSize == 0)
            
$this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
        
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
        
$this->SorterName = CCGetParam("berzaOrder", "");
        
$this->SorterDirection = CCGetParam("berzaDir", "");

        
$this->stock_exchange_id = new clsControl(ccsLink, "stock_exchange_id", "stock_exchange_id", ccsInteger, "", CCGetRequestParam("stock_exchange_id", ccsGet));
        
$this->stock_id = new clsControl(ccsLabel, "stock_id", "stock_id", ccsText, "", CCGetRequestParam("stock_id", ccsGet));
        
$this->exchange_level = new clsControl(ccsLabel, "exchange_level", "exchange_level", ccsFloat, "", CCGetRequestParam("exchange_level", ccsGet));
        
$this->exchange_date = new clsControl(ccsLabel, "exchange_date", "exchange_date", ccsDate, Array("dd", "/", "mm", "/", "yyyy"), CCGetRequestParam("exchange_date", ccsGet));
        
$this->Sorter_stock_exchange_id = new clsSorter($this->ComponentName, "Sorter_stock_exchange_id", $FileName);
        
$this->Sorter_stock_id = new clsSorter($this->ComponentName, "Sorter_stock_id", $FileName);
        
$this->Sorter_exchange_level = new clsSorter($this->ComponentName, "Sorter_exchange_level", $FileName);
        
$this->Sorter_exchange_date = new clsSorter($this->ComponentName, "Sorter_exchange_date", $FileName);
        
$this->berza_Insert = new clsControl(ccsLink, "berza_Insert", "berza_Insert", ccsText, "", CCGetRequestParam("berza_Insert", ccsGet));
        
$this->berza_Insert->Parameters = CCGetQueryString("QueryString", Array("stock_exchange_id", "ccsForm"));
        
$this->berza_Insert->Page = "berza_maint.php";
        
$this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpSimple);
    }
//End Class_Initialize Event

//Initialize Method @2-03626367
    
function Initialize()
    {
        if(!
$this->Visible) return;

        
$this->ds->PageSize = $this->PageSize;
        
$this->ds->AbsolutePage = $this->PageNumber;
        
$this->ds->SetOrder($this->SorterName, $this->SorterDirection);
    }
//End Initialize Method

//Show Method @2-6EE9EA5C
    
function Show()
    {
        global
$Tpl;
        if(!
$this->Visible) return;

        
$ShownRecords = 0;


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


        
$this->ds->Prepare();
        
$this->ds->Open();

        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");
        if(!
$this->Visible) return;

        
$GridBlock = "Grid " . $this->ComponentName;
        
$ParentPath = $Tpl->block_path;
        
$Tpl->block_path = $ParentPath . "/" . $GridBlock;


        
$is_next_record = $this->ds->next_record();
        if(
$is_next_record && $ShownRecords < $this->PageSize)
        {
            do {
                    
$this->ds->SetValues();
                
$Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
                
$this->stock_exchange_id->SetValue($this->ds->stock_exchange_id->GetValue());
                
$this->stock_exchange_id->Parameters = CCGetQueryString("QueryString", Array("ccsForm"));
                
$this->stock_exchange_id->Parameters = CCAddParam($this->stock_exchange_id->Parameters, "stock_exchange_id", $this->ds->f("stock_exchange_id"));
                
$this->stock_exchange_id->Page = "berza_maint.php";
                
$this->stock_id->SetValue($this->ds->stock_id->GetValue());
                
$this->exchange_level->SetValue($this->ds->exchange_level->GetValue());
                
$this->exchange_date->SetValue($this->ds->exchange_date->GetValue());
                
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow");
                
$this->stock_exchange_id->Show();
                
$this->stock_id->Show();
                
$this->exchange_level->Show();
                
$this->exchange_date->Show();
                
$Tpl->block_path = $ParentPath . "/" . $GridBlock;
                
$Tpl->parse("Row", true);
                
$ShownRecords++;
                
$is_next_record = $this->ds->next_record();
            } while (
$is_next_record && $ShownRecords < $this->PageSize);
        }
        else
// Show NoRecords block if no records are found
        
{
            
$Tpl->parse("NoRecords", false);
        }

        
$errors = $this->GetErrors();
        if(
strlen($errors))
        {
            
$Tpl->replaceblock("", $errors);
            
$Tpl->block_path = $ParentPath;
            return;
        }
        
$this->Navigator->PageNumber = $this->ds->AbsolutePage;
        
$this->Navigator->TotalPages = $this->ds->PageCount();
        
$this->Sorter_stock_exchange_id->Show();
        
$this->Sorter_stock_id->Show();
        
$this->Sorter_exchange_level->Show();
        
$this->Sorter_exchange_date->Show();
        
$this->berza_Insert->Show();
        
$this->Navigator->Show();
        
$Tpl->parse();
        
$Tpl->block_path = $ParentPath;
        
$this->ds->close();
    }
//End Show Method

//GetErrors Method @2-FD0875D2
    
function GetErrors()
    {
        
$errors = "";
        
$errors .= $this->stock_exchange_id->Errors->ToString();
        
$errors .= $this->stock_id->Errors->ToString();
        
$errors .= $this->exchange_level->Errors->ToString();
        
$errors .= $this->exchange_date->Errors->ToString();
        
$errors .= $this->Errors->ToString();
        
$errors .= $this->ds->Errors->ToString();
        return
$errors;
    }
//End GetErrors Method

} //End berza Class @2-FCB6E20C

class clsberzaDataSource extends clsDBConnection1 {  //berzaDataSource Class @2-DD0F8290

//DataSource Variables @2-7D3982B1
    
var $CCSEvents = "";
    var
$CCSEventResult;
    var
$ErrorBlock;
    var
$CmdExecution;

    var
$CountSQL;
    var
$wp;


    
// Datasource fields
    
var $stock_exchange_id;
    var
$stock_id;
    var
$exchange_level;
    var
$exchange_date;
//End DataSource Variables

//DataSourceClass_Initialize Event @2-CD7DC547
    
function clsberzaDataSource()
    {
        
$this->ErrorBlock = "Grid berza";
        
$this->Initialize();
        
$this->stock_exchange_id = new clsField("stock_exchange_id", ccsInteger, "");
        
$this->stock_id = new clsField("stock_id", ccsText, "");
        
$this->exchange_level = new clsField("exchange_level", ccsFloat, "");
        
$this->exchange_date = new clsField("exchange_date", ccsDate, Array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));

    }
//End DataSourceClass_Initialize Event

//SetOrder Method @2-D7811117
    
function SetOrder($SorterName, $SorterDirection)
    {
        
$this->Order = "";
        
$this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection,
            array(
"Sorter_stock_exchange_id" => array("stock_exchange_id", ""),
            
"Sorter_stock_id" => array("stock_id", ""),
            
"Sorter_exchange_level" => array("exchange_level", ""),
            
"Sorter_exchange_date" => array("exchange_date", "")));
    }
//End SetOrder Method

//Prepare Method @2-DFF3DD87
    
function Prepare()
    {
    }
//End Prepare Method

//Open Method @2-FF213A42
    
function Open()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect");
        
$this->CountSQL = "SELECT COUNT(*)  " .
        
"FROM berza INNER JOIN akcije ON " .
        
"berza.stock_id = akcije.stock_id";
        
$this->SQL = "SELECT stock_exchange_id, berza.stock_id AS berza_stock_id, exchange_level, change_value, exchange_date, exchange_time, name  " .
        
"FROM berza INNER JOIN akcije ON " .
        
"berza.stock_id = akcije.stock_id";
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect");
        
$this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
        
$this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order)));
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect");
    }
//End Open Method

//SetValues Method @2-CCC4AC66
    
function SetValues()
    {
        
$this->stock_exchange_id->SetDBValue(trim($this->f("stock_exchange_id")));
        
$this->stock_id->SetDBValue($this->f("name"));
        
$this->exchange_level->SetDBValue(trim($this->f("exchange_level")));
        
$this->exchange_date->SetDBValue(trim($this->f("exchange_date")));
    }
//End SetValues Method

} //End berzaDataSource Class @2-FCB6E20C

//Include Page implementation @27-58DBA1E3
include_once(RelativePath . "/Footer.php");
//End Include Page implementation

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

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

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

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

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

// Controls
$Header = new clsHeader("");
$Header->BindEvents();
$Header->Initialize();
$Header1 = new clsHeader1("");
$Header1->BindEvents();
$Header1->Initialize();
$berza = new clsGridberza();
$Footer = new clsFooter("");
$Footer->BindEvents();
$Footer->Initialize();
$berza->Initialize();

$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");

if (
$Charset)
    
header("Content-Type: text/html; charset=" . $Charset);
//End Initialize Objects

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

//Execute Components @1-7A2DE08A
$Header->Operations();
$Header1->Operations();
$Footer->Operations();
//End Execute Components

//Go to destination page @1-09D06087
if($Redirect)
{
    
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
    
$DBConnection1->close();
    
header("Location: " . $Redirect);
    
$Header->Class_Terminate();
    unset(
$Header);
    
$Header1->Class_Terminate();
    unset(
$Header1);
    unset(
$berza);
    
$Footer->Class_Terminate();
    unset(
$Footer);
    unset(
$Tpl);
    exit;
}
//End Go to destination page

//Show Page @1-362A79AB
$Header->Show("Header");
$Header1->Show("Header1");
$berza->Show();
$Footer->Show("Footer");
$Tpl->PParse("main", false);
//End Show Page

//Unload Page @1-1BC5DD50
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
$DBConnection1->close();
$Header->Class_Terminate();
unset(
$Header);
$Header1->Class_Terminate();
unset(
$Header1);
unset(
$berza);
$Footer->Class_Terminate();
unset(
$Footer);
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 ]--