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
| const Redis = require("ioredis"); | |
| const _ = require("lodash"); | |
| const redis = new Redis({ | |
| port: 6379, // Redis port | |
| host: 'HOST, // Redis host | |
| username: "", | |
| password: "", | |
| db: 0, | |
| }); |
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 | |
| //Step One -> Define Your Product Name | |
| $product = 'Simple'; | |
| //Step One -> Define Your Customers List | |
| $customers = [ | |
| 'Username-01', |
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 7.3 | |
| Usage: | |
| Create file eg: home.html, put this tag {$string} | |
| */ | |
| function template($html) | |
| { | |
| global $tmpl; | |
| global $language; |
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 getCountry() | |
| { | |
| if (isset($_SERVER['HTTP_CF_IPCOUNTRY'])) { | |
| $country = $_SERVER['HTTP_CF_IPCOUNTRY']; | |
| } else { | |
| $country = "unknown"; | |
| } | |
| return $country; |