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


Viewing file:     radna_tije_list.php (10.45 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 clsGridradna_tijela { //radna_tijela class @2-96E07768

//Variables @2-01A19FE0

    // 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_id_radnog_tijela;
    var
$Sorter_naziv_radnog_tijela;
    var
$Navigator;
//End Variables

//Class_Initialize Event @2-F9708A7F
    
function clsGridradna_tijela()
    {
        global
$FileName;
        
$this->ComponentName = "radna_tijela";
        
$this->Visible = True;
        
$this->Errors = new clsErrors();
        
$this->ErrorBlock = "Grid radna_tijela";
        
$this->ds = new clsradna_tijelaDataSource();
        
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
        if(!
is_numeric($this->PageSize) || !strlen($this->PageSize))
            
$this->PageSize = 20;
        else if (
$this->PageSize > 100)
            
$this->PageSize = 100;
        else
            
$this->PageSize = intval($this->PageSize);
        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("radna_tijelaOrder", "");
        
$this->SorterDirection = CCGetParam("radna_tijelaDir", "");

        
$this->id_radnog_tijela = new clsControl(ccsLink, "id_radnog_tijela", "id_radnog_tijela", ccsInteger, "", CCGetRequestParam("id_radnog_tijela", ccsGet));
        
$this->naziv_radnog_tijela = new clsControl(ccsLabel, "naziv_radnog_tijela", "naziv_radnog_tijela", ccsInteger, "", CCGetRequestParam("naziv_radnog_tijela", ccsGet));
        
$this->Sorter_id_radnog_tijela = new clsSorter($this->ComponentName, "Sorter_id_radnog_tijela", $FileName);
        
$this->Sorter_naziv_radnog_tijela = new clsSorter($this->ComponentName, "Sorter_naziv_radnog_tijela", $FileName);
        
$this->radna_tijela_Insert = new clsControl(ccsLink, "radna_tijela_Insert", "radna_tijela_Insert", ccsText, "", CCGetRequestParam("radna_tijela_Insert", ccsGet));
        
$this->radna_tijela_Insert->Parameters = CCGetQueryString("QueryString", Array("id_radnog_tijela", "ccsForm"));
        
$this->radna_tijela_Insert->Page = "radna_tije_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-E19437C1
    
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->id_radnog_tijela->SetValue($this->ds->id_radnog_tijela->GetValue());
                
$this->id_radnog_tijela->Parameters = CCGetQueryString("QueryString", Array("ccsForm"));
                
$this->id_radnog_tijela->Parameters = CCAddParam($this->id_radnog_tijela->Parameters, "id_radnog_tijela", $this->ds->f("id_radnog_tijela"));
                
$this->id_radnog_tijela->Page = "radna_tije_maint.php";
                
$this->naziv_radnog_tijela->SetValue($this->ds->naziv_radnog_tijela->GetValue());
                
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow");
                
$this->id_radnog_tijela->Show();
                
$this->naziv_radnog_tijela->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_id_radnog_tijela->Show();
        
$this->Sorter_naziv_radnog_tijela->Show();
        
$this->radna_tijela_Insert->Show();
        
$this->Navigator->Show();
        
$Tpl->parse();
        
$Tpl->block_path = $ParentPath;
        
$this->ds->close();
    }
//End Show Method

//GetErrors Method @2-E5640554
    
function GetErrors()
    {
        
$errors = "";
        
$errors .= $this->id_radnog_tijela->Errors->ToString();
        
$errors .= $this->naziv_radnog_tijela->Errors->ToString();
        
$errors .= $this->Errors->ToString();
        
$errors .= $this->ds->Errors->ToString();
        return
$errors;
    }
//End GetErrors Method

} //End radna_tijela Class @2-FCB6E20C

class clsradna_tijelaDataSource extends clsDBConnection1 {  //radna_tijelaDataSource Class @2-8731B71A

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

    var
$CountSQL;
    var
$wp;


    
// Datasource fields
    
var $id_radnog_tijela;
    var
$naziv_radnog_tijela;
//End DataSource Variables

//Class_Initialize Event @2-7D110F7C
    
function clsradna_tijelaDataSource()
    {
        
$this->ErrorBlock = "Grid radna_tijela";
        
$this->Initialize();
        
$this->id_radnog_tijela = new clsField("id_radnog_tijela", ccsInteger, "");
        
$this->naziv_radnog_tijela = new clsField("naziv_radnog_tijela", ccsInteger, "");

    }
//End Class_Initialize Event

//SetOrder Method @2-466DE265
    
function SetOrder($SorterName, $SorterDirection)
    {
        
$this->Order = "";
        
$this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection,
            array(
"Sorter_id_radnog_tijela" => array("id_radnog_tijela", ""),
            
"Sorter_naziv_radnog_tijela" => array("naziv_radnog tijela", "")));
    }
//End SetOrder Method

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

//Open Method @2-6E33A57D
    
function Open()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect");
        
$this->CountSQL = "SELECT COUNT(*)  " .
        
"FROM radna_tijela";
        
$this->SQL = "SELECT id_radnog_tijela, `naziv_radnog tijela`  " .
        
"FROM radna_tijela";
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect");
        
$this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
        
$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-B802AA4E
    
function SetValues()
    {
        
$this->id_radnog_tijela->SetDBValue(trim($this->f("id_radnog_tijela")));
        
$this->naziv_radnog_tijela->SetDBValue(trim($this->f("naziv_radnog tijela")));
    }
//End SetValues Method

} //End radna_tijelaDataSource Class @2-FCB6E20C

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

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

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

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

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

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

// Controls
$Header = new clsHeader();
$Header->BindEvents();
$Header->TemplatePath = "./";
$Header->Initialize();
$radna_tijela = new clsGridradna_tijela();
$Footer = new clsFooter();
$Footer->BindEvents();
$Footer->TemplatePath = "./";
$Footer->Initialize();
$radna_tijela->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-351F985C
$Header->Operations();
$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-6B3DD174
$Header->Show("Header");
$radna_tijela->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.0039 ]--