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
/* | |
* Migrate Fontawesome 4 to Fontawesome 5 | |
* @website https://www.litecart.net/ | |
*/ | |
(function(){ | |
var icons = { | |
"fa-500px": "fab fa-500px", | |
"fa-address-book-o": "far fa-address-book", | |
"fa-address-card-o": "far fa-address-card", |
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 | |
header('Content-Type: text/plain'); | |
$dir_iterator = new RecursiveDirectoryIterator("./"); | |
$iterator = new RecursiveIteratorIterator($dir_iterator, RecursiveIteratorIterator::SELF_FIRST); | |
$count=0; | |
foreach ($iterator as $file) { | |
$count++; |
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
3322.org | |
able.or.kr | |
afraid.org-basicauth | |
afraid.org-keyauth | |
afraid.org-v2-basic | |
afraid.org-v2-token | |
all-inkl.com | |
changeip.com | |
core-networks.de | |
ddns.com.br |
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 | |
// Cloudflare - Set Real IP | |
$cloudflare_ip_ranges = array( | |
'204.93.240.0/24', '204.93.177.0/24', '199.27.128.0/21', | |
'173.245.48.0/20', '103.21.244.0/22', '103.22.200.0/22', | |
'103.31.4.0/22', '141.101.64.0/18', '108.162.192.0/18', | |
'190.93.240.0/20', '188.114.96.0/20', '197.234.240.0/22', | |
'198.41.128.0/17', '162.158.0.0/15', | |
); |
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 | |
ob_start(); | |
include('includes/app_header.inc.php'); | |
try { | |
$json = []; |
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 | |
/* | |
* Lightweight concept for pretty printing SQL | |
* @author T. Almroth <[email protected]> | |
* https://www.tim-international.net/ | |
*/ | |
function sql_pretty_print($query, $indentation="\t") { |
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 | |
// PHP glob() does not support stream wrappers, so let's create our own glob. | |
// And while we are at it, let's throw in support for double globstars **. :) | |
function file_search($glob, $flags=0) { | |
// Unixify paths | |
$glob = str_replace('\\', '/', $glob); | |
// Set basedir and remains |
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 | |
/* | |
Author: T. Almroth | |
Documentation: https://www.bankgirot.se/globalassets/dokument/anvandarmanualer/bankgiroinbetalningar_anvandarmanual_sv.pdf | |
Note: Use font OCR B. | |
Example of use: | |
echo generate_bankgirot_ocr('123456789', '100.00', '0000-0000'); | |
*/ |
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 | |
function bbcode_to_markdown($input) { | |
$result = $input; | |
foreach ([ | |
'#(\r\n?|\n)#s' => '\n', // Neutralize line breaks |