[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: images-gallery.php
cards/<?php include('header.php');$cid=base64_decode($_REQUEST['cid']);?> <!-- USER --> <div class="inner-banner"> <img src="images/inner-banner.jpg" alt="banner"> </div> <script> //add pictures $(document).ready(function(){ // Add more $('#addmore').click(function(){ // alert('dd'); // Get last id var lastname_id = $('.tr_input input[type=file]').last().attr('id'); var split_id = lastname_id.split('_'); // New index var index = Number(split_id[1]) + 1; document.getElementById('getid').value=index; // Create row with input elements var html = "<div class='tr_input'><div class='form-left-to-w3l ' id='b_name'><input type='file' id='testcode_"+index+"' name='service_img[]'><a href='javascript:void(0);' id='remove_field' class='remCF btn btn-info' >-</a></div></div>"; // Append data $('#tab').append(html); }); $("#tab").on('click','.remCF',function(){ $(this).parent().parent().remove(); var lastname_id = document.getElementById('getid').value; // New index var index = lastname_id - 1; // Create row with input elements document.getElementById('getid').value=index; }); }); </script> <!-- Social Media Links --> <div class="company-details"> <div class="container"> <h1>Products Gallery</h1> <br> <div class="theme-box aos-init aos-animate" data-aos="fade-down" style="transition:all 1600ms ease-in-out;"> <div class="theme-link"> <a href="#" class="">Select Theme</a> <a href="#" class="">Company Details</a> <a href="#" class="">Social Links</a> <a href="#" class="">Payment Options</a> <a href="#" class="">Product & Services</a> <a href="#" class="active">Image Gallery</a> </div> <form method="post" action="" enctype="multipart/form-data"> <h2>Image Gallery </h2> <br> <input type="hidden" id="getid" value="1"> <div class='tr_input' id="tab" style="border:none !important;"> <div class="form-left-to-w3l " id="b_name"> <input type="file" id="myFile" name="service_img[]" id="testcode_1" > </div> <input type="button" class="btn btn-info" value='+' id="addmore"> </div> <!-- <div class="form-left-to-w3l " id="b_name"> <input type="file" id="myFile" name="service_img[]"> </div> <div class="form-left-to-w3l " id="b_name"> <input type="file" id="myFile" name="service_img[]"> </div> <div class="form-left-to-w3l " id="b_name"> <input type="file" id="myFile" name="service_img[]"> </div> <div class="form-left-to-w3l " id="b_name"> <input type="file" id="myFile" name="service_img[]"> </div> <div class="form-left-to-w3l " id="b_name"> <input type="file" id="myFile" name="service_img[]"> </div> <div class="form-left-to-w3l " id="b_name"> <input type="file" id="myFile" name="service_img[]"> </div>--> <div class="form-sub-acc"> <div class="form-sub"> <input type="submit" class="" name="sub" id="sub" value="Save & Next"> </div> </div> </form> <?php if(isset($_POST['sub'])){ foreach($_FILES['service_img']['name'] as $key=>$service){ if($service!=NULL){ if(file_exists($_FILES['service_img']['tmp_name'][$key]) || is_uploaded_file($_FILES['service_img']['tmp_name'][$key])) { $img=$show->imageEdit($_FILES['service_img']['name'][$key]); move_uploaded_file($_FILES['service_img']['tmp_name'][$key],"cards/documents/".$img); }else{ $img='';} $data=array( 'client_id'=>$_SESSION['login_id'], 'img'=>$img, 'date'=>date('Y-m-d'), 'card_id'=>$cid ); $r1=$show->insert('gallery',$data); if($r1){ echo '<script> setTimeout(function() { swal({ title: "Thank You ", text: " Card is created.You will be redirected to preview page now", type: "success" }, function() { window.location = "user.php?cid='.base64_encode($cid).'"; }); }, 1000); </script>'; } } } } ?> </div> </div> </div> <?php include('footer.php');?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.53 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:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619