Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pink1stools committed Dec 19, 2018
1 parent 9c7a1b4 commit 2482dc2
Show file tree
Hide file tree
Showing 48 changed files with 3,419 additions and 6,960 deletions.
16 changes: 16 additions & 0 deletions PS4_PKG_Linker/.htaccess
@@ -0,0 +1,16 @@
#------------------------------------------------------------------------------
# Server root folder www .htaccess
# This file provides server security limiting access to the localhost only.
# Comment next four lines to deactivate. (Allows external access)
#------------------------------------------------------------------------------

Order Deny,Allow
Deny from none
Allow from all
Allow from ::1

#-------------------------------------------------------------------
# To allow execution of cgi scripts in this directory uncomment next
#-------------------------------------------------------------------

Options +FollowSymLinks
5 changes: 5 additions & 0 deletions PS4_PKG_Linker/App.config
Expand Up @@ -8,6 +8,11 @@
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="tools" />
</assemblyBinding>
</runtime>
<userSettings>
<PS4_PKG_Linker.Properties.Settings>
<setting name="color" serializeAs="String">
Expand Down
28 changes: 15 additions & 13 deletions PS4_PKG_Linker/MainWindow.xaml
Expand Up @@ -6,7 +6,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:PS4_PKG_Linker"
mc:Ignorable="d"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
Title="" Loaded="MetroWindow_Loaded" ShowIconOnTitleBar="False" StateChanged="Window_StateChanged" Closed="MetroWindow_Closed" Closing="MetroWindow_Closing" Height="450" Width="800" Icon="tools/resources/blue1.ico" >

Expand Down Expand Up @@ -350,7 +350,9 @@

<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="Background" Value="{DynamicResource AccentColorBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="BorderThickness" Value="1,0" />

<Setter Property="BorderBrush" Value="{DynamicResource AccentColorBrush}"/>
<Setter Property="Controls:ItemHelper.ActiveSelectionBackgroundBrush" Value="{DynamicResource AccentColorBrush}" />
<Setter Property="Controls:ItemHelper.ActiveSelectionForegroundBrush" Value="{DynamicResource AccentSelectedColorBrush}" />
<Setter Property="Controls:ItemHelper.DisabledForegroundBrush" Value="{DynamicResource GrayNormalBrush}" />
Expand Down Expand Up @@ -448,12 +450,12 @@
<ListBox.ItemTemplate >
<DataTemplate>
<Border>
<StackPanel x:Name="plist" ToolTip="{Binding tool }" HorizontalAlignment="Left">
<StackPanel x:Name="plist" ToolTip="{Binding tool }" HorizontalAlignment="Right" Margin="0,5">

<Image Height="100" Width="100" Source="{Binding icon}" HorizontalAlignment="Center" VerticalAlignment="Center"/>

<TextBlock Width="180" TextWrapping="Wrap" Text="{Binding Name}" FontSize="12" Name="txtScrolling" HorizontalAlignment="Left"/>

<TextBlock Width="182" TextWrapping="Wrap" Text="{Binding Name}" FontSize="12" Name="txtScrolling" HorizontalAlignment="Stretch" Background="{DynamicResource AccentColorBrush}" />

</StackPanel>
</Border>
Expand All @@ -469,15 +471,15 @@
<RowDefinition Height="50"/>
</Grid.RowDefinitions>

