Linux localhost 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 23.92.16.63 | : 162.158.63.204
Cant Read [ /etc/named.conf ]
8.1.5
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 /
justhub /
source /
app /
Http /
Controllers /
[ HOME SHELL ]
Name
Size
Permission
Action
Client
[ DIR ]
drwxr-xr-x
admin
[ DIR ]
drwxr-xr-x
BlogController.php
2.11
KB
-rw-r--r--
ClientsController.php
17.33
KB
-rw-r--r--
Controller.php
361
B
-rw-r--r--
ExportController.php
3.53
KB
-rw-r--r--
HomeController.php
76.48
KB
-rw-r--r--
LoginController.php
1.65
KB
-rw-r--r--
MailController.php
1.88
KB
-rw-r--r--
OrderController.php
25.73
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ExportController.php
<?php namespace App\Http\Controllers; use App\Export\CategoryProductsExport; use App\Models\Blog; use App\Models\Category; use App\Models\Page; use App\Models\Product; use App\Models\ProductGallery; use App\Models\SocialMediaLink; use App\Models\Type; use Illuminate\Http\Request; use Illuminate\Support\Facades\File; use Maatwebsite\Excel\Facades\Excel; class ExportController extends Controller{ public function categoryProducts() { return Excel::download(new CategoryProductsExport(), 'blogs.xlsx'); } public function getImages(){ $products=Product::all(); foreach ($products as $product){ if (File::exists(public_path('assets/images/products/'.$product->product_image))) { //dd('File is Exists'); }else{ $imgexpld=explode('.',$product->product_image); $smallimg= $imgexpld[0].'.'.'png'; Product::whereId($product->id)->update(['product_image'=>$smallimg]); echo '<br>'; echo public_path('assets/images/products/'.$product->product_back_image); } if (File::exists(public_path('assets/images/products/'.$product->product_image))) { //dd('File is Exists'); }else{ $product_image2=explode('.',$product->product_image2); if(!empty($product->product_image2)){ $product_image= $product_image2[0].'.'.'png'; Product::whereId($product->id)->update(['product_image2'=>$product_image]); echo '<br>'; echo public_path('assets/images/products/'.$product->product_image2); } } if (File::exists(public_path('assets/images/products/'.$product->product_back_image))) { }else{ $product_back_imag=explode('.',$product->product_back_image); $product_back_image= $product_back_imag[0].'.'.'png'; Product::whereId($product->id)->update(['product_back_image'=>$product_back_image]); echo '<br>'; echo public_path('assets/images/products/'.$product->product_back_image); } } } public function galleryImages(){ $galleries=ProductGallery::all(); foreach ($galleries as $gallery){ if (File::exists(public_path('assets/images/products_gallery/'.$gallery->image))) { //dd('File is Exists'); }else{ $imgexpld=explode('.',$gallery->image); $smallimg= $imgexpld[0].'.'.'png'; $jpg= $imgexpld[0].'.'.'jpg'; if (File::exists(public_path('assets/images/products_gallery/'.$smallimg))) { ProductGallery::whereId($gallery->id)->update(['image'=>$smallimg]); }else if(File::exists(public_path('assets/images/products_gallery/'.$jpg))){ ProductGallery::whereId($gallery->id)->update(['image'=>$jpg]); } } /*if (File::exists(public_path('assets/images/products-gallery/'.$gallery->product_image_big))) { //dd('File is Exists'); }else{ $imgexplde=explode('.',$gallery->product_image_big); $smallimge= $imgexplde[0].'.'.'png'; ProductGallery::whereId($gallery->id)->update(['product_image_big'=>$smallimge]); echo '<br>'; echo asset('assets/images/products-gallery/'.$gallery->product_image_big); }*/ } } }
Close