diff --git a/.gitignore b/.gitignore index 52035ca55..4149ca77f 100644 --- a/.gitignore +++ b/.gitignore @@ -186,3 +186,4 @@ BlogEngine/.vs/ # Default extensions data BlogEngine/BlogEngine.NET/App_Data/datastore/extensions/*.xml +/BlogEngine/BlogEngine.NET/imagecache diff --git a/BlogEngine/BlogEngine.Core/BlogEngine.Core.csproj b/BlogEngine/BlogEngine.Core/BlogEngine.Core.csproj index 47d8bb39b..21e51c08f 100644 --- a/BlogEngine/BlogEngine.Core/BlogEngine.Core.csproj +++ b/BlogEngine/BlogEngine.Core/BlogEngine.Core.csproj @@ -271,6 +271,7 @@ + diff --git a/BlogEngine/BlogEngine.Core/Helpers/Utils.cs b/BlogEngine/BlogEngine.Core/Helpers/Utils.cs index d790bd134..25f03d2bf 100644 --- a/BlogEngine/BlogEngine.Core/Helpers/Utils.cs +++ b/BlogEngine/BlogEngine.Core/Helpers/Utils.cs @@ -1148,6 +1148,7 @@ public static string SendMailMessage(MailMessage message, string smtpServer = "" OnEmailFailed(message); errorMsg.Append("Error sending email in SendMailMessage: "); + Exception current = ex; while (current != null) diff --git a/BlogEngine/BlogEngine.Core/Services/Syndication/RssHelp/Rfc822DateTime.cs b/BlogEngine/BlogEngine.Core/Services/Syndication/RssHelp/Rfc822DateTime.cs new file mode 100644 index 000000000..b553482dc --- /dev/null +++ b/BlogEngine/BlogEngine.Core/Services/Syndication/RssHelp/Rfc822DateTime.cs @@ -0,0 +1,326 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BlogEngine.Core.Services.Syndication.RssHelp +{ + /// + /// Provides methods for converting structures + /// to and from the equivalent RFC 822 + /// string representation. + /// + public class Rfc822DateTime + { + //============================================================ + // Private members + //============================================================ + #region Private Members + /// + /// Private member to hold array of formats that RFC 822 date-time representations conform to. + /// + private static string[] formats = new string[0]; + /// + /// Private member to hold the DateTime format string for representing a DateTime in the RFC 822 format. + /// + private const string format = "ddd, dd MMM yyyy HH:mm:ss K"; + #endregion + + //============================================================ + // Public Properties + //============================================================ + #region Rfc822DateTimeFormat + /// + /// Gets the custom format specifier that may be used to represent a in the RFC 822 format. + /// + /// A DateTime format string that may be used to represent a in the RFC 822 format. + /// + /// + /// This method returns a string representation of a that utilizes the time zone + /// offset (local differential) to represent the offset from Greenwich mean time in hours and minutes. + /// The is a valid date-time format string for use + /// in the method. + /// + /// + /// The RFC 822 Date and Time specification + /// specifies that the year will be represented as a two-digit value, but the + /// RSS Profile recommends that + /// all date-time values should use a four-digit year. The class + /// follows the RSS Profile recommendation when converting a to the equivalent + /// RFC 822 string representation. + /// + /// + public static string Rfc822DateTimeFormat + { + get + { + return format; + } + } + #endregion + + #region Rfc822DateTimePatterns + /// + /// Gets an array of the expected formats for RFC 822 date-time string representations. + /// + /// + /// An array of the expected formats for RFC 822 date-time string representations + /// that may used in the method. + /// + /// + /// The array of the expected formats that is returned assumes that the RFC 822 time zone + /// is represented as or converted to a local differential representation. + /// + /// + public static string[] Rfc822DateTimePatterns + { + get + { + if (formats.Length > 0) + { + return formats; + } + else + { + formats = new string[35]; + + // two-digit day, four-digit year patterns + formats[0] = "ddd',' dd MMM yyyy HH':'mm':'ss'.'fffffff zzzz"; + formats[1] = "ddd',' dd MMM yyyy HH':'mm':'ss'.'ffffff zzzz"; + formats[2] = "ddd',' dd MMM yyyy HH':'mm':'ss'.'fffff zzzz"; + formats[3] = "ddd',' dd MMM yyyy HH':'mm':'ss'.'ffff zzzz"; + formats[4] = "ddd',' dd MMM yyyy HH':'mm':'ss'.'fff zzzz"; + formats[5] = "ddd',' dd MMM yyyy HH':'mm':'ss'.'ff zzzz"; + formats[6] = "ddd',' dd MMM yyyy HH':'mm':'ss'.'f zzzz"; + formats[7] = "ddd',' dd MMM yyyy HH':'mm':'ss zzzz"; + + // two-digit day, two-digit year patterns + formats[8] = "ddd',' dd MMM yy HH':'mm':'ss'.'fffffff zzzz"; + formats[9] = "ddd',' dd MMM yy HH':'mm':'ss'.'ffffff zzzz"; + formats[10] = "ddd',' dd MMM yy HH':'mm':'ss'.'fffff zzzz"; + formats[11] = "ddd',' dd MMM yy HH':'mm':'ss'.'ffff zzzz"; + formats[12] = "ddd',' dd MMM yy HH':'mm':'ss'.'fff zzzz"; + formats[13] = "ddd',' dd MMM yy HH':'mm':'ss'.'ff zzzz"; + formats[14] = "ddd',' dd MMM yy HH':'mm':'ss'.'f zzzz"; + formats[15] = "ddd',' dd MMM yy HH':'mm':'ss zzzz"; + + // one-digit day, four-digit year patterns + formats[16] = "ddd',' d MMM yyyy HH':'mm':'ss'.'fffffff zzzz"; + formats[17] = "ddd',' d MMM yyyy HH':'mm':'ss'.'ffffff zzzz"; + formats[18] = "ddd',' d MMM yyyy HH':'mm':'ss'.'fffff zzzz"; + formats[19] = "ddd',' d MMM yyyy HH':'mm':'ss'.'ffff zzzz"; + formats[20] = "ddd',' d MMM yyyy HH':'mm':'ss'.'fff zzzz"; + formats[21] = "ddd',' d MMM yyyy HH':'mm':'ss'.'ff zzzz"; + formats[22] = "ddd',' d MMM yyyy HH':'mm':'ss'.'f zzzz"; + formats[23] = "ddd',' d MMM yyyy HH':'mm':'ss zzzz"; + + // two-digit day, two-digit year patterns + formats[24] = "ddd',' d MMM yy HH':'mm':'ss'.'fffffff zzzz"; + formats[25] = "ddd',' d MMM yy HH':'mm':'ss'.'ffffff zzzz"; + formats[26] = "ddd',' d MMM yy HH':'mm':'ss'.'fffff zzzz"; + formats[27] = "ddd',' d MMM yy HH':'mm':'ss'.'ffff zzzz"; + formats[28] = "ddd',' d MMM yy HH':'mm':'ss'.'fff zzzz"; + formats[29] = "ddd',' d MMM yy HH':'mm':'ss'.'ff zzzz"; + formats[30] = "ddd',' d MMM yy HH':'mm':'ss'.'f zzzz"; + formats[31] = "ddd',' d MMM yy HH':'mm':'ss zzzz"; + + // Fall back patterns + formats[32] = "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fffffffK"; // RoundtripDateTimePattern + formats[33] = DateTimeFormatInfo.InvariantInfo.UniversalSortableDateTimePattern; + formats[34] = DateTimeFormatInfo.InvariantInfo.SortableDateTimePattern; + + return formats; + } + } + } + #endregion + + //============================================================ + // Public Methods + //============================================================ + #region Parse(string s) + /// + /// Converts the specified string representation of a date and time to its equivalent. + /// + /// A string containing a date and time to convert. + /// + /// A equivalent to the date and time contained in , + /// expressed as Coordinated Universal Time (UTC). + /// + /// + /// The string is parsed using formatting information in the object. + /// + /// is a null reference (Nothing in Visual Basic). + /// is an empty string. + /// does not contain a valid RFC 822 string representation of a date and time. + public static DateTime Parse(string s) + { + //------------------------------------------------------------ + // Validate parameter + //------------------------------------------------------------ + if (String.IsNullOrEmpty(s)) + { + throw new ArgumentNullException("s"); + } + + DateTime result; + if (Rfc822DateTime.TryParse(s, out result)) + { + return result; + } + else + { + throw new FormatException(String.Format(null, "{0} is not a valid RFC 822 string representation of a date and time.", s)); + } + } + #endregion + + #region ConvertZoneToLocalDifferential(string s) + /// + /// Converts the time zone component of an RFC 822 date and time string representation to its local differential (time zone offset). + /// + /// A string containing an RFC 822 date and time to convert. + /// A date and time string that uses local differential to describe the time zone equivalent to the date and time contained in . + /// is a null reference (Nothing in Visual Basic). + /// is an empty string. + public static string ConvertZoneToLocalDifferential(string s) + { + string zoneRepresentedAsLocalDifferential = String.Empty; + + //------------------------------------------------------------ + // Validate parameter + //------------------------------------------------------------ + if (String.IsNullOrEmpty(s)) + { + throw new ArgumentNullException("s"); + } + + if (s.EndsWith(" UT", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" UT") + 1)), "+00:00"); + } + else if (s.EndsWith(" GMT", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" GMT") + 1)), "+00:00"); + } + else if (s.EndsWith(" EST", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" EST") + 1)), "-05:00"); + } + else if (s.EndsWith(" EDT", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" EDT") + 1)), "-04:00"); + } + else if (s.EndsWith(" CST", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" CST") + 1)), "-06:00"); + } + else if (s.EndsWith(" CDT", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" CDT") + 1)), "-05:00"); + } + else if (s.EndsWith(" MST", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" MST") + 1)), "-07:00"); + } + else if (s.EndsWith(" MDT", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" MDT") + 1)), "-06:00"); + } + else if (s.EndsWith(" PST", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" PST") + 1)), "-08:00"); + } + else if (s.EndsWith(" PDT", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" PDT") + 1)), "-07:00"); + } + else if (s.EndsWith(" Z", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" Z") + 1)), "+00:00"); + } + else if (s.EndsWith(" A", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" A") + 1)), "-01:00"); + } + else if (s.EndsWith(" M", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" M") + 1)), "-12:00"); + } + else if (s.EndsWith(" N", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" N") + 1)), "+01:00"); + } + else if (s.EndsWith(" Y", StringComparison.OrdinalIgnoreCase)) + { + zoneRepresentedAsLocalDifferential = String.Concat(s.Substring(0, (s.LastIndexOf(" Y") + 1)), "+12:00"); + } + else + { + zoneRepresentedAsLocalDifferential = s; + } + + return zoneRepresentedAsLocalDifferential; + } + #endregion + + #region ToString(DateTime utcDateTime) + /// + /// Converts the value of the specified object to its equivalent string representation. + /// + /// The Coordinated Universal Time (UTC) to convert. + /// A RFC 822 string representation of the value of the . + /// The specified object does not represent a Coordinated Universal Time (UTC) value. + public static string ToString(DateTime utcDateTime) + { + if (utcDateTime.Kind != DateTimeKind.Utc) + { + throw new ArgumentException("utcDateTime"); + } + + return utcDateTime.ToString(Rfc822DateTime.Rfc822DateTimeFormat, DateTimeFormatInfo.InvariantInfo); + } + #endregion + + #region TryParse(string s, out DateTime result) + /// + /// Converts the specified string representation of a date and time to its equivalent. + /// + /// A string containing a date and time to convert. + /// + /// When this method returns, contains the value equivalent to the date and time + /// contained in , expressed as Coordinated Universal Time (UTC), + /// if the conversion succeeded, or MinValue if the conversion failed. + /// The conversion fails if the s parameter is a null reference (Nothing in Visual Basic), + /// or does not contain a valid string representation of a date and time. + /// This parameter is passed uninitialized. + /// + /// true if the parameter was converted successfully; otherwise, false. + /// + /// The string is parsed using formatting information in the object. + /// + public static bool TryParse(string s, out DateTime result) + { + //------------------------------------------------------------ + // Attempt to convert string representation + //------------------------------------------------------------ + bool wasConverted = false; + result = DateTime.MinValue; + + if (!String.IsNullOrEmpty(s)) + { + DateTime parseResult; + if (DateTime.TryParseExact(Rfc822DateTime.ConvertZoneToLocalDifferential(s), Rfc822DateTime.Rfc822DateTimePatterns, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AdjustToUniversal, out parseResult)) + { + result = DateTime.SpecifyKind(parseResult, DateTimeKind.Utc); + wasConverted = true; + } + } + + return wasConverted; + } + #endregion + } +} diff --git a/BlogEngine/BlogEngine.Core/Services/Syndication/SyndicationGenerator.cs b/BlogEngine/BlogEngine.Core/Services/Syndication/SyndicationGenerator.cs index 4770a833a..6efd07c32 100644 --- a/BlogEngine/BlogEngine.Core/Services/Syndication/SyndicationGenerator.cs +++ b/BlogEngine/BlogEngine.Core/Services/Syndication/SyndicationGenerator.cs @@ -7,6 +7,9 @@ Date Author Description 02/12/2008 rtur.net 14/03/2011 CreepinJesus Updated comment links for use with Disqus ****************************************************************************/ + +using BlogEngine.Core.Services.Syndication.RssHelp; + namespace BlogEngine.Core { using BlogEngine.Core.Data.Services; @@ -215,13 +218,13 @@ public static string ToRfc822DateTime(DateTime dateTime) static string RssDateString(DateTime pubDate) { - pubDate = BlogSettings.Instance.FromUtc(pubDate); - + pubDate = BlogSettings.Instance.ToUtc(pubDate); + return Rfc822DateTime.ToString(pubDate); // get a timezone from local time (won't work with UTC) - var zone = DateTime.Now.ToString("zzzz").Replace(":", ""); - - var value = pubDate.ToString("ddd',' d MMM yyyy HH':'mm':'ss") + " " + zone; - return value; + //var zone = DateTime.Now.ToString("zzzz").Replace(":", ""); + // + //var value = pubDate.ToString("ddd',' d MMM yyyy HH':'mm':'ss") + " " + zone; + //return value; } /// diff --git a/BlogEngine/BlogEngine.NET/App_Data/customfields.xml b/BlogEngine/BlogEngine.NET/App_Data/customfields.xml index 0dca53881..0b07ae1e5 100644 --- a/BlogEngine/BlogEngine.NET/App_Data/customfields.xml +++ b/BlogEngine/BlogEngine.NET/App_Data/customfields.xml @@ -10,17 +10,27 @@ + + + + + + + + + + - - + + - + - - + + \ No newline at end of file diff --git a/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/21108331-e283-4807-a4f6-f1db31163608.xml b/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/21108331-e283-4807-a4f6-f1db31163608.xml new file mode 100644 index 000000000..a0f8c6cd5 --- /dev/null +++ b/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/21108331-e283-4807-a4f6-f1db31163608.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/219.xml b/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/219.xml new file mode 100644 index 000000000..21c00ae2d --- /dev/null +++ b/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/219.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/5bf32012-4aa3-4031-8346-4d36f0fda6d9.xml b/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/5bf32012-4aa3-4031-8346-4d36f0fda6d9.xml new file mode 100644 index 000000000..d0dbf505e --- /dev/null +++ b/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/5bf32012-4aa3-4031-8346-4d36f0fda6d9.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/922.xml b/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/922.xml new file mode 100644 index 000000000..72563251b --- /dev/null +++ b/BlogEngine/BlogEngine.NET/App_Data/datastore/widgets/922.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/BlogEngine/BlogEngine.NET/App_Data/files/dsp/Przechwytywanie.PNG b/BlogEngine/BlogEngine.NET/App_Data/files/dsp/Przechwytywanie.PNG new file mode 100644 index 000000000..fb3e8b9be Binary files /dev/null and b/BlogEngine/BlogEngine.NET/App_Data/files/dsp/Przechwytywanie.PNG differ diff --git a/BlogEngine/BlogEngine.NET/App_Data/files/dsp/dsp2017_fb_cover-1024x379.jpg b/BlogEngine/BlogEngine.NET/App_Data/files/dsp/dsp2017_fb_cover-1024x379.jpg new file mode 100644 index 000000000..07877d6de Binary files /dev/null and b/BlogEngine/BlogEngine.NET/App_Data/files/dsp/dsp2017_fb_cover-1024x379.jpg differ diff --git a/BlogEngine/BlogEngine.NET/App_Data/logger.txt b/BlogEngine/BlogEngine.NET/App_Data/logger.txt new file mode 100644 index 000000000..031cea9e0 --- /dev/null +++ b/BlogEngine/BlogEngine.NET/App_Data/logger.txt @@ -0,0 +1,48 @@ +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-22 18:35:47 +Package Installer: replacing in D:\home\site\wwwroot\Custom\Themes\DarkStar\site.master from /themes to /Custom/Themes +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-22 18:35:48 +Installed package DarkStar by admin +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-22 19:27:55 +Installed package TwitterTimeline by admin +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-26 11:21:23 +Error sending email in SendMailMessage: The operation has timed out. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-26 11:21:26 +Error sending email in SendMailMessage: The operation has timed out. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-26 11:24:41 +Error sending email in SendMailMessage: The operation has timed out. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-26 11:24:42 +Error sending email in SendMailMessage: The operation has timed out. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-26 11:24:43 +Error sending email in SendMailMessage: The operation has timed out. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-26 11:26:33 +Error sending email in SendMailMessage: The operation has timed out. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-26 11:33:25 +Error sending email in SendMailMessage: The operation has timed out. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-26 11:33:32 +Error sending email in SendMailMessage: The operation has timed out. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-26 11:34:57 +Error sending email in SendMailMessage: The operation has timed out. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-26 11:35:45 +Error sending email in SendMailMessage: The operation has timed out. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 2017-02-26 11:35:48 +Error sending email in SendMailMessage: The operation has timed out. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 26.02.2017 13:36:50 +Error sending email in SendMailMessage: Upłynął limit czasu operacji. +*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* +Data: 26.02.2017 13:37:17 +Error sending email in SendMailMessage: Upłynął limit czasu operacji. diff --git a/BlogEngine/BlogEngine.NET/App_Data/posts/109567bb-ff20-41bf-8b1d-6a22ee37755d.xml b/BlogEngine/BlogEngine.NET/App_Data/posts/109567bb-ff20-41bf-8b1d-6a22ee37755d.xml new file mode 100644 index 000000000..43ed6eba3 --- /dev/null +++ b/BlogEngine/BlogEngine.NET/App_Data/posts/109567bb-ff20-41bf-8b1d-6a22ee37755d.xml @@ -0,0 +1,34 @@ + + + Admin + Daj się poznać 2017 + Oto i cały inicjator prowadzenia bloga. +No nic założenia są proste.Pomysł na Opena to coś, co pomoże + <p><img src="/image.axd?picture=/dsp/dsp2017_fb_cover-1024x379.jpg" alt="" /></p> +<p><a href="http://dajsiepoznac.pl">dajsiepoznac.pl</a></p> +<p>Oto i cały inicjator prowadzenia bloga.</p> +<p>No nic założenia są proste.<br />Pomysł na Opena to coś, co pomoże złączyć .Neta z Grafami na tyle aby można było wykorzystać to do rozwiązywania problemu komiwojażera.</p> +<p>UUU student ktoś powie. Nic podobnego. Wiem ze w czasach wyznaczania trasy przez Google czy Janosika takie problemy są 300* rzędne, lecz w świecie jakim żyje m&oacute;j produkt problem ten nadal istnieje i nie znalazłem** narzędzi do jego rozwiązania.</p> +<p>Nie mam ustalonego planu projektu czy też technologi jakich ostatecznie otrzymam. Wiem tylko że będę chciał to w końcowej fazie doprowadzić otrzymać w WinFORMAS. TAAAAA :D - A czemu nie.</p> +<p>&nbsp;</p> +<p>Mam nadzieje że przynajmniej moje pr&oacute;by wypocenia się zostaną odebrane pozytywnie.</p> +<p>&nbsp;</p> +<p>ps. *Nie lekceważ 300 :D &nbsp;<br />&nbsp; &nbsp; &nbsp;** No sory czasami Ctrl-F i google zawodzi.</p> +<p>&nbsp;</p> +<p>&nbsp;</p> +<p>:<img src="/image.axd?picture=/dsp/Przechwytywanie.PNG" alt="" /></p> + True + False + True + 2017-02-25 21:52:00 + 2017-02-25 21:04:51 + 0 + 0 + daj-sie-poznac-2017 + + + + c4f414ea-f19b-4040-8c9f-34ec0a35cbbf + + + \ No newline at end of file diff --git a/BlogEngine/BlogEngine.NET/App_Data/posts/5868ed38-d5f2-4d10-ba64-808839f6a3df.xml b/BlogEngine/BlogEngine.NET/App_Data/posts/5868ed38-d5f2-4d10-ba64-808839f6a3df.xml new file mode 100644 index 000000000..a5d2b16e7 --- /dev/null +++ b/BlogEngine/BlogEngine.NET/App_Data/posts/5868ed38-d5f2-4d10-ba64-808839f6a3df.xml @@ -0,0 +1,25 @@ + + + Admin + No to lecimy 4.3.2.1 Start + Uff. Start.Uff ? na starcie? Teraz wzdycham bo potem pewnie jak zawsze braknie czasu na wzdychanie. + + <p>Uff. Start. Jak to dobrze ze default theme jest Zaje!<br />Uff ? na starcie? Teraz wzdycham bo potem pewnie jak zawsze braknie czasu na wzdychanie.</p> +<p>Czas zacząć pisać, eeee nie. Szkoda pisać przecież kodujemy/piszemy cały dzień. Czas coś pewnie nagrać.&nbsp;</p> +<p>Tak więc zapraszam do oglądania i konstruktywnej krytyki.&nbsp;</p> +<p>A przedstawić się jeszcze zdążę :)&nbsp;</p> + True + True + True + 2017-02-22 18:49:00 + 2017-02-22 18:33:14 + 0 + 0 + no-to-lecimy-4-3-2-1-start + + DSP2017 + + + + + \ No newline at end of file diff --git a/BlogEngine/BlogEngine.NET/App_Data/posts/8d99ec6c-145a-4ff2-ab9d-5d5f4fd466a7.xml b/BlogEngine/BlogEngine.NET/App_Data/posts/8d99ec6c-145a-4ff2-ab9d-5d5f4fd466a7.xml new file mode 100644 index 000000000..760b6bfef --- /dev/null +++ b/BlogEngine/BlogEngine.NET/App_Data/posts/8d99ec6c-145a-4ff2-ab9d-5d5f4fd466a7.xml @@ -0,0 +1,24 @@ + + + Admin + No to lecimy 4.3.2.1 Start + Uff. Start. Jak to dobrze ze default theme jest Zaje!Uff ? na starcie? Teraz wzdycham bo potem pewni + <p>Uff. Start. Jak to dobrze ze default theme jest Zaje!<br />Uff ? na starcie? Teraz wzdycham bo potem pewnie jak zawsze braknie czasu na wzdychanie.</p> +<p>Czas zacząć pisać, eeee nie. Szkoda pisać przecież kodujemy/piszemy cały dzień. Czas coś pewnie nagrać.&nbsp;</p> +<p>Tak więc zapraszam do oglądania i konstruktywnej krytyki.&nbsp;</p> +<p>A przedstawić się jeszcze zdążę :)&nbsp;</p> + True + False + True + 2017-02-22 20:45:00 + 2017-02-25 20:46:32 + 0 + 0 + no-to-lecimy-4-3-2-1-start + + + + 1e30a198-2c3e-4096-bc79-b643bc008e13 + + + \ No newline at end of file diff --git a/BlogEngine/BlogEngine.NET/BlogEngine.NET.csproj b/BlogEngine/BlogEngine.NET/BlogEngine.NET.csproj index e04bab7d7..0d4661645 100644 --- a/BlogEngine/BlogEngine.NET/BlogEngine.NET.csproj +++ b/BlogEngine/BlogEngine.NET/BlogEngine.NET.csproj @@ -21,7 +21,7 @@ - 1.6 + 1.8 true @@ -44,6 +44,18 @@ ..\..\lib\ICSharpCode.SharpZipLib.dll + + ..\packages\ImageResizer.3.4.3\lib\ImageResizer.dll + True + + + ..\packages\ImageResizer.Plugins.DiskCache.3.4.3\lib\ImageResizer.Plugins.DiskCache.dll + True + + + ..\packages\ImageResizer.Plugins.PrettyGifs.3.4.3\lib\ImageResizer.Plugins.PrettyGifs.dll + True + False @@ -611,7 +623,9 @@ - + + Designer + @@ -792,6 +806,13 @@ + + + + + + Designer + @@ -1561,6 +1582,7 @@ + diff --git a/BlogEngine/BlogEngine.NET/Content/images/blog/blogengine.ico b/BlogEngine/BlogEngine.NET/Content/images/blog/blogengine.ico index f7c1013c1..e038ded1c 100644 Binary files a/BlogEngine/BlogEngine.NET/Content/images/blog/blogengine.ico and b/BlogEngine/BlogEngine.NET/Content/images/blog/blogengine.ico differ diff --git a/BlogEngine/BlogEngine.NET/Custom/Themes/Standard/newsletter.html b/BlogEngine/BlogEngine.NET/Custom/Themes/Standard/newsletter.html index 4d044e437..e3f8a8b88 100644 --- a/BlogEngine/BlogEngine.NET/Custom/Themes/Standard/newsletter.html +++ b/BlogEngine/BlogEngine.NET/Custom/Themes/Standard/newsletter.html @@ -1,10 +1,255 @@  - + - [TITLE] + + + + + + + + + + + + + + + + + + + + + + + - - New post: -

