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 | |
// Rewrite client IP based on proxy headers | |
$ip_pool = array( | |
!empty($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : '', | |
!empty($_SERVER['HTTP_CF_PSEUDO_IPV4']) ? $_SERVER['HTTP_CF_PSEUDO_IPV4'] : '', | |
!empty($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : '', | |
!empty($_SERVER['HTTP_X_FORWARDED']) ? $_SERVER['HTTP_X_FORWARDED'] : '', | |
!empty($_SERVER['HTTP_FORWARDED_FOR']) ? $_SERVER['HTTP_FORWARDED_FOR'] : '', |
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
<script type="application/ld+json">{ | |
"@context":"http://schema.org", | |
"@type":"HomeGoodsStore", | |
"name":"Our Store", | |
"legalName":"Our Company", | |
"url":"https://www.ourstore.com/", | |
"sameAs":"http://plus.google.com/99999999999999", | |
"logo":"https://www.ourstore.com/image/logo.png", | |
"photo":"https://www.ourstore.com/image/ourstore.png", | |
"description":"People give us money and we give them GLORIOUS PRODUCTS.", |
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 | |
// @last https://3v4l.org/0LHkO | |
// Start sample | |
$str = '® ‡ ¼'; | |
echo clean($str, false, false); | |
// End sample |
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 | |
// @last https://3v4l.org/iSgi8 | |
// @same http://stackoverflow.com/a/34908708/2418655 | |
// Start sample | |
$raw_str = '.....<div></div><script></script>& Weiß Göbel 中文百强网File name %20 %20 %21 %2C Décor \/. /. . z \... y \...... x ./ “This name” is & 462^^ not = that grrrreat -][09]()1234747) საბეჭდი-და-ტიპოგრაფიული'; | |
$fallback_str = 'generated__' . date('Y-m-d_H-m_A'); | |
$bad_extension = '....t&+++a()r.gz[]'; |
NewerOlder