!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:     newsletter_maint.php (19.94 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 @12-3DD2EFDC
include_once(RelativePath . "/Header.php");
//End Include Page implementation

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

class clsRecordnewsletter_korisnici { //newsletter_korisnici Class @2-98F61110

//Variables @2-B2F7A83E

    // 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
$InsertAllowed = false;
    var
$UpdateAllowed = false;
    var
$DeleteAllowed = false;
    var
$ReadAllowed   = false;
    var
$EditMode      = false;
    var
$ds;
    var
$ValidatingControls;
    var
$Controls;

    
// Class variables
//End Variables

//Class_Initialize Event @2-18CCCCBF
    
function clsRecordnewsletter_korisnici()
    {

        global
$FileName;
        
$this->Visible = true;
        
$this->Errors = new clsErrors();
        
$this->ErrorBlock = "Record newsletter_korisnici/Error";
        
$this->ds = new clsnewsletter_korisniciDataSource();
        
$this->InsertAllowed = true;
        
$this->UpdateAllowed = true;
        
$this->DeleteAllowed = true;
        
$this->ReadAllowed = true;
        if(
$this->Visible)
        {
            
$this->ComponentName = "newsletter_korisnici";
            
$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->username_korisnika = new clsControl(ccsTextBox, "username_korisnika", "Username Korisnika", ccsMemo, "", CCGetRequestParam("username_korisnika", $Method));
            
$this->username_korisnika->Required = true;
            
$this->password_korisnika = new clsControl(ccsTextBox, "password_korisnika", "Password Korisnika", ccsMemo, "", CCGetRequestParam("password_korisnika", $Method));
            
$this->password_korisnika->Required = true;
            
$this->email_korisnika = new clsControl(ccsTextBox, "email_korisnika", "Email Korisnika", ccsMemo, "", CCGetRequestParam("email_korisnika", $Method));
            
$this->email_korisnika->Required = true;
            
$this->CheckBox1 = new clsControl(ccsCheckBox, "CheckBox1", "CheckBox1", ccsInteger, "", CCGetRequestParam("CheckBox1", $Method));
            
$this->CheckBox1->CheckedValue = $this->CheckBox1->GetParsedValue(1);
            
$this->CheckBox1->UncheckedValue = $this->CheckBox1->GetParsedValue(0);
            
$this->Button_Insert = new clsButton("Button_Insert");
            
$this->Button_Update = new clsButton("Button_Update");
            
$this->Button_Delete = new clsButton("Button_Delete");
            if(!
$this->FormSubmitted) {
                if(!
is_array($this->CheckBox1->Value) && !strlen($this->CheckBox1->Value) && $this->CheckBox1->Value !== false)
                
$this->CheckBox1->SetText(1);
            }
        }
    }
//End Class_Initialize Event

//Initialize Method @2-33D0CC7B
    
function Initialize()
    {

        if(!
$this->Visible)
            return;

        
$this->ds->Parameters["urlid_korisnika"] = CCGetFromGet("id_korisnika", "");
    }
//End Initialize Method

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

//CheckErrors Method @2-0ACAB570
    
function CheckErrors()
    {
        
$errors = false;
        
$errors = ($errors || $this->username_korisnika->Errors->Count());
        
$errors = ($errors || $this->password_korisnika->Errors->Count());
        
$errors = ($errors || $this->email_korisnika->Errors->Count());
        
$errors = ($errors || $this->CheckBox1->Errors->Count());
        
$errors = ($errors || $this->Errors->Count());
        
$errors = ($errors || $this->ds->Errors->Count());
        return
$errors;
    }
//End CheckErrors Method

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

        global
$Redirect;
        global
$FileName;

        
$this->ds->Prepare();
        if(!
$this->FormSubmitted) {
            
$this->EditMode = $this->ds->AllParametersSet;
            return;
        }

        if(
$this->FormSubmitted) {
            
$this->PressedButton = $this->EditMode ? "Button_Update" : "Button_Insert";
            if(
strlen(CCGetParam("Button_Insert", ""))) {
                
$this->PressedButton = "Button_Insert";
            } else if(
strlen(CCGetParam("Button_Update", ""))) {
                
$this->PressedButton = "Button_Update";
            } else if(
strlen(CCGetParam("Button_Delete", ""))) {
                
$this->PressedButton = "Button_Delete";
            }
        }
        
$Redirect = "newsletter_list.php" . "?" . CCGetQueryString("QueryString", Array("ccsForm"));
        if(
$this->PressedButton == "Button_Delete") {
            if(!
CCGetEvent($this->Button_Delete->CCSEvents, "OnClick") || !$this->DeleteRow()) {
                
$Redirect = "";
            }
        } else if(
$this->Validate()) {
            if(
$this->PressedButton == "Button_Insert") {
                if(!
CCGetEvent($this->Button_Insert->CCSEvents, "OnClick") || !$this->InsertRow()) {
                    
$Redirect = "";
                }
            } else if(
$this->PressedButton == "Button_Update") {
                if(!
CCGetEvent($this->Button_Update->CCSEvents, "OnClick") || !$this->UpdateRow()) {
                    
$Redirect = "";
                }
            }
        } else {
            
$Redirect = "";
        }
    }
//End Operation Method

//InsertRow Method @2-4BC6225B
    
function InsertRow()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeInsert");
        if(!
$this->InsertAllowed) return false;
        
$this->ds->username_korisnika->SetValue($this->username_korisnika->GetValue());
        
$this->ds->password_korisnika->SetValue($this->password_korisnika->GetValue());
        
$this->ds->email_korisnika->SetValue($this->email_korisnika->GetValue());
        
$this->ds->CheckBox1->SetValue($this->CheckBox1->GetValue());
        
$this->ds->Insert();
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterInsert");
        return (!
$this->CheckErrors());
    }
