diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 725cdcd..0acdeb5 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -193 \ No newline at end of file +216 \ No newline at end of file diff --git a/Builder/IISMainHandler/product.wxs b/Builder/IISMainHandler/product.wxs index ba510b6..2e49201 100644 --- a/Builder/IISMainHandler/product.wxs +++ b/Builder/IISMainHandler/product.wxs @@ -49,6 +49,12 @@ + + + + + + + \ No newline at end of file diff --git a/Importer/Properties/AssemblyInfo.cs b/Importer/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..55b6543 --- /dev/null +++ b/Importer/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Importer")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Importer")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("8a89bd8e-95bf-4085-ad06-768a3fde2335")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Importer/ShallerConnector.cs b/Importer/ShallerConnector.cs new file mode 100644 index 0000000..024c26f --- /dev/null +++ b/Importer/ShallerConnector.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Web; +using System.Net; +using System.Configuration; +using System.IO; + +namespace FLocal.Importer { + class ShallerConnector { + + public static string getPageContent(string requestUrl, Dictionary postData, CookieContainer cookies) { + string baseUrl = ConfigurationManager.AppSettings["Importer_BaseUrl"]; + HttpWebRequest request = (HttpWebRequest)WebRequest.Create(baseUrl + requestUrl); + request.KeepAlive = true; + request.CookieContainer = cookies; + if(postData.Count < 1) { + request.Method = "GET"; + } else { + + StringBuilder postBuilder = new StringBuilder(); + foreach(KeyValuePair kvp in postData) { + postBuilder.Append(HttpUtility.UrlEncode(kvp.Key)); + postBuilder.Append('='); + postBuilder.Append(HttpUtility.UrlEncode(kvp.Value)); + } + + byte[] postBytes = Encoding.ASCII.GetBytes(postBuilder.ToString()); + + request.Method = "POST"; + request.ContentType = "application/x-www-form-urlencoded"; + request.ContentLength = postBytes.Length; + + Stream stream = request.GetRequestStream(); + stream.Write(postBytes, 0, postBytes.Length); + stream.Close(); + } + request.UserAgent = "ShallerConnector v0.1"; + HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + cookies.Add(response.Cookies); + using(StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding(1251))) { + return reader.ReadToEnd(); + } + } + + } +} diff --git a/Importer/ShallerGateway.cs b/Importer/ShallerGateway.cs new file mode 100644 index 0000000..ae5fb56 --- /dev/null +++ b/Importer/ShallerGateway.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace FLocal.Importer { + public class ShallerGateway { + + public static string getUserInfo(string userName) { + return ShallerConnector.getPageContent("showprofile.php?User=" + userName + "&What=login&showlite=l", new Dictionary(), new System.Net.CookieContainer()); + } + + } +} diff --git a/Importer/bin/Release/Importer.dll b/Importer/bin/Release/Importer.dll new file mode 100644 index 0000000..7802fbc Binary files /dev/null and b/Importer/bin/Release/Importer.dll differ diff --git a/Importer/bin/Release/Importer.pdb b/Importer/bin/Release/Importer.pdb new file mode 100644 index 0000000..bd66d9b Binary files /dev/null and b/Importer/bin/Release/Importer.pdb differ diff --git a/Importer/obj/Release/Importer.csproj.FileListAbsolute.txt b/Importer/obj/Release/Importer.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..4a96437 --- /dev/null +++ b/Importer/obj/Release/Importer.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +D:\penartur\Documents\Visual Studio 2008\Projects\FLocal\trunk\Importer\obj\Release\ResolveAssemblyReference.cache +D:\penartur\Documents\Visual Studio 2008\Projects\FLocal\trunk\Importer\bin\Release\Importer.dll +D:\penartur\Documents\Visual Studio 2008\Projects\FLocal\trunk\Importer\bin\Release\Importer.pdb +D:\penartur\Documents\Visual Studio 2008\Projects\FLocal\trunk\Importer\obj\Release\Importer.dll +D:\penartur\Documents\Visual Studio 2008\Projects\FLocal\trunk\Importer\obj\Release\Importer.pdb diff --git a/Importer/obj/Release/Importer.dll b/Importer/obj/Release/Importer.dll new file mode 100644 index 0000000..7802fbc Binary files /dev/null and b/Importer/obj/Release/Importer.dll differ diff --git a/Importer/obj/Release/Importer.pdb b/Importer/obj/Release/Importer.pdb new file mode 100644 index 0000000..bd66d9b Binary files /dev/null and b/Importer/obj/Release/Importer.pdb differ diff --git a/templates/Full/Login.xslt b/templates/Full/Login.xslt new file mode 100644 index 0000000..b677379 --- /dev/null +++ b/templates/Full/Login.xslt @@ -0,0 +1,65 @@ + + + + + + + + +
+ + + + + + + + + + +
+ Âõîä +
+ Ââåäèòå âàøå èìÿ ïîëüçîâàòåëÿ è ïàðîëü äëÿ ðåãèñòðàöèè â ôîðóìå. + Åñëè âû åù¸ íå ïîëüçîâàëèñü ýòèì ôîðóìîì, íî ïðèøëè ñî ñòàðîãî ôîðóì.ëîêàëà – âû ìîæåòå ñîçäàòü ïàðîëü â ôîðìå ìèãðàöèè. +
+
+ Ëîãèí
+
+ Ïàðîëü
+
+ +
+
+
+
+ + + + +
+ + + + + + + + + + +
+ Ìèãðàöèÿ +
+ Åñëè âû ïðèøëè ñî ñòàðîãî ôîðóì.ëîêàëà – ââåäèòå ñâîé ëîãèí. +
+
+ Ëîãèí
+
+ +
+
+
+
+ +
\ No newline at end of file diff --git a/templates/Full/MigrateAccount.xslt b/templates/Full/MigrateAccount.xslt new file mode 100644 index 0000000..b63eb07 --- /dev/null +++ b/templates/Full/MigrateAccount.xslt @@ -0,0 +1,44 @@ + + + + + + + + +
+ + + + + + + + + + +
+ Ìèãðàöèÿ ïîëüçîâàòåëÿ +
+ Ââåäèòå ñòðîêó + (fhn:) + (âìåñòå ñî ñêîáêàìè) â ïîëå áèîãðàôèè â ñâî¸ì ïðîôàéëå íà ñòàðîì ôîðóìå. +
+
+ + + + + + + Íîâûé ïàðîëü
+
+ Ïîâòîðèòå ïàðîëü
+
+ +
+
+
+
+ +
\ No newline at end of file diff --git a/templates/Full/Post.xslt b/templates/Full/Post.xslt index f9cc4c1..f2cd876 100644 --- a/templates/Full/Post.xslt +++ b/templates/Full/Post.xslt @@ -53,7 +53,7 @@ - /Thread//p/ + /Thread//p * Ïëîñêèé diff --git a/templates/Full/elems/Header.xslt b/templates/Full/elems/Header.xslt index ca64bb4..2b03f7c 100644 --- a/templates/Full/elems/Header.xslt +++ b/templates/Full/elems/Header.xslt @@ -38,7 +38,8 @@ | Ïîèñê | - My Home + + Âõîä | Êòî â îíëàéíå | diff --git a/templates/Full/result/MigrateAccount.xslt b/templates/Full/result/MigrateAccount.xslt new file mode 100644 index 0000000..031ad14 --- /dev/null +++ b/templates/Full/result/MigrateAccount.xslt @@ -0,0 +1,25 @@ + + + + + + + + +
+ + + + + + + +
+ Ìèãðàöèÿ ïîëüçîâàòåëÿ +
+ Ìèãðàöèÿ óñïåøíî çàâåðøåíà, òåïåðü âû ìîæåòå âîéòè â ôîðóì, èñïîëüçóÿ ñâîé ëîãèí è íîâûé ïàðîëü. +
+
+
+ +
\ No newline at end of file