|
Server IP : 89.107.187.42 / Your IP : 216.73.216.104 Web Server : Apache System : Linux sa4.serverdomain.org 6.1.0-48-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.172-1 (2026-05-15) x86_64 User : web86 ( 5140) PHP Version : 8.4.23 Disable Function : os,disk_total_space,sys_getloadavg,apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,diskfreespace,dl,passthru,show_source,system,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0755) : /var/www/clients/client40/web86/web/hp/wp-content/plugins/erecht24/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* @link https://www.e-recht24.de/
* @since 2.0.0
* @package eRecht24
*
* @wordpress-plugin
* Plugin Name: eRecht24 legal texts for WordPress
* Plugin URI: https://www.e-recht24.de/
* Description: This plugin allows the easy integration of imprint and privacy policy of eRecht24.
* Version: 3.4.3
* Author: eRecht24, Weslink GmbH
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: erecht24
* Domain Path: /languages
* Requires PHP: 7.1
*/
namespace eRecht24\LegalTexts;
use eRecht24\LegalTexts\App\Helper;
use eRecht24\LegalTexts\Inc\Core\Activator;
use eRecht24\LegalTexts\Inc\Core\Deactivator;
use eRecht24\LegalTexts\Inc\Core\Init;
use eRecht24\LegalTexts\Inc\Core\Updater;
use eRecht24\LegalTexts\Inc\Core\PluginUpdateGit;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Define Constants
*/
define( __NAMESPACE__ . '\NS', __NAMESPACE__ . '\\' );
define( __NAMESPACE__ . '\PLUGIN_NAME_DIR', plugin_dir_path( __FILE__ ) );
define( __NAMESPACE__ . '\PLUGIN_NAME_URL', plugin_dir_url( __FILE__ ) );
define( __NAMESPACE__ . '\PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
/**
* Autoload Classes
*/
require_once( PLUGIN_NAME_DIR . 'vendor/autoload.php' );
// Constants for configuration
require_once(PLUGIN_NAME_DIR . 'Inc/Core/PluginUpdateGit.php');
/**
* Add meta link function
*/
/**
* Register Activation and Deactivation Hooks
* This action is documented in inc/core/class-activator.php
*/
$activator = new Activator();
register_activation_hook(__FILE__, [$activator, 'execute']);
/**
* Register Update Hooks
*/
/**
* Register a Hook if new sub page is created & initialized
*/
add_action('wp_initialize_site', [$activator, 'handleSiteCreation']);
/**
* The code that runs during plugin deactivation.
* This action is documented inc/core/class-deactivator.php
*/
$deactivator = new Deactivator();
register_deactivation_hook(__FILE__, [$deactivator, 'execute']);
/**
* The code that runs during plugin uninstallation.
* This action is documented inc/core/class-uninstall.php
*/
register_uninstall_hook( __FILE__, array( NS . 'Inc\Core\Uninstall', 'uninstall' ) );
/**
* Plugin Singleton Container
*
* Maintains a single copy of the plugin app object
*
* @since 1.0.0
*/
class eRecht24 {
/**
* The instance of the plugin.
*
* @since 1.0.0
* @var Init $init Instance of the plugin.
*/
private static $init;
/**
* Loads the plugin
*
* @access public
*/
public static function init() {
if ( null === self::$init ) {
self::$init = new Init();
self::$init->run();
}
return self::$init;
}
}
$min_php = '7.1.0';
// Check the minimum required PHP version and run the plugin.
if ( version_compare( PHP_VERSION, $min_php, '>=' ) ) {
eRecht24::init();
}
$version = '3.4.3';
// Initiate the plugin update checker
$pluginupdategit = new PluginUpdateGit(
'erecht24-legal-texts',
"erecht24",
'https://gitlab.cool-tree-8714.gl.apps.muc1.de.bnerd.io/api/v4/projects/30/repository/files/plugin.json?ref=main',
$version,
plugin_basename(__FILE__),
__FILE__,
__NAMESPACE__
);