[TITLE]

+ +
+ + +
+ (Optional) This text will appear in the inbox preview, but not the email body. +
+ + + +
+ + - + \ No newline at end of file diff --git a/BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/img/logo.png b/BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/img/logo.png index 269eab83a..56450510d 100644 Binary files a/BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/img/logo.png and b/BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/img/logo.png differ diff --git a/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/scripts/shBrushCypher.js b/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/scripts/shBrushCypher.js new file mode 100644 index 000000000..6dda06ffb --- /dev/null +++ b/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/scripts/shBrushCypher.js @@ -0,0 +1,43 @@ +;(function() +{ + // CommonJS + SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null); + + function Brush() + { + var funcs = 'abs acos all allShortestPaths any asin atan atan2 avg ceil coalesce collect cos ' + + 'cot count degrees e endNode exists exp extract filter floor has haversin head id keys ' + + 'labels last left length log log10 lower ltrim max min node nodes none percentileCont percentileDisc ' + + 'pi radians rand range reduce rel relationship relationships replace reverse right round rtrim shortestPath ' + + 'sign sin single size split sqrt startNode stdev stdevp str substring sum tail tan timestamp toFloat ' + + 'toInt trim type upper'; + + var keywords = 'AND AS ASC ASCENDING ASSERT BY CASE COMMIT CONSTRAINT CONTAINS CREATE ' + + 'CSV CYPHER DELETE DESC DESCENDING DETACH DISTINCT DROP ELSE END ENDS EXPLAIN FALSE ' + + 'FIELDTERMINATOR FOREACH FROM HEADERS IN INDEX IS LIMIT LOAD MATCH MERGE NOT NULL ON ' + + 'OPTIONAL OR ORDER PERIODIC PROFILE REMOVE RETURN SCAN SET SKIP START STARTS THEN TRUE ' + + 'UNION UNIQUE UNWIND USING WHEN WHERE WITH XOR'; + + var operators = '\\( \\) \\, \\= \\: \\+ \\- \\* \\/ \\% \\^ <> < > <= >= =~'; + + this.regexList = [ + { regex: /--(.*)$/gm, css: 'comments' }, // + { regex: /\/\*([^\*][\s\S]*?)?\*\//gm, css: 'comments' }, // + { regex: /:(\w+)(?!\w)/gm, css: 'value' }, // Type + { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // + { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // + { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // + { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // + { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // + ]; + }; + + Brush.prototype = new SyntaxHighlighter.Highlighter(); + Brush.aliases = ['cypher']; + + SyntaxHighlighter.brushes.Cypher = Brush; + + // CommonJS + typeof(exports) != 'undefined' ? exports.Brush = Brush : null; +})(); + diff --git a/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/shActivator.js b/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/shActivator.js index 7e6c4a144..0fb653055 100644 --- a/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/shActivator.js +++ b/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/shActivator.js @@ -1,32 +1,33 @@ -$(document).ready(function () { - var root = BlogEngineRes.applicationWebRoot + 'scripts/syntaxhighlighter/scripts/'; - SyntaxHighlighter.autoloader( - 'applescript ' + root + 'shBrushAppleScript.js', - 'actionscript3 as3 ' + root + 'shBrushAS3.js', - 'bash shell ' + root + 'shBrushBash.js', - 'coldfusion cf ' + root + 'shBrushColdFusion.js', - 'cpp c ' + root + 'shBrushCpp.js', - 'c# c-sharp csharp ' + root + 'shBrushCSharp.js', - 'css ' + root + 'shBrushCss.js', - 'delphi pascal ' + root + 'shBrushDelphi.js', - 'diff patch pas ' + root + 'shBrushDiff.js', - 'erl erlang ' + root + 'shBrushErlang.js', - 'groovy ' + root + 'shBrushGroovy.js', - 'haxe ' + root + 'shBrushHaxe.js', - 'java ' + root + 'shBrushJava.js', - 'jfx javafx ' + root + 'shBrushJavaFX.js', - 'js jscript javascript ' + root + 'shBrushJScript.js', - 'perl pl ' + root + 'shBrushPerl.js', - 'php ' + root + 'shBrushPhp.js', - 'text plain ' + root + 'shBrushPlain.js', - 'ps powershell ' + root + 'shBrushPowerShell.js', - 'py python ' + root + 'shBrushPython.js', - 'ruby rails ror rb ' + root + 'shBrushRuby.js', - 'sass scss ' + root + 'shBrushSass.js', - 'scala ' + root + 'shBrushScala.js', - 'sql ' + root + 'shBrushSql.js', - 'vb vbnet ' + root + 'shBrushVb.js', - 'xml xhtml xslt html ' + root + 'shBrushXml.js' - ); - SyntaxHighlighter.all(); +$(document).ready(function () { + var root = BlogEngineRes.applicationWebRoot + 'scripts/syntaxhighlighter/scripts/'; + SyntaxHighlighter.autoloader( + 'applescript ' + root + 'shBrushAppleScript.js', + 'cypher ' + root + 'shBrushCypher.js', + 'actionscript3 as3 ' + root + 'shBrushAS3.js', + 'bash shell ' + root + 'shBrushBash.js', + 'coldfusion cf ' + root + 'shBrushColdFusion.js', + 'cpp c ' + root + 'shBrushCpp.js', + 'c# c-sharp csharp ' + root + 'shBrushCSharp.js', + 'css ' + root + 'shBrushCss.js', + 'delphi pascal ' + root + 'shBrushDelphi.js', + 'diff patch pas ' + root + 'shBrushDiff.js', + 'erl erlang ' + root + 'shBrushErlang.js', + 'groovy ' + root + 'shBrushGroovy.js', + 'haxe ' + root + 'shBrushHaxe.js', + 'java ' + root + 'shBrushJava.js', + 'jfx javafx ' + root + 'shBrushJavaFX.js', + 'js jscript javascript ' + root + 'shBrushJScript.js', + 'perl pl ' + root + 'shBrushPerl.js', + 'php ' + root + 'shBrushPhp.js', + 'text plain ' + root + 'shBrushPlain.js', + 'ps powershell ' + root + 'shBrushPowerShell.js', + 'py python ' + root + 'shBrushPython.js', + 'ruby rails ror rb ' + root + 'shBrushRuby.js', + 'sass scss ' + root + 'shBrushSass.js', + 'scala ' + root + 'shBrushScala.js', + 'sql ' + root + 'shBrushSql.js', + 'vb vbnet ' + root + 'shBrushVb.js', + 'xml xhtml xslt html ' + root + 'shBrushXml.js' + ); + SyntaxHighlighter.all(); }); \ No newline at end of file diff --git a/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/syntaxhighlighter.htm b/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/syntaxhighlighter.htm index 53d990d5f..9b0fd0a35 100644 --- a/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/syntaxhighlighter.htm +++ b/BlogEngine/BlogEngine.NET/Scripts/syntaxhighlighter/syntaxhighlighter.htm @@ -1,114 +1,115 @@ - - - - {#syntaxhighlighter.syntaxhighlighter_title} - - - - - - - - - - - - - - - -
- {#syntaxhighlighter.syntaxhighlighter_languagepicker}: - -

- {#syntaxhighlighter.syntaxhighlighter_pagecode}: -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{#syntaxhighlighter.syntaxhighlighter_autolinks}{#syntaxhighlighter.syntaxhighlighter_autolinks_description}
{#syntaxhighlighter.syntaxhighlighter_classname}{#syntaxhighlighter.syntaxhighlighter_classname_description}
{#syntaxhighlighter.syntaxhighlighter_collapse}{#syntaxhighlighter.syntaxhighlighter_collapse_description}
{#syntaxhighlighter.syntaxhighlighter_firstline}{#syntaxhighlighter.syntaxhighlighter_firstline_description}
{#syntaxhighlighter.syntaxhighlighter_gutter}{#syntaxhighlighter.syntaxhighlighter_gutter_description}
{#syntaxhighlighter.syntaxhighlighter_highlight}{#syntaxhighlighter.syntaxhighlighter_highlight_description}
{#syntaxhighlighter.syntaxhighlighter_htmlscript}{#syntaxhighlighter.syntaxhighlighter_htmlscript_description}
{#syntaxhighlighter.syntaxhighlighter_smarttabs}{#syntaxhighlighter.syntaxhighlighter_smarttabs_description}
{#syntaxhighlighter.syntaxhighlighter_tabsize}{#syntaxhighlighter.syntaxhighlighter_tabsize_description}
{#syntaxhighlighter.syntaxhighlighter_toolbar}{#syntaxhighlighter.syntaxhighlighter_toolbar_description}
-
-

- - -

-
- - + + + + {#syntaxhighlighter.syntaxhighlighter_title} + + + + + + + + + + + + + + + +
+ {#syntaxhighlighter.syntaxhighlighter_languagepicker}: + +

+ {#syntaxhighlighter.syntaxhighlighter_pagecode}: +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{#syntaxhighlighter.syntaxhighlighter_autolinks}{#syntaxhighlighter.syntaxhighlighter_autolinks_description}
{#syntaxhighlighter.syntaxhighlighter_classname}{#syntaxhighlighter.syntaxhighlighter_classname_description}
{#syntaxhighlighter.syntaxhighlighter_collapse}{#syntaxhighlighter.syntaxhighlighter_collapse_description}
{#syntaxhighlighter.syntaxhighlighter_firstline}{#syntaxhighlighter.syntaxhighlighter_firstline_description}
{#syntaxhighlighter.syntaxhighlighter_gutter}{#syntaxhighlighter.syntaxhighlighter_gutter_description}
{#syntaxhighlighter.syntaxhighlighter_highlight}{#syntaxhighlighter.syntaxhighlighter_highlight_description}
{#syntaxhighlighter.syntaxhighlighter_htmlscript}{#syntaxhighlighter.syntaxhighlighter_htmlscript_description}
{#syntaxhighlighter.syntaxhighlighter_smarttabs}{#syntaxhighlighter.syntaxhighlighter_smarttabs_description}
{#syntaxhighlighter.syntaxhighlighter_tabsize}{#syntaxhighlighter.syntaxhighlighter_tabsize_description}
{#syntaxhighlighter.syntaxhighlighter_toolbar}{#syntaxhighlighter.syntaxhighlighter_toolbar_description}
+
+

+ + +

+
+ + diff --git a/BlogEngine/BlogEngine.NET/Web.Config b/BlogEngine/BlogEngine.NET/Web.Config index e698ac4f5..4df0c4d17 100644 --- a/BlogEngine/BlogEngine.NET/Web.Config +++ b/BlogEngine/BlogEngine.NET/Web.Config @@ -5,7 +5,7 @@
- +
@@ -133,7 +133,7 @@ - + @@ -156,7 +156,7 @@ - +