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


Viewing file:     e_mail_izd_list.php (14.01 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//Include Common Files @1-DECC58B3
define("RelativePath", ".");
define("PathToCurrentPage", "/");
define("FileName", "e_mail_izd_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 @16-3DD2EFDC
include_once(RelativePath . "/Header.php");
//End Include Page implementation



class clsGride_mail_izdanja { //e_mail_izdanja class @6-FBB4F14E

//Variables @6-2CF845F1

    // Public variables
    
public $ComponentType = "Grid";
    public
$ComponentName;
    public
$Visible;
    public
$Errors;
    public
$ErrorBlock;
    public
$ds;
    public
$DataSource;
    public
$PageSize;
    public
$IsEmpty;
    public
$ForceIteration = false;
    public
$HasRecord = false;
    public
$SorterName = "";
    public
$SorterDirection = "";
    public
$PageNumber;
    public
$RowNumber;
    public
$ControlsVisible = array();

    public
$CCSEvents = "";
    public
$CCSEventResult;

    public
$RelativePath = "";
    public
$Attributes;

    
// Grid Controls
    
public $StaticControls;
    public
$RowControls;
    public
$Sorter_id_email_izdanja;
    public
$Sorter1;
//End Variables

//Class_Initialize Event @6-23E3AD08
    
function clsGride_mail_izdanja($RelativePath, & $Parent)
    {
        global
$FileName;
        global
$CCSLocales;
        global
$DefaultDateFormat;
        
$this->ComponentName = "e_mail_izdanja";
        
$this->Visible = True;
        
$this->Parent = & $Parent;
        
$this->RelativePath = $RelativePath;
        
$this->Errors = new clsErrors();
        
$this->ErrorBlock = "Grid e_mail_izdanja";
        
$this->Attributes = new clsAttributes($this->ComponentName . ":");
        
$this->DataSource = new clse_mail_izdanjaDataSource($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("e_mail_izdanjaOrder", "");
        
$this->SorterDirection = CCGetParam("e_mail_izdanjaDir", "");

        
$this->id_email_izdanja = new clsControl(ccsLink, "id_email_izdanja", "id_email_izdanja", ccsInteger, "", CCGetRequestParam("id_email_izdanja", ccsGet, NULL), $this);
        
$this->id_email_izdanja->Page = "e_mail_izd_maint.php";
        
$this->Label1 = new clsControl(ccsLabel, "Label1", "Label1", ccsText, "", CCGetRequestParam("Label1", ccsGet, NULL), $this);
        
$this->Link1 = new clsControl(ccsLink, "Link1", "Link1", ccsText, "", CCGetRequestParam("Link1", ccsGet, NULL), $this);
        
$this->Link1->Page = "izdanja_maint.php";
        
$this->Sorter_id_email_izdanja = new clsSorter($this->ComponentName, "Sorter_id_email_izdanja", $FileName, $this);
        
$this->Sorter1 = new clsSorter($this->ComponentName, "Sorter1", $FileName, $this);
        
$this->e_mail_izdanja_Insert = new clsControl(ccsLink, "e_mail_izdanja_Insert", "e_mail_izdanja_Insert", ccsText, "", CCGetRequestParam("e_mail_izdanja_Insert", ccsGet, NULL), $this);
        
$this->e_mail_izdanja_Insert->Parameters = CCGetQueryString("QueryString", array("id_email_izdanja", "ccsForm"));
        
$this->e_mail_izdanja_Insert->Page = "e_mail_izd_maint.php";
        
$this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpSimple, $this);
    }
//End Class_Initialize Event

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

        
$this->RowNumber = 0;

        
$this->DataSource->Parameters["urls_naziv_email_izdanja"] = CCGetFromGet("s_naziv_email_izdanja", NULL);

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


        
$this->DataSource->Prepare();
        
$this->DataSource->Open();
        
$this->HasRecord = $this->DataSource->has_next_record();
        
$this->IsEmpty = ! $this->HasRecord;
        
$this->Attributes->Show();

        
$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 (!
$this->IsEmpty) {
            
$this->ControlsVisible["id_email_izdanja"] = $this->id_email_izdanja->Visible;
            
$this->ControlsVisible["Label1"] = $this->Label1->Visible;
            
$this->ControlsVisible["Link1"] = $this->Link1->Visible;
            while (
$this->ForceIteration || (($this->RowNumber < $this->PageSize) &&  ($this->HasRecord = $this->DataSource->has_next_record()))) {
                
$this->RowNumber++;
                if (
$this->HasRecord) {
                    
$this->DataSource->next_record();
                    
$this->DataSource->SetValues();
                }
                
$Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
                
$this->id_email_izdanja->SetValue($this->DataSource->id_email_izdanja->GetValue());
                
$this->id_email_izdanja->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
                
$this->id_email_izdanja->Parameters = CCAddParam($this->id_email_izdanja->Parameters, "id_email_izdanja", $this->DataSource->f("id_email_izdanja"));
                
$this->Label1->SetValue($this->DataSource->Label1->GetValue());
                
$this->Link1->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
                
$this->Link1->Parameters = CCAddParam($this->Link1->Parameters, "id_email_izdanja", $this->DataSource->f("id_email_izdanja"));
                
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
                
$this->Attributes->Show();
                
$this->id_email_izdanja->Show();
                
$this->Label1->Show();
                
$this->Link1->Show();
                
$Tpl->block_path = $ParentPath . "/" . $GridBlock;
                
$Tpl->parse("Row", true);
            }
        }
        else {
// Show NoRecords block if no records are found
            
$this->Attributes->Show();
            
$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_email_izdanja->Show();
        
$this->Sorter1->Show();
        
$this->e_mail_izdanja_Insert->Show();
        
$this->Navigator->Show();
        
$Tpl->parse();
        
$Tpl->block_path = $ParentPath;
        
$this->DataSource->close();
    }
//End Show Method

//GetErrors Method @6-0D0D7C3E
    
function GetErrors()
    {
        
$errors = "";
        
$errors = ComposeStrings($errors, $this->id_email_izdanja->Errors->ToString());
        
$errors = ComposeStrings($errors, $this->Label1->Errors->ToString());
        
$errors = ComposeStrings($errors, $this->Link1->Errors->ToString());
        
$errors = ComposeStrings($errors, $this->Errors->ToString());
        
$errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
        return
$errors;
    }
//End GetErrors Method

} //End e_mail_izdanja Class @6-FCB6E20C

class clse_mail_izdanjaDataSource extends clsDBConnection1 {  //e_mail_izdanjaDataSource Class @6-37DE4D46

//DataSource Variables @6-FA0BFAB9
    
public $Parent = "";
    public
$CCSEvents = "";
    public
$CCSEventResult;
    public
$ErrorBlock;
    public
$CmdExecution;

    public
$CountSQL;
    public
$wp;


    
// Datasource fields
    
public $id_email_izdanja;
    public
$Label1;
//End DataSource Variables

//DataSourceClass_Initialize Event @6-6AEC47DE
    
function clse_mail_izdanjaDataSource(& $Parent)
    {
        
$this->Parent = & $Parent;
        
$this->ErrorBlock = "Grid e_mail_izdanja";
        
$this->Initialize();
        
$this->id_email_izdanja = new clsField("id_email_izdanja", ccsInteger, "");
        
$this->Label1 = new clsField("Label1", ccsText, "");

    }
//End DataSourceClass_Initialize Event

//SetOrder Method @6-7B30CA1D
    
function SetOrder($SorterName, $SorterDirection)
    {
        
$this->Order = "";
        
$this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection,
            array(
"Sorter_id_email_izdanja" => array("id_email_izdanja", ""),
            
"Sorter1" => array("naziv_email_izdanja", "")));
    }
//End SetOrder Method

//Prepare Method @6-124FBB92
    
function Prepare()
    {
        global
$CCSLocales;
        global
$DefaultDateFormat;
        
$this->wp = new clsSQLParameters($this->ErrorBlock);
        
$this->wp->AddParameter("1", "urls_naziv_email_izdanja", ccsMemo, "", "", $this->Parameters["urls_naziv_email_izdanja"], "", false);
        
$this->wp->Criterion[1] = $this->wp->Operation(opContains, "naziv_email_izdanja", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsMemo),false);
        
$this->Where =
             
$this->wp->Criterion[1];
    }
//End Prepare Method

//Open Method @6-35AC4A5A
    
function Open()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
        
$this->CountSQL = "SELECT COUNT(*)\n\n" .
        
"FROM e_mail_izdanja";
        
$this->SQL = "SELECT * \n\n" .
        
"FROM e_mail_izdanja {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 @6-9B46374A
    
function SetValues()
    {
        
$this->id_email_izdanja->SetDBValue(trim($this->f("id_email_izdanja")));
        
$this->Label1->SetDBValue($this->f("naziv_email_izdanja"));
    }
//End SetValues Method

} //End e_mail_izdanjaDataSource Class @6-FCB6E20C

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

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

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

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

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

//Before Initialize @1-E870CEBC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage);
//End Before Initialize

//Initialize Objects @1-7532EBBF
$DBConnection1 = new clsDBConnection1();
$MainPage->Connections["Connection1"] = & $DBConnection1;
$Attributes = new clsAttributes("page:");
$MainPage->Attributes = & $Attributes;

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

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

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

//Initialize HTML Template @1-593C2978
$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);
$Attributes->Show();
//End Initialize HTML Template

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

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

//Show Page @1-F6A4B9CE
$Header->Show();
$e_mail_izdanja->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-B0B9AD1C
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBConnection1->close();
$Header->Class_Terminate();
unset(
$Header);
unset(
$e_mail_izdanja);
$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.0045 ]--