Browse Source

new settings section

andre 6 months ago
parent
commit
47fd809fd2
1 changed files with 0 additions and 45 deletions
  1. 0 45
      app/Http/Client/Settings.php

+ 0 - 45
app/Http/Client/Settings.php

@@ -1,45 +0,0 @@
-<?php
-
-namespace ThurData\Servers\KerioEmail\App\Http\Client;
-
-use ThurData\Servers\KerioEmail\App\Enums\ControllerEnums;
-use ThurData\Servers\KerioEmail\App\Enums\ProductParams;
-use ThurData\Servers\KerioEmail\App\Helpers\BuildUrlExtended;
-use ThurData\Servers\KerioEmail\App\Libs\Product\ProductManager;
-use ThurData\Servers\KerioEmail\App\UI\Admin\Custom\Pages\Description;
-use ThurData\Servers\KerioEmail\App\UI\Client\Settings\Pages\Settings;
-use ThurData\Servers\KerioEmail\Core\Http\AbstractClientController;
-use ThurData\Servers\KerioEmail\Core\UI\Traits\WhmcsParams;
-use ThurData\Servers\KerioEmail\Core\Helper;
-
-/**
- *
- * Created by PhpStorm.
- * User: ThurData
- * Date: 10.09.19
- * Time: 10:13
- * Class Webmail
- */
-class Setting extends AbstractClientController
-{
-    use WhmcsParams;
-
-    /**
-     * @return \ThurData\Servers\KerioEmail\Core\Http\JsonResponse
-     */
-    public function index()
-    {
-        $productManager = new ProductManager();
-        $productManager->loadByHostingId($this->request->get('id'));
-        if ($this->getWhmcsParamByKey('status') !== 'Active' || !$productManager->isControllerAccessible(ControllerEnums::SETTINGS_PAGE))
-        {
-            return Helper\redirectByUrl(BuildUrlExtended::getProvisioningUrl('',false,false));
-        }
-
-        return Helper\view()
-            ->addElement(new Description('ressource'))
-            ->addElement(Ressources::class)
-            ;
-
-    }
-}