This commit is contained in:
2026-08-18 09:39:33 +02:00
parent 69b0216521
commit 0e8edcd5c0
119 changed files with 0 additions and 20366 deletions
@@ -1,45 +0,0 @@
<?php
/**
* Plugin Name: MU Test Plugin
* Description: MU Test plugin.
* Author: WEDOS
* Version: 1.0.0
*/
if (!defined('ABSPATH')) {
exit;
}
add_action('admin_notices', function () {
if (!current_user_can('manage_options')) {
return;
}
echo '<div class="notice notice-success is-dismissible">';
echo '<p><strong>MU TEST OK</strong> — shared MU plugin.</p>';
echo '</div>';
});
add_action('admin_bar_menu', function ($wp_admin_bar) {
if (!current_user_can('manage_options')) {
return;
}
$wp_admin_bar->add_node([
'id' => 'mu-test-ok',
'title' => 'MU TEST OK',
'href' => admin_url('plugins.php?plugin_status=mustuse'),
'meta' => [
'title' => 'MU plugin',
],
]);
}, 100);
add_action('wp_footer', function () {
if (!current_user_can('manage_options')) {
return;
}
echo '<div style="position:fixed;right:16px;bottom:16px;z-index:99999;padding:10px 14px;background:#16a34a;color:#fff;border-radius:8px;font:14px/1.4 sans-serif;box-shadow:0 4px 16px rgba(0,0,0,.2);">MU TEST OK</div>';
});
@@ -1,7 +0,0 @@
<?php
if (!defined('SODEW_SMTP_ENABLE') || SODEW_SMTP_ENABLE === true) {
if (is_readable(__DIR__ . '/sodew-smtp.php')) {
require(__DIR__ . '/sodew-smtp.php');
}
}
@@ -1,46 +0,0 @@
<?php
/**
* @author Maksym Krugol <maksym.krugol@wedos.org>
* @copyright SODEW, s.r.o.
*
* @wordpress-plugin
* Plugin Name: SODEW SMTP config
* Plugin URI: https://sodew.ai
* Description: SMTP config
* Author: SODEW
* Author URI: https://sodew.ai
* Version: 1.1
*/
defined('ABSPATH') || exit;
add_action('phpmailer_init', function ($phpmailer) {
$domain = wp_parse_url(home_url(), PHP_URL_HOST);
$fromName = defined('SODEW_SMTP_FROM_NAME') ? SODEW_SMTP_FROM_NAME : 'WordPress';
$replyTo = defined('SODEW_SMTP_REPLY_TO') ? SODEW_SMTP_REPLY_TO : "wordpress@$domain";
$replyToName = defined('SODEW_SMTP_REPLY_TO_NAME') ? SODEW_SMTP_REPLY_TO_NAME : $fromName;
$phpmailer->isSMTP();
$phpmailer->XMailer = 'sodewMailer 1.1';
$phpmailer->Host = 'postfix';
$phpmailer->Port = 587;
$phpmailer->SMTPAuth = true;
$phpmailer->SMTPSecure = 'tls';
$phpmailer->SMTPAutoTLS = true;
$phpmailer->SMTPOptions = [
'ssl' => [
'verify_peer' => true,
'verify_peer_name' => true,
'peer_name' => SODEW_SMTP_HOST,
'allow_self_signed' => true,
],
];
$phpmailer->Username = SODEW_SMTP_USER;
$phpmailer->Password = SODEW_SMTP_PASS;
$phpmailer->setFrom(SODEW_SMTP_POSTMASTER, $fromName, false);
$phpmailer->Sender = SODEW_SMTP_POSTMASTER;
$phpmailer->clearReplyTos();
$phpmailer->addReplyTo($replyTo, $replyToName);
});