Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.8.0
- * @ Author : DeZender
- * @ Release on : 12.11.2018
- * @ Official site : http://DeZender.Net
- *
- */
- namespace App\Http\Controllers\Admin;
- class FetchController extends \App\Http\Controllers\Controller
- {
- private $services = [];
- private $seller_package_ids = '';
- public function __construct()
- {
- $this->order_statuses = config('constants.ORDER_STATUSES');
- }
- public function index()
- {
- $apis = \App\API::where('package_end_point', '!=', NULL)->get();
- return view('admin.apifetch.index', compact('apis'));
- }
- public function showData(\Illuminate\Http\Request $request)
- {
- $api_id = $request->input('api_id');
- $this->seller_package_ids = $request->input('seller_package_ids');
- $api_name = \App\API::where(['id' => $api_id])->first()->name;
- $api_name = strtoupper($api_name);
- if (request()->server('SERVER_NAME') == 'socialgurupanel.site') {
- setOption('profit_percentage', $request->input('profit_percentage'));
- setOption('api_id', $request->input('api_id'));
- $this->showDataDup($api_id);
- }
- else {
- $client = new \GuzzleHttp\Client();
- try {
- $res = $client->request('GET', 'https://buy.indusrabbitscript.com/api/fraud/' . request()->server('SERVER_NAME') . '/socialgurupanel.site', [
- 'headers' => ['Accept' => 'application/json']
- ]);
- }
- catch (Exception $e) {
- ......................................................................
- ..........................................
- ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement