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: Members - Fix for attachment | |
Plugin URI: http://www.beapi.fr | |
Description: This plugin fix an issue with medias and content restriction on "Members" plugin WordPress (http://wordpress.org/plugins/members/). Allow to save correctly metabox data also for "attachment" post type. | |
Author: BeAPI | |
Author URI: http://www.beapi.fr | |
Version: 0.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
<?php | |
/* | |
Plugin Name: No french punctuation and accents for filename | |
Description: Remove all french punctuation and accents from the filename of upload for client limitation (Safari Mac/IOS) | |
Plugin URI: http://www.beapi.fr | |
Version: 1.0 | |
Author: BeAPI | |
Author URI: http://www.beapi.fr | |
/* |
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 | |
class BEA_ACF_Helpers { | |
// Fields to not add to the available fields of acf | |
private static $unauth_fields = array( | |
'repeater', | |
'relationship', | |
'flexible_content' | |
); | |
/** |
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 | |
$base_dir = dirname(__FILE__); | |
$extension_restriction = array( | |
'js', | |
'php' | |
); | |
$it = new RecursiveDirectoryIterator($base_dir); | |
foreach (new RecursiveIteratorIterator($it) as $file) { | |
if (in_array(strtolower(pathinfo( $file, PATHINFO_EXTENSION )), $extension_restriction)) { |
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: Languages Admin | |
Plugin URI: http://www.beapi.fr | |
Description: Force English on WP admin | |
Author: BeAPI | |
Author URI: http://www.beapi.fr | |
Version: 0.1 | |
Text Domain: bea-languages |
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: Purge all varnish | |
Plugin URI: http://www.beapi.fr | |
Description: Purge all varnish cache when a post is modified/edited | |
Version: 1.3 | |
Author: BeAPI | |
Author URI: http://www.beapi.fr | |
Network: true | |
*/ |
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: Purge all WP Rocket cache | |
Plugin URI: http://www.beapi.fr | |
Description: Purge all WP rocket cache when a post is modified/edited | |
Version: 1.0 | |
Author: BeAPI | |
Author URI: http://www.beapi.fr | |
Network: true | |
*/ |
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: BEA - Prod images | |
* Version: 0.1 | |
* Plugin URI: http://www.beapi.fr | |
* Description: This plugin allow to build development environnement without copy data from uploads folder. Manage an failback with PHP and production assets. | |
* Author: BeAPI | |
* Author URI: http://www.beapi.fr | |
* Domain Path: languages | |
* Network: 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
<?php | |
/* | |
Plugin Name: BEA Domain Mapping | |
Description: Always force replace original domain by mapping domain | |
Plugin URI: http://www.beapi.fr | |
Version: 1.0 | |
Author: BeAPI | |
Author URI: http://www.beapi.fr | |
/* |
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 | |
// Initialize values: 1000000 keys of 20 bytes with 40 bytes of data | |
$c = 1000000; | |
$values = array(); | |
for ($i=0;$i<$c;$i++) $values[sprintf('%020s',$i)]=sha1($i); | |
// Memcached | |
$m = new Memcached(); | |
$m->addServer('10.0.101.82', 11211); | |
$start = microtime(true); |
OlderNewer