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 | |
/** | |
* Normalize new line from anything (CR, CRLF) to be LF only. | |
* This will be replace new line from a file, line by line. | |
*/ | |
// your file. | |
$textFile = '/path/to/my/file.txt'; |
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: WP hooks trace | |
* Description: Enable trace > browse or work > disable trace. And everything will be written into this plugin folder /hooks-trace.txt file. | |
* License: MIT | |
*/ | |
// You can use this plugin for any purpose without attribution required. | |
add_filter('plugin_row_meta', 'rdht_pluginRowMeta', 10, 4); |
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
<!DOCTYPE html> | |
<html lang="th"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>คำณวนกำไร</title> | |
<style type="text/css"> | |
button, | |
input[type="button"], | |
input[type="submit"], |
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
<!doctype html> | |
<html lang="th"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>ความช่วยเหลือ & สนับสนุน</title> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"> | |
<link rel="stylesheet" href="../assets/css/support-style.css"> | |
</head> |
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
'use strict'; | |
/** | |
* Encryption class for encrypt/decrypt data. | |
*/ | |
export default class Encryption { | |
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
/** | |
* YouTube URL. | |
* | |
* @author Vee W. | |
*/ | |
class YouTubeURL { | |
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 | |
// Icons that was renamed in Font Awesome 6. 👎👎👎👎👎 | |
// https://fontawesome.com/docs/web/setup/upgrade/whats-changed#icons-renamed-in-version-6 | |
// The array format is [old name] => new name. | |
// The first array set is without `fa-` prefix. | |
$renamed = array ( | |
'ad' => 'rectangle-ad', | |
'adjust' => 'circle-half-stroke', | |
'air-freshener' => 'spray-can-sparkles', |
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 (!function_exists('str_contains')) { | |
/** | |
* Determine if a string contains a given substring | |
* | |
* @link https://www.php.net/manual/en/function.str-contains.php PHP `str_contains` original document. | |
* @param string $haystack The string to search in. | |
* @param string $needle The substring to search for in the `haystack`. | |
* @return bool Returns `true` if `needle` is in `haystack`, `false` otherwise. |
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
/** | |
* Antibot JS class. | |
*/ | |
class Antibot { | |
/** | |
* Setup honeypot form group. |
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 | |
/** | |
* PHP `strftime()` format to `IntlDateFormatter()` pattern converter. | |
* | |
* PHP `strftime()` is deprecated since v 8.1. They recommended to use `IntlDateFormatter()` instead. | |
* However `IntlDateFormatter()` pattern does not fully supported all format that `strftime()` does. | |
* | |
* Run this file to get the result of most close pattern to `strftime()` based on Thai locale. | |
* | |
* @license MIT |
NewerOlder