diff --git a/app/Livewire/Frontend/Action.php b/app/Livewire/Frontend/Action.php index 573d78a..2aad317 100644 --- a/app/Livewire/Frontend/Action.php +++ b/app/Livewire/Frontend/Action.php @@ -66,6 +66,10 @@ class Action extends Component private function showAlert($type, $message): void { + $check = json_decode(config('app.settings.configuration_settings'))->email_limit; + if (strpos($message, $check) !== false) { + $this->dispatch('promotePremium'); + } $this->dispatch('showAlert', ['type' => $type, 'message' => $message]); } diff --git a/cleanCron.php b/cleanCron.php new file mode 100644 index 0000000..ffa763d --- /dev/null +++ b/cleanCron.php @@ -0,0 +1,24 @@ +make(Illuminate\Contracts\Console\Kernel::class); + +try { + // Run the Artisan command 'ping' + $exitCode = $kernel->call('cleanMail'); + + // Get the output of the command + $output = $kernel->output(); + + echo "Artisan command 'schedule:run' executed successfully. Exit code: $exitCode\n"; + echo "Output:\n$output"; + +} catch (\Exception $e) { + echo "Error running Artisan command: " . $e->getMessage(); +} diff --git a/dropattach.php b/dropattach.php new file mode 100644 index 0000000..bb8f51f --- /dev/null +++ b/dropattach.php @@ -0,0 +1,41 @@ +"; + } else { + echo "Error deleting file '$file'.
"; + } + } + } + } + // Close the directory handle + closedir($handle); + // Attempt to remove the directory itself + if (rmdir($dir)) { + echo "Directory '$dir' deleted successfully.
"; + } else { + echo "Error deleting directory '$dir'.
"; + } + } +} + +$folderPath = '/home/u146541135/domains/zemail.me/public_html/public/tmp/attachments/'; + +// Ensure the folder path exists and is a directory +if (is_dir($folderPath)) { + deleteFiles($folderPath); +} else { + echo "Folder '$folderPath' does not exist or is not a directory."; +} +?> diff --git a/dropmail.php b/dropmail.php new file mode 100644 index 0000000..3415669 --- /dev/null +++ b/dropmail.php @@ -0,0 +1,51 @@ + diff --git a/inCron.php b/inCron.php index 05837e9..138f564 100644 --- a/inCron.php +++ b/inCron.php @@ -11,12 +11,12 @@ $kernel = $app->make(Illuminate\Contracts\Console\Kernel::class); try { // Run the Artisan command 'ping' - $exitCode = $kernel->call('ping'); + $exitCode = $kernel->call('schedule:run'); // Get the output of the command $output = $kernel->output(); - echo "Artisan command 'ping' executed successfully. Exit code: $exitCode\n"; + echo "Artisan command 'schedule:run' executed successfully. Exit code: $exitCode\n"; echo "Output:\n$output"; } catch (\Exception $e) { diff --git a/resources/js/boil.js b/resources/js/boil.js index 236872d..5448e24 100644 --- a/resources/js/boil.js +++ b/resources/js/boil.js @@ -217,3 +217,24 @@ document.addEventListener('DOMContentLoaded', function () { const fetchInterval = setInterval(fetchStoreEmail, 10000); }, 3000); }); + + +document.addEventListener('promotePremium', function () { + setTimeout(() => { + const event = new CustomEvent('modal-show', { + detail: { + name: 'premium', + scope: null + } + }); + const showText = document.getElementById('premium-modal-limit'); + showText.classList.remove('hidden'); + const text1 = document.getElementById('focus-modal-text1'); + text1.classList.remove('text-accent'); + text1.classList.add('text-amber-500'); + const text2 = document.getElementById('focus-modal-text2'); + text2.classList.remove('text-accent'); + text2.classList.add('text-amber-500'); + document.dispatchEvent(event); + }, 500); +}); diff --git a/resources/views/components/layouts/app.blade.php b/resources/views/components/layouts/app.blade.php index a314b2f..65e7c7e 100644 --- a/resources/views/components/layouts/app.blade.php +++ b/resources/views/components/layouts/app.blade.php @@ -126,6 +126,26 @@ + @auth + + + @endauth + @guest + + + + + @endguest @@ -174,8 +194,13 @@
+ -
+
Zemail Premium
${{ config('app.plans')[0]->price ?? 10 }} @@ -198,7 +223,11 @@
  • - Up to 100 addresses at the same time + Unlimited email addresses on public domains +
  • +
  • + + Up to 100 email addresses daily on premium domains
  • diff --git a/resources/views/livewire/home.blade.php b/resources/views/livewire/home.blade.php index d85b3d8..aab3364 100644 --- a/resources/views/livewire/home.blade.php +++ b/resources/views/livewire/home.blade.php @@ -87,7 +87,7 @@