<TextBox x:Name="textBoxtid" MinWidth="100" IsReadOnly="False" Grid.Row="0" HorizontalAlignment="Left" Height="23" Margin="10,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" mah:TextBoxHelper.Watermark="Title ID" mah:TextBoxHelper.AutoWatermark="True" HorizontalContentAlignment="Center"/>
<TextBox x:Name="textBoxcid" MinWidth="120" IsReadOnly="False" Grid.Row="0" HorizontalAlignment="Left" Height="23" Margin="120,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" mah:TextBoxHelper.AutoWatermark="True" mah:TextBoxHelper.Watermark="Content ID" HorizontalContentAlignment="Center"/>
<TextBox x:Name="textBoxtask" MinWidth="120" IsReadOnly="True" Grid.Row="0" HorizontalAlignment="Right" Height="23" Margin="0,0,20,0" TextWrapping="Wrap" VerticalAlignment="Center" mah:TextBoxHelper.Watermark="Task ID" mah:TextBoxHelper.AutoWatermark="True" mah:TextBoxHelper.WatermarkAlignment="Center" HorizontalContentAlignment="Center"/>
<TextBox x:Name="textBoxtid" TextChanged="textBoxtid_TextChanged" MinWidth="100" IsReadOnly="False" Grid.Row="0" HorizontalAlignment="Left" Height="23" Margin="10,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" mah:TextBoxHelper.Watermark="Title ID" mah:TextBoxHelper.AutoWatermark="True" HorizontalContentAlignment="Center" Background="Transparent"/>
<TextBox x:Name="textBoxcid" TextChanged="textBoxcid_TextChanged" MinWidth="120" IsReadOnly="False" Grid.Row="0" HorizontalAlignment="Left" Height="23" Margin="120,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" mah:TextBoxHelper.AutoWatermark="True" mah:TextBoxHelper.Watermark="Content ID" HorizontalContentAlignment="Center" Background="Transparent"/>
<TextBox x:Name="textBoxtask" MinWidth="120" IsReadOnly="True" Grid.Row="0" HorizontalAlignment="Right" Height="23" Margin="0,0,20,0" TextWrapping="Wrap" VerticalAlignment="Center" mah:TextBoxHelper.Watermark="Task ID" mah:TextBoxHelper.AutoWatermark="True" mah:TextBoxHelper.WatermarkAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent"/>
<TextBox x:Name="textBoxname" Visibility="Collapsed" MinWidth="120" IsReadOnly="True" Grid.Row="0" HorizontalAlignment="Right" Height="23" Margin="0,0,20,0" TextWrapping="Wrap" VerticalAlignment="Center" mah:TextBoxHelper.Watermark="Task ID" mah:TextBoxHelper.AutoWatermark="True" mah:TextBoxHelper.WatermarkAlignment="Center" HorizontalContentAlignment="Center"/>
<TextBox x:Name="textBoxfile_type" Visibility="Collapsed" MinWidth="120" IsReadOnly="True" Grid.Row="0" HorizontalAlignment="Right" Height="23" Margin="0,0,20,0" TextWrapping="Wrap" VerticalAlignment="Center" mah:TextBoxHelper.Watermark="Task ID" mah:TextBoxHelper.AutoWatermark="True" mah:TextBoxHelper.WatermarkAlignment="Center" HorizontalContentAlignment="Center"/>
<TextBox x:Name="textBoxlink_type" Visibility="Collapsed" MinWidth="120" IsReadOnly="True" Grid.Row="0" HorizontalAlignment="Right" Height="23" Margin="0,0,20,0" TextWrapping="Wrap" VerticalAlignment="Center" mah:TextBoxHelper.Watermark="Task ID" mah:TextBoxHelper.AutoWatermark="True" mah:TextBoxHelper.WatermarkAlignment="Center" HorizontalContentAlignment="Center"/>


<ListBox Background="Transparent" Grid.Row="1" HorizontalContentAlignment="Stretch" Margin="0" VerticalContentAlignment="Stretch">
<ListBox Name="LB1" Visibility="Hidden" Background="Transparent" Grid.Row="1" HorizontalContentAlignment="Stretch" Margin="0" VerticalContentAlignment="Stretch">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="Background" Value="Transparent"/>
Expand Down Expand Up @@ -991,12 +993,12 @@

<Border BorderThickness="1" Visibility="Visible" BorderBrush="{DynamicResource AccentColorBrush}">
<Grid>
<TextBox Height="23" TextChanged="textBox2_TextChanged" ToolTip="DoubleClick to Scan for First Open Port" HorizontalAlignment="Left" Margin="247,17,0,0" Name="textBox2" MouseDoubleClick="textBox2_MouseDoubleClick" VerticalAlignment="Top" Width="39" Text="" />
<TextBox Height="23" TextChanged="textBox2_TextChanged" ToolTip="DoubleClick to Scan for First Open Port" HorizontalAlignment="Left" Margin="247,17,0,0" Name="textBox2" MouseDoubleClick="textBox2_MouseDoubleClick" VerticalAlignment="Top" Width="39" Text="" Background="Transparent"/>
<TextBox Height="23" HorizontalAlignment="Left" Margin="68,17,0,0" Name="textBox3" VerticalAlignment="Top" Width="98" Text="" />
<Label Content="Port" FontSize="16" Height="34" HorizontalAlignment="Left" Margin="202,17,0,0" Name="label1" VerticalAlignment="Top" />
<Label Content="PC IP" FontSize="16" Height="34" HorizontalAlignment="Left" Margin="15,17,0,0" Name="label2" VerticalAlignment="Top" />
<Label Content="PC IP" FontSize="16" Height="34" HorizontalAlignment="Left" Margin="15,17,0,0" Name="label2" VerticalAlignment="Top" />

