1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 23:42:32 +01:00

Cleaned up servers controller

removed unused classes
This commit is contained in:
cp6 2022-05-15 12:00:05 +10:00
parent e33559fddc
commit 70622f827b

View File

@ -4,21 +4,15 @@ namespace App\Http\Controllers;
use App\Models\IPs; use App\Models\IPs;
use App\Models\Labels; use App\Models\Labels;
use App\Models\OS;
use App\Models\Pricing; use App\Models\Pricing;
use App\Models\Server; use App\Models\Server;
use App\Models\Providers;
use App\Models\Locations;
use App\Models\Settings; use App\Models\Settings;
use App\Models\Yabs; use App\Models\Yabs;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Session;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Carbon\Carbon;
class ServerController extends Controller class ServerController extends Controller
{ {
@ -251,6 +245,7 @@ class ServerController extends Controller
$server1_network = Yabs::serverCompareNetwork($server1_data[0]->yabs_id); $server1_network = Yabs::serverCompareNetwork($server1_data[0]->yabs_id);
$server2_data = Server::serverCompareData($server2); $server2_data = Server::serverCompareData($server2);
if (count($server2_data) === 0) { if (count($server2_data) === 0) {
return response()->view('errors.404', array("status" => 404, "title" => "Page not found", "message" => "No server with YABs data was found for id '$server2'"), 404); return response()->view('errors.404', array("status" => 404, "title" => "Page not found", "message" => "No server with YABs data was found for id '$server2'"), 404);
} }