<ifModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
Header always append X-Frame-Options SAMEORIGIN
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
</ifModule>
# Enlever les www (si nécéssaire pour le seo)
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 | |
$data = array( | |
0 => '1,000.214525844156$', // 1000.21 | |
1 => '1,250.2525698', // 1250.25 | |
2 => '10', // 10.00 | |
3 => 100.21236985, // 100.21 | |
4 => '1,10', // 1.10 | |
5 => '1,000,000,01' // 1000000.01 | |
); |
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
$unique = array_intersect_key($array, array_unique(array_column($array, 'email'))); |
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
<style> | |
.resp-container { | |
position: relative; | |
overflow: hidden; | |
padding-top: 56.25%; | |
} | |
.resp-iframe { | |
position: absolute; | |
top: 0; | |
left: 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 | |
/** | |
* Created by PhpStorm. | |
* User: mikeh | |
* Date: 2018-12-19 | |
* Time: 10:28 AM | |
*/ | |
class HouseKeeping | |
{ |
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
remove_action( 'template_redirect', 'maybe_redirect_404' ); | |
add_filter( 'pre_handle_404', function() { | |
return false; | |
}); |
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
// https://www.laravelhasmanythrough.com/ | |
public function offices() | |
{ | |
/* | |
* SQL Query | |
* | |
SELECT | |
`offices`.*, | |
`office_user`.`user_id` ($1) |
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
// https://www.businessbloomer.com/ | |
// Get Order ID | |
$order->get_id(); | |
// Get Order Totals $0.00 | |
$order->get_formatted_order_total(); | |
$order->get_cart_tax(); | |
$order->get_currency(); | |
$order->get_discount_tax(); |
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 | |
error_reporting(-1); | |
ini_set('display_errors', 1); | |
class MikeScan | |
{ | |
private $delete; | |
private $i; | |
private $results = []; | |
private $object; |
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
User-agent: * | |
Crawl-delay: 20 | |
Allow: .js | |
Allow: .css | |
Allow: /wp-admin/admin-ajax.php | |
Disallow: /*&brand_tabletpc | |
Disallow: /*&cat | |
Disallow: /*&color | |
Disallow: /*&color_default | |
Disallow: /*&create=1 |