This file contains 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
### NON SSL | STANDARD HTTP | |
server { | |
listen 80; | |
server_name domain.com; | |
root /path/to/whmcs; | |
index index.php index.html; | |
access_log /var/log/nginx/domain.com.log combined; | |
access_log /var/log/nginx/domain.com.bytes bytes; | |
error_log /var/log/nginx/domain.com.error.log error; | |
location / { |
This file contains 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 | |
if (!defined("WHMCS")) | |
die("This file cannot be accessed directly"); | |
use WHMCS\Database\Capsule; | |
/* | |
* Temporarily updates the primary account's email address to that of the | |
* company's Billing contact upon creation of a new invoice so that invoices | |
* are not sent to the primary account holder. |
This file contains 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 | |
add_hook('AdminLogin', 1, function($vars) { | |
$_SESSION["AuthConfirmationTimestamp"] = \Carbon\Carbon::now()->timestamp; | |
}); | |
add_hook('AdminAreaHeadOutput', 1, function($vars) { | |
$_SESSION["AuthConfirmationTimestamp"] = \Carbon\Carbon::now()->timestamp; | |
return ' | |
<script type="text/javascript"> | |
$(document).ready(function(){ |
This file contains 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 | |
/** | |
* Display Client's Credit Balance in Client Area | |
* | |
* @author WHMCMS | |
* @link www.whmcms.com | |
* @since WHMCS v6.0.0+ | |
*/ |
This file contains 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 | |
if (!defined("WHMCS")) | |
die("This file cannot be accessed directly"); | |
function sendTelegramMessage($pm) { | |
global $vars; | |
//$chat_id = (""); //Group | |
$chat_id = (""); //Channel | |
$tokenbot = (""); |
This file contains 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 | |
/* | |
Plugin Name: Bangla Number For WordPress | |
Plugin URI: https://aminul.net/ | |
Description: Translate all number to bangla. | |
Version: 1.0.0 | |
Author: Aminul Islam | |
Author URI: https://aminul.net/ | |
License: GPL2 | |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
This file contains 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
SET NAMES utf8; | |
SET time_zone = '+00:00'; | |
SET foreign_key_checks = 0; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
SET NAMES utf8mb4; | |
DROP TABLE IF EXISTS `districts`; | |
CREATE TABLE `districts` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, |
This file contains 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
{ | |
"Rajshahi": { | |
"Joypurhat": [ | |
"Akkelpur", | |
"Joypurhat Sadar", | |
"Kalai", | |
"Khetlal", | |
"Panchbibi" | |
], | |
"Bogura": [ |
This file contains 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 | |
/** | |
* Convert number to word in bangla | |
* | |
* @param int $number | |
* @param string $after | |
* @param string $before | |
* @return string | |
*/ | |
function banglaSpellOut($number = 0, $after = '', $before = '') |
This file contains 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 | |
Copied from http://fatlabmusic.com/blog/2009/08/12/how-to-fix-wp-http-error-name-lookup-timed-out/ | |
//adjustments to wp-includes/http.php timeout values to workaround slow server responses | |
add_filter('http_request_args', 'bal_http_request_args', 100, 1); | |
function bal_http_request_args($r) //called on line 237 | |
{ | |
$r['timeout'] = 15; | |
return $r; | |
} | |
OlderNewer