<ComboBox Height="23" HorizontalAlignment="Left" Margin="68,17,0,0" Name="comboBox1" VerticalAlignment="Top" Width="121" Text="999.999.999.999" IsEditable="True" />
<ComboBox Height="23" HorizontalAlignment="Left" Margin="68,17,0,0" Name="comboBox1" VerticalAlignment="Top" Width="121" Text="999.999.999.999" IsEditable="True" Background="Transparent" />

<Border BorderThickness="1" BorderBrush="Transparent" CornerRadius="10" Padding="2" HorizontalAlignment="Left" Margin="307,17,0,0" VerticalAlignment="Top" >

Expand Down Expand Up @@ -1871,7 +1873,7 @@
</Border>
</Grid>
</TabItem>

</Controls:MetroAnimatedSingleRowTabControl>
<StatusBar Name="SB1" Grid.Row="1" BorderThickness="1" BorderBrush="{DynamicResource AccentColorBrush}">
<StatusBarItem>PS4 PKG Linker</StatusBarItem>
Expand Down
69 changes: 54 additions & 15 deletions PS4_PKG_Linker/MainWindow.xaml.cs
Expand Up @@ -40,25 +40,25 @@ namespace PS4_PKG_Linker
public partial class MainWindow : MetroWindow
{
private System.Windows.Forms.NotifyIcon MyNotifyIcon;
DataTable[] dtpkg = new DataTable[1];
DataTable dtpkg2 = new DataTable();
DataTable dtlinks = new DataTable();
DataTable COLORS = new DataTable();
public DataTable[] dtpkg = new DataTable[1];
public DataTable dtpkg2 = new DataTable();
public DataTable dtlinks = new DataTable();
public DataTable COLORS = new DataTable();

TestObject t = new TestObject();
Cursor Cursor2;

System.Windows.Threading.DispatcherTimer dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
private System.Drawing.Icon[] icons = new System.Drawing.Icon[16];
public System.Drawing.Icon[] icons = new System.Drawing.Icon[16];
private int currentIcon = 0;
string ip = "";
string port = "";
public string ip = "";
public string port = "";
string server = "";
string ps4_ip = "";
string folder = "";

string color;
string ctheme = "BaseDark";
public string color;
public string ctheme = "BaseDark";

int port1;

Expand Down Expand Up @@ -312,7 +312,7 @@ private void SaveSettings()

#region<<set_up>>

private void Set_cursor()
public void Set_cursor()
{

StreamResourceInfo sriCurs = Application.GetResourceStream(
Expand Down Expand Up @@ -737,7 +737,7 @@ private void check_processes()

#region<<loading>>

private void Add_pkg()
public void Add_pkg()
{
DirectoryInfo dinfo;
DirectoryInfo split_dinfo;
Expand Down Expand Up @@ -817,7 +817,7 @@ private void Add_pkg()
dr["type"] = pkgtype;
dr["size"] = sz;
dr["icon"] = iconpath;
dr["tool"] = " " + s + " " + scid + " " + sz;
dr["tool"] = " " + s + "\n " + scid + " " + sz;
dr["count"] = i;
dr["bl"] = stid;
dr["tileh"] = "";
Expand Down Expand Up @@ -1219,7 +1219,7 @@ private void Load_Links()

}

private void Wjson()
public void Wjson()
{
DataSet dataSet = new DataSet("dataSet");
dataSet.Namespace = "NetFrameWork";
Expand Down Expand Up @@ -1709,7 +1709,7 @@ private string Check_game()
return (out1);
}

private string Send_File(string link_name, string link_type, string file_type)
public string Send_File(string link_name, string link_type, string file_type)
{
string out1 = "";
if (link_type == "PKG")
Expand Down Expand Up @@ -1969,12 +1969,19 @@ private void button8_Click(object sender, RoutedEventArgs e)

private void textBox2_TextChanged(object sender, TextChangedEventArgs e)
{
if (b1tb1.Text == "Stop Server")
{

MyNotifyIcon.ShowBalloonTip(10000, "Server Restart Required", "Server Restart Required for Changes to Take Effect", System.Windows.Forms.ToolTipIcon.Info);

}
}

private void textBox2_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{

port1 = GetAvailablePort(81);
port = port1.ToString();
textBox2.Text = port;
}

#endregion<<>>
Expand Down Expand Up @@ -2685,6 +2692,38 @@ private void CursorSelector2_Click(object sender, RoutedEventArgs e)

}
}

private void textBoxtid_TextChanged(object sender, TextChangedEventArgs e)
{
if(textBoxtid.Text.Length == 12)
{
LB1.Visibility = Visibility.Visible;
}
else if (textBoxcid.Text.Length == 36)
{
LB1.Visibility = Visibility.Visible;
}
else
{
LB1.Visibility = Visibility.Hidden;
}
}

private void textBoxcid_TextChanged(object sender, TextChangedEventArgs e)
{
if (textBoxcid.Text.Length == 36)
{
LB1.Visibility = Visibility.Visible;
}
else if (textBoxtid.Text.Length == 12)
{
LB1.Visibility = Visibility.Visible;
}
else
{
LB1.Visibility = Visibility.Hidden;
}
}
}


Expand Down
6 changes: 6 additions & 0 deletions PS4_PKG_Linker/PS4_PKG_Linker.csproj
Expand Up @@ -144,11 +144,17 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<AdditionalFiles Include=".htaccess">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</AdditionalFiles>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>PublicSettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<AdditionalFiles Include="server-status.lua">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</AdditionalFiles>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
Expand Down
Binary file modified PS4_PKG_Linker/bin/Debug/PS4_PKG_Linker.exe
Binary file not shown.
Binary file modified PS4_PKG_Linker/bin/Debug/PS4_PKG_Linker.pdb
Binary file not shown.
Expand Up @@ -31536,3 +31536,17 @@ user-pc - - [16/Nov/2018:22:00:50 -0600] "GET /favicon.ico HTTP/1.1" 404 209 "ht
user-pc - - [16/Nov/2018:22:00:53 -0600] "GET /server-status.lua?view=json&rnd=0.6539761320651061 HTTP/1.1" 200 521 "http://192.168.1.10/server-status.lua" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
127.0.0.1 - - [16/Nov/2018:22:00:59 -0600] "GET /server-info HTTP/1.1" 200 13571 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)"
127.0.0.1 - - [16/Nov/2018:22:02:00 -0600] "-" 408 - "-" "-"
127.0.0.1 - - [20/Nov/2018:20:38:38 -0600] "GET /server-info HTTP/1.1" 200 13449 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)"
user-pc - - [20/Nov/2018:20:39:08 -0600] "GET / HTTP/1.1" 200 1065 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:39:09 -0600] "GET /icons/unknown.gif HTTP/1.1" 200 245 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:39:09 -0600] "GET /icons/blank.gif HTTP/1.1" 200 148 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:39:09 -0600] "GET /icons/binary.gif HTTP/1.1" 200 246 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:39:09 -0600] "GET /icons/text.gif HTTP/1.1" 200 229 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:39:09 -0600] "GET /icons/folder.gif HTTP/1.1" 200 225 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:39:09 -0600] "GET /favicon.ico HTTP/1.1" 404 209 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:39:13 -0600] "GET /test.php HTTP/1.1" 500 193 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:40:10 -0600] "GET /test.php HTTP/1.1" 500 193 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:43:52 -0600] "GET / HTTP/1.1" 200 1091 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:43:54 -0600] "GET /stop.php HTTP/1.1" 200 7 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:44:34 -0600] "GET /stop.php HTTP/1.1" 200 - "http://localhost/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
user-pc - - [20/Nov/2018:20:44:55 -0600] "GET /stop.php HTTP/1.1" 200 7 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"

0 comments on commit 2482dc2

Please sign in to comment.