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
Vendored
BIN
View File
Binary file not shown.
@@ -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>';
?>
@@ -0,0 +1,203 @@
<!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>';
?>
@@ -0,0 +1,243 @@
<!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';
$migrace = isset($_GET['migrace']) && $_GET['migrace'] == '1';
if ($migrace) {
// Migrace ze staré služby WebSite 1.0 (VEDOS) - e-mail se posílá z jiné adresy
$from = 'obchod@vedos.cz';
$headers = "From: VEDOS <$from>\r\n";
} else {
$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.'&domain=' . $domain_name;
$headers .= "List-Unsubscribe: <mailto:$from?subject=unsubscribe>, <$unsubscribe_url>\r\n";
$headers .= "List-Unsubscribe-Post: List-Unsubscribe=One-Click\r\n";
$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';
// Původní doména webu (před migrací), pokud byla předána v parametru url-original
$url_original = isset($_GET['url-original']) ? sanitize_text_field($_GET['url-original']) : '';
// Připravený HTML fragment pro vložení do textu e-mailu (prázdný, pokud url-original nepřišlo)
$url_original_html = $url_original !== '' ? ' <strong>' . htmlspecialchars($url_original) . '</strong>' : '';
// 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));
// Zakázání indexace webu ve vyhledávačích (WP přidá noindex a upraví robots.txt)
update_option('blog_public', 0);
// Zakázání automatických aktualizací jádra/pluginů/motivů WP
// (registrujeme jako mu-plugin, aby platilo trvale i mimo tento request)
$mu_plugins_dir = ABSPATH . 'wp-content/mu-plugins';
if (!is_dir($mu_plugins_dir)) {
mkdir($mu_plugins_dir, 0755, true);
}
$disable_updates_code = "<?php\n"
. "// Vygenerováno autoinstalačním skriptem - vypíná automatické aktualizace WP\n"
. "add_filter('automatic_updater_disabled', '__return_true');\n"
. "add_filter('auto_update_core', '__return_false');\n"
. "add_filter('auto_update_plugin', '__return_false');\n"
. "add_filter('auto_update_theme', '__return_false');\n";
file_put_contents($mu_plugins_dir . '/disable-auto-updates.php', $disable_updates_code);
if($migrace) {
// E-mail o migraci ze staré služby WebSite 1.0 (VEDOS) na nové řešení
if ($language == 'cs_CZ') { include(__DIR__ . "/autoinstall-partials/local_migrace_cs.php"); }
elseif ($language == 'de_DE') { include(__DIR__ . "/autoinstall-partials/local_migrace_de.php"); }
elseif ($language == 'pl_PL') { include(__DIR__ . "/autoinstall-partials/local_migrace_pl.php"); }
elseif ($language == 'ro_RO') { include(__DIR__ . "/autoinstall-partials/local_migrace_ro.php"); }
elseif ($language == 'hu_HU') { include(__DIR__ . "/autoinstall-partials/local_migrace_hu.php"); }
else { include(__DIR__ . "/autoinstall-partials/local_migrace_en.php"); }
mail($user_email, $subject, $message, $headers, "-f $from");
} elseif($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,166 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = 'Váš nový WordPress s AI hostingem od SODEW je připraven!';
else
$subject = 'Váš nový web se SODEW AI builderem je připraven!';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$admin_edit_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit';
$admin_starter_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit&website-starter=1';
$lostpassword_url = $url_without_filename.'wp-login.php?action=lostpassword';
$message = '
<!DOCTYPE html>
<html lang="cs">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#d0d0d0;">
<div style="font-size:1px;line-height:1px;display:none;color:#fff;max-height:0;max-width:0;opacity:0;overflow:hidden">Váš nový web je připraven. Níže najdete přihlašovací údaje.</div>
<div style="background-color:#d0d0d0;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:30px 0 10px 0;text-align:center;">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width:400px;width:80%;height:auto;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:10px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:16px;line-height:1.5em;color:#333;">
<p>Dobrý den,</p>
<p>&nbsp;</p>
<p>'.((isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1') ? 'děkujeme, že používáte náš AI hosting pro váš WordPress! ❤️' : 'děkujeme, že používáte SODEW Website! ❤️').'</p>
<p>&nbsp;</p>
<p>Váš nový web je nyní připraven. Níže najdete údaje pro přihlášení do administrace.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:15px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tbody>
<tr>
<td align="center" style="border-radius:6px;background-color:#4CAF50;">
<a href="'.$admin_edit_url.'" target="_blank" style="display:inline-block;padding:14px 28px;font-family:Arial, Helvetica, sans-serif;font-size:16px;color:#ffffff;text-decoration:none;border-radius:6px;">Začít upravovat web</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p><strong>Informace o Vašem webu:</strong></p>
<p>&#127760; <strong>Váš web:</strong> <a href="'.$url_without_filename.'" style="color:#65278A;text-decoration:underline;">'.$url_without_filename.'</a></p>
<p>&#9993; <strong>E-mail pro přihlášení:</strong> '.$user_email.'</p>
<p>&#128274; <strong>Heslo:</strong> '.$user_password.'</p>
<p>&#128273; <strong>Odkaz pro přihlášení do administrace webu:</strong> <a href="'.$full_login_url.'" style="color:#65278A;text-decoration:underline;">Přihlásit se</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Heslo doporučujeme změnit <a href="'.$lostpassword_url.'" style="color:#65278A;text-decoration:underline;">zde</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1') {
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Pokud se vám cokoli nepovedlo nebo chcete začít s čistým štítem, klikněte <a href="'.$admin_starter_url.'" style="color:#65278A;text-decoration:underline;">sem</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
}
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 25px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>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>.</p>
<p>&nbsp;</p>
<p>Přejeme vám mnoho úspěchů s vaším novým webem!</p>
<p>&nbsp;</p>
<p>Děkujeme,</p>
<p>tým SODEW</p>
<p><a href="https://www.sodew.cz" style="color:#65278A;text-decoration:underline;">www.sodew.cz</a></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#000000;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#000000;width:100%;">
<tbody>
<tr>
<td style="padding:30px 25px 10px 25px;text-align:center;">
<img src="https://sales.sodew.ai/media/images/logo_sodew_ai_white_shadow.png" alt="SODEW" style="width:150px;height:auto;">
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:1.5;color:#ffffff;">
<p>SODEW LTD<br>Unit Q, 35 Astbury Road, London</p>
<p>United Kingdom SE15 2NL</p>
<p>&nbsp;</p>
<p>SODEW, s.r.o.<br>Masarykova 1230</p>
<p>373 41 Hluboká nad Vltavou</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px 30px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:11px;line-height:1.5;color:#b3b3b3;">
<p>Pokud si nepřejete dostávat další e-maily, můžete se <a href="'.$unsubscribe_url.'" target="_blank" style="color:#b3b3b3;">odhlásit</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
@@ -0,0 +1,166 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = 'Ihre neue WordPress-Website mit SODEW AI Hosting ist bereit!';
else
$subject = 'Ihre neue Website mit SODEW AI Builder ist bereit!';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$admin_edit_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit';
$admin_starter_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit&website-starter=1';
$lostpassword_url = $url_without_filename.'wp-login.php?action=lostpassword';
$message = '
<!DOCTYPE html>
<html lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#d0d0d0;">
<div style="font-size:1px;line-height:1px;display:none;color:#fff;max-height:0;max-width:0;opacity:0;overflow:hidden">Ihre neue Website ist bereit. Unten finden Sie Ihre Anmeldedaten.</div>
<div style="background-color:#d0d0d0;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:30px 0 10px 0;text-align:center;">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width:400px;width:80%;height:auto;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:10px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:16px;line-height:1.5em;color:#333;">
<p>Hallo,</p>
<p>&nbsp;</p>
<p>'.((isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1') ? 'vielen Dank, dass Sie unser KI-Hosting für Ihr WordPress nutzen! ❤️' : 'vielen Dank, dass Sie SODEW Website nutzen! ❤️').'</p>
<p>&nbsp;</p>
<p>Ihre neue Website ist jetzt bereit. Unten finden Sie die Anmeldedaten für den Administrationsbereich.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:15px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tbody>
<tr>
<td align="center" style="border-radius:6px;background-color:#4CAF50;">
<a href="'.$admin_edit_url.'" target="_blank" style="display:inline-block;padding:14px 28px;font-family:Arial, Helvetica, sans-serif;font-size:16px;color:#ffffff;text-decoration:none;border-radius:6px;">Website bearbeiten</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p><strong>Informationen zu Ihrer Website:</strong></p>
<p>&#127760; <strong>Ihre Website:</strong> <a href="'.$url_without_filename.'" style="color:#65278A;text-decoration:underline;">'.$url_without_filename.'</a></p>
<p>&#9993; <strong>Anmeldung (E-Mail):</strong> '.$user_email.'</p>
<p>&#128274; <strong>Passwort:</strong> '.$user_password.'</p>
<p>&#128273; <strong>Link zur Anmeldung im Administrationsbereich:</strong> <a href="'.$full_login_url.'" style="color:#65278A;text-decoration:underline;">Anmelden</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Wir empfehlen, Ihr Passwort <a href="'.$lostpassword_url.'" style="color:#65278A;text-decoration:underline;">hier zu ändern</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1') {
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Wenn etwas nicht funktioniert hat oder Sie neu beginnen möchten, klicken Sie <a href="'.$admin_starter_url.'" style="color:#65278A;text-decoration:underline;">hier</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
}
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 25px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Sollten Sie Fragen haben oder weitere Unterstützung benötigen, besuchen Sie unsere <a href="https://docs.sodew.ai/" style="color:#65278A;text-decoration:underline;">Hilfeseite</a>.</p>
<p>&nbsp;</p>
<p>Wir wünschen Ihnen viel Erfolg mit Ihrer neuen Website!</p>
<p>&nbsp;</p>
<p>Vielen Dank,</p>
<p>Team SODEW</p>
<p><a href="https://sodew.de" style="color:#65278A;text-decoration:underline;">sodew.de</a></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#000000;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#000000;width:100%;">
<tbody>
<tr>
<td style="padding:30px 25px 10px 25px;text-align:center;">
<img src="https://sales.sodew.ai/media/images/logo_sodew_ai_white_shadow.png" alt="SODEW" style="width:150px;height:auto;">
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:1.5;color:#ffffff;">
<p>SODEW LTD<br>Unit Q, 35 Astbury Road, London</p>
<p>United Kingdom SE15 2NL</p>
<p>&nbsp;</p>
<p>SODEW, s.r.o.<br>Masarykova 1230</p>
<p>373 41 Hluboká nad Vltavou</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px 30px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:11px;line-height:1.5;color:#b3b3b3;">
<p>Wenn Sie diese E-Mails nicht mehr erhalten möchten, können Sie sich <a href="'.$unsubscribe_url.'" target="_blank" style="color:#b3b3b3;">abmelden</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
@@ -0,0 +1,166 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = 'Your New WordPress Website with SODEW AI Hosting is Ready!';
else
$subject = 'Your New Website with SODEW AI Builder is Ready!';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$admin_edit_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit';
$admin_starter_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit&website-starter=1';
$lostpassword_url = $url_without_filename.'wp-login.php?action=lostpassword';
$message = '
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#d0d0d0;">
<div style="font-size:1px;line-height:1px;display:none;color:#fff;max-height:0;max-width:0;opacity:0;overflow:hidden">Your new website is ready. Below you will find your login details.</div>
<div style="background-color:#d0d0d0;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:30px 0 10px 0;text-align:center;">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width:400px;width:80%;height:auto;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:10px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:16px;line-height:1.5em;color:#333;">
<p>Hello,</p>
<p>&nbsp;</p>
<p>'.((isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1') ? 'thank you for using our AI hosting for your WordPress! ❤️' : 'thank you for using SODEW Website! ❤️').'</p>
<p>&nbsp;</p>
<p>Your new website is now ready. Below you will find the login details for the admin area.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:15px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tbody>
<tr>
<td align="center" style="border-radius:6px;background-color:#4CAF50;">
<a href="'.$admin_edit_url.'" target="_blank" style="display:inline-block;padding:14px 28px;font-family:Arial, Helvetica, sans-serif;font-size:16px;color:#ffffff;text-decoration:none;border-radius:6px;">Start editing your website</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p><strong>Information about your website:</strong></p>
<p>&#127760; <strong>Your website:</strong> <a href="'.$url_without_filename.'" style="color:#65278A;text-decoration:underline;">'.$url_without_filename.'</a></p>
<p>&#9993; <strong>Login email:</strong> '.$user_email.'</p>
<p>&#128274; <strong>Password:</strong> '.$user_password.'</p>
<p>&#128273; <strong>Admin login link:</strong> <a href="'.$full_login_url.'" style="color:#65278A;text-decoration:underline;">Log in</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>We recommend changing your password <a href="'.$lostpassword_url.'" style="color:#65278A;text-decoration:underline;">here</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1') {
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>If something did not work out or you want to start with a clean slate, click <a href="'.$admin_starter_url.'" style="color:#65278A;text-decoration:underline;">here</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
}
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 25px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Should you have any questions or need further assistance, feel free to visit our <a href="https://docs.sodew.ai/" style="color:#65278A;text-decoration:underline;">help page</a>.</p>
<p>&nbsp;</p>
<p>We wish you great success with your new website!</p>
<p>&nbsp;</p>
<p>Thank you,</p>
<p>Team SODEW</p>
<p><a href="https://www.sodew.ai" style="color:#65278A;text-decoration:underline;">www.sodew.ai</a></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#000000;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#000000;width:100%;">
<tbody>
<tr>
<td style="padding:30px 25px 10px 25px;text-align:center;">
<img src="https://sales.sodew.ai/media/images/logo_sodew_ai_white_shadow.png" alt="SODEW" style="width:150px;height:auto;">
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:1.5;color:#ffffff;">
<p>SODEW LTD<br>Unit Q, 35 Astbury Road, London</p>
<p>United Kingdom SE15 2NL</p>
<p>&nbsp;</p>
<p>SODEW, s.r.o.<br>Masarykova 1230</p>
<p>373 41 Hluboká nad Vltavou</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px 30px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:11px;line-height:1.5;color:#b3b3b3;">
<p>If you no longer wish to receive these e-mails, you can <a href="'.$unsubscribe_url.'" target="_blank" style="color:#b3b3b3;">unsubscribe</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
@@ -0,0 +1,166 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = 'Elkészült az új WordPress oldala a SODEW AI tárhellyel!';
else
$subject = 'Elkészült az új weboldala a SODEW AI építővel!';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$admin_edit_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit';
$admin_starter_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit&website-starter=1';
$lostpassword_url = $url_without_filename.'wp-login.php?action=lostpassword';
$message = '
<!DOCTYPE html>
<html lang="hu">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#d0d0d0;">
<div style="font-size:1px;line-height:1px;display:none;color:#fff;max-height:0;max-width:0;opacity:0;overflow:hidden">Az új weboldala elkészült. Lent találja a bejelentkezési adatait.</div>
<div style="background-color:#d0d0d0;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:30px 0 10px 0;text-align:center;">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width:400px;width:80%;height:auto;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:10px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:16px;line-height:1.5em;color:#333;">
<p>Kedves Ügyfelünk,</p>
<p>&nbsp;</p>
<p>'.((isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1') ? 'köszönjük, hogy a WordPress-hez az AI tárhelyünket használja! ❤️' : 'köszönjük, hogy a SODEW Website szolgáltatást használja! ❤️').'</p>
<p>&nbsp;</p>
<p>Az új weboldala mostantól elérhető. Lent találja az adminisztrációhoz szükséges bejelentkezési adatokat.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:15px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tbody>
<tr>
<td align="center" style="border-radius:6px;background-color:#4CAF50;">
<a href="'.$admin_edit_url.'" target="_blank" style="display:inline-block;padding:14px 28px;font-family:Arial, Helvetica, sans-serif;font-size:16px;color:#ffffff;text-decoration:none;border-radius:6px;">Weboldal szerkesztése</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p><strong>Információk a weboldaláról:</strong></p>
<p>&#127760; <strong>Weboldal:</strong> <a href="'.$url_without_filename.'" style="color:#65278A;text-decoration:underline;">'.$url_without_filename.'</a></p>
<p>&#9993; <strong>Bejelentkezési e-mail:</strong> '.$user_email.'</p>
<p>&#128274; <strong>Jelszó:</strong> '.$user_password.'</p>
<p>&#128273; <strong>Bejelentkezés az adminisztrációba:</strong> <a href="'.$full_login_url.'" style="color:#65278A;text-decoration:underline;">Bejelentkezés</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Javasoljuk a jelszó megváltoztatását <a href="'.$lostpassword_url.'" style="color:#65278A;text-decoration:underline;">itt</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1') {
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Ha valami nem sikerült, vagy új weboldallal szeretne kezdeni, kattintson <a href="'.$admin_starter_url.'" style="color:#65278A;text-decoration:underline;">ide</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
}
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 25px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Amennyiben további kérdései vannak vagy segítségre van szüksége, látogasson el a <a href="https://docs.sodew.ai/" style="color:#65278A;text-decoration:underline;">súgó oldalunkra</a>.</p>
<p>&nbsp;</p>
<p>Sok sikert kívánunk az új weboldalához!</p>
<p>&nbsp;</p>
<p>Köszönjük,</p>
<p>SODEW csapata</p>
<p><a href="https://www.sodew.hu" style="color:#65278A;text-decoration:underline;">www.sodew.hu</a></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#000000;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#000000;width:100%;">
<tbody>
<tr>
<td style="padding:30px 25px 10px 25px;text-align:center;">
<img src="https://sales.sodew.ai/media/images/logo_sodew_ai_white_shadow.png" alt="SODEW" style="width:150px;height:auto;">
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:1.5;color:#ffffff;">
<p>SODEW LTD<br>Unit Q, 35 Astbury Road, London</p>
<p>United Kingdom SE15 2NL</p>
<p>&nbsp;</p>
<p>SODEW, s.r.o.<br>Masarykova 1230</p>
<p>373 41 Hluboká nad Vltavou</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px 30px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:11px;line-height:1.5;color:#b3b3b3;">
<p>Ha nem szeretne további e-maileket kapni, akkor <a href="'.$unsubscribe_url.'" target="_blank" style="color:#b3b3b3;">leiratkozhat</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
@@ -0,0 +1,202 @@
<?php
$subject = 'WebSite 1.0 končí - zvolte si, jak chcete pokračovat';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$header_image_url = 'https://sodew.ai/img/vedos-header-image.jpg';
// TODO: over / dopln skutecnou cilovou URL pro zalozeni noveho webu ve sluzbe Website SODEW
$new_website_url = 'https://vedos.cz/website-sodew/';
$more_info_url = 'https://vedos.cz/website-1-0-konec/';
$message = '
<!DOCTYPE html>
<html lang="cs">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#f4f4f4;">
<div style="background-color:#f4f4f4;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0;text-align:center;">
<img src="'.$header_image_url.'" alt="VEDOS Hosting" style="width:100%;height:auto;display:block;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td align="center" style="padding:35px 30px 5px 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:28px;font-weight:700;color:#2962ff;">WebSite 1.0 končí</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:16px;color:#6d6d6d;">Zvolte si, jak chcete pokračovat</div>
</td>
</tr>
<tr>
<td align="center" style="padding:0 30px 20px 30px;">
<div style="width:50px;height:3px;background-color:#2962ff;font-size:1px;line-height:1px;">&nbsp;</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Dobrý den,</p>
<p>&nbsp;</p>
<p>máte u nás vytvořený web'.$url_original_html.' ve službě WebSite 1.0. Původní službu budeme postupně ukončovat a nahradí ji nové řešení <strong>Website SODEW</strong>, které vzniklo ve spolupráci společností SODEW, s.r.o. a VEDOS.</p>
<p>&nbsp;</p>
<p>Připravili jsme pro vás <strong>dvě možnosti</strong>, jak pokračovat:</p>
</div>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">1. Vytvořit si nový web</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Pokud chcete začít znovu, můžete si vytvořit nový web ve službě <strong>Website SODEW</strong>.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$new_website_url.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Vytvořit nový web</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">2. Převést stávající web</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Váš stávající web jsme pro vás převedli do nového řešení postaveného na WordPressu.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;background-color:#f4f6fa;border-radius:8px;">
<tbody>
<tr>
<td style="padding:18px 20px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.8em;color:#333;">
<p><strong>Přihlašovací údaje:</strong></p>
<p>E-mail: '.$user_email.'</p>
<p>Heslo: '.$user_password.'</p>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Na první přihlášení máte 30 dní od doručení tohoto e-mailu.<br>Po prvním přihlášení vám začne běžet dalších 30 dní na vyzkoušení převedeného webu.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$url_without_filename.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Zobrazit převedený web</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:360px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$full_login_url.'" target="_blank" style="display:inline-block;width:296px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Přihlásit se do převedeného webu</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Podrobnější informace o ukončení služby, možnostech přechodu a novém řešení najdete zde:<br><a href="'.$more_info_url.'" style="color:#2962ff;text-decoration:underline;">vedos.cz/website-1-0-konec/</a></p>
<p>&nbsp;</p>
<p>Pokud žádnou z možností nevyužijete, po ukončení služby WebSite 1.0 již váš původní web <strong>nebude dostupný</strong>. Doporučujeme proto změnu vyřešit včas.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:15px 30px 30px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>S pozdravem,<br><strong>tým VEDOS / SODEW</strong></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;border-top:1px solid #e0e0e0;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:20px 25px 10px 25px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;line-height:1.6;color:#4d4d4d;">
<p><strong style="color:#ff5a00;">VEDOS,</strong> a.s.<br>Masarykova 1230<br>373 41 Hluboká nad Vltavou<br>E-mail: <a href="mailto:obchod@vedos.cz" style="color:#2962ff;">obchod@vedos.cz</a><br>URL: <a href="https://vedos.cz" style="color:#2962ff;">https://www.vedos.cz</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:5px 25px 25px 25px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:11px;line-height:1.5;color:#6d6d6d;">
<p><a href="'.$unsubscribe_url.'" style="color:#6d6d6d;">Odhlásit se</a> z odebírání našich e-mailů.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
@@ -0,0 +1,202 @@
<?php
$subject = 'WebSite 1.0 wird eingestellt - wählen Sie, wie Sie fortfahren möchten';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$header_image_url = 'https://sodew.ai/img/vedos-header-image.jpg';
// TODO: over / dopln skutecnou cilovou URL pro zalozeni noveho webu ve sluzbe Website SODEW
$new_website_url = 'https://vedos.cz/website-sodew/';
$more_info_url = 'https://vedos.cz/website-1-0-konec/';
$message = '
<!DOCTYPE html>
<html lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#f4f4f4;">
<div style="background-color:#f4f4f4;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0;text-align:center;">
<img src="'.$header_image_url.'" alt="VEDOS Hosting" style="width:100%;height:auto;display:block;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td align="center" style="padding:35px 30px 5px 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:28px;font-weight:700;color:#2962ff;">WebSite 1.0 endet</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:16px;color:#6d6d6d;">Wählen Sie, wie Sie fortfahren möchten</div>
</td>
</tr>
<tr>
<td align="center" style="padding:0 30px 20px 30px;">
<div style="width:50px;height:3px;background-color:#2962ff;font-size:1px;line-height:1px;">&nbsp;</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Hallo,</p>
<p>&nbsp;</p>
<p>Sie haben bei uns eine Website'.$url_original_html.' im Dienst WebSite 1.0. Wir werden diesen ursprünglichen Dienst schrittweise einstellen. Er wird durch die neue Lösung <strong>Website SODEW</strong> ersetzt, die in Zusammenarbeit von SODEW, s.r.o. und VEDOS entstanden ist.</p>
<p>&nbsp;</p>
<p>Wir haben für Sie <strong>zwei Möglichkeiten</strong> vorbereitet, wie Sie fortfahren können:</p>
</div>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">1. Neue Website erstellen</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Wenn Sie neu beginnen möchten, können Sie eine neue Website im Dienst <strong>Website SODEW</strong> erstellen.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$new_website_url.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Neue Website erstellen</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">2. Bestehende Website übertragen</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Wir haben Ihre bestehende Website für Sie in eine neue, auf WordPress basierende Lösung übertragen.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;background-color:#f4f6fa;border-radius:8px;">
<tbody>
<tr>
<td style="padding:18px 20px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.8em;color:#333;">
<p><strong>Anmeldedaten:</strong></p>
<p>E-Mail: '.$user_email.'</p>
<p>Passwort: '.$user_password.'</p>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Für die erste Anmeldung haben Sie 30 Tage ab Zustellung dieser E-Mail Zeit.<br>Nach der ersten Anmeldung beginnen weitere 30 Tage, um die übertragene Website auszuprobieren.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$url_without_filename.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Übertragene Website ansehen</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:360px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$full_login_url.'" target="_blank" style="display:inline-block;width:296px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Bei der übertragenen Website anmelden</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Ausführlichere Informationen zur Einstellung des Dienstes, den Umstiegsmöglichkeiten und der neuen Lösung finden Sie hier:<br><a href="'.$more_info_url.'" style="color:#2962ff;text-decoration:underline;">vedos.cz/website-1-0-konec/</a></p>
<p>&nbsp;</p>
<p>Wenn Sie keine der Möglichkeiten nutzen, ist Ihre ursprüngliche Website nach Einstellung des Dienstes WebSite 1.0 <strong>nicht mehr erreichbar</strong>. Wir empfehlen daher, dies rechtzeitig zu klären.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:15px 30px 30px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Mit freundlichen Grüßen,<br><strong>Ihr VEDOS / SODEW Team</strong></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;border-top:1px solid #e0e0e0;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:20px 25px 10px 25px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;line-height:1.6;color:#4d4d4d;">
<p><strong style="color:#ff5a00;">VEDOS,</strong> a.s.<br>Masarykova 1230<br>373 41 Hluboká nad Vltavou<br>E-mail: <a href="mailto:obchod@vedos.cz" style="color:#2962ff;">obchod@vedos.cz</a><br>URL: <a href="https://vedos.cz" style="color:#2962ff;">https://www.vedos.cz</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:5px 25px 25px 25px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:11px;line-height:1.5;color:#6d6d6d;">
<p><a href="'.$unsubscribe_url.'" style="color:#6d6d6d;">Abmelden</a> von unseren E-Mails.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
@@ -0,0 +1,202 @@
<?php
$subject = 'WebSite 1.0 is coming to an end - choose how to proceed';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$header_image_url = 'https://sodew.ai/img/vedos-header-image.jpg';
// TODO: over / dopln skutecnou cilovou URL pro zalozeni noveho webu ve sluzbe Website SODEW
$new_website_url = 'https://vedos.cz/website-sodew/';
$more_info_url = 'https://vedos.cz/website-1-0-konec/';
$message = '
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#f4f4f4;">
<div style="background-color:#f4f4f4;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0;text-align:center;">
<img src="'.$header_image_url.'" alt="VEDOS Hosting" style="width:100%;height:auto;display:block;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td align="center" style="padding:35px 30px 5px 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:28px;font-weight:700;color:#2962ff;">WebSite 1.0 is ending</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:16px;color:#6d6d6d;">Choose how you would like to proceed</div>
</td>
</tr>
<tr>
<td align="center" style="padding:0 30px 20px 30px;">
<div style="width:50px;height:3px;background-color:#2962ff;font-size:1px;line-height:1px;">&nbsp;</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Hello,</p>
<p>&nbsp;</p>
<p>you have a website'.$url_original_html.' with us in the WebSite 1.0 service. We will be gradually discontinuing this original service, and it will be replaced by the new <strong>Website SODEW</strong> solution, created in cooperation between SODEW, s.r.o. and VEDOS.</p>
<p>&nbsp;</p>
<p>We have prepared <strong>two options</strong> for how to proceed:</p>
</div>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">1. Create a new website</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>If you want to start fresh, you can create a new website in the <strong>Website SODEW</strong> service.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$new_website_url.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Create a new website</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">2. Migrate your existing website</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>We have migrated your existing website for you to a new solution built on WordPress.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;background-color:#f4f6fa;border-radius:8px;">
<tbody>
<tr>
<td style="padding:18px 20px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.8em;color:#333;">
<p><strong>Login details:</strong></p>
<p>Email: '.$user_email.'</p>
<p>Password: '.$user_password.'</p>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>You have 30 days from delivery of this e-mail to log in for the first time.<br>After your first login, you will have another 30 days to try out the migrated website.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$url_without_filename.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">View migrated website</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:360px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$full_login_url.'" target="_blank" style="display:inline-block;width:296px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Log in to your migrated website</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>You can find more detailed information about the discontinuation of the service, migration options and the new solution here:<br><a href="'.$more_info_url.'" style="color:#2962ff;text-decoration:underline;">vedos.cz/website-1-0-konec/</a></p>
<p>&nbsp;</p>
<p>If you do not use either option, your original website <strong>will no longer be available</strong> once the WebSite 1.0 service ends. We therefore recommend resolving this in time.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:15px 30px 30px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Kind regards,<br><strong>the VEDOS / SODEW team</strong></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;border-top:1px solid #e0e0e0;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:20px 25px 10px 25px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;line-height:1.6;color:#4d4d4d;">
<p><strong style="color:#ff5a00;">VEDOS,</strong> a.s.<br>Masarykova 1230<br>373 41 Hluboká nad Vltavou<br>E-mail: <a href="mailto:obchod@vedos.cz" style="color:#2962ff;">obchod@vedos.cz</a><br>URL: <a href="https://vedos.cz" style="color:#2962ff;">https://www.vedos.cz</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:5px 25px 25px 25px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:11px;line-height:1.5;color:#6d6d6d;">
<p><a href="'.$unsubscribe_url.'" style="color:#6d6d6d;">Unsubscribe</a> from our e-mails.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
@@ -0,0 +1,202 @@
<?php
$subject = 'A WebSite 1.0 megszűnik - válassza ki, hogyan szeretné folytatni';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$header_image_url = 'https://sodew.ai/img/vedos-header-image.jpg';
// TODO: over / dopln skutecnou cilovou URL pro zalozeni noveho webu ve sluzbe Website SODEW
$new_website_url = 'https://vedos.cz/website-sodew/';
$more_info_url = 'https://vedos.cz/website-1-0-konec/';
$message = '
<!DOCTYPE html>
<html lang="hu">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#f4f4f4;">
<div style="background-color:#f4f4f4;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0;text-align:center;">
<img src="'.$header_image_url.'" alt="VEDOS Hosting" style="width:100%;height:auto;display:block;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td align="center" style="padding:35px 30px 5px 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:28px;font-weight:700;color:#2962ff;">A WebSite 1.0 megszűnik</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:16px;color:#6d6d6d;">Válassza ki, hogyan szeretné folytatni</div>
</td>
</tr>
<tr>
<td align="center" style="padding:0 30px 20px 30px;">
<div style="width:50px;height:3px;background-color:#2962ff;font-size:1px;line-height:1px;">&nbsp;</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Kedves Ügyfelünk,</p>
<p>&nbsp;</p>
<p>Önnek nálunk van egy weboldala'.$url_original_html.' a WebSite 1.0 szolgáltatásban. Ezt az eredeti szolgáltatást fokozatosan megszüntetjük, helyette az új <strong>Website SODEW</strong> megoldás lép, amely a SODEW, s.r.o. és a VEDOS együttműködésével jött létre.</p>
<p>&nbsp;</p>
<p><strong>Két lehetőséget</strong> készítettünk elő Önnek a folytatáshoz:</p>
</div>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">1. Új weboldal létrehozása</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Ha újra szeretne kezdeni, létrehozhat egy új weboldalt a <strong>Website SODEW</strong> szolgáltatásban.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$new_website_url.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Új weboldal létrehozása</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">2. Meglévő weboldal átköltöztetése</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Meglévő weboldalát átköltöztettük Önnek egy új, WordPress alapú megoldásra.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;background-color:#f4f6fa;border-radius:8px;">
<tbody>
<tr>
<td style="padding:18px 20px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.8em;color:#333;">
<p><strong>Bejelentkezési adatok:</strong></p>
<p>E-mail: '.$user_email.'</p>
<p>Jelszó: '.$user_password.'</p>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Az első bejelentkezésre 30 napja van ennek az e-mailnek a kézbesítésétől számítva.<br>Az első bejelentkezés után újabb 30 nap áll rendelkezésére az átköltöztetett weboldal kipróbálására.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$url_without_filename.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Átköltöztetett weboldal megtekintése</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:360px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$full_login_url.'" target="_blank" style="display:inline-block;width:296px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Bejelentkezés az átköltöztetett weboldalra</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>A szolgáltatás megszüntetéséről, az átállási lehetőségekről és az új megoldásról részletesebb információt itt talál:<br><a href="'.$more_info_url.'" style="color:#2962ff;text-decoration:underline;">vedos.cz/website-1-0-konec/</a></p>
<p>&nbsp;</p>
<p>Ha egyik lehetőséget sem veszi igénybe, a WebSite 1.0 szolgáltatás megszűnése után eredeti weboldala <strong>többé nem lesz elérhető</strong>. Javasoljuk, hogy a váltást időben oldja meg.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:15px 30px 30px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Üdvözlettel,<br><strong>a VEDOS / SODEW csapata</strong></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;border-top:1px solid #e0e0e0;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:20px 25px 10px 25px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;line-height:1.6;color:#4d4d4d;">
<p><strong style="color:#ff5a00;">VEDOS,</strong> a.s.<br>Masarykova 1230<br>373 41 Hluboká nad Vltavou<br>E-mail: <a href="mailto:obchod@vedos.cz" style="color:#2962ff;">obchod@vedos.cz</a><br>URL: <a href="https://vedos.cz" style="color:#2962ff;">https://www.vedos.cz</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:5px 25px 25px 25px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:11px;line-height:1.5;color:#6d6d6d;">
<p><a href="'.$unsubscribe_url.'" style="color:#6d6d6d;">Leiratkozás</a> e-mailjeink listájáról.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
@@ -0,0 +1,202 @@
<?php
$subject = 'Usługa WebSite 1.0 się kończy - wybierz, jak chcesz kontynuować';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$header_image_url = 'https://sodew.ai/img/vedos-header-image.jpg';
// TODO: over / dopln skutecnou cilovou URL pro zalozeni noveho webu ve sluzbe Website SODEW
$new_website_url = 'https://vedos.cz/website-sodew/';
$more_info_url = 'https://vedos.cz/website-1-0-konec/';
$message = '
<!DOCTYPE html>
<html lang="pl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#f4f4f4;">
<div style="background-color:#f4f4f4;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0;text-align:center;">
<img src="'.$header_image_url.'" alt="VEDOS Hosting" style="width:100%;height:auto;display:block;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td align="center" style="padding:35px 30px 5px 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:28px;font-weight:700;color:#2962ff;">WebSite 1.0 się kończy</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:16px;color:#6d6d6d;">Wybierz, jak chcesz kontynuować</div>
</td>
</tr>
<tr>
<td align="center" style="padding:0 30px 20px 30px;">
<div style="width:50px;height:3px;background-color:#2962ff;font-size:1px;line-height:1px;">&nbsp;</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Dzień dobry,</p>
<p>&nbsp;</p>
<p>masz u nas stronę'.$url_original_html.' w usłudze WebSite 1.0. Tę pierwotną usługę będziemy stopniowo wycofywać, a zastąpi ją nowe rozwiązanie <strong>Website SODEW</strong>, powstałe we współpracy firm SODEW, s.r.o. i VEDOS.</p>
<p>&nbsp;</p>
<p>Przygotowaliśmy dla Ciebie <strong>dwie możliwości</strong> dalszego działania:</p>
</div>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">1. Stwórz nową stronę</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Jeśli chcesz zacząć od nowa, możesz stworzyć nową stronę w usłudze <strong>Website SODEW</strong>.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$new_website_url.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Stwórz nową stronę</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">2. Przenieś istniejącą stronę</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Przenieśliśmy dla Ciebie Twoją istniejącą stronę do nowego rozwiązania opartego na WordPressie.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;background-color:#f4f6fa;border-radius:8px;">
<tbody>
<tr>
<td style="padding:18px 20px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.8em;color:#333;">
<p><strong>Dane logowania:</strong></p>
<p>E-mail: '.$user_email.'</p>
<p>Hasło: '.$user_password.'</p>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Na pierwsze logowanie masz 30 dni od doręczenia tej wiadomości e-mail.<br>Po pierwszym logowaniu rozpocznie się kolejne 30 dni na wypróbowanie przeniesionej strony.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$url_without_filename.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Zobacz przeniesioną stronę</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:360px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$full_login_url.'" target="_blank" style="display:inline-block;width:296px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Zaloguj się do przeniesionej strony</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Bardziej szczegółowe informacje o zakończeniu usługi, możliwościach migracji i nowym rozwiązaniu znajdziesz tutaj:<br><a href="'.$more_info_url.'" style="color:#2962ff;text-decoration:underline;">vedos.cz/website-1-0-konec/</a></p>
<p>&nbsp;</p>
<p>Jeśli nie skorzystasz z żadnej z opcji, po zakończeniu usługi WebSite 1.0 Twoja pierwotna strona <strong>nie będzie już dostępna</strong>. Zalecamy zatem rozwiązanie tej kwestii na czas.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:15px 30px 30px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Z poważaniem,<br><strong>zespół VEDOS / SODEW</strong></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;border-top:1px solid #e0e0e0;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:20px 25px 10px 25px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;line-height:1.6;color:#4d4d4d;">
<p><strong style="color:#ff5a00;">VEDOS,</strong> a.s.<br>Masarykova 1230<br>373 41 Hluboká nad Vltavou<br>E-mail: <a href="mailto:obchod@vedos.cz" style="color:#2962ff;">obchod@vedos.cz</a><br>URL: <a href="https://vedos.cz" style="color:#2962ff;">https://www.vedos.cz</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:5px 25px 25px 25px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:11px;line-height:1.5;color:#6d6d6d;">
<p><a href="'.$unsubscribe_url.'" style="color:#6d6d6d;">Wypisz się</a> z otrzymywania naszych e-maili.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
@@ -0,0 +1,202 @@
<?php
$subject = 'Serviciul WebSite 1.0 se încheie - alegeți cum doriți să continuați';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$header_image_url = 'https://sodew.ai/img/vedos-header-image.jpg';
// TODO: over / dopln skutecnou cilovou URL pro zalozeni noveho webu ve sluzbe Website SODEW
$new_website_url = 'https://vedos.cz/website-sodew/';
$more_info_url = 'https://vedos.cz/website-1-0-konec/';
$message = '
<!DOCTYPE html>
<html lang="ro">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#f4f4f4;">
<div style="background-color:#f4f4f4;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0;text-align:center;">
<img src="'.$header_image_url.'" alt="VEDOS Hosting" style="width:100%;height:auto;display:block;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td align="center" style="padding:35px 30px 5px 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:28px;font-weight:700;color:#2962ff;">WebSite 1.0 se încheie</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:16px;color:#6d6d6d;">Alegeți cum doriți să continuați</div>
</td>
</tr>
<tr>
<td align="center" style="padding:0 30px 20px 30px;">
<div style="width:50px;height:3px;background-color:#2962ff;font-size:1px;line-height:1px;">&nbsp;</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Bună ziua,</p>
<p>&nbsp;</p>
<p>aveți la noi un site'.$url_original_html.' creat în serviciul WebSite 1.0. Acest serviciu original va fi întrerupt treptat, fiind înlocuit de noua soluție <strong>Website SODEW</strong>, creată în colaborare de SODEW, s.r.o. și VEDOS.</p>
<p>&nbsp;</p>
<p>Am pregătit pentru dvs. <strong>două opțiuni</strong> pentru a continua:</p>
</div>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">1. Creați un site nou</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Dacă doriți să începeți din nou, puteți crea un site nou în serviciul <strong>Website SODEW</strong>.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$new_website_url.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Creați un site nou</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:10px 30px 0 30px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:700;color:#2962ff;">2. Migrați site-ul existent</div>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Am migrat pentru dvs. site-ul existent către o nouă soluție bazată pe WordPress.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 15px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;background-color:#f4f6fa;border-radius:8px;">
<tbody>
<tr>
<td style="padding:18px 20px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.8em;color:#333;">
<p><strong>Date de conectare:</strong></p>
<p>E-mail: '.$user_email.'</p>
<p>Parolă: '.$user_password.'</p>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Aveți la dispoziție 30 de zile de la primirea acestui e-mail pentru prima conectare.<br>După prima conectare, veți avea încă 30 de zile pentru a testa site-ul migrat.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 10px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:280px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$url_without_filename.'" target="_blank" style="display:inline-block;width:216px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Vizualizați site-ul migrat</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="center" style="padding:5px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:360px;line-height:100%;">
<tbody>
<tr>
<td align="center" bgcolor="#2962ff" style="border:none;border-radius:15px;background:#2962ff;">
<a href="'.$full_login_url.'" target="_blank" style="display:inline-block;width:296px;background:#2962ff;color:#ffffff;font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;font-weight:600;line-height:120%;margin:0;text-decoration:none;padding:16px 32px;border-radius:15px;">Conectați-vă la site-ul migrat</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:5px 30px 15px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Informații mai detaliate despre încheierea serviciului, opțiunile de migrare și noua soluție găsiți aici:<br><a href="'.$more_info_url.'" style="color:#2962ff;text-decoration:underline;">vedos.cz/website-1-0-konec/</a></p>
<p>&nbsp;</p>
<p>Dacă nu folosiți niciuna dintre opțiuni, după încheierea serviciului WebSite 1.0 site-ul dvs. original <strong>nu va mai fi disponibil</strong>. Vă recomandăm așadar să rezolvați această schimbare la timp.</p>
</div>
</td>
</tr>
<tr>
<td style="padding:15px 30px 30px 30px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Cu stimă,<br><strong>echipa VEDOS / SODEW</strong></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;border-top:1px solid #e0e0e0;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:20px 25px 10px 25px;">
<div style="font-family:\'Open Sans\', Helvetica, Arial, sans-serif;font-size:14px;line-height:1.6;color:#4d4d4d;">
<p><strong style="color:#ff5a00;">VEDOS,</strong> a.s.<br>Masarykova 1230<br>373 41 Hluboká nad Vltavou<br>E-mail: <a href="mailto:obchod@vedos.cz" style="color:#2962ff;">obchod@vedos.cz</a><br>URL: <a href="https://vedos.cz" style="color:#2962ff;">https://www.vedos.cz</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:5px 25px 25px 25px;">
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:11px;line-height:1.5;color:#6d6d6d;">
<p><a href="'.$unsubscribe_url.'" style="color:#6d6d6d;">Dezabonare</a> de la e-mailurile noastre.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
@@ -0,0 +1,166 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = 'Twoja nowa strona WordPress z hostingiem SODEW AI jest gotowa!';
else
$subject = 'Twoja nowa strona z SODEW AI Builder jest gotowa!';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$admin_edit_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit';
$admin_starter_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit&website-starter=1';
$lostpassword_url = $url_without_filename.'wp-login.php?action=lostpassword';
$message = '
<!DOCTYPE html>
<html lang="pl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#d0d0d0;">
<div style="font-size:1px;line-height:1px;display:none;color:#fff;max-height:0;max-width:0;opacity:0;overflow:hidden">Twoja nowa strona jest gotowa. Poniżej znajdziesz dane do logowania.</div>
<div style="background-color:#d0d0d0;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:30px 0 10px 0;text-align:center;">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width:400px;width:80%;height:auto;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:10px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:16px;line-height:1.5em;color:#333;">
<p>Dzień dobry,</p>
<p>&nbsp;</p>
<p>'.((isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1') ? 'dziękujemy za korzystanie z naszego hostingu AI dla WordPressa! ❤️' : 'dziękujemy za korzystanie z SODEW Website! ❤️').'</p>
<p>&nbsp;</p>
<p>Twoja nowa strona jest już gotowa. Poniżej znajdziesz dane do logowania w panelu administracyjnym.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:15px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tbody>
<tr>
<td align="center" style="border-radius:6px;background-color:#4CAF50;">
<a href="'.$admin_edit_url.'" target="_blank" style="display:inline-block;padding:14px 28px;font-family:Arial, Helvetica, sans-serif;font-size:16px;color:#ffffff;text-decoration:none;border-radius:6px;">Edytuj swoją stronę</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p><strong>Informacje o Twojej stronie:</strong></p>
<p>&#127760; <strong>Twoja strona:</strong> <a href="'.$url_without_filename.'" style="color:#65278A;text-decoration:underline;">'.$url_without_filename.'</a></p>
<p>&#9993; <strong>E-mail do logowania:</strong> '.$user_email.'</p>
<p>&#128274; <strong>Hasło:</strong> '.$user_password.'</p>
<p>&#128273; <strong>Link do logowania w administracji strony:</strong> <a href="'.$full_login_url.'" style="color:#65278A;text-decoration:underline;">Zaloguj się</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Zalecamy zmianę hasła <a href="'.$lostpassword_url.'" style="color:#65278A;text-decoration:underline;">tutaj</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1') {
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Jeśli masz problemy lub po prostu chcesz zacząć od nowa, kliknij <a href="'.$admin_starter_url.'" style="color:#65278A;text-decoration:underline;">tutaj</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
}
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 25px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>W przypadku jakichkolwiek pytań lub potrzeby dalszej pomocy, zachęcamy do odwiedzenia <a href="https://docs.sodew.ai/" style="color:#65278A;text-decoration:underline;">strony pomocy</a>.</p>
<p>&nbsp;</p>
<p>Życzymy powodzenia z Twoją nową stroną!</p>
<p>&nbsp;</p>
<p>Dziękujemy,</p>
<p>Zespół SODEW</p>
<p><a href="https://sodew.pl" style="color:#65278A;text-decoration:underline;">sodew.pl</a></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#000000;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#000000;width:100%;">
<tbody>
<tr>
<td style="padding:30px 25px 10px 25px;text-align:center;">
<img src="https://sales.sodew.ai/media/images/logo_sodew_ai_white_shadow.png" alt="SODEW" style="width:150px;height:auto;">
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:1.5;color:#ffffff;">
<p>SODEW LTD<br>Unit Q, 35 Astbury Road, London</p>
<p>United Kingdom SE15 2NL</p>
<p>&nbsp;</p>
<p>SODEW, s.r.o.<br>Masarykova 1230</p>
<p>373 41 Hluboká nad Vltavou</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px 30px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:11px;line-height:1.5;color:#b3b3b3;">
<p>Jeśli nie chcesz już otrzymywać takich wiadomości, możesz się <a href="'.$unsubscribe_url.'" target="_blank" style="color:#b3b3b3;">wypisać</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
@@ -0,0 +1,166 @@
<?php
if(isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1')
$subject = 'Noul dvs. site WordPress cu găzduirea SODEW AI este gata!';
else
$subject = 'Noul dvs. site cu SODEW AI Builder este gata!';
// Oprava kodovani predmetu (diakritika/emoji se u nekterych klientu - Kolab, iCloud - zobrazovaly rozbite)
$subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\r\n");
$admin_edit_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit';
$admin_starter_url = $url_without_filename.'wp-admin/site-editor.php?canvas=edit&website-starter=1';
$lostpassword_url = $url_without_filename.'wp-login.php?action=lostpassword';
$message = '
<!DOCTYPE html>
<html lang="ro">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
table, td { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
img { border:0; height:auto; line-height:100%; outline:none; text-decoration:none; -ms-interpolation-mode:bicubic; }
p { display:block; margin:0; }
</style>
</head>
<body style="word-spacing:normal;background-color:#d0d0d0;">
<div style="font-size:1px;line-height:1px;display:none;color:#fff;max-height:0;max-width:0;opacity:0;overflow:hidden">Noul dvs. site este gata. Mai jos găsiți datele de conectare.</div>
<div style="background-color:#d0d0d0;">
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:30px 0 10px 0;text-align:center;">
<img src="https://sodew.ai/img/bg-logo.png" alt="Logo SODEW" style="max-width:400px;width:80%;height:auto;">
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:10px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:16px;line-height:1.5em;color:#333;">
<p>Bună ziua,</p>
<p>&nbsp;</p>
<p>'.((isset($_GET['just-hosting']) && $_GET['just-hosting'] == '1') ? 'vă mulțumim că folosiți găzduirea noastră AI pentru WordPress! ❤️' : 'vă mulțumim că folosiți SODEW Website! ❤️').'</p>
<p>&nbsp;</p>
<p>Noul dvs. site web este acum gata. Mai jos găsiți datele de conectare pentru administrare.</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:15px 30px 25px 30px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tbody>
<tr>
<td align="center" style="border-radius:6px;background-color:#4CAF50;">
<a href="'.$admin_edit_url.'" target="_blank" style="display:inline-block;padding:14px 28px;font-family:Arial, Helvetica, sans-serif;font-size:16px;color:#ffffff;text-decoration:none;border-radius:6px;">Editați site-ul dvs.</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p><strong>Informații despre site-ul dvs.:</strong></p>
<p>&#127760; <strong>Site-ul dvs.:</strong> <a href="'.$url_without_filename.'" style="color:#65278A;text-decoration:underline;">'.$url_without_filename.'</a></p>
<p>&#9993; <strong>E-mail de conectare:</strong> '.$user_email.'</p>
<p>&#128274; <strong>Parolă:</strong> '.$user_password.'</p>
<p>&#128273; <strong>Link de conectare la administrare:</strong> <a href="'.$full_login_url.'" style="color:#65278A;text-decoration:underline;">Conectați-vă</a></p>
</div>
</td>
</tr>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Vă recomandăm să vă schimbați parola <a href="'.$lostpassword_url.'" style="color:#65278A;text-decoration:underline;">aici</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
if(!isset($_GET['just-hosting']) || $_GET['just-hosting'] != '1') {
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 20px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Dacă întâmpinați probleme sau doriți doar să începeți din nou, faceți clic <a href="'.$admin_starter_url.'" style="color:#65278A;text-decoration:underline;">aici</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
';
}
$message .= '
<div style="background:#ffffff;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;width:100%;">
<tbody>
<tr>
<td style="padding:0 30px 25px 30px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:1.7em;color:#333;">
<p>Dacă aveți întrebări sau aveți nevoie de asistență suplimentară, vizitați <a href="https://docs.sodew.ai/" style="color:#65278A;text-decoration:underline;">pagina de ajutor</a>.</p>
<p>&nbsp;</p>
<p>Vă dorim mult succes cu noul dvs. site web!</p>
<p>&nbsp;</p>
<p>Vă mulțumim,</p>
<p>Echipa SODEW</p>
<p><a href="https://sodew.ro" style="color:#65278A;text-decoration:underline;">sodew.ro</a></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="background:#000000;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#000000;width:100%;">
<tbody>
<tr>
<td style="padding:30px 25px 10px 25px;text-align:center;">
<img src="https://sales.sodew.ai/media/images/logo_sodew_ai_white_shadow.png" alt="SODEW" style="width:150px;height:auto;">
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:1.5;color:#ffffff;">
<p>SODEW LTD<br>Unit Q, 35 Astbury Road, London</p>
<p>United Kingdom SE15 2NL</p>
<p>&nbsp;</p>
<p>SODEW, s.r.o.<br>Masarykova 1230</p>
<p>373 41 Hluboká nad Vltavou</p>
</div>
</td>
</tr>
<tr>
<td align="center" style="padding:10px 25px 30px 25px;">
<div style="font-family:Arial, Helvetica, sans-serif;font-size:11px;line-height:1.5;color:#b3b3b3;">
<p>Dacă nu mai doriți să primiți aceste e-mailuri, vă puteți <a href="'.$unsubscribe_url.'" target="_blank" style="color:#b3b3b3;">dezabona</a>.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
';
?>
+153
View File
@@ -0,0 +1,153 @@
#!/usr/bin/env bash
set -euo pipefail
TARGET_DIR="www"
SODEW_DIR="sodew"
# WordPress core (latest.zip)
WP_URL_BASE="https://wordpress.org/latest.zip"
# Plugin slugs (WordPress.org)
PLUGINS=(
"litespeed-cache"
)
need_cmd() {
command -v "$1" >/dev/null 2>&1 || { echo "Chybí příkaz: $1" >&2; exit 1; }
}
need_cmd curl
need_cmd unzip
need_cmd rsync
need_cmd mktemp
need_cmd date
need_cmd find
need_cmd grep
need_cmd sed
tmp="$(mktemp -d)"
cleanup() { rm -rf "$tmp"; }
trap cleanup EXIT
ts="$(date +%s)"
echo "==> TMP: $tmp"
mkdir -p "$tmp/downloads" "$tmp/extract" "$tmp/plugins"
# --- Helper: fresh download (no cache) ---
fresh_curl() {
local url="$1"
local out="$2"
curl -fsSL --retry 3 --retry-delay 1 \
-H "Cache-Control: no-cache, no-store, must-revalidate" \
-H "Pragma: no-cache" \
-H "Expires: 0" \
-o "$out" \
"$url"
}
# --- Helper: detekce verze WordPressu ---
detect_wp_version() {
local version_file="$1/wp-includes/version.php"
if [[ -f "$version_file" ]]; then
grep -E "^\\\$wp_version\s*=" "$version_file" \
| head -n1 \
| sed -E "s/.*=\s*'([^']+)'.*/\1/"
else
echo "neznámá"
fi
}
# --- Helper: detekce verze pluginu ---
detect_plugin_version() {
local plugin_dir="$1"
# Zkus najít verzi v PHP hlavičce hlavního souboru pluginu
local version
version="$(grep -rhiE "^\s*\*?\s*Version:\s*" "$plugin_dir" --include="*.php" 2>/dev/null \
| head -n1 \
| sed -E "s/.*[Vv]ersion:\s*([0-9A-Za-z.\-]+).*/\1/")"
if [[ -z "$version" ]]; then
# Fallback: zkus readme.txt (Stable tag)
local readme="$plugin_dir/readme.txt"
if [[ -f "$readme" ]]; then
version="$(grep -iE "^Stable tag:" "$readme" \
| head -n1 \
| sed -E "s/.*[Ss]table tag:\s*([0-9A-Za-z.\-]+).*/\1/")"
fi
fi
echo "${version:-neznámá}"
}
# --- Fail-fast: kontrola struktury SODEW ---
echo "==> Kontroluju SODEW zdroj"
[[ -d "$SODEW_DIR" ]] || { echo "Chybí složka: $SODEW_DIR" >&2; exit 1; }
[[ -d "$SODEW_DIR/wp-content/mu-plugins" ]] || { echo "Chybí: $SODEW_DIR/wp-content/mu-plugins/" >&2; exit 1; }
echo "==> Stahuju WordPress (vždy fresh)"
WP_URL="${WP_URL_BASE}?t=${ts}"
fresh_curl "$WP_URL" "$tmp/downloads/wordpress.zip"
echo "==> Rozbaluju WordPress"
unzip -q "$tmp/downloads/wordpress.zip" -d "$tmp/extract"
WP_SRC="$tmp/extract/wordpress"
if [[ ! -d "$WP_SRC/wp-admin" ]]; then
echo "Chyba: WordPress nebyl správně rozbalen." >&2
exit 1
fi
WP_VERSION="$(detect_wp_version "$WP_SRC")"
echo " WordPress verze: ${WP_VERSION}"
# Pole pro shrnutí na konci
declare -A PLUGIN_VERSIONS
echo "==> Stahuju a rozbaluju pluginy (vždy fresh)"
for slug in "${PLUGINS[@]}"; do
url="https://downloads.wordpress.org/plugin/${slug}.zip?t=${ts}"
zip="$tmp/downloads/${slug}.zip"
echo " -> $slug"
fresh_curl "$url" "$zip"
unzip -q "$zip" -d "$tmp/plugins"
plugin_dir="$tmp/plugins/$slug"
if [[ -d "$plugin_dir" ]]; then
pv="$(detect_plugin_version "$plugin_dir")"
else
pv="neznámá"
fi
PLUGIN_VERSIONS["$slug"]="$pv"
echo " verze: ${pv}"
done
echo "==> Připravuju cílovou složku"
mkdir -p "$TARGET_DIR"
echo "==> Clean deploy (mažu obsah cílové složky)"
find "$TARGET_DIR" -mindepth 1 -maxdepth 1 -exec rm -rf {} +
echo "==> Nasazuju WordPress core"
rsync -a --delete "$WP_SRC"/ "$TARGET_DIR"/
echo "==> Nasazuju pluginy do wp-content/plugins"
mkdir -p "$TARGET_DIR/wp-content/plugins"
rm -rf "$TARGET_DIR/wp-content/plugins/"* || true
rsync -a "$tmp/plugins"/ "$TARGET_DIR/wp-content/plugins/"
echo "==> Includuju vše ze SODEW do rootu WP (kromě wp-content/)"
rsync -a \
--exclude "wp-content/" \
"$SODEW_DIR"/ \
"$TARGET_DIR"/
echo "==> Includuju mu-plugins ze SODEW do wp-content/mu-plugins"
mkdir -p "$TARGET_DIR/wp-content/mu-plugins"
rsync -a --delete \
"$SODEW_DIR/wp-content/mu-plugins/" \
"$TARGET_DIR/wp-content/mu-plugins/"
echo ""
echo "==> Hotovo."
echo ""
echo "Nasazené verze:"
echo " - WordPress: ${WP_VERSION}"
for slug in "${PLUGINS[@]}"; do
echo " - ${slug}: ${PLUGIN_VERSIONS[$slug]}"
done