���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
dasterang-api
/
app
/
Http
/
Controllers
/
Viewing: FunctionController.php
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Intervention\Image\ImageManagerStatic as Image; // use Excel; use Vtiful\Kernel\Excel; use Modules\Vendor\Models\Business; use Kavenegar\KavenegarApi; class FunctionController extends Controller { public static function convert($string) { $newNumbers = range(0, 9); $persianDecimal = array('۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹'); $arabicDecimal = array('٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩'); $arabic = array('٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩'); $persian = array('۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹'); $string = str_replace($persianDecimal, $newNumbers, $string); $string = str_replace($arabicDecimal, $newNumbers, $string); $string = str_replace($arabic, $newNumbers, $string); return str_replace($persian, $newNumbers, $string); } public static function sendsms($code,$mobile) { try { $api = new \Kavenegar\KavenegarApi("7146424E6D74644E4961484D50356D64486E6C445841457932636741345A414D4D6D4F55777074326742593D"); $receptor = $mobile; $token=$code; $template='verify'; $type = "sms"; $result = $api->VerifyLookup($mobile,$token,'','',$template,$type); if ($result) { return true; } } catch (\Kavenegar\Exceptions\ApiException $e) { return $e->errorMessage(); } catch (\Kavenegar\Exceptions\HttpException $e) { return $e->errorMessage(); } } public static function Hash($val) { return md5(hash('ripemd160',$val)); } // public function test(){ // $file= public_path('excel/all.xlsx'); // $t=[]; // $sina=array(); // $array = Excel::toArray($t, $file); // foreach ($array as $row) { // // var_dump($row); // foreach ($row as $row2) { // if($row2[1]==null){ // $name=''; // } else { // $name=$row2[1]; // } // $image='https://dasterang.ir/image/business/'.$row2[0].'.jpg'; // if($row2[7] != null) { // Business::create([ // 'name'=>$name, // 'description'=>$row2[6], // 'category_id'=>$row2[9], // 'province_id'=>$row2[7], // 'city_id'=>$row2[8], // 'image'=>$image, // 'mobile'=>$row2[4], // 'phone'=>$row2[5], // 'address'=>$row2[3], // 'owner'=>$row2[2], // 'isShow'=>1 // ]); // } // } // } // // Business::insert($sina[0]); // return 0; // } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa