Skip to content

Instantly share code, notes, and snippets.

View mauriciogofas's full-sized avatar

Mauricio Gofas mauriciogofas

View GitHub Profile
<?php
/**
* Módulo Juno Cartão para WHMCS
* @copyright 2020 Gofas Software
* @see https://gofas.net/?p=12042
* @license https://gofas.net/?p=9340
* @support https://gofas.net/?p=12349
* @version 1.0.2
* bug fix reported in: https://gofas.net/foruns/topico/falha-na-obtencao-de-url-do-site/
* /modules/gateways/gofasjunocartao/includes/params/whmcs_urls.php
@mauriciogofas
mauriciogofas / easyengine-php7.3.md
Last active January 13, 2021 00:03 — forked from bobwol/easyengine-php7.3.md
Upgrade PHP to v7.3 in Ubuntu with Easy Engine #php #ubuntu #nginx #easyengine

How to install php7.3-fpm with EasyEngine (Ubuntu)


Add php7.3 repository

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

Install php7.3-fpm

@mauriciogofas
mauriciogofas / install-pecl-yaml.sh
Created October 9, 2019 19:54 — forked from jbelien/install-pecl-yaml.sh
PHP: Install PECL extension
sudo apt-get install php-pear php7.2-dev libyaml-dev
sudo pecl install yaml
# If /etc/php/7.2/mods-available/yaml.ini doesn't exist :
sudo cp /etc/php/7.2/mods-available/xml.ini /etc/php/7.2/mods-available/yaml.ini
sudo sed -i -- 's/xml/yaml/g' /etc/php/7.2/mods-available/yaml.ini
sudo phpenmod yaml
sudo service php7.2-fpm restart
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
<tbody>
<tr style="background-color: #009900; color: #ffffff;">
<td style="text-align: center;" height="28">
{if {$client_credit} }
<a href="{$whmcs_url}auth.php?email={$client_email}&userid={$client_id}&firstname={$client_first_name}&lastname={$client_last_name}&hash={$hash}&whmcsurl={$whmcs_url}&goto=viewinvoice.php?id={$invoice_id}&redirectToBillet=false" target="_blank" rel="noopener"><span style="color: #ffffff; font-weight: bold; text-decoration: underline;">PAGAR AGORA</span></a></td>
{else}
<a href="{$whmcs_url}auth.php?email={$client_email}&userid={$client_id}&firstname={$client_first_name}&lastname={$client_last_name}&hash={$hash}&whmcsurl={$whmcs_url}&goto=viewinvoice.php?id={$invoice_id}&redirectToBillet=true" target="_blank" rel="noopener"><span style="color: #ffffff; font-weight: bold; text-decoration: underline;">PAGAR AGORA</span></a></td>
{if $invoice_payment_method eq "Gofas - Boleto Fácil"}
@mauriciogofas
mauriciogofas / whmcs_merge_tags_template.txt
Last active January 12, 2021 20:48
Merge Tags condicionais para templates de email do WHMCS. Diferencia as informações impressas nos emails de acordo com o módulo associado à fatura.
{if $invoice_payment_method eq "Gofas Gerencianet - Boleto"}
Exibe informações do boleto gerado pelo módulo Gofas Gerencianet - Boleto, caso este seja o módulo associado à fatura.
{$gbf_billet_info}
{else}
Exibe outras informações de sua escolha, caso o módulo associado à Fatura não seja o Gofas Gerencianet - Boleto. Deixe em branco essa linha se não desejar exibir nada no lugar das informações do módulo.
{/if}
@mauriciogofas
mauriciogofas / 7_new_billet_duedate.php
Created March 27, 2019 19:49
Módulo Gofas Boleto Fácil para WHMCS: Exemplo de configuração adicional para alterar a data de vencimento do Boleto. /modules/gateways/gofasboletofacil/params/7_new_billet_duedate.php
<?php
/**
* Módulo Boleto Fácil para WHMCS (boletobancario.com)
* @author Mauricio Gofas | gofas.net
* @see https://gofas.net/
* @copyright 2018/2019 https://gofas.net
* @license https://gofas.net?p=9340
* @support https://gofas.net/foruns/
* @version 1.0.4
*/
@mauriciogofas
mauriciogofas / configuracao_adicional.php
Last active January 12, 2021 20:48
Gofas Gerencianet Boleto para WHMCS: Exemplo de configuração adicional para alterar a data de vencimento do Boleto. /modules/gateways/gofasgerencianetboleto/params/customparams/configuracao_adicional.php
<?php
/**
* Módulo Gerencinet Boleto para WHMCS
* @author Mauricio Gofas | gofas.net
* @see https://gofas.net/?p=7893
* @copyright 2016->2018 Gofas Softwares
* @license https://gofas.net?p=9340
* @support https://gofas.net/?p=7856
* @version 2.2.1
*/
@mauriciogofas
mauriciogofas / configuracao_adicional.php
Last active January 12, 2021 20:48
Exemplo de array de configuração adicional para o módulo Gerencianet Boleto para WHMCS. /modules/gateways/gofasgerencianetboleto/includes/customconfig/configuracao_adicional.php
<?php
/**
* Módulo Gerencinet Boleto para WHMCS
* @author Mauricio Gofas | gofas.net
* @see https://gofas.net/?p=7893
* @copyright 2016->2018 Gofas Softwares
* @license https://gofas.net?p=9340
* @support https://gofas.net/?p=7856
* @version 2.2.1
*/
@mauriciogofas
mauriciogofas / product_groups_to_ignore.php
Last active January 12, 2021 20:50
Ignorar Grupos de produtos ao gerar o Boleto - Módulo Gofas Gerencianet Boleto para WHMCS #whmcs #gerencianet #boleto #ggnb
<?php
/**
* Módulo Gerencinet Boleto para WHMCS
* @author Mauricio Gofas | gofas.net
* @see https://gofas.net/?p=7893
* @copyright 2016->2018 Gofas Softwares
* @license https://gofas.net?p=9340
* @support https://gofas.net/?p=7856
* @version 2.2.1
*/