//End InsertRow Method

//UpdateRow Method @2-5E94226E
    
function UpdateRow()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeUpdate");
        if(!
$this->UpdateAllowed) return false;
        
$this->ds->username_korisnika->SetValue($this->username_korisnika->GetValue());
        
$this->ds->password_korisnika->SetValue($this->password_korisnika->GetValue());
        
$this->ds->email_korisnika->SetValue($this->email_korisnika->GetValue());
        
$this->ds->CheckBox1->SetValue($this->CheckBox1->GetValue());
        
$this->ds->Update();
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterUpdate");
        return (!
$this->CheckErrors());
    }
//End UpdateRow Method

//DeleteRow Method @2-91867A4A
    
function DeleteRow()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeDelete");
        if(!
$this->DeleteAllowed) return false;
        
$this->ds->Delete();
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterDelete");
        return (!
$this->CheckErrors());
    }
//End DeleteRow Method

//Show Method @2-85103385
    
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;
        
$this->EditMode = $this->EditMode && $this->ReadAllowed;
        if(
$this->EditMode)
        {
            
$this->ds->open();
            if(
$this->Errors->Count() == 0)
            {
                if(
$this->ds->Errors->Count() > 0)
                {
                    echo
"Error in Record newsletter_korisnici";
                }
                else if(
$this->ds->next_record())
                {
                    
$this->ds->SetValues();
                    if(!
$this->FormSubmitted)
                    {
                        
$this->username_korisnika->SetValue($this->ds->username_korisnika->GetValue());
                        
$this->password_korisnika->SetValue($this->ds->password_korisnika->GetValue());
                        
$this->email_korisnika->SetValue($this->ds->email_korisnika->GetValue());
                        
$this->CheckBox1->SetValue($this->ds->CheckBox1->GetValue());
                    }
                }
                else
                {
                    
$this->EditMode = false;
                }
            }
        }
        if(!
$this->FormSubmitted)
        {
        }

        if(
$this->FormSubmitted || $this->CheckErrors()) {
            
$Error .= $this->username_korisnika->Errors->ToString();
            
$Error .= $this->password_korisnika->Errors->ToString();
            
$Error .= $this->email_korisnika->Errors->ToString();
            
$Error .= $this->CheckBox1->Errors->ToString();
            
$Error .= $this->Errors->ToString();
            
$Error .= $this->ds->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->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
        
$this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
        
$this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;

        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");
        if(!
$this->Visible) {
            
$Tpl->block_path = $ParentPath;
            return;
        }

        
$this->username_korisnika->Show();
        
$this->password_korisnika->Show();
        
$this->email_korisnika->Show();
        
$this->CheckBox1->Show();
        
$this->Button_Insert->Show();
        
$this->Button_Update->Show();
        
$this->Button_Delete->Show();
        
$Tpl->parse();
        
$Tpl->block_path = $ParentPath;
        
$this->ds->close();
    }
//End Show Method

} //End newsletter_korisnici Class @2-FCB6E20C

class clsnewsletter_korisniciDataSource extends clsDBConnection1 {  //newsletter_korisniciDataSource Class @2-6701379E

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

