Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
Game source /
core /
app /
Lib /
Delete
Unzip
Name
Size
Permission
Date
Action
Captcha.php
3.65
KB
-rw-r--r--
2024-05-09 05:39
ClientInfo.php
2.77
KB
-rw-r--r--
2024-05-09 05:39
CurlRequest.php
1.35
KB
-rw-r--r--
2024-09-25 09:17
FileManager.php
5.76
KB
-rw-r--r--
2025-06-22 13:41
FormProcessor.php
5.92
KB
-rw-r--r--
2025-03-02 11:07
GoogleAuthenticator.php
6.02
KB
-rw-r--r--
2025-05-05 11:06
Intended.php
2.11
KB
-rw-r--r--
2024-05-09 05:39
RequiredConfig.php
2.03
KB
-rw-r--r--
2025-04-22 10:58
Searchable.php
3.25
KB
-rw-r--r--
2024-05-09 05:39
SocialLogin.php
5.79
KB
-rw-r--r--
2024-05-20 14:46
UserNotificationSender.php
7.76
KB
-rw-r--r--
2025-03-02 11:23
Save
Rename
<?php namespace App\Lib; use App\Constants\Status; use App\Models\AdminNotification; use App\Models\User; use App\Models\UserLogin; use Exception; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Hash; use Socialite; class SocialLogin { private $provider; private $fromApi; public function __construct($provider, $fromApi = false) { $this->provider = $provider; $this->fromApi = $fromApi; $this->configuration(); } public function redirectDriver() { return Socialite::driver($this->provider)->redirect(); } private function configuration() { $provider = $this->provider; $configuration = gs('socialite_credentials')->$provider; $provider = $this->fromApi && $provider == 'linkedin' ? 'linkedin-openid' : $provider; Config::set('services.' . $provider, [ 'client_id' => $configuration->client_id, 'client_secret' => $configuration->client_secret, 'redirect' => route('user.social.login.callback', $provider), ]); } public function login() { $provider = $this->provider; $provider = $this->fromApi && $provider == 'linkedin' ? 'linkedin-openid' : $provider; $driver = Socialite::driver($provider); if ($this->fromApi) { try { $user = (object) $driver->userFromToken(request()->token)->user; } catch (\Throwable $th) { throw new Exception('Something went wrong'); } } else { $user = $driver->user(); } if ($provider == 'linkedin-openid') { $user->id = $user->sub; } $userData = User::where('provider_id', $user->id)->first(); if (!$userData) { if (!gs('registration')) { throw new Exception('New account registration is currently disabled'); } $emailExists = User::where('email', @$user->email)->exists(); if ($emailExists) { throw new Exception('Email already exists'); } $userData = $this->createUser($user, $this->provider); } if ($this->fromApi) { $tokenResult = $userData->createToken('auth_token')->plainTextToken; $this->loginLog($userData); return [ 'user' => $userData, 'access_token' => $tokenResult, 'token_type' => 'Bearer', ]; } Auth::login($userData); $this->loginLog($userData); $redirection = Intended::getRedirection(); return $redirection ? $redirection : to_route('user.home'); } private function createUser($user, $provider) { $general = gs(); $password = getTrx(8); $firstName = null; $lastName = null; if (@$user->first_name) { $firstName = $user->first_name; } if (@$user->last_name) { $lastName = $user->last_name; } if ((!$firstName || !$lastName) && @$user->name) { $firstName = preg_replace('/\W\w+\s*(\W*)$/', '$1', $user->name); $pieces = explode(' ', $user->name); $lastName = array_pop($pieces); } $referBy = session()->get('reference'); if ($referBy) { $referUser = User::where('username', $referBy)->first(); } else { $referUser = null; } $newUser = new User(); $newUser->provider_id = $user->id; $newUser->email = $user->email; $newUser->password = Hash::make($password); $newUser->firstname = $firstName; $newUser->lastname = $lastName; $user->ref_by = $referUser ? $referUser->id : 0; $newUser->status = Status::VERIFIED; $newUser->kv = $general->kv ? Status::NO : Status::YES; $newUser->ev = Status::VERIFIED; $newUser->sv = gs('sv') ? Status::UNVERIFIED : Status::VERIFIED; $newUser->ts = Status::DISABLE; $newUser->tv = Status::VERIFIED; $newUser->provider = $provider; $newUser->save(); $adminNotification = new AdminNotification(); $adminNotification->user_id = $newUser->id; $adminNotification->title = 'New member registered'; $adminNotification->click_url = urlPath('admin.users.detail', $newUser->id); $adminNotification->save(); $user = User::find($newUser->id); return $user; } private function loginLog($user) { //Login Log Create $ip = getRealIP(); $exist = UserLogin::where('user_ip', $ip)->first(); $userLogin = new UserLogin(); //Check exist or not if ($exist) { $userLogin->longitude = $exist->longitude; $userLogin->latitude = $exist->latitude; $userLogin->city = $exist->city; $userLogin->country_code = $exist->country_code; $userLogin->country = $exist->country; } else { $info = json_decode(json_encode(getIpInfo()), true); $userLogin->longitude = @implode(',', $info['long']); $userLogin->latitude = @implode(',', $info['lat']); $userLogin->city = @implode(',', $info['city']); $userLogin->country_code = @implode(',', $info['code']); $userLogin->country = @implode(',', $info['country']); } $userAgent = osBrowser(); $userLogin->user_id = $user->id; $userLogin->user_ip = $ip; $userLogin->browser = @$userAgent['browser']; $userLogin->os = @$userAgent['os_platform']; $userLogin->save(); } }