-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.php
34 lines (28 loc) · 1.12 KB
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/*
Plugin Name: Canalblog Importer
Description: Enables content importing from a blog hosted on Canalblog platform.
Author: Oncle Tom
Version: 1.6.5
Text Domain: canalblog-importer
Domain Path: /i18n
Author URI: http://case.oncle-tom.net/
Plugin URI: http://wordpress.org/extend/plugins/canalblog-importer/
This plugin is released under version 3 of the GPL:
http://www.opensource.org/licenses/gpl-3.0.html
*/
/* needed to enable automatic extraction with Poedit for plugin listing */
__('Enables content importing from a blog hosted on Canalblog platform.', 'canalblog-importe');
if (phpversion() < '7.1')
{
printf("Canalblog Importer nécessite PHP 7.1 ou plus (votre version : <code>%s</code>).", phpversion());
exit;
}
if (preg_match('#^WIN#iU', php_uname('s')) || !function_exists('strptime'))
{
printf("Canalblog Importer ne fonctionne pas sous Windows ou sur les sytèmes auxquels il manque la fonction <code>strptime</code>.");
exit;
}
require dirname(__FILE__).'/lib/Plugin.class.php';
$CanalblogImporterPlugin = WPPluginToolkitPlugin::create('CanalblogImporter', __FILE__);
$CanalblogImporterPlugin->dispatch();