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


Viewing file:     dokumenti_list.php (16.7 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 @24-39DC296A
include_once("./Header.php");
//End Include Page implementation

Class clsRecorddokumentiSearch { //dokumentiSearch Class @2-FF486419

//Variables @2-CB19EB75

    // 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
$ds;
    var
$EditMode;
    var
$ValidatingControls;
    var
$Controls;

    
// Class variables
//End Variables

//Class_Initialize Event @2-BF547E74
    
function clsRecorddokumentiSearch()
    {

        global
$FileName;
        
$this->Visible = true;
        
$this->Errors = new clsErrors();
        
$this->ErrorBlock = "Record dokumentiSearch/Error";
        
$this->ReadAllowed = false;
        
$this->InsertAllowed = false;
        
$this->UpdateAllowed = false;
        
$this->DeleteAllowed = false;
        if(
$this->Visible)
        {
            
$this->ComponentName = "dokumentiSearch";
            
$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->s_keyword = new clsControl(ccsTextBox, "s_keyword", "s_keyword", ccsText, "", CCGetRequestParam("s_keyword", $Method));
            
$this->Button_DoSearch = new clsButton("Button_DoSearch");
        }
    }
//End Class_Initialize Event

//Validate Method @2-F230E30A
    
function Validate()
    {
        
$Validation = true;
        
$Where = "";
        
$Validation = ($this->s_keyword->Validate() && $Validation);
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate");
        return ((
$this->Errors->Count() == 0) && $Validation);
    }
//End Validate Method

//CheckErrors Method @2-D6729123
    
function CheckErrors()
    {
        
$errors = false;
        
$errors = ($errors || $this->s_keyword->Errors->Count());
        
$errors = ($errors || $this->Errors->Count());
        return
$errors;
    }
//End CheckErrors Method

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

        global
$Redirect;
        global
$FileName;

        
$this->EditMode = false;
        if(!
$this->FormSubmitted)
            return;

        if(
$this->FormSubmitted) {
            
$this->PressedButton = "Button_DoSearch";
            if(
strlen(CCGetParam("Button_DoSearch", ""))) {
                
$this->PressedButton = "Button_DoSearch";
            }
        }
        
$Redirect = "dokumenti_list.php";
        if(
$this->Validate()) {
            if(
$this->PressedButton == "Button_DoSearch") {
                if(!
CCGetEvent($this->Button_DoSearch->CCSEvents, "OnClick")) {
                    
$Redirect = "";
                } else {
                    
$Redirect = "dokumenti_list.php" . "?" . CCMergeQueryStrings(CCGetQueryString("Form", Array("Button_DoSearch")));
                }
            }
        } else {
            
$Redirect = "";
        }
    }
//End Operation Method

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

        if(!
$this->Visible)
            return;

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


        
$RecordBlock = "Record " . $this->ComponentName;
        
$ParentPath = $Tpl->block_path;
        
$Tpl->block_path = $ParentPath . "/" . $RecordBlock;
        if(!
$this->FormSubmitted)
        {
        }

        if(
$this->FormSubmitted || $this->CheckErrors()) {
            
$Error .= $this->s_keyword->Errors->ToString();
            
$Error .= $this->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->s_keyword->Show();
        
$this->Button_DoSearch->Show();
        
$Tpl->parse();
        
$Tpl->block_path = $ParentPath;
    }
//End Show Method

} //End dokumentiSearch Class @2-FCB6E20C

class clsGriddokumenti { //dokumenti class @6-41F6DD22

//Variables @6-B55E9576

    // 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_dokumeta;
    var
$Sorter_datum;
    var
$Sorter_unio;
    var
$Navigator;
//End Variables

//Class_Initialize Event @6-17739E49
    
function clsGriddokumenti()
    {
        global
$FileName;
        
$this->ComponentName = "dokumenti";
        
$this->Visible = True;
        
$this->Errors = new clsErrors();
        
$this->ErrorBlock = "Grid dokumenti";
        
$this->ds = new clsdokumentiDataSource();
        
$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("dokumentiOrder", "");
        
$this->SorterDirection = CCGetParam("dokumentiDir", "");

        
$this->id_dokumeta = new clsControl(ccsLink, "id_dokumeta", "id_dokumeta", ccsInteger, "", CCGetRequestParam("id_dokumeta", ccsGet));
        
$this->datum = new clsControl(ccsLabel, "datum", "datum", ccsDate, Array("GeneralDate"), CCGetRequestParam("datum", ccsGet));
        
$this->unio = new clsControl(ccsLabel, "unio", "unio", ccsInteger, "", CCGetRequestParam("unio", ccsGet));
        
$this->Sorter_id_dokumeta = new clsSorter($this->ComponentName, "Sorter_id_dokumeta", $FileName);
        
$this->Sorter_datum = new clsSorter($this->ComponentName, "Sorter_datum", $FileName);
        
$this->Sorter_unio = new clsSorter($this->ComponentName, "Sorter_unio", $FileName);
        
$this->dokumenti_Insert = new clsControl(ccsLink, "dokumenti_Insert", "dokumenti_Insert", ccsText, "", CCGetRequestParam("dokumenti_Insert", ccsGet));
        
$this->dokumenti_Insert->Parameters = CCGetQueryString("QueryString", Array("id_dokumeta", "ccsForm"));
        
$this->dokumenti_Insert->Page = "dokumenti_maint.php";
        
$this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpSimple);
    }
//End Class_Initialize Event

//Initialize Method @6-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 @6-55965F88
    
