Upload files to "old_progress"

This commit is contained in:
2026-03-16 15:10:11 +01:00
parent ec18c5be93
commit b24b0720f6
3 changed files with 273 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
$mail_text = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ante orci, molestie vitae vehicula venenatis, tincidunt ac pede. Fusce dui leo, imperdiet in, aliquam sit amet, feugiat eu, orci. Integer imperdiet lectus quis justo. Aenean fermentum risus id tortor. Nunc tincidunt ante vitae massa. Aliquam erat volutpat. Quisque tincidunt scelerisque libero. Fusce consectetuer risus a nunc. Cras elementum. Et harum quidem rerum facilis est et expedita distinctio. Donec quis nibh at felis congue commodo. Aliquam erat volutpat. Mauris dictum facilisis augue. Sed vel lectus. Donec odio tempus molestie, porttitor ut, iaculis quis, sem. Donec quis nibh at felis congue commodo. Nulla turpis magna, cursus sit amet, suscipit a, interdum id, felis. Nulla non lectus sed nisl molestie malesuada. Nunc dapibus tortor vel mi dapibus sollicitudin. Nullam rhoncus aliquam metus. Etiam commodo dui eget wisi.";
$mail_text = wordwrap($mail_text,70);
$mail_komu = "recepty@svach.eu";
$mail_predmet = "predmet" . rand(0,999);
$mail_hlavicka_od = "recepty@svach.eu";
$mail_hlavicka = "MIME-Version: 1.0" . "\r\n";
$mail_hlavicka .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$mail_hlavicka .= "From: \"recepty.svach.eu\" <" . $mail_hlavicka_od . ">" . "\r\n";
// send email
mail($mail_komu,$mail_predmet,$mail_text,$mail_hlavicka,"-f " . $mail_hlavicka_od);
echo "<b>zpráva:</b><br>komu: " . $mail_komu . "<br>předmět: " . $mail_predmet . "<br>hlavicka: " . $mail_hlavicka . "<br>text: " . $mail_text . "<hr>konec<hr>";
?>
+238
View File
@@ -0,0 +1,238 @@
<?php
$mail_text = <<<'EOT'
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="x-apple-disable-message-reformatting">
<title></title>
<!--[if mso]>
<noscript>
<xml>
<o:OfficeDocumentSettings>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
</noscript>
<![endif]-->
<style>
/* cyrillic-ext */
@font-face {
font-family: 'Alegreya Sans';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUt9_-1phKLFgshYDvh6Vwt7V9dsm1Ttm4.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Alegreya Sans';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUt9_-1phKLFgshYDvh6Vwt7V9du21Ttm4.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Alegreya Sans';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUt9_-1phKLFgshYDvh6Vwt7V9ds21Ttm4.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Alegreya Sans';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUt9_-1phKLFgshYDvh6Vwt7V9dvG1Ttm4.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Alegreya Sans';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUt9_-1phKLFgshYDvh6Vwt7V9dsG1Ttm4.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Alegreya Sans';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUt9_-1phKLFgshYDvh6Vwt7V9dsW1Ttm4.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Alegreya Sans';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUt9_-1phKLFgshYDvh6Vwt7V9dv21T.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
font-family: 'Alegreya Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUz9_-1phKLFgshYDvh6Vwt7VdtvXVX.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Alegreya Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUz9_-1phKLFgshYDvh6Vwt7V5tvXVX.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Alegreya Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUz9_-1phKLFgshYDvh6Vwt7VZtvXVX.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Alegreya Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUz9_-1phKLFgshYDvh6Vwt7VltvXVX.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Alegreya Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUz9_-1phKLFgshYDvh6Vwt7VVtvXVX.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Alegreya Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUz9_-1phKLFgshYDvh6Vwt7VRtvXVX.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Alegreya Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/alegreyasans/v20/5aUz9_-1phKLFgshYDvh6Vwt7VptvQ.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
font-family: 'Playfair Display';
font-style: italic;
font-weight: 900;
font-display: swap;
src: url(https://fonts.gstatic.com/s/playfairdisplay/v28/nuFRD-vYSZviVYUb_rj3ij__anPXDTnCjmHKM4nYO7KN_gGUXtXA-W2r.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
font-family: 'Playfair Display';
font-style: italic;
font-weight: 900;
font-display: swap;
src: url(https://fonts.gstatic.com/s/playfairdisplay/v28/nuFRD-vYSZviVYUb_rj3ij__anPXDTnCjmHKM4nYO7KN_gGUXt7A-W2r.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Playfair Display';
font-style: italic;
font-weight: 900;
font-display: swap;
src: url(https://fonts.gstatic.com/s/playfairdisplay/v28/nuFRD-vYSZviVYUb_rj3ij__anPXDTnCjmHKM4nYO7KN_gGUXt_A-W2r.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Playfair Display';
font-style: italic;
font-weight: 900;
font-display: swap;
src: url(https://fonts.gstatic.com/s/playfairdisplay/v28/nuFRD-vYSZviVYUb_rj3ij__anPXDTnCjmHKM4nYO7KN_gGUXtHA-Q.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
table, td, div, h1, p {font-family: Arial, sans-serif;}
table, td {border:hidden!important;}
</style>
</head>
<body style="margin:0;padding:0;background-color:#623B0A;">
<table role="presentation" style="width:100%;border:hidden!important;" cellspacing="0" cellpadding="0">
<tr style="border:hidden!important;">
<td align="center" style="padding:0;border:hidden!important;">
<table role="presentation" style="max-width:540px;width:100%;border:hidden!important;box-shadow: 0px 0px 10px #000000;" cellspacing="0" cellpadding="0">
<tr style="border:hidden!important;">
<td style="border:hidden!important;padding-top:15px;padding-bottom:20px;padding-left:10px;padding-right:10px;background-color:#000000;color:#FFFFFF;text-align:center;font-size:xx-large;font-style:italic;font-family: 'Playfair Display', 'Didot', 'Bodoni MT', 'Times New Roman', serif;">
<a href="recepty.svach.eu" style="color:#FFFFFF;text-decoration:none;">recepty<span style="color:#623B0A;">.svach.eu</span></a>
</td>
</tr>
<tr style="border:hidden!important;">
<td style="border:hidden!important;padding-top:15px;padding-bottom:20px;padding-left:10px;padding-right:10px;background-color:#AF9676;color:#000000;text-align:justify;font-size:medium;font-family: 'Alegreya Sans', sans-serif;">
text zprávy<br>
příliš žluťoučký kůň úpěl ďábelské ódy<br>
PŘILIŠ ŽLUŤOUČKÝ KŮŇ ÚPĚL ĎÁBELSKÉ ÓDY
</td>
</tr>
<tr style="border:hidden!important;">
<td style="border:hidden!important;padding:0;background-color:#000000;height:10px;">
</td>
</tr>
</table>
<div style="text-align:center;margin-top:20px;margin-bottom:20px;color:#AF9676;font-style:italic;font-size:small;font-family: 'Alegreya Sans', sans-serif;"><a href="recepty.svach.eu" style="color:#AF9676;text-decoration:none;">recepty.svach.eu</a> - <a href="mailto:recepty@svach.eu" style="color:#AF9676;text-decoration:none;">recepty@svach.eu</a> - 23. 2. 2022 9.08:21</div>
</td>
</tr>
</table>
</body>
</html>
EOT;
$mail_komu = "nadvarle@gmail.com";
$mail_predmet = "predmet" . rand(0,999);
$mail_hlavicka_od = "recepty@svach.eu";
$mail_hlavicka = "MIME-Version: 1.0" . "\r\n";
$mail_hlavicka .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$mail_hlavicka .= "From: \"recepty.svach.eu\" <" . $mail_hlavicka_od . ">" . "\r\n";
// send email
mail($mail_komu,$mail_predmet,$mail_text,$mail_hlavicka,"-f " . $mail_hlavicka_od);
echo "<b>zpráva:</b><br>komu: " . $mail_komu . "<br>předmět: " . $mail_predmet . "<br>hlavicka: " . $mail_hlavicka . "<br>text: " . $mail_text . "<hr>konec<hr>";
?>
+14
View File
@@ -0,0 +1,14 @@
<?php
$databaseHost = 'md98.wedos.net';//or localhost
$databaseName = 'd256800_recepty'; // your db_name
$databaseUsername = 'w256800_recepty'; // root by default for localhost
$databasePassword = 'hguHU9mh'; // by defualt empty for localhost
$mysqli = mysqli_connect($databaseHost, $databaseUsername, $databasePassword, $databaseName);
if (!$mysqli) {
die("Nepovedlo se připojit k databázi (" . mysqli_connect_error() . ").");
}
// echo "Povedlo se připojit k databázi.";
?>