From 37d30ea7af9ca587d76d0ddc6c56a118ed29627d Mon Sep 17 00:00:00 2001 From: Abyss Morgan <14877700+AbyssMorgan@users.noreply.github.com> Date: Mon, 18 Dec 2023 18:22:56 +0100 Subject: [PATCH] v2.0.0 --- AVE-PHP.iss | 2 +- BuildLinux.ave-php | 6 +- Changelog.txt | 4 + includes/AVE.php | 13 +- includes/config/linux.ini | 1 + includes/config/windows.ini | 1 + includes/main.php | 4 + includes/services/AppBuffer.php | 109 ++++++++++++++++ includes/services/AveCore.php | 31 +++-- includes/services/BitArray.php | 149 ++++++++++++++++++++++ includes/services/BitFunctions.php | 184 +++++++++++++++++++++++++++ includes/services/DataBase.php | 8 +- includes/services/DataBaseBackup.php | 91 +++++++------ includes/services/JournalService.php | 96 ++++++++++++++ includes/tools/FileEditor.php | 4 +- includes/tools/FileFunctions.php | 8 +- includes/tools/FileNamesEditor.php | 2 +- includes/tools/FtpTools.php | 9 +- includes/tools/MediaTools.php | 2 +- includes/tools/MySQLTools.php | 104 ++++++++++----- version | 2 +- 21 files changed, 729 insertions(+), 101 deletions(-) create mode 100644 includes/services/AppBuffer.php create mode 100644 includes/services/BitArray.php create mode 100644 includes/services/BitFunctions.php create mode 100644 includes/services/JournalService.php diff --git a/AVE-PHP.iss b/AVE-PHP.iss index 65b8fd2..f9dcd9c 100644 --- a/AVE-PHP.iss +++ b/AVE-PHP.iss @@ -1,5 +1,5 @@ #define MyAppName "AVE-PHP" -#define MyAppVersion "1.9.6" +#define MyAppVersion "2.0.0" #define MyAppPublisher "Abyss Morgan" #define MyAppURL "https://github.com/AbyssMorgan" #define MyAppExeName "AVE-PHP.cmd" diff --git a/BuildLinux.ave-php b/BuildLinux.ave-php index 3236cdb..33b996f 100644 --- a/BuildLinux.ave-php +++ b/BuildLinux.ave-php @@ -7,10 +7,10 @@ $output = "$this->path/Setup"; $zip_name_a = $this->ave->get_file_path("$output/${app_name}_v$version"."_LINUX.tar"); - $this->ave->unlink($zip_name_a); + $this->ave->delete($zip_name_a); $zip_name_b = $this->ave->get_file_path("$output/${app_name}_v$version"."_LINUX.tar.gz"); - $this->ave->unlink($zip_name_b); + $this->ave->delete($zip_name_b); $this->ave->echo(" Compress \"$zip_name_a\""); $this->ave->exec("7z", "a -mx0 -ttar -- \"$zip_name_a\" \"includes\" \"vendor\" \"AVE-PHP.sh\" \"composer.json\" \"Changelog.txt\" \"LICENSE\""); @@ -18,7 +18,7 @@ $this->ave->echo(" Compress \"$zip_name_b\""); $this->ave->exec("7z", "a -mx9 -tgzip -- \"$zip_name_b\" \"$zip_name_a\""); - $this->ave->unlink($zip_name_a); + $this->ave->delete($zip_name_a); if(file_exists($zip_name_b)){ $this->ave->pause(" Operation done, press any key to back to menu"); diff --git a/Changelog.txt b/Changelog.txt index e4c6da5..aef9595 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,3 +1,7 @@ +v2.0.0: +- MySQL tool now support multiple data base into one connection label, you need set data base value to * for use that feature +- Fixed FTP Tools > Import FileZilla XML (Now you can import xml with single server) + v1.9.6: - Tool: Generate video: CheckSum/Resolution/Thumbnail now can generate checksum for audio defined by AVE_EXTENSIONS_AUDIO - Added compression .ave-guard in tool Check File Integrity diff --git a/includes/AVE.php b/includes/AVE.php index ab9f763..9e191dd 100644 --- a/includes/AVE.php +++ b/includes/AVE.php @@ -4,6 +4,7 @@ use App\Services\IniFile; use App\Services\AveCore; +use App\Services\AppBuffer; use App\Tools\AveSettings; use App\Tools\AveConsole; @@ -20,12 +21,11 @@ class AVE extends AveCore { public IniFile $mkvmerge; - + public AppBuffer $app_buffer; public string $app_data; public bool $abort = false; - public string $app_name = "AVE-PHP"; - public string $version = "1.9.6"; + public string $version = "2.0.0"; private array $folders_to_scan = [ 'bin', @@ -116,6 +116,7 @@ public function __construct(array $arguments){ $keys = [ 'AVE_LOG_FOLDER', 'AVE_DATA_FOLDER', + 'AVE_BUFFER_FOLDER', ]; foreach($keys as $key){ $this->config->set($key, $this->get_variable($this->config->get($key))); @@ -127,6 +128,8 @@ public function __construct(array $arguments){ $config_default->close(); $this->init_logs(); + + $this->app_buffer = new AppBuffer($this->get_file_path($this->config->get('AVE_BUFFER_FOLDER'))); ini_set('memory_limit', -1); $dev = file_exists($this->get_file_path("$this->path/.git")); @@ -145,10 +148,10 @@ public function execute() : void { switch(strtolower($this->command ?? '')){ case '--make-backup': { if(empty($this->arguments[0] ?? '')){ - $this->print_help([" Usage: --make-backup