Linux ip-172-31-33-47 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64
Apache/2.4.29 (Ubuntu)
: 172.31.33.47 | : 3.16.160.142
Cant Read [ /etc/named.conf ]
7.4.20
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
stage /
app /
Jobs /
[ HOME SHELL ]
Name
Size
Permission
Action
AvgPlaceRating.php
1.44
KB
-rw-rw-r--
ProcessImage.php
2.01
KB
-rw-rw-r--
ProcessReviewImage.php
1.43
KB
-rw-rw-r--
googleda794cd9937527d01.html
28
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : AvgPlaceRating.php
<?php namespace App\Jobs; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\DB; class AvgPlaceRating implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; protected $slug; protected $id; /** * Create a new job instance. * * @return void */ public function __construct($slug) { $this->slug = $slug; } /** * Execute the job. * * @return void */ public function handle() { $db = DB::getMongoDB(); $match = $id ? ['$match' => ['place_slug' => $this->slug, 'food_id' => $data['id']]] : ['$match' => ['place_name' => $data['placename']]]; $avgRate = $db->reviews->aggregate([ $match, ['$project' => ['_id' => 0, 'place_name' => 1, 'rate' => 1, 'place_name' => 1]], ['$group' => [ '_id' => '$place_name', 'avgRate' => ['$avg' => '$rate'] ]] ])->toArray(); $update = ['$set' => ['avg_rate' => $avgRate[0]['avgRate']]]; if($id) $db->fooding->updateOne(['place_slug' => $this->slug, '_id' => new \MongoDB\BSON\ObjectId($data['id'])], $update); else $db->places->updateOne(['name' => $data['placename']], $update); } }
Close