!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:     servisi_list.php (11.69 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//Include Common Files @1-9A056143
define("RelativePath", ".");
define("PathToCurrentPage", "/");
define("FileName", "servisi_list.php");
include(
RelativePath . "/Common.php");
include(
RelativePath . "/Template.php");
include(
RelativePath . "/Sorter.php");
include(
RelativePath . "/Navigator.php");
//End Include Common Files

//Include Page implementation @14-3DD2EFDC
include_once(RelativePath . "/Header.php");
//End Include Page implementation

class clsGridservisi { //servisi class @2-59E17169

//Variables @2-6634807E

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

    var
$CCSEvents = "";
    var
$CCSEventResult;

    var
$RelativePath = "";

    
// Grid Controls
    
var $StaticControls;
    var
$RowControls;
    var
$Sorter_id;
    var
$Sorter_imeservisa;
//End Variables

//Class_Initialize Event @2-F07D3F74
    
function clsGridservisi($RelativePath, & $Parent)
    {
        global
$FileName;
        global
$CCSLocales;
        global
$DefaultDateFormat;
        
$this->ComponentName = "servisi";
        
$this->Visible = True;
        
$this->Parent = & $Parent;
        
$this->RelativePath = $RelativePath;
        
$this->Errors = new clsErrors();
        
$this->ErrorBlock = "Grid servisi";
        
$this->DataSource = new clsservisiDataSource($this);
        
$this->ds = & $this->DataSource;
        
$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));
        if (
$this->PageNumber <= 0) $this->PageNumber = 1;
        
$this->SorterName = CCGetParam("servisiOrder", "");
        
$this->SorterDirection = CCGetParam("servisiDir", "");

        
$this->id = & new clsControl(ccsLink, "id", "id", ccsInteger, "", CCGetRequestParam("id", ccsGet), $this);
        
$this->id->Page = "servisi_maint.php";
        
$this->imeservisa = & new clsControl(ccsLabel, "imeservisa", "imeservisa", ccsText, "", CCGetRequestParam("imeservisa", ccsGet), $this);
        
$this->Sorter_id = & new clsSorter($this->ComponentName, "Sorter_id", $FileName, $this);
        
$this->Sorter_imeservisa = & new clsSorter($this->ComponentName, "Sorter_imeservisa", $FileName, $this);
        
$this->servisi_Insert = & new clsControl(ccsLink, "servisi_Insert", "servisi_Insert", ccsText, "", CCGetRequestParam("servisi_Insert", ccsGet), $this);
        
$this->servisi_Insert->Parameters = CCGetQueryString("QueryString", array("id", "ccsForm"));
        
$this->servisi_Insert->Page = "servisi_maint.php";
        
$this->Navigator = & new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpSimple, $this);
    }
//End Class_Initialize Event

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

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

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

        
$ShownRecords = 0;


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


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

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

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


        if((
$ShownRecords < $this->PageSize) && $this->DataSource->next_record())
        {
            do {
                
$this->DataSource->SetValues();
                
$Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
                
$this->id->SetValue($this->DataSource->id->GetValue());
                
$this->id->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
                
$this->id->Parameters = CCAddParam($this->id->Parameters, "id", $this->DataSource->f("id"));
                
$this->imeservisa->SetValue($this->DataSource->imeservisa->GetValue());
                
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
                
$this->id->Show();
                
$this->imeservisa->Show();
                
$Tpl->block_path = $ParentPath . "/" . $GridBlock;
                
$Tpl->parse("Row", true);
                
$ShownRecords++;
            } while ((
$ShownRecords < $this->PageSize) && $this->DataSource->next_record());
        }
        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->DataSource->AbsolutePage;
        if (
$this->DataSource->RecordsCount == "CCS not counted")
            
$this->Navigator->TotalPages = $this->DataSource->AbsolutePage + ($this->DataSource->next_record() ? 1 : 0);
        else
            
$this->Navigator->TotalPages = $this->DataSource->PageCount();
        
$this->Sorter_id->Show();
        
$this->Sorter_imeservisa->Show();
        
$this->servisi_Insert->Show();
        
$this->Navigator->Show();
        
$Tpl->parse();
        
$Tpl->block_path = $ParentPath;
        
$this->DataSource->close();
    }
//End Show Method