    var
$InsertParameters;
    var
$UpdateParameters;
    var
$DeleteParameters;
    var
$wp;
    var
$AllParametersSet;


    
// Datasource fields
    
var $username_korisnika;
    var
$password_korisnika;
    var
$email_korisnika;
    var
$CheckBox1;
//End DataSource Variables

//DataSourceClass_Initialize Event @2-C62A63C5
    
function clsnewsletter_korisniciDataSource()
    {
        
$this->ErrorBlock = "Record newsletter_korisnici/Error";
        
$this->Initialize();
        
$this->username_korisnika = new clsField("username_korisnika", ccsMemo, "");
        
$this->password_korisnika = new clsField("password_korisnika", ccsMemo, "");
        
$this->email_korisnika = new clsField("email_korisnika", ccsMemo, "");
        
$this->CheckBox1 = new clsField("CheckBox1", ccsInteger, "");

    }
//End DataSourceClass_Initialize Event

//Prepare Method @2-9C1030E3
    
function Prepare()
    {
        
$this->wp = new clsSQLParameters($this->ErrorBlock);
        
$this->wp->AddParameter("1", "urlid_korisnika", ccsInteger, "", "", $this->Parameters["urlid_korisnika"], "", false);
        
$this->AllParametersSet = $this->wp->AllParamsSet();
        
$this->wp->Criterion[1] = $this->wp->Operation(opEqual, "id_korisnika", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsInteger),false);
        
$this->Where =
             
$this->wp->Criterion[1];
    }
//End Prepare Method

//Open Method @2-CC60B46D
    
function Open()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect");
        
$this->SQL = "SELECT *  " .
        
"FROM newsletter_korisnici";
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect");
        
$this->PageSize = 1;
        
$this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order)));
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect");
    }
//End Open Method

//SetValues Method @2-DCFF1DCD
    
function SetValues()
    {
        
$this->username_korisnika->SetDBValue($this->f("username_korisnika"));
        
$this->password_korisnika->SetDBValue($this->f("password_korisnika"));
        
$this->email_korisnika->SetDBValue($this->f("email_korisnika"));
        
$this->CheckBox1->SetDBValue(trim($this->f("STATUS")));
    }
//End SetValues Method

//Insert Method @2-F7D2F581
    
function Insert()
    {
        
$this->CmdExecution = true;
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildInsert");
        
$this->SQL = "INSERT INTO newsletter_korisnici ("
             
. "username_korisnika, "
             
. "password_korisnika, "
             
. "email_korisnika, "
             
. "STATUS"
             
. ") VALUES ("
             
. $this->ToSQL($this->username_korisnika->GetDBValue(), $this->username_korisnika->DataType) . ", "
             
. $this->ToSQL($this->password_korisnika->GetDBValue(), $this->password_korisnika->DataType) . ", "
             
. $this->ToSQL($this->email_korisnika->GetDBValue(), $this->email_korisnika->DataType) . ", "
             
. $this->ToSQL($this->CheckBox1->GetDBValue(), $this->CheckBox1->DataType)
             .
")";
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteInsert");
        if(
$this->Errors->Count() == 0 && $this->CmdExecution) {
            
$this->query($this->SQL);
            
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteInsert");
        }
        
$this->close();
    }
//End Insert Method

//Update Method @2-C846F9CA
    
function Update()
    {
        
$this->CmdExecution = true;
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildUpdate");
        
$this->SQL = "UPDATE newsletter_korisnici SET "
             
. "username_korisnika=" . $this->ToSQL($this->username_korisnika->GetDBValue(), $this->username_korisnika->DataType) . ", "
             
. "password_korisnika=" . $this->ToSQL($this->password_korisnika->GetDBValue(), $this->password_korisnika->DataType) . ", "
             
. "email_korisnika=" . $this->ToSQL($this->email_korisnika->GetDBValue(), $this->email_korisnika->DataType) . ", "
             
. "STATUS=" . $this->ToSQL($this->CheckBox1->GetDBValue(), $this->CheckBox1->DataType);
        
$this->SQL = CCBuildSQL($this->SQL, $this->Where, "");
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteUpdate");
        if(
$this->Errors->Count() == 0 && $this->CmdExecution) {
            
$this->query($this->SQL);
            
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteUpdate");
        }
        
$this->close();
    }
//End Update Method

//Delete Method @2-4F2081E1
    
function Delete()
    {
        
$this->CmdExecution = true;
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildDelete");
        
$this->SQL = "DELETE FROM newsletter_korisnici";
        
$this->SQL = CCBuildSQL($this->SQL, $this->Where, "");
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteDelete");
        if(
$this->Errors->Count() == 0 && $this->CmdExecution) {
            
$this->query($this->SQL);
            
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteDelete");
        }
        
$this->close();
    }
//End Delete Method

} //End newsletter_korisniciDataSource Class @2-FCB6E20C

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

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

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

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

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

// Controls
$Header = new clsHeader("");
$Header->BindEvents();
$Header->Initialize();
$Header1 = new clsHeader1("");
$Header1->BindEvents();
$Header1->Initialize();
$newsletter_korisnici = new clsRecordnewsletter_korisnici();
$newsletter_korisnici->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-A18963B7
$Header->Operations();
$Header1->Operations();
$newsletter_korisnici->Operation();
//End Execute Components

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

//Show Page @1-462BE41F
$Header->Show("Header");
$Header1->Show("Header1");
$newsletter_korisnici->Show();
$Tpl->PParse("main", false);
//End Show Page

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