function Show()
    {
        global
$Tpl;
        if(!
$this->Visible) return;

        
$ShownRecords = 0;

        
$this->ds->Parameters["urls_keyword"] = CCGetFromGet("s_keyword", "");

        
$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_dokumeta->SetValue($this->ds->id_dokumeta->GetValue());
                
$this->id_dokumeta->Parameters = CCGetQueryString("QueryString", Array("ccsForm"));
                
$this->id_dokumeta->Parameters = CCAddParam($this->id_dokumeta->Parameters, "id_dokumeta", $this->ds->f("id_dokumeta"));
                
$this->id_dokumeta->Page = "dokumenti_maint.php";
                
$this->datum->SetValue($this->ds->datum->GetValue());
                
$this->unio->SetValue($this->ds->unio->GetValue());
                
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow");
                
$this->id_dokumeta->Show();
                
$this->datum->Show();
                
$this->unio->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_dokumeta->Show();
        
$this->Sorter_datum->Show();
        
$this->Sorter_unio->Show();
        
$this->dokumenti_Insert->Show();
        
$this->Navigator->Show();
        
$Tpl->parse();
        
$Tpl->block_path = $ParentPath;
        
$this->ds->close();
    }
//End Show Method

//GetErrors Method @6-1726FDCA
    
function GetErrors()
    {
        
$errors = "";
        
$errors .= $this->id_dokumeta->Errors->ToString();
        
$errors .= $this->datum->Errors->ToString();
        
$errors .= $this->unio->Errors->ToString();
        
$errors .= $this->Errors->ToString();
        
$errors .= $this->ds->Errors->ToString();
        return
$errors;
    }
//End GetErrors Method

} //End dokumenti Class @6-FCB6E20C

class clsdokumentiDataSource extends clsDBConnection1 {  //dokumentiDataSource Class @6-8106AA55

//DataSource Variables @6-0FF3EC5E
    
var $CCSEvents = "";
    var
$CCSEventResult;
    var
$ErrorBlock;

    var
$CountSQL;
    var
$wp;


    
// Datasource fields
    
var $id_dokumeta;
    var
$datum;
    var
$unio;
//End DataSource Variables

//Class_Initialize Event @6-EE29B50E
    
function clsdokumentiDataSource()
    {
        
$this->ErrorBlock = "Grid dokumenti";
        
$this->Initialize();
        
$this->id_dokumeta = new clsField("id_dokumeta", ccsInteger, "");
        
$this->datum = new clsField("datum", ccsDate, Array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
        
$this->unio = new clsField("unio", ccsInteger, "");

    }
//End Class_Initialize Event

//SetOrder Method @6-4B4F0FB9
    
function SetOrder($SorterName, $SorterDirection)
    {
        
$this->Order = "";
        
$this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection,
            array(
"Sorter_id_dokumeta" => array("id_dokumeta", ""),
            
"Sorter_datum" => array("datum", ""),
            
"Sorter_unio" => array("unio", "")));
    }
//End SetOrder Method

//Prepare Method @6-087E8A22
    
function Prepare()
    {
        
$this->wp = new clsSQLParameters($this->ErrorBlock);
        
$this->wp->AddParameter("1", "urls_keyword", ccsMemo, "", "", $this->Parameters["urls_keyword"], "", false);
        
$this->wp->AddParameter("2", "urls_keyword", ccsMemo, "", "", $this->Parameters["urls_keyword"], "", false);
        
$this->wp->AddParameter("3", "urls_keyword", ccsMemo, "", "", $this->Parameters["urls_keyword"], "", false);
        
$this->wp->Criterion[1] = $this->wp->Operation(opContains, "naslov", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsMemo),false);
        
$this->wp->Criterion[2] = $this->wp->Operation(opContains, "tekst", $this->wp->GetDBValue("2"), $this->ToSQL($this->wp->GetDBValue("2"), ccsMemo),false);
        
$this->wp->Criterion[3] = $this->wp->Operation(opContains, "imefajla", $this->wp->GetDBValue("3"), $this->ToSQL($this->wp->GetDBValue("3"), ccsMemo),false);
        
$this->Where = $this->wp->opOR(false, $this->wp->opOR(false, $this->wp->Criterion[1], $this->wp->Criterion[2]), $this->wp->Criterion[3]);
    }
//End Prepare Method

//Open Method @6-EBF8D421
    
function Open()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect");
        
$this->CountSQL = "SELECT COUNT(*)  " .
        
"FROM dokumenti";
        
$this->SQL = "SELECT id_dokumeta, datum, unio  " .
        
"FROM dokumenti";
        
$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 @6-E87D5203
    
function SetValues()
    {
        
$this->id_dokumeta->SetDBValue(trim($this->f("id_dokumeta")));
        
$this->datum->SetDBValue(trim($this->f("datum")));
        
$this->unio->SetDBValue(trim($this->f("unio")));
    }
//End SetValues Method

} //End dokumentiDataSource Class @6-FCB6E20C

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

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

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

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

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

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

// Controls
$Header = new clsHeader();
$Header->BindEvents();
$Header->TemplatePath = "./";
$Header->Initialize();
$dokumentiSearch = new clsRecorddokumentiSearch();
$dokumenti = new clsGriddokumenti();
$Footer = new clsFooter();
$Footer->BindEvents();
$Footer->TemplatePath = "./";
$Footer->Initialize();
$dokumenti->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-D564AB8A
$Header->Operations();
$dokumentiSearch->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-C13E1C04
$Header->Show("Header");
$dokumentiSearch->Show();
$dokumenti->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.0054 ]--