//GetErrors Method @2-DFAE9678
    
function GetErrors()
    {
        
$errors = "";
        
$errors = ComposeStrings($errors, $this->id->Errors->ToString());
        
$errors = ComposeStrings($errors, $this->imeservisa->Errors->ToString());
        
$errors = ComposeStrings($errors, $this->Errors->ToString());
        
$errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
        return
$errors;
    }
//End GetErrors Method

} //End servisi Class @2-FCB6E20C

class clsservisiDataSource extends clsDBConnection1 {  //servisiDataSource Class @2-B63E1360

//DataSource Variables @2-58618162
    
var $Parent = "";
    var
$CCSEvents = "";
    var
$CCSEventResult;
    var
$ErrorBlock;
    var
$CmdExecution;

    var
$CountSQL;
    var
$wp;


    
// Datasource fields
    
var $id;
    var
$imeservisa;
//End DataSource Variables

//DataSourceClass_Initialize Event @2-E2BB1A84
    
function clsservisiDataSource(& $Parent)
    {
        
$this->Parent = & $Parent;
        
$this->ErrorBlock = "Grid servisi";
        
$this->Initialize();
        
$this->id = new clsField("id", ccsInteger, "");
        
$this->imeservisa = new clsField("imeservisa", ccsText, "");

    }
//End DataSourceClass_Initialize Event

//SetOrder Method @2-5B723FEF
    
function SetOrder($SorterName, $SorterDirection)
    {
        
$this->Order = "";
        
$this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection,
            array(
"Sorter_id" => array("id", ""),
            
"Sorter_imeservisa" => array("imeservisa", "")));
    }
//End SetOrder Method

//Prepare Method @2-14D6CD9D
    
function Prepare()
    {
        global
$CCSLocales;
        global
$DefaultDateFormat;
    }
//End Prepare Method

//Open Method @2-05CB5EB7
    
function Open()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
        
$this->CountSQL = "SELECT COUNT(*) " .
        
"FROM servisi";
        
$this->SQL = "SELECT id, imeservisa  " .
        
"FROM servisi {SQL_Where} {SQL_OrderBy}";
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent);
        if (
$this->CountSQL)
            
$this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
        else
            
$this->RecordsCount = "CCS not counted";
        
$this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order)));
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent);
    }
//End Open Method

//SetValues Method @2-A71C4FD9
    
function SetValues()
    {
        
$this->id->SetDBValue(trim($this->f("id")));
        
$this->imeservisa->SetDBValue($this->f("imeservisa"));
    }
//End SetValues Method

} //End servisiDataSource Class @2-FCB6E20C

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

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

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

$FileName = FileName;
$Redirect = "";
$TemplateFileName = "servisi_list.html";
$BlockToParse = "main";
$TemplateEncoding = "CP1252";
$PathToRoot = "./";
//End Initialize Page

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

//Initialize Objects @1-D02230D5
$DBConnection1 = new clsDBConnection1();
$MainPage->Connections["Connection1"] = & $DBConnection1;

// Controls
$Header = & new clsHeader("", "Header", $MainPage);
$Header->Initialize();
$servisi = & new clsGridservisi("", $MainPage);
$Footer = & new clsFooter("", "Footer", $MainPage);
$Footer->Initialize();
$MainPage->Header = & $Header;
$MainPage->servisi = & $servisi;
$MainPage->Footer = & $Footer;
$servisi->Initialize();

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

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

//Initialize HTML Template @1-8F4531F3
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage);
$Tpl = new clsTemplate($FileEncoding, $TemplateEncoding);
$Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "CP1252");
$Tpl->block_path = "/$BlockToParse";
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage);
//End Initialize HTML Template

//Execute Components @1-351F985C
$Header->Operations();
$Footer->Operations();
//End Execute Components

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

//Show Page @1-7BC94E67
$Header->Show();
$servisi->Show();
$Footer->Show();
$Tpl->block_path = "";
$Tpl->Parse($BlockToParse, false);
$main_block = $Tpl->GetVar($BlockToParse);
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage);
if (
$CCSEventResult) echo $main_block;
//End Show Page

//Unload Page @1-FF767E2E
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBConnection1->close();
$Header->Class_Terminate();
unset(
$Header);
unset(
$servisi);
$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.004 ]--