Skip to content

Instantly share code, notes, and snippets.

View mhrubel's full-sized avatar
🖥️
Programming

Mahamudul Hasan Rubel mhrubel

🖥️
Programming
View GitHub Profile
123contactform
abacus
acquia
activecampaign
adobe
aerofs
airbnb
amazon
ancile
appcelerator
@mhrubel
mhrubel / Doviz.php
Created February 8, 2019 14:58 — forked from murattahtaci/Doviz.php
WHMCS Admin Paneli için çalışanların döviz, altın vb. takip edebilmesi için doviz.com API'sinden veri çekmeye yarayan dosya. /modules/widgets/ içerisine eklenmeli.
<?php
/**
* WHMCS Admin paneli için Döviz / Altın kurları görüntüleme
* Murat Tahtacı
* 10.10.2018
*/
add_hook('AdminHomeWidgets', 1, function() {
return new DovizWidget();
});
@mhrubel
mhrubel / jucra-affiliates-to-clients-matching.php
Created February 8, 2019 14:56 — forked from craigedmonds/jucra-affiliates-to-clients-matching.php
WHMCS custom matching of affiliates to clients (custom hook)
<?php
/*
Custom WHMCS Affiliate hook by craig@jucra.com
Date: 14th October 2018
Stored in WHCMS: /includes/hooks/
The WHMCS affiliate system is basic, very basic in terms of: affiliates can only
earn comissions based on orders they generate.
@mhrubel
mhrubel / cursos.md
Created February 8, 2019 14:54 — forked from davidalves1/cursos.md
Lista com diversos cursos gratuitos
#!/bin/bash -i
#
password="priv8area"
function cgi_get_POST_vars()
{
# check content type
[ "${CONTENT_TYPE}" != "application/x-www-form-urlencoded" ] && \
<?php
if ( is_user_logged_in() ) {
} else { ?>
<a href="http://writers-site.com/whmcs-2/?ccce=register">Sign Up</a>
<?php
};
?>
@mhrubel
mhrubel / invoicepdf.tpl
Created February 8, 2019 14:52 — forked from maevelander/invoicepdf.tpl
Custom Invoice PDF template for WHMCS
<?php
# Logo
$logoFilename = 'placeholder.png';
if (file_exists(ROOTDIR . '/assets/img/logo.png')) {
$logoFilename = 'logo.png';
} elseif (file_exists(ROOTDIR . '/assets/img/logo.jpg')) {
$logoFilename = 'logo.jpg';
}
$pdf->Image(ROOTDIR . '/assets/img/' . $logoFilename, 15, 25, 75);
<?php
/**
* Generate uuids for clients and admins that don't have uuids set.
*
* The WHMCS 6.2.0 update process automatically inserts uuids, but if your
* installation bypasses WHMCS update routines then this will generate uuids for
* the client and admin users that don't have one yet.
*
* Warning! Please back up at least your tblclient and tbladmin tables before
<?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
@mhrubel
mhrubel / gofas_whmcs_favicon.php
Created February 8, 2019 14:51 — forked from mauriciogofas/gofas_whmcs_favicon.php
Add favicon in WHMCS admin and Alient Area
<?php
/**
* Include custom code in template head
* © 2017 gofas.net
*
*/
// Favicon in clientarea
add_hook( 'ClientAreaHeadOutput', 1, function( $vars ) {
$gofas_clientarea_favicon = array();