Skip to content

Commit fcea8e6

Browse files
committed
removed useless file
1 parent 996dc65 commit fcea8e6

6 files changed

Lines changed: 93 additions & 111 deletions

File tree

ChatLogger/ChatLogger.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@
142142
<DependentUpon>Update.cs</DependentUpon>
143143
</Compile>
144144
<Compile Include="User2Json\ChatLoggerSettings.cs" />
145-
<Compile Include="User2Json\GitHubApi.cs" />
146145
<Compile Include="User2Json\SteamLoginUsers.cs" />
147146
<Compile Include="User2Json\UserSettings.cs" />
148147
<EmbeddedResource Include="AddAcc.resx">

ChatLogger/Main.Designer.cs

Lines changed: 47 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ChatLogger/Main.cs

Lines changed: 34 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -30,67 +30,57 @@ public partial class Main : MetroFramework.Forms.MetroForm
3030
private static List<SteamLoginUsers> _users;
3131

3232
[Obsolete]
33-
private void RafadexAutoUpdate601IQ()
33+
private void RafadexAutoUpdate600IQ()
3434
{
3535
try
3636
{
37-
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
3837
using (WebClient client = new WebClient())
3938
{
40-
client.Headers.Add("User-Agent", "Steam ChatLog");
39+
string updateCheck = client.DownloadString(Program.spkDomain + "update.php");
4140

42-
43-
Uri uri = new Uri(Program.GITHUB_PROJECT);
44-
string releases = client.DownloadString(uri);
45-
var git = JsonConvert.DeserializeObject<List<GitHubApi.GithubRelease>>(releases);
46-
foreach (var g in git)
41+
if (updateCheck != Program.Version)
4742
{
48-
if (g.tag_name != Program.Version)
49-
{
50-
this.Hide();
51-
this.Enabled = false;
52-
Console.WriteLine("New update: " + g.tag_name);
53-
Form Update = new Update(g.tag_name);
54-
Update.Show();
43+
this.Hide();
44+
this.Enabled = false;
45+
Console.WriteLine("New update: " + updateCheck);
46+
Form Update = new Update(updateCheck);
47+
Update.Show();
48+
}
49+
else
50+
{
51+
this.Enabled = true;
52+
var Settingslist = JsonConvert.DeserializeObject<ChatLoggerSettings>(File.ReadAllText(Program.SettingsJsonFile));
5553

56-
}
57-
else
54+
if (Settingslist.startupAcc != 0)
5855
{
59-
this.Enabled = true;
60-
var Settingslist = JsonConvert.DeserializeObject<ChatLoggerSettings>(File.ReadAllText(Program.SettingsJsonFile));
56+
var list = JsonConvert.DeserializeObject<RootObject>(File.ReadAllText(Program.AccountsJsonFile));
6157

62-
if (Settingslist.startupAcc != 0)
58+
foreach (var a in list.Accounts)
6359
{
64-
var list = JsonConvert.DeserializeObject<RootObject>(File.ReadAllText(Program.AccountsJsonFile));
65-
66-
foreach (var a in list.Accounts)
60+
if (a.SteamID == Settingslist.startupAcc)
6761
{
68-
if (a.SteamID == Settingslist.startupAcc)
69-
{
70-
usernameJSON = a.username;
71-
passwordJSON = a.password;
72-
}
62+
usernameJSON = a.username;
63+
passwordJSON = a.password;
7364
}
74-
// Start Login
75-
Thread doLogin = new Thread(() => AccountLogin.UserSettingsGather(usernameJSON, passwordJSON));
76-
doLogin.Start();
7765
}
66+
// Start Login
67+
Thread doLogin = new Thread(() => AccountLogin.UserSettingsGather(usernameJSON, passwordJSON));
68+
doLogin.Start();
7869
}
7970
}
8071
}
8172
}
82-
catch (Exception tete)
73+
catch (Exception)
8374
{
84-
InfoForm.InfoHelper.CustomMessageBox.Show("Alert", "Try https://github.com/sp0ok3r/ChatLogger");
75+
Console.WriteLine("sp0ok3r.tk down :c");
76+
InfoForm.InfoHelper.CustomMessageBox.Show("Alert", "sp0ok3r.tk down :c. Try https://github.com/sp0ok3r/");
8577
}
8678
}
87-
88-
89-
90-
79+
9180
public Main()
9281
{
9382
InitializeComponent();
83+
lbl_infoversion.Text = Program.Version;
9484
metroTabControl.SelectedTab = metroTab_AddAcc;
9585
this.components.SetStyle(this);
9686
Region = System.Drawing.Region.FromHrgn(Helpers.Extensions.CreateRoundRectRgn(0, 0, Width, Height, 5, 5));
@@ -103,10 +93,10 @@ public Main()
10393
picBox_SteamAvatar.Visible = false;
10494

10595
}
106-
96+
[Obsolete]
10797
private void Main_Shown(object sender, EventArgs e)
10898
{
109-
RafadexAutoUpdate601IQ();
99+
RafadexAutoUpdate600IQ();
110100
System.Windows.Forms.Timer t = new System.Windows.Forms.Timer();
111101
t.Tick += new EventHandler(Trolha_Tick);
112102
t.Interval = 2000;
@@ -551,5 +541,10 @@ private void pictureBox1_Click(object sender, EventArgs e)
551541
{
552542
Process.Start("https://github.com/sp0ok3r/ChatLogger");
553543
}
544+
545+
private void lbl_infoversion_Click(object sender, EventArgs e)
546+
{
547+
Process.Start("https://github.com/sp0ok3r/ChatLogger");
548+
}
554549
}
555550
}

ChatLogger/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ static class Program
1111
{
1212
public static readonly string BOTNAME = "ChatLogger";
1313

14-
public static readonly string GITHUB_PROJECT = "https://api.github.com/repos/sp0ok3r/ChatLogger/releases";
14+
public static readonly string spkDomain = "http://sp0ok3r.tk/ChatLogger/";
1515
public static readonly string Version = "1.0.1";
1616

1717

0 commit comments

Comments
 (0)