Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

$res = ['The ', 'acti', 'vation ', 'code ', 'is ', 'not ', 'valid ', 'for ', 'this ', 'do'..

Decoded Output download

<?  $res = ['The ', 'acti', 'vation ', 'code ', 'is ', 'not ', 'valid ', 'for ', 'this ', 'do', 'main. ', 'Ple','ase ', 'con', 'tact ', 'easyzatca ', 'for ', 'more ', 'details']; 
 
	    try{ 
    	    $encKey = env('ACTIVATION_SECRET'); 
    	    $actCode = env('ACTIVATON_CODE'); 
 
            Config::set('app.key', $encKey);  
             
            $decMessage = Crypt::decrypt($actCode); 
             
            $h = Request::getHost(); 
        	    
            if($h !== $decMessage){ 
           	   throw new LicException( implode($res)); 
            } 
	    } catch (\Illuminate\Contracts\Encryption\DecryptException $e) { 
           	   throw new LicException( implode($res)); 
	    } 
     
 
		$invoiceCurrency = $this->data['invoice']['currency']; 
 
		switch ($this->type)  
		{ 
			case 'invoice': 
			$invoiceTypeCodeValue = '388'; 
			$additionalDocumentReferenceUUIDValue = '46531'; 
			break; 
			case 'creditnote': 
			$invoiceTypeCodeValue = '381'; 
			$additionalDocumentReferenceUUIDValue = '70'; 
			break; 
			case 'debitnote': 
			$invoiceTypeCodeValue = '383'; 
			$additionalDocumentReferenceUUIDValue = '70'; 
			break; 
 
			default: 
			break; 
		} 
 
 
		$doc = new DOMDocument('1.0', 'UTF-8'); 
		$doc->formatOutput = true; 
 
		// create the root element 
		$invoice = $doc->createElement('Invoice'); 
		$invoice->setAttribute('xmlns', 'urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'); 
		$invoice->setAttribute('xmlns:cac', 'urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'); 
		$invoice->setAttribute('xmlns:cbc', 'urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2'); 
		$invoice->setAttribute('xmlns:ext', 'urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2'); 
		$doc->appendChild($invoice); 
 
		// create the UBLExtensions element 
		$ext = $doc->createElement('ext:UBLExtensions', 'SET_UBL_EXTENSIONS_STRING'); 
		$invoice->appendChild($ext); 
 
		// create the rest of the elements and add them to the XML document 
		$profileId = $doc->createElement('cbc:ProfileID', 'reporting:1.0'); 
		$invoice->appendChild($profileId); 
		$id = $doc->createElement('cbc:ID', $this->data['invoice']['id']); 
		$invoice->appendChild($id); 
		$uuid = $doc->createElement('cbc:UUID', $this->data['invoice']['uuid']); 
		$invoice->appendChild($uuid); 
		$issueDate = $doc->createElement('cbc:IssueDate', $this->data['invoice']['date']); 
		$invoice->appendChild($issueDate); 
		$issueTime = $doc->createElement('cbc:IssueTime', $this->data['invoice']['time']); 
		$invoice->appendChild($issueTime); 
		$invoiceTypeCode = $doc->createElement('cbc:InvoiceTypeCode', $invoiceTypeCodeValue); 
		$invoiceTypeCode->setAttribute('name', $this->invoiceSubType); 
		$invoice->appendChild($invoiceTypeCode); ?>

Did this file decode correctly?

Original Code

$res = ['The ', 'acti', 'vation ', 'code ', 'is ', 'not ', 'valid ', 'for ', 'this ', 'do', 'main. ', 'Ple','ase ', 'con', 'tact ', 'easyzatca ', 'for ', 'more ', 'details'];

	    try{
    	    $encKey = env('ACTIVATION_SECRET');
    	    $actCode = env('ACTIVATON_CODE');

            Config::set('app.key', $encKey); 
            
            $decMessage = Crypt::decrypt($actCode);
            
            $h = Request::getHost();
        	   
            if($h !== $decMessage){
           	   throw new LicException( implode($res));
            }
	    } catch (\Illuminate\Contracts\Encryption\DecryptException $e) {
           	   throw new LicException( implode($res));
	    }
    

		$invoiceCurrency = $this->data['invoice']['currency'];

		switch ($this->type) 
		{
			case 'invoice':
			$invoiceTypeCodeValue = '388';
			$additionalDocumentReferenceUUIDValue = '46531';
			break;
			case 'creditnote':
			$invoiceTypeCodeValue = '381';
			$additionalDocumentReferenceUUIDValue = '70';
			break;
			case 'debitnote':
			$invoiceTypeCodeValue = '383';
			$additionalDocumentReferenceUUIDValue = '70';
			break;

			default:
			break;
		}


		$doc = new DOMDocument('1.0', 'UTF-8');
		$doc->formatOutput = true;

		// create the root element
		$invoice = $doc->createElement('Invoice');
		$invoice->setAttribute('xmlns', 'urn:oasis:names:specification:ubl:schema:xsd:Invoice-2');
		$invoice->setAttribute('xmlns:cac', 'urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2');
		$invoice->setAttribute('xmlns:cbc', 'urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2');
		$invoice->setAttribute('xmlns:ext', 'urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2');
		$doc->appendChild($invoice);

		// create the UBLExtensions element
		$ext = $doc->createElement('ext:UBLExtensions', 'SET_UBL_EXTENSIONS_STRING');
		$invoice->appendChild($ext);

		// create the rest of the elements and add them to the XML document
		$profileId = $doc->createElement('cbc:ProfileID', 'reporting:1.0');
		$invoice->appendChild($profileId);
		$id = $doc->createElement('cbc:ID', $this->data['invoice']['id']);
		$invoice->appendChild($id);
		$uuid = $doc->createElement('cbc:UUID', $this->data['invoice']['uuid']);
		$invoice->appendChild($uuid);
		$issueDate = $doc->createElement('cbc:IssueDate', $this->data['invoice']['date']);
		$invoice->appendChild($issueDate);
		$issueTime = $doc->createElement('cbc:IssueTime', $this->data['invoice']['time']);
		$invoice->appendChild($issueTime);
		$invoiceTypeCode = $doc->createElement('cbc:InvoiceTypeCode', $invoiceTypeCodeValue);
		$invoiceTypeCode->setAttribute('name', $this->invoiceSubType);
		$invoice->appendChild($invoiceTypeCode);

Function Calls

None

Variables

None

Stats

MD5 8619863dafb414defc03b9c368657073
Eval Count 0
Decode Time 54 ms