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


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

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

class clsGridgrad { //grad class @6-B9C0E728

//Variables @6-245B31F5

    // 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_sity_id;
    var
$Sorter1;
    var
$Navigator;
//End Variables

//Class_Initialize Event @6-4285DB5F
    
function clsGridgrad()
    {
        global
$FileName;
        
$this->ComponentName = "grad";
        
$this->Visible = True;
        
$this->Errors = new clsErrors();
        
$this->ErrorBlock = "Grid grad";
        
$this->ds = new clsgradDataSource();
        
$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("gradOrder", "");
        
$this->SorterDirection = CCGetParam("gradDir", "");

        
$this->sity_id = new clsControl(ccsLink, "sity_id", "sity_id", ccsInteger, "", CCGetRequestParam("sity_id", ccsGet));
        
$this->Link1 = new clsControl(ccsLink, "Link1", "Link1", ccsText, "", CCGetRequestParam("Link1", ccsGet));
        
$this->Sorter_sity_id = new clsSorter($this->ComponentName, "Sorter_sity_id", $FileName);
        
$this->Sorter1 = new clsSorter($this->ComponentName, "Sorter1", $FileName);
        
$this->grad_Insert = new clsControl(ccsLink, "grad_Insert", "grad_Insert", ccsText, "", CCGetRequestParam("grad_Insert", ccsGet));
        
$this->grad_Insert->Parameters = CCGetQueryString("QueryString", Array("sity_id", "ccsForm"));
        
$this->grad_Insert->Page = "grad_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-D066FEC8
    
function Show()
    {
        global
$Tpl;
        if(!
$this->Visible) return;

        
$ShownRecords = 0;

        
$this->ds->Parameters["urls_name"] = CCGetFromGet("s_name", "");

        
$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->sity_id->SetValue($this->ds->sity_id->GetValue());
                
$this->sity_id->Parameters = CCGetQueryString("QueryString", Array("ccsForm"));
                
$this->sity_id->Parameters = CCAddParam($this->sity_id->Parameters, "sity_id", $this->ds->f("sity_id"));
                
$this->sity_id->Page = "grad_maint.php";
                
$this->Link1->SetValue($this->ds->Link1->GetValue());
                
$this->Link1->Parameters = CCGetQueryString("QueryString", Array("ccsForm"));
                
$this->Link1->Parameters = CCAddParam($this->Link1->Parameters, "sity_id", $this->ds->f("sity_id"));
                
$this->Link1->Page = "grad_maint.php";
                
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow");
                
$this->sity_id->Show();
                
$this->Link1->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_sity_id->Show();
        
$this->Sorter1->Show();
        
$this->grad_Insert->Show();
        
$this->Navigator->Show();
        
$Tpl->parse();
        
$Tpl->block_path = $ParentPath;
        
$this->ds->close();
    }
//End Show Method

//GetErrors Method @6-F8401106
    
function GetErrors()
    {
        
$errors = "";
        
$errors .= $this->sity_id->Errors->ToString();
        
$errors .= $this->Link1->Errors->ToString();
        
$errors .= $this->Errors->ToString();
        
$errors .= $this->ds->Errors->ToString();
        return
$errors;
    }
//End GetErrors Method

} //End grad Class @6-FCB6E20C

class clsgradDataSource extends clsDBConnection1 {  //gradDataSource Class @6-DDEF380E

//DataSource Variables @6-5A44E8DA
    
var $CCSEvents = "";
    var
$CCSEventResult;
    var
$ErrorBlock;
    var
$CmdExecution;

    var
$CountSQL;
    var
$wp;


    
// Datasource fields
    
var $sity_id;
    var
$Link1;
//End DataSource Variables

//DataSourceClass_Initialize Event @6-D43B51DF
    
function clsgradDataSource()
    {
        
$this->ErrorBlock = "Grid grad";
        
$this->Initialize();
        
$this->sity_id = new clsField("sity_id", ccsInteger, "");
        
$this->Link1 = new clsField("Link1", ccsText, "");

    }
//End DataSourceClass_Initialize Event

//SetOrder Method @6-7BACE01D
    
function SetOrder($SorterName, $SorterDirection)
    {
        
$this->Order = "";
        
$this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection,
            array(
"Sorter_sity_id" => array("sity_id", ""),
            
"Sorter1" => array("name", "")));
    }
//End SetOrder Method

//Prepare Method @6-AC7922AA
    
function Prepare()
    {
        
$this->wp = new clsSQLParameters($this->ErrorBlock);
        
$this->wp->AddParameter("1", "urls_name", ccsMemo, "", "", $this->Parameters["urls_name"], "", false);
        
$this->wp->Criterion[1] = $this->wp->Operation(opContains, "name", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsMemo),false);
        
$this->Where =
             
$this->wp->Criterion[1];
    }
//End Prepare Method

//Open Method @6-BBBF53D7
    
function Open()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect");
        
$this->CountSQL = "SELECT COUNT(*)  " .
        
"FROM grad";
        
$this->SQL = "SELECT sity_id, name  " .
        
"FROM grad";
        
$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 @6-CA428216
    
function SetValues()
    {
        
$this->sity_id->SetDBValue(trim($this->f("sity_id")));
        
$this->Link1->SetDBValue($this->f("name"));
    }
//End SetValues Method

} //End gradDataSource Class @6-FCB6E20C

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

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

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

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

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

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

// Controls
$Header = new clsHeader("");
$Header->BindEvents();
$Header->Initialize();
$Header1 = new clsHeader1("");
$Header1->BindEvents();
$Header1->Initialize();
$grad = new clsGridgrad();
$Footer = new clsFooter("");
$Footer->BindEvents();
$Footer->Initialize();
$grad->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-90EEFBDB
if($Redirect)
{
    
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
    
$DBConnection1->close();
    
header("Location: " . $Redirect);
    
$Header->Class_Terminate();
    unset(
$Header);
    
$Header1->Class_Terminate();
    unset(
$Header1);
    unset(
$grad);
    
$Footer->Class_Terminate();
    unset(
$Footer);
    unset(
$Tpl);
    exit;
}
//End Go to destination page

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

//Unload Page @1-6A919F04
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
$DBConnection1->close();
$Header->Class_Terminate();
unset(
$Header);
$Header1->Class_Terminate();
unset(
$Header1);
unset(
$grad);
$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.0048 ]--