-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathwordproof-timestamp.php
executable file
·56 lines (46 loc) · 1.36 KB
/
wordproof-timestamp.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* Plugin Name: WordProof Timestamp
* Plugin URI: https://wordproof.io/wordproof-timestamp-plugin/
* Description: Timestamp your WordPress content into the blockchain. Instant and without fees. For EOSIO, EOS, Ethereum & Telos.
* Version: 3.0.15
* Author: WordProof
* Author URI: https://wordproof.com
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Domain Path: /languages
**/
namespace WordProofTimestamp;
use WordProofTimestamp\App\Core;
use WordProofTimestamp\App\Vendor\Dotenv\Dotenv;
if (!defined('WPINC')) {
die();
}
/**
* Load Composer and Dotenv
*/
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require __DIR__ . '/vendor/autoload.php';
$dotenv = Dotenv::createImmutable(__DIR__);
try {
$dotenv->safeLoad();
} catch (\Exception $e) {}
}
/**
* Define the plugin constants
*/
define('WORDPROOF_VERSION', '3.0.15');
define('WORDPROOF_SLUG', 'wordproof');
define('WORDPROOF_ROOT_FILE', __FILE__);
define('WORDPROOF_BASENAME', plugin_basename(WORDPROOF_ROOT_FILE));
define('WORDPROOF_DIR', plugin_dir_path(WORDPROOF_ROOT_FILE));
define('WORDPROOF_DIR_VENDOR', WORDPROOF_DIR . 'vendor/');
define('WORDPROOF_URI', plugin_dir_url(WORDPROOF_ROOT_FILE));
define('WORDPROOF_URI_BUILD', WORDPROOF_URI . 'build/');
/**
* Construct new app.
*/
new Core();
/**
* That's all. Happy timestamping!
*/