UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_afe5a0d40148
/
app
/
Console
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
Kernel.php
<?php namespace EstudioLMS\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; /** * Class Kernel * @package EstudioLMS\Console */ class Kernel extends ConsoleKernel { /** * The Artisan commands provided by your application. * * @var array */ protected $commands = [ 'EstudioLMS\Console\Commands\Inspire', 'EstudioLMS\Console\Commands\CheckStudentsOverdue', 'EstudioLMS\Console\Commands\SuspendedCommand', 'EstudioLMS\Console\Commands\ReactivatedCommand', 'EstudioLMS\Console\Commands\SetVideoDuration' ]; /** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) { $schedule->command('overdue:check') ->cron('* 0-1 * * *'); } /** * checks, if a process with $needle in the name is running * * @param string $needle * @return bool */ protected function osProcessIsRunning($needle) { // get process status. the "-ww"-option is important to get the full output! exec('ps aux -ww', $process_status); // search $needle in process status $result = array_filter($process_status, function ($var) use ($needle) { return strpos($var, $needle); }); // if the result is not empty, the needle exists in running processes if (!empty($result)) { return true; } return false; } }
Copyright © 2026 - UnknownSec