This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Rewrites the request, extracting a fragment of the file name and using a remote server. | |
location @fetchFromRemote { | |
rewrite ^/path/to/images/(.*)$ http://remoteserver.com/other/path/to/images/$1 redirect; | |
} | |
#Will try to see if we have the file in this server, is not will use fetchFromRemote | |
location ~ ^/path/to/images/.*(png|jpg|jpeg|gif|ico|swf)$ { | |
try_files $uri @fetchFromRemote; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
'use-strict'; | |
/** | |
* Iframe to Parent window communication | |
* sample iframe- <iframe id="guestFrame" name="guestFrame" src="http://other-domain.com/"> | |
* </iframe> | |
* Uses https://ternarylabs.github.io/porthole/ | |
* Uses https://marcj.github.io/css-element-queries/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Include custom code in template head | |
* © 2017 gofas.net | |
* | |
*/ | |
// Favicon in clientarea | |
add_hook( 'ClientAreaHeadOutput', 1, function( $vars ) { | |
$gofas_clientarea_favicon = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo '<pre>'; | |
var_dump(curl_version()); | |
echo '</pre>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Custom Affliates Redirects | |
* © 2017 gofas.net | |
* | |
*/ | |
add_hook('AffiliateClickthru', 1, function($vars) { | |
$affiliate_id = (int)$vars['affiliateId']; | |
$destination = (string)'https://example.com'; // default destination after affiliate link click |