autoinstalatory

This commit is contained in:
2026-08-18 10:33:14 +02:00
parent af7110ad3a
commit 564d312967
32 changed files with 4008 additions and 0 deletions
@@ -0,0 +1,204 @@
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loading...</title>
<style>
.loader {
border: 16px solid #707080;
border-radius: 50%;
border-top: 16px solid #fff;
width: 170px;
height: 170px;
animation: spin 2.5s linear infinite;
position: absolute;
margin: 0 auto;
transform: translate(-50%, -50%);
background: url('https://service.espressowp.com/plugins-storage/hoster-logo-19.png') center center no-repeat;
background-size: 150px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #2d2d31;
}
</style>
</head>
<body>
<div class="loader"></div>
</body>
</html>
<?php
// Inicializace WP
define('WP_INSTALLING', true);
require_once __DIR__ . '/autoinstall-partials/functions.php';
replace_wp_config_salts(__DIR__ . '/wp-config.php');
require_once __DIR__ . '/wp-load.php';
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
$user_email = $_GET['email'];
// Kontrola emailové adresy
if (isset($user_email) && filter_var($user_email, FILTER_VALIDATE_EMAIL)) {
$user_email = htmlspecialchars(trim($_GET['email']));
$lang_allowed = array('en_US','de_DE','fr_FR','pl_PL','cs_CZ','sk_SK','lb_LU','ro_RO','el_GR',
'lt_LT','sr_RS@latin','sl_SI','pt_PT','sv_SE','nl_NL','lv_LV','hr_HR','fi_FI','it_IT','es_ES','hu_HU');
if(isset($_GET['language']) && in_array($_GET['language'], $lang_allowed))
$language = $_GET['language'];
else
$language = 'en_US';
$locale = $language;
if (!in_array($locale, $lang_allowed, true)) $locale = 'en_US';
if (function_exists('opcache_reset')) {
opcache_reset();
}
// Funkce pro smazání adresáře a jeho obsahu
function delete_directory($dir) {
if (!is_dir($dir)) return;
$items = scandir($dir);
foreach ($items as $item) {
if ($item == '.' || $item == '..') continue;
$path = $dir . DIRECTORY_SEPARATOR . $item;
if (is_dir($path))
delete_directory($path);
else
unlink($path);
}
rmdir($dir);
}
// Podmínka pro smazání adresáře, pokud je just-hosting=1
if (isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1') {
$directory_to_delete = ABSPATH . 'wp-content/mu-plugins/espresso-ai';
if (is_dir($directory_to_delete))
delete_directory($directory_to_delete);
$directory_to_delete_wir = ABSPATH . 'wp-content/mu-plugins/wedos-wir';
if (is_dir($directory_to_delete_wir))
delete_directory($directory_to_delete_wir);
}
// Získání URL skriptu
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https://' : 'http://';
$domain_name = $_SERVER['HTTP_HOST'];
$request_uri = $_SERVER['REQUEST_URI'];
$directory_path = dirname($request_uri);
$url_with_filename = $protocol . $domain_name . $request_uri;
$url_without_filename = $protocol . $domain_name . $directory_path;
// Nastavení domovské URL
define('WP_SITEURL', $url_without_filename);
define('WP_HOME', $url_without_filename);
// Základní informace
$blog_title = 'My WordPress Site';
$user_name = getEmailPrefix($user_email);
$user_password = generateRandomString();
$user_password_hash = hash('sha256', $user_password);
$empty_user_email = 'trash@sodew.ai'; // znemožní zaslání uvítacího emailu po instalaci wp
$full_login_url = $url_without_filename.'wp-login.php';
$from = 'ai.info@sodew.ai';
$headers = "From: SODEW AI <$from>\r\n";
$headers .= "Reply-To: $from\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
$unsubscribe_url = 'https://sodew.ai/unsubscribe/?email='.$user_email.'&lang=' . $language;
$api_key = isset($_GET['utm']) ? sanitize_text_field($_GET['utm']) : '0';
$demo = isset($_GET['demo']) && in_array($_GET['demo'], ['1', '0'], true) ? $_GET['demo'] : '0';
// Instalace WP
if (!is_blog_installed()) {
global $wpdb;
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
// 1) stáhni jazyk, je-li potřeba
if (function_exists('wp_can_install_language_pack') && wp_can_install_language_pack()) {
wp_download_language_pack($locale);
}
// 2) nainstaluj WP a předej language
// signatura: wp_install($blog_title, $user_name, $user_email, $public, $deprecated='', $user_password='', $user_language='')
wp_install($blog_title, $user_name, $empty_user_email, true, '', $user_password, $locale);
// 3) pojisti nastavení jazyka a přepni locale pro aktuální request
update_option('WPLANG', $locale);
if (function_exists('switch_to_locale')) {
switch_to_locale($locale);
}
load_default_textdomain();
// Uloží do DB korektní emailovou adresu admina
update_option('siteurl', $url_without_filename);
update_option('home', $url_without_filename);
update_option('admin_email', $user_email);
update_option('api_key', $api_key);
update_option('demo', $demo);
update_option('temp_pass', $user_password);
wp_update_user(array('ID' => 1, 'user_email' => $user_email));
if($demo == 0) {
// E-mail body
if ($language == 'cs_CZ') { include(__DIR__ . "/autoinstall-partials/local_cs.php"); }
elseif ($language == 'de_DE') { include(__DIR__ . "/autoinstall-partials/local_de.php"); }
elseif ($language == 'pl_PL') { include(__DIR__ . "/autoinstall-partials/local_pl.php"); }
elseif ($language == 'ro_RO') { include(__DIR__ . "/autoinstall-partials/local_ro.php"); }
elseif ($language == 'fr_FR') { include(__DIR__ . "/autoinstall-partials/local_fr.php"); }
else { include(__DIR__ . "/autoinstall-partials/local_en.php"); }
mail($user_email, $subject, $message, $headers, "-f $from");
}
// vytvoří cookies pro trvalé přihlášení na 1 rok
$cookie_expiration = time() + (365 * 24 * 60 * 60);
$cookie_path = COOKIEPATH;
$cookie_domain = COOKIE_DOMAIN;
setcookie(LOGGED_IN_COOKIE, wp_generate_auth_cookie(1, $cookie_expiration, 'logged_in'), $cookie_expiration, $cookie_path, $cookie_domain, is_ssl(), true);
// Registrace funkce pro smazání skriptu po ukončení běhu
register_shutdown_function('delete_self', __FILE__, $full_login_url);
// Přesměrování a přihlášení
$login_url = $url_without_filename . 'wp-login.php';
echo '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<form name="loginform" id="loginform" action="' . $login_url . '" method="post">
<input type="hidden" name="log" value="' . $user_name . '" />
<input type="hidden" name="pwd" value="' . $user_password . '" />
<input type="hidden" name="rememberme" value="1" />
</form>
<script type="text/javascript">
document.getElementById("loginform").submit();
</script>
</body>
</html>
';
exit;
}
}
?>
@@ -0,0 +1,71 @@
<?php
// Funkce generuje náhodné heslo
function generateRandomString($minLength = 10, $maxLength = 20) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters); $length = rand($minLength, $maxLength);
$randomString = '';
for ($i = 0; $i < $length; $i++) $randomString .= $characters[rand(0, $charactersLength - 1)];
return $randomString;
}
// Funkce pro získání prefixu emailu
function getEmailPrefix($email) {
$atPos = strpos($email, '@');
return $atPos !== false ? substr($email, 0, $atPos) : '';
}
// Funkce maže soubory autoinstalátoru, přepisuje auto-installation.php na přesměrování
function delete_self($root_file, $full_login_url) {
$directory = dirname(__FILE__);
$files = glob($directory . '/*');
foreach ($files as $file) {
if (is_file($file) && basename($file) !== 'functions.php')
unlink($file);
}
$functions_file = $directory . '/functions.php';
if (file_exists($functions_file))
unlink($functions_file);
if (is_dir($directory))
rmdir($directory);
if (file_exists($root_file)) // unlink($kill_file);
file_put_contents($root_file, '<?php header("Location: '.$full_login_url.'"); ?>');
}
/**
* Nahradí výchozí AUTH/SECURE/LOGGED_IN/NONCE klíče a salty ve wp-config.php
* vlastními náhodnými hodnotami. Musí být volána PŘED require wp-load.php,
* jinak se PHP konstanty definují starými hodnotami a přihlašovací cookie
* po redirectu přestane sedět (uživatel by se odhlásil).
*/
function replace_wp_config_salts($config_path) {
if (!file_exists($config_path) || !is_writable($config_path))
return false;
$config_content = file_get_contents($config_path);
if ($config_content === false)
return false;
// Pokud config už neobsahuje placeholder frázi, nemá smysl nic dělat
if (strpos($config_content, 'put your unique phrase here') === false)
return true;
$keys = [
'AUTH_KEY', 'SECURE_AUTH_KEY', 'LOGGED_IN_KEY', 'NONCE_KEY',
'AUTH_SALT', 'SECURE_AUTH_SALT', 'LOGGED_IN_SALT', 'NONCE_SALT',
];
foreach ($keys as $key) {
$new_value = addslashes(base64_encode(random_bytes(48)));
$pattern = "/define\(\s*'" . preg_quote($key, '/') . "'\s*,\s*'(?:[^'\\\\]|\\\\.)*'\s*\);/";
$replacement = "define('" . $key . "', '" . $new_value . "');";
$config_content = preg_replace($pattern, $replacement, $config_content, 1);
}
return file_put_contents($config_path, $config_content) !== false;
}
?>
@@ -0,0 +1,67 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = '🦜 Užij si svůj nový WordPress s AI hostingem od SODEW!';
else
$subject = '🦜 Užij si svůj nový web se SODEW AI builderem!';
$message = '
<div style="width:100%; padding:10px 0; background-color: #d6dde5; font-family: Arial, sans-serif;">
<div style="max-width: 600px; background: #fff; margin: 8px auto;">
<div style="text-align: center; padding: 2px 0 2px 0; font-size: 12px; color: #333;">
E-mail byl zaslán na základě vyplnění formuláře na <a href="https://sodew.cz" style="color:#65278A; text-decoration: underline;">sodew.cz</a>
</div>
<div style="width:100%; height: 88px; text-align:center;">
<a href="https://www.sodew.cz">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width: 100%; height: auto;">
</a>
</div>
<div style="padding: 5px 20px">
<h1 style="text-align: center; font-size:22px; padding:5px 0 10px 0;color: #333; font-weight: normal">';
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$message .= 'Děkujeme, že používáte náš AI hosting pro váš WordPress!';
else
$message .= 'Děkujeme, že používáte náš nástroj pro tvorbu webových stránek!';
$message .= '</h1>
<p style="color: #333; font-size:15px; padding: 0">Váš nový web je nyní dostupný na adrese <a href="'.$url_without_filename.'" style="color:#65278A; text-decoration: underline;">'.$url_without_filename.'</a></p>
</div>
<img src="https://sodew.ai/img/line1.png" alt="">
<div style="font-size:15px; padding: 8px 20px;">
<p style="color: #333;">Tento e-mail si prosím uschovejte. Obsahuje důležité informace, které se vám budou hodit při příštím přihlášení.<br><br>
<strong>Přihlášení do administrace:</strong> <a style="color:#65278A; text-decoration: underline;" href="'.$url_without_filename.'/wp-login.php">'.$url_without_filename.'wp-login.php</a><br>
<strong>Přihlašovací jméno:</strong> '.$user_name.'<br>
<strong>Heslo:</strong> '.$user_password.'<br><br>
Heslo doporučujeme změnit <a href="'.$url_without_filename.'wp-login.php?action=lostpassword" style="color:#65278A; text-decoration: underline;">zde</a>.</p>';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1')
$message .= '<p style="color: #333;">Pokud se vám cokoli nepovedlo nebo chcete začít s čistým štítem, kliněte <a href="'.$url_without_filename.'wp-admin/site-editor.php?canvas=edit&website-starter=1" style="color:#65278A; text-decoration: underline;">sem</a>.</p>';
$message .= '</div>
<img src="https://sodew.ai/img/line2.png" alt="">
<div style="font-size:15px; padding: 5px 20px;">
<p style="color: #333;">Máte-li jakékoli dotazy nebo potřebujete další pomoc, přejděte do <a href="https://sodew.cz/napoveda" style="color:#65278A; text-decoration: underline;">nápovědy</a>.<br><br>
S přáním hezkého dne<br>Tým SODEW</p>
</div>
<div style="background-color: #65278A; color: #fff; padding: 15px 10px; font-size: 12px; display: flex; justify-content: space-between;">
<div style="flex: 1 1 100%; width: 180px; margin-bottom: 10px; text-align: left">
<a href="mailto:info@sodew.cz" style="color: #fff; text-decoration: underline;">info@sodew.cz</a><br>
<a href="https://www.sodew.cz" style="color: #fff; text-decoration: underline;">www.sodew.cz</a><br>
<a href="https://www.linkedin.com/company/sodew/" style="color: #fff; text-decoration: underline;">linkedin.com/sodew</a>
</div>
<div style="flex: 1 1 100%; width: 200px; margin-bottom: 10px; padding: 0 10px; text-align: center">
<a href="https://sodew.cz" target="_blank"><img src="https://sodew.ai/img/btn-cz-500px.png" alt="" style="max-width: 200px; height: auto;"></a>
</div>
<div style="flex: 1 1 100%; width: 180px; text-align: right; display: block">
<a href="https://www.facebook.com/sodew.cz"><img src="https://sodew.ai/img/facebook.png" height="33" width="33" alt="FB"></a>
<a href="https://www.instagram.com/sodew.cz"><img src="https://sodew.ai/img/instagram.png" height="33" width="33" alt="IG"></a>
<a href="https://youtube.com/@sodew-ai"><img src="https://sodew.ai/img/youtube.png" height="33" width="33" alt="YT"></a>
</div>
</div>
<div style="font-size: 12px; color: #757e8a; text-align:center;">
<p style="padding:0;">SODEW Ltd, Astbury Road 35, SE15 2NL Londýn, Velká Británie. <a href="'.$unsubscribe_url.'" target="_blank">Odhlásit odběr</a>.</p>
</div>
</div>
</div>';
?>
@@ -0,0 +1,65 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = '🦜 Viel Spaß mit Ihrer neuen WordPress-Website mit SODEW AI Hosting!';
else
$subject = '🦜 Viel Spaß mit Ihrer neuen Website mit SODEW AI Builder!';
$message = '
<div style="width:100%; padding:10px 0; background-color: #d6dde5; font-family: Arial, sans-serif;">
<div style="max-width: 600px; background: #fff; margin: 8px auto;">
<div style="text-align: center; padding: 2px 0 2px 0; font-size: 12px; color: #333;">
Diese E-Mail wurde Ihnen geschickt, weil Sie sich kürzlich bei <a href="https://sodew.de" style="color:#65278A; text-decoration: underline;">sodew.de</a> registriert haben.
</div>
<div style="width:100%; height: 88px; text-align:center;">
<a href="https://www.sodew.de">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width: 100%; height: auto;">
</a>
</div>
<div style="padding: 5px 20px"><h1 style="text-align: center; font-size:22px; padding:5px 0 10px 0;color: #333; font-weight: normal">';
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$message .= 'Vielen Dank, dass Sie unser KI-Hosting für Ihr WordPress nutzen!';
else
$message .= 'Vielen Dank, dass Sie unseren KI-Builder für Ihre Website verwenden!';
$message .= '</h1><p style="color: #333; font-size:15px; padding: 0">Ihre neue Website ist jetzt verfügbar unter <a href="'.$url_without_filename.'" style="color:#65278A; text-decoration: underline;">'.$url_without_filename.'</a></p>
</div>
<img src="https://sodew.ai/img/line1.png" alt="">
<div style="font-size:15px; padding: 8px 20px;">
<p style="color: #333;">Bitte bewahren Sie diese E-Mail auf, da sie wichtige Informationen enthält, die Sie für die Anmeldung benötigen.<br><br>
<strong>Hier anmelden:</strong> <a style="color:#65278A; text-decoration: underline;" href="'.$url_without_filename.'/wp-login.php">'.$url_without_filename.'/wp-login.php</a><br>
<strong>Anmeldung:</strong> '.$user_name.'<br>
<strong>Passwort:</strong> '.$user_password.'<br><br>
Wir empfehlen, Ihr Passwort <a href="'.$url_without_filename.'/wp-login.php?action=lostpassword" style="color:#65278A; text-decoration: underline;">hier</a> zu ändern.</p>';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1')
$message .= '<p style="color: #333;">Wenn Sie Probleme haben oder einfach neu anfangen wollen, können Sie <a href="'.$url_without_filename.'/wp-admin/site-editor.php?canvas=edit&website-starter=1" style="color:#65278A; text-decoration: underline;">diesen Link</a> benutzen.</p>';
$message .= '</div>
<img src="https://sodew.ai/img/line2.png" alt="">
<div style="font-size:15px; padding: 5px 20px;">
<p style="color: #333;">Sollten Sie Fragen haben oder weitere Unterstützung benötigen, können Sie unsere <a href="https://docs.sodew.ai/" style="color:#65278A; text-decoration: underline;">Hilfeseite</a> nutzen.<br><br>
Mit freundlichen Grüßen,<br>Team SODEW</p>
</div>
<div style="background-color: #65278A; color: #fff; padding: 15px 10px; font-size: 12px; display: flex; justify-content: space-between;">
<div style="flex: 1 1 100%; width: 180px; margin-bottom: 10px; text-align: left">
<a href="mailto:info@sodew.ai" style="color: #fff; text-decoration: underline;">info@sodew.ai</a><br>
<a href="https://sodew.de" style="color: #fff; text-decoration: underline;">sodew.de</a><br>
<a href="https://www.linkedin.com/company/sodew/" style="color: #fff; text-decoration: underline;">linkedin.com/sodew</a>
</div>
<div style="flex: 1 1 100%; width: 200px; margin-bottom: 10px; padding: 0 10px; text-align: center">
<a href="https://sodew.ai" target="_blank"><img src="https://sodew.ai/img/btn-en-500px.png" alt="" style="max-width: 200px; height: auto;"></a>
</div>
<div style="flex: 1 1 100%; width: 180px; text-align: right; display: block">
<a href="https://www.facebook.com/sodewai"><img src="https://sodew.ai/img/facebook.png" height="33" width="33" alt="FB"></a>
<a href="https://www.instagram.com/sodew.ai"><img src="https://sodew.ai/img/instagram.png" height="33" width="33" alt="IG"></a>
<a href="https://youtube.com/@sodew-ai"><img src="https://sodew.ai/img/youtube.png" height="33" width="33" alt="YT"></a>
</div>
</div>
<div style="font-size: 12px; color: #757e8a; text-align:center;">
<p style="padding:0;">SODEW Ltd, Astbury Road 35, SE15 2NL London, Great Britain. <a href="'.$unsubscribe_url.'" target="_blank">Abbestellen.</a>.</p>
</div>
</div>
</div>';
?>
@@ -0,0 +1,65 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = '🦜 Enjoy Your New WordPress Website with SODEW AI Hosting!';
else
$subject = '🦜 Enjoy Your New Website with SODEW AI Builder!';
$message = '
<div style="width:100%; padding:10px 0; background-color: #d6dde5; font-family: Arial, sans-serif;">
<div style="max-width: 600px; background: #fff; margin: 8px auto;">
<div style="text-align: center; padding: 2px 0 2px 0; font-size: 12px; color: #333;">
This e-mail was sent to you because you have recently completed a registration at <a href="https://sodew.ai" style="color:#65278A; text-decoration: underline;">sodew.ai</a>
</div>
<div style="width:100%; height: 88px; text-align:center;">
<a href="https://www.sodew.ai">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width: 100%; height: auto;">
</a>
</div>
<div style="padding: 5px 20px"><h1 style="text-align: center; font-size:22px; padding:5px 0 10px 0;color: #333; font-weight: normal">';
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$message .= 'Thank you for using our AI hosting for your WordPress!';
else
$message .= 'Thank you for using our AI builder for your website!';
$message .= '</h1><p style="color: #333; font-size:15px; padding: 0">Your new website is now available at <a href="'.$url_without_filename.'" style="color:#65278A; text-decoration: underline;">'.$url_without_filename.'</a></p>
</div>
<img src="https://sodew.ai/img/line1.png" alt="">
<div style="font-size:15px; padding: 8px 20px;">
<p style="color: #333;">Please keep this e-mail as it contains important details that you will need to sign in.<br><br>
<strong>Log in here:</strong> <a style="color:#65278A; text-decoration: underline;" href="'.$url_without_filename.'/wp-login.php">'.$url_without_filename.'wp-login.php</a><br>
<strong>Login:</strong> '.$user_name.'<br>
<strong>Password:</strong> '.$user_password.'<br><br>
We recommend changing your password <a href="'.$url_without_filename.'wp-login.php?action=lostpassword" style="color:#65278A; text-decoration: underline;">here</a>.</p>';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1')
$message .= '<p style="color: #333;">If you are having problems or just want to start again, you can use <a href="'.$url_without_filename.'wp-admin/site-editor.php?canvas=edit&website-starter=1" style="color:#65278A; text-decoration: underline;">this link</a>.</p>';
$message .= '</div>
<img src="https://sodew.ai/img/line2.png" alt="">
<div style="font-size:15px; padding: 5px 20px;">
<p style="color: #333;">Should you have any questions or need further assistance, feel free to use this <a href="https://docs.sodew.ai/" style="color:#65278A; text-decoration: underline;">help page</a>.<br><br>
Kindest regards,<br>Team at SODEW</p>
</div>
<div style="background-color: #65278A; color: #fff; padding: 15px 10px; font-size: 12px; display: flex; justify-content: space-between;">
<div style="flex: 1 1 100%; width: 180px; margin-bottom: 10px; text-align: left">
<a href="mailto:info@sodew.ai" style="color: #fff; text-decoration: underline;">info@sodew.ai</a><br>
<a href="https://www.sodew.ai" style="color: #fff; text-decoration: underline;">www.sodew.ai</a><br>
<a href="https://www.linkedin.com/company/sodew/" style="color: #fff; text-decoration: underline;">linkedin.com/sodew</a>
</div>
<div style="flex: 1 1 100%; width: 200px; margin-bottom: 10px; padding: 0 10px; text-align: center">
<a href="https://sodew.ai" target="_blank"><img src="https://sodew.ai/img/btn-en-500px.png" alt="" style="max-width: 200px; height: auto;"></a>
</div>
<div style="flex: 1 1 100%; width: 180px; text-align: right; display: block">
<a href="https://www.facebook.com/sodewai"><img src="https://sodew.ai/img/facebook.png" height="33" width="33" alt="FB"></a>
<a href="https://www.instagram.com/sodew.ai"><img src="https://sodew.ai/img/instagram.png" height="33" width="33" alt="IG"></a>
<a href="https://youtube.com/@sodew-ai"><img src="https://sodew.ai/img/youtube.png" height="33" width="33" alt="YT"></a>
</div>
</div>
<div style="font-size: 12px; color: #757e8a; text-align:center;">
<p style="padding:0;">SODEW Ltd, Astbury Road 35, SE15 2NL London, Great Britain. <a href="'.$unsubscribe_url.'" target="_blank">Unsubscribe.</a>.</p>
</div>
</div>
</div>';
?>
@@ -0,0 +1,65 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = '🦜 Élvezze az új WordPress-ét a SODEW AI tárhelyével!';
else
$subject = '🦜 Élvezze az új weboldalát a SODEW AI építőjével!';
$message = '
<div style="width:100%; padding:10px 0; background-color: #d6dde5; font-family: Arial, sans-serif;">
<div style="max-width: 600px; background: #fff; margin: 8px auto;">
<div style="text-align: center; padding: 2px 0 2px 0; font-size: 12px; color: #333;">
Az e-mail, űrlap kitöltése alapján lett elküldve a <a href="https://sodew.hu" style="color:#65278A; text-decoration: underline;">sodew.hu</a> weboldalán.
</div>
<div style="width:100%; height: 88px; text-align:center;">
<a href="https://www.sodew.ai">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width: 100%; height: auto;">
</a>
</div>
<div style="padding: 5px 20px"><h1 style="text-align: center; font-size:22px; padding:5px 0 10px 0;color: #333; font-weight: normal">';
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$message .= 'Köszönjük, hogy a WordPress-hez az AI tárhelyünket használja!';
else
$message .= 'Köszönjük, hogy a weboldalépítő szolgáltatásunkat használja!';
$message .= '</h1><p style="color: #333; font-size:15px; padding: 0">Az új weboldala mostantól a <a href="'.$url_without_filename.'" style="color:#65278A; text-decoration: underline;">'.$url_without_filename.'</a></p>
</div>
<img src="https://sodew.ai/img/line1.png" alt="">
<div style="font-size:15px; padding: 8px 20px;">
<p style="color: #333;">Kérjük, őrizze meg ezt az e-mailt. Fontos információkat tartalmaz, amelyek hasznára válnak a következő bejelentkezéskor.<br><br>
<strong>Bejelentkezés az adminisztrációba:</strong> <a style="color:#65278A; text-decoration: underline;" href="'.$url_without_filename.'/wp-login.php">'.$url_without_filename.'wp-login.php</a><br>
<strong>Felhasználónév:</strong> '.$user_name.'<br>
<strong>Jelszó:</strong> '.$user_password.'<br><br>
Javasoljuk a jelszó megváltoztatását <a href="'.$url_without_filename.'wp-login.php?action=lostpassword" style="color:#65278A; text-decoration: underline;">itt</a>.</p>';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1')
$message .= '<p style="color: #333;">Ha valami nem sikerült, vagy új weboldallal szeretne kezdeni, kattintson <a href="'.$url_without_filename.'wp-admin/site-editor.php?canvas=edit&website-starter=1" style="color:#65278A; text-decoration: underline;">ide</a>.</p>';
$message .= '</div>
<img src="https://sodew.ai/img/line2.png" alt="">
<div style="font-size:15px; padding: 5px 20px;">
<p style="color: #333;">Amennyiben további kérdései vannak vagy segítségre van szüksége kattintson <a href="https://docs.sodew.ai/" style="color:#65278A; text-decoration: underline;">ide</a>.<br><br>
Szép napot kívánunk<br>SODEW csapata</p>
</div>
<div style="background-color: #65278A; color: #fff; padding: 15px 10px; font-size: 12px; display: flex; justify-content: space-between;">
<div style="flex: 1 1 100%; width: 180px; margin-bottom: 10px; text-align: left">
<a href="mailto:info@sodew.ai" style="color: #fff; text-decoration: underline;">info@sodew.ai</a><br>
<a href="https://www.sodew.hu" style="color: #fff; text-decoration: underline;">www.sodew.hu</a><br>
<a href="https://www.linkedin.com/company/sodew/" style="color: #fff; text-decoration: underline;">linkedin.com/sodew</a>
</div>
<div style="flex: 1 1 100%; width: 200px; margin-bottom: 10px; padding: 0 10px; text-align: center">
<a href="https://sodew.hu" target="_blank"><img src="https://sodew.ai/img/btn-en-500px.png" alt="" style="max-width: 200px; height: auto;"></a>
</div>
<div style="flex: 1 1 100%; width: 180px; text-align: right; display: block">
<a href="https://www.facebook.com/sodewai"><img src="https://sodew.ai/img/facebook.png" height="33" width="33" alt="FB"></a>
<a href="https://www.instagram.com/sodew.ai"><img src="https://sodew.ai/img/instagram.png" height="33" width="33" alt="IG"></a>
<a href="https://youtube.com/@sodew-ai"><img src="https://sodew.ai/img/youtube.png" height="33" width="33" alt="YT"></a>
</div>
</div>
<div style="font-size: 12px; color: #757e8a; text-align:center;">
<p style="padding:0;">SODEW Ltd, Astbury Road 35, SE15 2NL London, Egyesült Királyság. Ha többé nem akar hírlevelet kapni tőlünk, akkor kattintson <a href="'.$unsubscribe_url.'" target="_blank">ide</a>.</p>
</div>
</div>
</div>';
?>
@@ -0,0 +1,65 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = '🦜 Ciesz się nową stroną WordPress z hostingiem SODEW AI!';
else
$subject = '🦜 Ciesz się swoją nową stroną internetową dzięki SODEW AI Builder!';
$message = '
<div style="width:100%; padding:10px 0; background-color: #d6dde5; font-family: Arial, sans-serif;">
<div style="max-width: 600px; background: #fff; margin: 8px auto;">
<div style="text-align: center; padding: 2px 0 2px 0; font-size: 12px; color: #333;">
Ta wiadomość e-mail została wysłana do użytkownika, ponieważ niedawno ukończył on rejestrację na stronie <a href="https://sodew.pl" style="color:#65278A; text-decoration: underline;">sodew.pl</a>
</div>
<div style="width:100%; height: 88px; text-align:center;">
<a href="https://www.sodew.pl">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width: 100%; height: auto;">
</a>
</div>
<div style="padding: 5px 20px"><h1 style="text-align: center; font-size:22px; padding:5px 0 10px 0;color: #333; font-weight: normal">';
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$message .= 'Dziękujemy za korzystanie z naszego hostingu AI dla WordPressa!';
else
$message .= 'Dziękujemy za skorzystanie z naszego kreatora AI!';
$message .= '</h1><p style="color: #333; font-size:15px; padding: 0">Your new website is now available at <a href="'.$url_without_filename.'" style="color:#65278A; text-decoration: underline;">'.$url_without_filename.'</a></p>
</div>
<img src="https://sodew.ai/img/line1.png" alt="">
<div style="font-size:15px; padding: 8px 20px;">
<p style="color: #333;">Prosimy o zachowanie tego e-maila, ponieważ zawiera on ważne informacje, które będą potrzebne do zalogowania się.<br><br>
<strong>Zaloguj się tutaj:</strong> <a style="color:#65278A; text-decoration: underline;" href="'.$url_without_filename.'/wp-login.php">'.$url_without_filename.'/wp-login.php</a><br>
<strong>Login:</strong> '.$user_name.'<br>
<strong>Hasło:</strong> '.$user_password.'<br><br>
Zalecamy zmianę hasła <a href="'.$url_without_filename.'/wp-login.php?action=lostpassword" style="color:#65278A; text-decoration: underline;">tutaj</a>.</p>';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1')
$message .= '<p style="color: #333;">Jeśli masz problemy lub po prostu chcesz zacząć od nowa, możesz skorzystać <a href="'.$url_without_filename.'/wp-admin/site-editor.php?canvas=edit&website-starter=1" style="color:#65278A; text-decoration: underline;">z tego linku</a>.</p>';
$message .= '</div>
<img src="https://sodew.ai/img/line2.png" alt="">
<div style="font-size:15px; padding: 5px 20px;">
<p style="color: #333;">W przypadku jakichkolwiek pytań lub potrzeby dalszej pomocy, zachęcamy do skorzystania <a href="https://docs.sodew.ai/" style="color:#65278A; text-decoration: underline;">z tej strony pomocy</a>.<br><br>
Z wyrazami szacunku, <br>Team SODEW</p>
</div>
<div style="background-color: #65278A; color: #fff; padding: 15px 10px; font-size: 12px; display: flex; justify-content: space-between;">
<div style="flex: 1 1 100%; width: 180px; margin-bottom: 10px; text-align: left">
<a href="mailto:info@sodew.ai" style="color: #fff; text-decoration: underline;">info@sodew.ai</a><br>
<a href="https://sodew.pl" style="color: #fff; text-decoration: underline;">sodew.pl</a><br>
<a href="https://www.linkedin.com/company/sodew/" style="color: #fff; text-decoration: underline;">linkedin.com/sodew</a>
</div>
<div style="flex: 1 1 100%; width: 200px; margin-bottom: 10px; padding: 0 10px; text-align: center">
<a href="https://sodew.ai" target="_blank"><img src="https://sodew.ai/img/btn-en-500px.png" alt="" style="max-width: 200px; height: auto;"></a>
</div>
<div style="flex: 1 1 100%; width: 180px; text-align: right; display: block">
<a href="https://www.facebook.com/sodewai"><img src="https://sodew.ai/img/facebook.png" height="33" width="33" alt="FB"></a>
<a href="https://www.instagram.com/sodew.ai"><img src="https://sodew.ai/img/instagram.png" height="33" width="33" alt="IG"></a>
<a href="https://youtube.com/@sodew-ai"><img src="https://sodew.ai/img/youtube.png" height="33" width="33" alt="YT"></a>
</div>
</div>
<div style="font-size: 12px; color: #757e8a; text-align:center;">
<p style="padding:0;">SODEW Ltd, Astbury Road 35, SE15 2NL London, Great Britain. <a href="'.$unsubscribe_url.'" target="_blank">Zrezygnuj z subskrypcji.</a>.</p>
</div>
</div>
</div>';
?>
@@ -0,0 +1,65 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = '🦜 Bucură-te de noul tău site web WordPress cu găzduirea SODEW AI!';
else
$subject = '🦜 Bucură-te de noul tău site web cu SODEW AI Builder!';
$message = '
<div style="width:100%; padding:10px 0; background-color: #d6dde5; font-family: Arial, sans-serif;">
<div style="max-width: 600px; background: #fff; margin: 8px auto;">
<div style="text-align: center; padding: 2px 0 2px 0; font-size: 12px; color: #333;">
Acest e-mail v-a fost trimis deoarece v-ați înregistrat recent pe <a href="https://sodew.ro" style="color:#65278A; text-decoration: underline;">sodew.ro</a>
</div>
<div style="width:100%; height: 88px; text-align:center;">
<a href="https://sodew.ro">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width: 100%; height: auto;">
</a>
</div>
<div style="padding: 5px 20px"><h1 style="text-align: center; font-size:22px; padding:5px 0 10px 0;color: #333; font-weight: normal">';
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$message .= 'Vă mulțumim că ați folosit găzduirea noastră bazată pe inteligență artificială pentru WordPress-ul dvs.!';
else
$message .= 'Vă mulțumim că ați folosit constructorul nostru de inteligență artificială pentru site-ul dvs. web!';
$message .= '</h1><p style="color: #333; font-size:15px; padding: 0">Noul dumneavoastră site web este acum disponibil la <a href="'.$url_without_filename.'" style="color:#65278A; text-decoration: underline;">'.$url_without_filename.'</a></p>
</div>
<img src="https://sodew.ai/img/line1.png" alt="">
<div style="font-size:15px; padding: 8px 20px;">
<p style="color: #333;">Vă rugăm să păstrați acest e-mail, deoarece conține detalii importante de care veți avea nevoie pentru a vă conecta.<br><br>
<strong>Conectați-vă aici:</strong> <a style="color:#65278A; text-decoration: underline;" href="'.$url_without_filename.'wp-login.php">'.$url_without_filename.'wp-login.php</a><br>
<strong>Login:</strong> '.$user_name.'<br>
<strong>Parolă:</strong> '.$user_password.'<br><br>
Vă recomandăm să vă schimbați parola <a href="'.$url_without_filename.'wp-login.php?action=lostpassword" style="color:#65278A; text-decoration: underline;">aici</a>.</p>';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1')
$message .= '<p style="color: #333;">Dacă întâmpinați probleme sau doriți doar să începeți din nou, puteți folosi <a href="'.$url_without_filename.'wp-admin/site-editor.php?canvas=edit&website-starter=1" style="color:#65278A; text-decoration: underline;">acest link</a>.</p>';
$message .= '</div>
<img src="https://sodew.ai/img/line2.png" alt="">
<div style="font-size:15px; padding: 5px 20px;">
<p style="color: #333;">Dacă aveți întrebări sau aveți nevoie de asistență suplimentară, nu ezitați să utilizați această <a href="https://docs.sodew.ai/" style="color:#65278A; text-decoration: underline;">pagină de ajutor</a>.<br><br>
Cu cele mai bune gânduri,<br>Echipa SODEW</p>
</div>
<div style="background-color: #65278A; color: #fff; padding: 15px 10px; font-size: 12px; display: flex; justify-content: space-between;">
<div style="flex: 1 1 100%; width: 180px; margin-bottom: 10px; text-align: left">
<a href="mailto:info@sodew.ai" style="color: #fff; text-decoration: underline;">info@sodew.ai</a><br>
<a href="https://sodew.ro" style="color: #fff; text-decoration: underline;">sodew.ro</a><br>
<a href="https://www.linkedin.com/company/sodew/" style="color: #fff; text-decoration: underline;">linkedin.com/sodew</a>
</div>
<div style="flex: 1 1 100%; width: 200px; margin-bottom: 10px; padding: 0 10px; text-align: center">
<a href="https://sodew.ro" target="_blank"><img src="https://sodew.ai/img/btn-en-500px.png" alt="" style="max-width: 200px; height: auto;"></a>
</div>
<div style="flex: 1 1 100%; width: 180px; text-align: right; display: block">
<a href="https://www.facebook.com/sodewai"><img src="https://sodew.ai/img/facebook.png" height="33" width="33" alt="FB"></a>
<a href="https://www.instagram.com/sodew.ai"><img src="https://sodew.ai/img/instagram.png" height="33" width="33" alt="IG"></a>
<a href="https://youtube.com/@sodew-ai"><img src="https://sodew.ai/img/youtube.png" height="33" width="33" alt="YT"></a>
</div>
</div>
<div style="font-size: 12px; color: #757e8a; text-align:center;">
<p style="padding:0;">SODEW Ltd, Astbury Road 35, SE15 2NL London, Great Britain. <a href="'.$unsubscribe_url.'" target="_blank">Unsubscribe.</a>.</p>
</div>
</div>
</div>';
?>