���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
dasterang-api
/
modules
/
Shared
/
Helpers
/
Viewing: GlobalHelpers.php
<?php namespace Modules\Shared\Helpers; use Illuminate\Support\Facades\Storage; /** * Defined Helpers as static functions */ class GlobalHelpers { /** * Return root directory of modules * @return string */ public static function modulesPath(): string { return base_path("modules"); } /** * Return path of a specific module * @param string $moduleDirectory * @return string */ public static function modulePath(string $moduleDirectory): string { return self::modulesPath() . DIRECTORY_SEPARATOR . $moduleDirectory . DIRECTORY_SEPARATOR; } /** * Load all routes of each module with naming standard * @param string $guard * @return string[] */ public static function loadModulesRoutes(string $guard = 'web'): array { return [ base_path('routes') . "/{$guard}.php", ]; } /** * @param array $sections * @param string $disk * @return string */ public static function makeDirectoryWithTheseSections(array $sections, string $disk = 'public'): string { $url = implode(DIRECTORY_SEPARATOR, $sections) . DIRECTORY_SEPARATOR; Storage::disk($disk)->makeDirectory($url); return $url; } public static function isFullSheet($orderGroup): bool { if ($orderGroup['panel_height'] == 366 && $orderGroup['panel_width'] == 183) return true; return false; } public static function farsiToEnglishNumbers($text) { $farsiDigits = ['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹']; $englishDigits = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']; return str_replace($farsiDigits, $englishDigits, $text); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa