[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: add_maker.php
<?php include('header.php'); include('../map/token.php'); ?> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://apis.mappls.com/advancedmaps/api/<?=$token?>/map_sdk?layer=vector&v=3.0&callback=initMap1"></script> <script src="https://apis.mappls.com/advancedmaps/api/<?=$token?>/map_sdk_plugins?v=3.0"></script> <meta name="google-signin-client_id" content="122332322499-67ptisuqnhip3a9gtlf0vjj0hti7ov5l.apps.googleusercontent.com"> <script src="https://apis.google.com/js/platform.js" async defer></script> <style type="text/css"> #fli,#fli1 { width: 79%; height: 42px; } #display { position:absolute; width:303; margin-left:0; margin-top:0; padding:2px; display:none; border-top:0px; overflow:auto; border:1px #CCC solid; background-color: white; z-index:1000; } .show11,.show12 { padding:7px; border-bottom:1px #999 dashed; font-size:13px; } .show11:hover,.show1:hover { background:#1da1f2; color:#000; cursor:pointer; } .widget{ overflow:visible !important; } </style> <script> /*function fill(Value) { $('#dtestcode_1').val(Value); $('#display').hide(); //window.location.href='product1.php?cate='+Value+''; } $(document).ready(function(){ $("#dtestcode_1").keyup(function() { var search = $('#dtestcode_1').val(); //alert(search); if(search=="") { $("#display").html(""); } else { $.ajax({ type: "POST", url: "ajax_check.php", data: "search_loc="+ search , beforeSend: function(){ $("#loader").show(); }, success: function(html){ $("#display").html(html).show(); $("#loader").hide(); } }); } }); }); */ </script> <script> $(document).ready(function(){ $('#phn').blur(function(){ var phn1=$('#phn').val(); //alert(phn1); $.ajax({ type:"POST", url:"ajax_check.php", data:$('#exampleValidation').serialize(), success: function (response){ //alert(response); if(response>0){ $('#error').show(); $('#phn').val(''); // sweetAlert('Phone no given is already in use'); document.getElementById("btn").disabled = true; }else{ // sweetAlert('Oops','Phone no given is already in use','error'); $('#error').hide(); document.getElementById("btn").disabled = false; } } }); }); }); $(document).ready(function(){ $('#email').blur(function(){ var em=$('#email').val(); $.ajax({ type:"POST", url:"ajax_check.php", data:$('#exampleValidation').serialize(), success: function (response){ if(response>0){ $('#error1').show(); $('#email').val(''); document.getElementById("btn").disabled = true; }else{ $('#error1').hide(); document.getElementById("btn").disabled = false; } } }); }); }); <script> function get_sub_category_name() { var category_id = $('#district').val(); //alert('ss'); $.ajax({ type: "POST", url: "../ajax_check.php", // Name of the php files data: "district="+category_id, success: function(html) { $("#show").html(html); document.getElementById("hide_k").style.display="none"; } }); } </script> <div class="main-panel"> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-title">Add Restuarants/Grocery Shop</div> </div> <form method="post" id="exampleValidation" data-toggle="validator" enctype="multipart/form-data" > <input type="hidden" name="tablename" value="food_maker"> <div class="card-body"> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Main Category <span class="required-label">*</span></label> <div class="col-lg-4 col-md-9 col-sm-8"> <select class="form-control" name="main_category" required> <option value="">Choose</option> <option value="Grocery">Grocery</option> <option value="Food">Food</option> </select> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Business Name <span class="required-label">*</span></label> <div class="col-lg-4 col-md-9 col-sm-8"> <input type="text" class="form-control" name="title" placeholder="Business Name " required> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Name <span class="required-label">*</span></label> <div class="col-lg-4 col-md-9 col-sm-8"> <input type="text" class="form-control" id="name" name="name" placeholder="Enter Name" required> </div> </div> <!--<div class="form-group form-show-validation row"> <label for="username" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Username <span class="required-label">*</span></label> <div class="col-lg-4 col-md-9 col-sm-8"> <div class="input-group"> <div class="input-group-prepend"> <span class="input-group-text" id="username-addon">@</span> </div> <input type="text" class="form-control" placeholder="username" aria-label="username" aria-describedby="username-addon" id="username" name="username" required> </div> </div> </div>--> <div class="form-group form-show-validation row"> <label for="email" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Email Address <span class="required-label"></span></label> <div class="col-lg-4 col-md-9 col-sm-8"> <input type="email" class="form-control" name="email" id="email" placeholder="Enter Email"> <small class="text-warning" id="error1" style="display:none">Email ID already in use.Please Give another Email ID</small> </div> </div> <div class="form-group form-show-validation row"> <label for="email" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Phone<span class="required-label">*</span></label> <div class="col-lg-4 col-md-9 col-sm-8"> <input type="text" class="form-control" id="phn" name="phone" placeholder="Enter Phone" required> <small class="text-warning" id="error" style="display:none">Phone Number already in use.Please Give another Phone Number</small> </div> </div> <div class="seperator-solid"></div> <!---<div class="form-group form-show-validation row"> <label class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Gender <span class="required-label">*</span></label> <div class="col-lg-4 col-md-9 col-sm-8 d-flex align-items-center"> <div class="custom-control custom-radio"> <input type="radio" id="male" name="gender" value="Male" class="custom-control-input"> <label class="custom-control-label" for="male">Male</label> </div> <div class="custom-control custom-radio"> <input type="radio" id="female" name="gender" value="Female" class="custom-control-input"> <label class="custom-control-label" for="female">Female</label> </div> <div class="custom-control custom-radio"> <input type="radio" id="female" name="gender" value="Other" class="custom-control-input"> <label class="custom-control-label" for="female">Other</label> </div> </div> </div> <div class="form-group form-show-validation row"> <label for="birth" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Date of Registration <span class="required-label">*</span></label> <div class="col-lg-4 col-md-9 col-sm-8"> <div class="input-group"> <input type="date" class="form-control" id="date1" name="date" required> <div class="input-group-append"> <span class="input-group-text"> <i class="la la-calendar-o"></i> </span> </div> </div> </div> </div>--> <div class="form-group form-show-validation row"> <label for="email" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Address <span class="required-label"></span></label> <div id="map"></div> <script> /*Map Initialization*/ var map,picker; function initMap1(){ map = new mappls.Map('map', { center: [22.5726, 88.3639], zoom: 5 }); map.addListener('load',function(){ /*Place Picker plugin initialization*/ var options = { map: map, header:true, closeBtn:true, }; mappls.placePicker(options,callback); function callback(data) { picker=data; console.log(picker); } }); map.addListener('dragend', function(e){ var res = picker.getLocation(); var j=JSON.stringify(res); // alert(j); console.log(res); data_show(j); }); } function data_show(value){ $.ajax({ type:"POST", data:{data:value}, url:"../map/admin_getdata.php", success: function(html){ // alert(html); $('#demo').html(html).show(); get_sub_category_name(); // $('#data').val(result.pincode); // $('#data2').val(result.state); // console.log(html); } }); } </script> <div id="map_hide"></div> <p id="demo"></p> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Comission Percent <span class="required-label">*</span></label> <div class="col-lg-4 col-md-9 col-sm-8"> <input type="number" step="any" class="form-control" name="comi_percent" placeholder="Add Comission Percentage" required> </div> </div> <div class="seperator-solid"></div> <div class="form-group form-show-validation row"> <label class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Upload Image <span class="required-label">*</span></label> <div class="col-lg-4 col-md-9 col-sm-8"> <div class="input-file input-file-image"> <img class="img-upload-preview img-circle" width="100" height="100" src="http://placehold.it/100x100" alt="preview"> <input type="file" class="form-control form-control-file" id="uploadImg" onchange="return fileValidation('uploadImg','2000')" name="uploadImg" accept="image/*" required > <label for="uploadImg" class=" label-input-file btn btn-icon btn-primary btn-round btn-lg"><i class="la la-file-image-o"></i> Upload a Image</label> </div> </div> </div> <div class="form-group form-show-validation row"> <label class="col-lg-3 col-md-3 col-sm-4 mt-sm-2 text-right">Upload Banner <span class="required-label">*</span></label> <div class="col-lg-4 col-md-9 col-sm-8"> <div class="input-file input-file-image"> <img class="img-upload-preview img-circle" width="100" height="100" src="http://placehold.it/100x100" alt="preview"> <input type="file" class="form-control form-control-file" id="banner" onchange="return fileValidation('banner','2000')" name="banner" accept="image/*" required > <label for="banner" class=" label-input-file btn btn-icon btn-primary btn-round btn-lg"><i class="la la-file-image-o"></i> Upload a Image</label> </div> </div> </div> </div> <div class="card-action"> <div class="row"> <div class="col-md-12"> <input class="btn btn-success" type="submit" name="sub" value="Submit"> <button class="btn btn-danger">Cancel</button> </div> </div> </div> </form> </div> </div> <?php if(isset($_POST['sub'])){ // $status='Active'; $uid=$show->getid('ids','FDM'); $table='food_maker'; if(file_exists($_FILES['uploadImg']['tmp_name']) || is_uploaded_file($_FILES['uploadImg']['tmp_name'])) { $img=$show->imageEdit($_FILES['uploadImg']['name']); move_uploaded_file($_FILES['uploadImg']['tmp_name'],"../product_img/".$img); }else{ $img='';} if(file_exists($_FILES['banner']['tmp_name']) || is_uploaded_file($_FILES['banner']['tmp_name'])) { $banner=$show->imageEdit($_FILES['banner']['name']); move_uploaded_file($_FILES['banner']['tmp_name'],"../product_img/".$banner); }else{ $img='';} $locality = array(); foreach($_POST['locality'] as $local) { //do something $locality[] = $local; } $a=implode(':', $locality); $data = array( 'title' => htmlentities(strip_tags($_POST['title'])), 'maker_id' => $uid, 'name' => htmlentities(strip_tags($_POST['name'])), 'phone' => htmlentities(strip_tags($_POST['phone'])), 'email' => htmlentities(strip_tags($_POST['email'])), 'password' =>md5('123456'), 'address'=>htmlentities(strip_tags($_POST['formatted_address'])), 'state'=>htmlentities(strip_tags($_POST['state1'])), 'city'=>htmlentities(strip_tags($_POST['city1'])), 'pincode'=>htmlentities(strip_tags($_POST['pincode1'])), 'locality'=>htmlentities(strip_tags($_POST['locality1'])), 'district'=>htmlentities(strip_tags($_POST['district1'])), 'latitude'=>htmlentities(strip_tags($_POST['lat'])), 'longitude'=>htmlentities(strip_tags($_POST['lng'])), 'created_at'=>date('d-m-Y'), 'update_by'=>'ADMIN', 'status'=>'ACTIVE', 'login_type'=>'REGISTER', 'profile_pic'=>$img, 'banner'=>$banner, 'comi_percent'=>htmlentities(strip_tags($_POST['comi_percent'])), 'main_category'=>htmlentities(strip_tags($_POST['main_category'])), ); //print_r($data); if($show->insert('food_maker',$data)){ $email_subject = "Registration Confirmation"; $em11='<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">'; $email_content=" <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='https://www.w3.org/1999/xhtml'> <head> <title>Registration Confirmation</title> <meta http–equiv='Content-Type' content='text/html; charset=UTF-8' /> <meta http–equiv='X-UA-Compatible' content='IE=edge' /> <meta name='viewport' content='width=device-width, initial-scale=1.0 ' /> <style> h2{ color:#000; font-size:26px; } #b{ width:500px; font-size:15px; } th{ background-color:#fff; } </style> </head> <body style='background-color:f9f7f7; text-align:center;font-size:17px;'> <table style='margin-left: auto; margin-right: auto;border: 20px double #b5bcbf;width:600px; text-align:center;font-size:16px;'> <tr><td style='background-color:#e40046'> <img src='$company_logo' width='50%'></td></tr> <tr><td style='text-align:center;'> <h3 style='text-align: center;font-size: 17px; text-transform: uppercase;'>Welcome to The Sajh</h3></td></tr> <tr><td text-align:center;font-size:14px;><br>Hi ".$_POST['name'].",<br><br> Your Registration with email id ".$em." has been successful. <br><br> <br><br><br><br> <br> </td></tr> </tr> </table> <p><b>Stay in touch with Us</b></p> <p><a href='$fb' target='_blank'><img src='$link_url/images/fb.png' width='50px'></a> <a href='$insta' target='_blank'><img src='$link_url/images/insta.png' width='55px'></a> </p> <p><b>$company_name</b><br> Web : $website<br> Email : $email<br> Phone : $phone<br> </p> <small>Copyright ©<?=date('Y')?> $company_name,$address. All rights reserved. </small> </body></html>"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; if(@mail($_POST['email'],$email_subject,$email_content,$headers)) { // echo "<script>window.location.href='otp.php?id=".base64_encode($capcha)."&uid=".base64_encode($id)."&m=".base64_encode($mail_id)."'</script>"; echo '<script> setTimeout(function() { swal({ title: "Thank You for Registration!", text: "Default password has been set as:123456.", type: "success" }, function() { window.location = "'.$_SERVER['REQUEST_URI'].'"; }); }, 1000); </script>'; } else { //echo "<script>alert('Registration is Complete. Login to continue shopping.')</script>"; } } }?> <script type="text/javascript"> $(document).ready(function(){ // Add more $('#addmore').click(function(){ // Get last id var lastname_id = $('.tr_input input[type=text]:nth-child(1)').last().attr('id'); var split_id = lastname_id.split('_'); // alert('ss'); // New index var index = Number(split_id[1]) + 1; document.getElementById('getid').value=index; // Create row with input elements var html = "<tr ><td><div class='col-lg-4 col-md-9 col-sm-8'><input type='text' class='form-control' placeholder='Enter Locality' id='testcode_"+index+"' onkeyup='get_loc("+index+")' name='locality[]'/> <div id='loader"+index+"' style='display: none;'><img src='loader.gif' width='32px' height='32px'></div><div id='display"+index+"'></div></div></td><td><a href='javascript:void(0);' id='remove_field' class='btn btn-danger remCF' >-</a></tr>"; // Append data $('#tab').append(html); }); $("#tab").on('click','.remCF',function(){ $(this).parent().parent().remove(); var lastname_id = document.getElementById('getid').value; //alert(lastname_id); // New index var index = lastname_id - 1; // Create row with input elements document.getElementById('getid').value=index; }); }); function filld(Value,Value1) { $('#testcode_'+Value).val(Value1); $('#display'+Value).hide(); //$('#totalp').val(Value3); //getvalue(Value3); } function get_loc(a){ var test_id='#testcode_'+a; var test_id_value=$(test_id).val(); //alert(test_id); $.ajax({ type:"POST", url:"ajax_check.php", data:"locality="+test_id_value+"&dynamic_num="+a, beforeSend: function(){ $("#loader"+a).show(); }, success: function(html){ $("#display"+a).html(html).show(); $("#loader"+a).hide(); } }); } </script> <style> #map {width: 400px; height: 300px; margin: 0 0 30px; padding: 0; background: #fff; border: 5px solid #e4eaec; } .sing-up .sing-up-text .sing-up-social { width: 40%; border: none; margin: 0px 220px 0 0; height: auto; text-align: center; display: block; } .sing-up .sing-up-text .sing-up-social img.facebook-img { padding: 0; width: 50%; text-align: right; float: left; } .abcRioButtonContentWrapper { height: 100%; width: 100%; float: right; } .g-signin2 { width: 50%; background: #000; display: inline-block; } .abcRioButtonLightBlue { background-color: #fff; color: #757575; height: 36px; width: 100% !important; } </style> </div></div> </div> </div> <!--footer--> <?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.97 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