Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiHatti committed Jun 5, 2020
1 parent 4c002db commit 1f4439c
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 30 deletions.
17 changes: 0 additions & 17 deletions LPHP-Preprocessor/LPHP_Preprocessor/LPHPCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,6 @@ namespace LPHP_Preprocessor
{
public class LPHPCompiler
{
/// <summary>
/// Removes HTML-Tags (<!-- -->) from the output
/// </summary>
private static bool COMP_REMOVE_HTML_COMMENTS { get; set; } = true;

/// <summary>
/// Enable Min-Output (*.min.php)
/// </summary>
private static bool COMP_MIN_OUTPUT_ENABLED { get; set; } = true;

/// <summary>
/// Enable XML-Foramted output with linebreaks and indents
/// </summary>
private static bool COMP_XML_OUTPUT_ENABLED { get; set; } = false;


private static Dictionary<string, object> COMPOPT = null;

private static readonly List<string> instructionSessionBuffer = new List<string>();
Expand Down Expand Up @@ -518,7 +502,6 @@ private static void SaveFile(string pOriginalFilename, string pFileContent)

bool fileGenerated = false;


string selectedFileExt;
if ((bool)COMPOPT["MIN_OUTPUT_ENABLED"])
{
Expand Down
22 changes: 12 additions & 10 deletions LPHP-Preprocessor/LPHP_Preprocessor/LPHPWatchdog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,21 @@ static void Main(string[] args)

Console.ForegroundColor = ConsoleColor.Cyan;
Console.BackgroundColor = ConsoleColor.Black;
Console.WriteLine("=================================================");
Console.WriteLine(" LPHP Preprocessor ");
Console.WriteLine(" Version " + typeof(LPHPCompiler).Assembly.GetName().Version.ToString(3) + " ALPHA");
Console.WriteLine(" (c) Copyright 2020 Tobias Hattinger ");
Console.WriteLine(" ");
Console.WriteLine(" Visit ");
Console.WriteLine("=====================================================");
Console.WriteLine("* LPHP Preprocessor *");
Console.WriteLine("* Version " + typeof(LPHPCompiler).Assembly.GetName().Version.ToString(3) + " ALPHA *");
Console.WriteLine("* (c) Copyright 2020 Tobias Hattinger *");
Console.WriteLine("* *");
Console.WriteLine("* Visit *");
Console.Write("* ");
Console.ForegroundColor = ConsoleColor.Blue;
Console.BackgroundColor = ConsoleColor.Gray;
Console.WriteLine("https://github.com/TobiHatti/LPHP-Engine/releases");
Console.Write("https://github.com/TobiHatti/LPHP-Engine/releases");
Console.ForegroundColor = ConsoleColor.Cyan;
Console.BackgroundColor = ConsoleColor.Black;
Console.WriteLine(" for updates ");
Console.WriteLine("=================================================\r\n\r\n");
Console.WriteLine(" *");
Console.WriteLine("* for updates *");
Console.WriteLine("=====================================================\r\n\r\n");

Console.ForegroundColor = ConsoleColor.White;
Console.BackgroundColor = ConsoleColor.Black;
Expand Down Expand Up @@ -62,7 +64,7 @@ static void Main(string[] args)
}

#if DEBUG
watchFolder = @"H:\Git\Endev-Web\PHP-Final\EndevWebsite";
watchFolder = @"...";
#endif
#if !DEBUG

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.2.0")]
[assembly: AssemblyFileVersion("0.1.2.0")]
[assembly: AssemblyVersion("0.2.0.0")]
[assembly: AssemblyFileVersion("0.2.0.0")]
2 changes: 1 addition & 1 deletion LPHP-Preprocessor/LPHP_Preprocessor/bin/Debug/LPHP.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REMOVE_HTML_COMMENTS=True
MIN_OUTPUT_ENABLED=False
MIN_OUTPUT_ENABLED=True
XML_OUTPUT_ENABLED=False
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 1f4439c

Please sign in to comment.