⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.108
Server IP:
97.74.83.112
Server:
Linux 112.83.74.97.host.secureserver.net 5.14.0-611.54.6.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 04:23:18 EDT 2026 x86_64
Server Software:
Apache
PHP Version:
8.2.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
trinadezambia
/
public_html
/
gambling
/
app
/
Lib
/
View File Name :
RequiredConfig.php
<?php namespace App\Lib; class RequiredConfig { public function getConfig() { return [ 'general_setting' => [ 'title' => 'Configure basic setting of your site like Site Name, Currency, Timezone etc', 'route' => route('admin.setting.general'), ], 'logo_favicon' => [ 'title' => 'Update the logo and favicon', 'route' => route('admin.setting.logo.icon'), ], 'notification_template' => [ 'title' => 'Update the global notification template', 'route' => route('admin.setting.notification.global.email'), ], 'seo' => [ 'title' => 'Update the seo configuration', 'route' => route('admin.seo'), ], 'policy_content' => [ 'title' => 'Update the site policy content', 'route' => route('admin.frontend.sections', 'policy_pages'), ], ]; } public function totalConfigs() { return count($this->getConfig()); } public function completedConfig() { return gs('config_progress') ?? []; } public function completedConfigCount() { return count($this->completedConfig() ?? []); } public function completedConfigPercent() { return ($this->completedConfigCount() / $this->totalConfigs()) * 100; } public static function configured($key) { $completedConfig = gs('config_progress') ?? []; if (!in_array($key, $completedConfig)) { $general = gs(); $general->config_progress = array_merge($completedConfig, [$key]); $general->save(); } } }