All In One Insert OOP

<?php
ini_set('mysql.connect_timeout',300);
ini_set('default_socket_timeout',300);
?>

<?php

include_once("all.php");
$checkdata=new Databases();

$error='';
$save='';
if(isset($_POST['submit'])){

$fname=$_POST['fname'];
$username=$_POST['username'];
$password=$_POST['password'];
$email=$_POST['email'];

$query=$checkdata->checkun($username);

if($query > 0 ) { //check if there is already an entry for that username
$error = "Username is already taken , Use another Username !!";
}else{

$filetmp = $_FILES["file_img"]["tmp_name"];
$filename = $_FILES["file_img"]["name"];
$filetype = $_FILES["file_img"]["type"];
$file_size =$_FILES['file_img']['size'];
$tmp_ext = explode( '.', $filename );
$file_ext = strtolower( end( $tmp_ext ) );

$filepath = "flimg/".$filename;

$expensions= array("jpeg","jpg","png","JPEG","JPG","PNG");
     
      if(in_array($file_ext,$expensions)=== false){
         $errors="extension not allowed, please choose a JPEG or PNG file.";
      }
     
      if($file_size > 2097152){
         $errors='File size must be excately 2 MB';
      }
     
      if(empty($errors)==true){
         move_uploaded_file($filetmp,$filepath);
         echo "Success";
      }else{
         print_r($errors);
      }

$sql=$checkdata->imgreg($fname,$username,$password,$filename,$filepath,$filetype);

if (isset($_REQUEST['email']))  {

//Email information
$admin_email = "kistlakall@gmail.com";
$email = $_REQUEST['email'];
$subject = $_REQUEST['fname'];
$comment = $_REQUEST['username'];

//send email
mail($admin_email, "$subject", $comment, "From:" . $email);
}

$save = "".$_POST["fname"]." ".$_POST["username"]." , You Have Successfully Registed !! <br><br>
We will reply you as soon as possible to your email which you have filled in this form.<br><br>
Thank You !!<br><br>";

}
}
?>

<html>
<head>

<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Bootstrap core CSS -->
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">

<style>

@media (max-width: 767px) {

.col-md-6 .col-sm-3 .hero-feature
{
visibility:hidden;
}

}

</style>

</head>

<body>

<div class="container"> <!-- Start Of The Container Class -->

<div class="row"> <!-- Start Of The Row Class -->

<div class="col-md-6 col-sm-12"> <!-- Start Of Right The Col Class -->

<br>

<form action="AllInOneInsert.php" method="post" enctype="multipart/form-data">
<h4><span><?php echo $error; ?></span></h4> <br>
<h4><span><?php echo $save; ?></span></h4> <br>

<div class="form-group">
    <label>Name : *</label>
    <input type="text" class="form-control" name="fname" placeholder="Enter Your Name" required>
  </div>

  <div class="form-group">
    <label>Username : *</label>
    <input type="text" class="form-control" name="username" placeholder="Enter Your Userame" required>
  </div>
 
  <div class="form-group">
    <label>Password : *</label>
    <input type="password" class="form-control" name="password" placeholder="Enter Your Password" required>
  </div>
 
  <div class="form-group">
    <label>Email : *</label>
    <input type="email" class="form-control" name="email" placeholder="Enter Your Password" required>
  </div>
 
  <div class="form-group">
    <label>Upload Profile Picture :</label>
    <input type="file" class="form-control-file" name="file_img" aria-describedby="fileHelp">
    <small id="fileHelp" class="form-text text-muted">If U Want , U Can Skip Upload A Profile Picture</small>
  </div>
 
  <button type="submit" class="btn btn-primary" name="submit">Submit</button>
 
</form>
</div> <!-- End Of Right The Col Class -->

</div> <!-- End Of The Row Class -->

</div> <!-- End Of The Container Class -->

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"></script>

</body>
</html>

3 comments:

  1. ✅ ✅ MEET THE REAL HACKERS ✅✅

    Hello,

    I’m Nicholas Shields I’m the Marketing Manager Of The Hack Team COMPOSITE HACKS, We Are Hackers Who Specializes in All Kinds Of Legit Hacking Services, I'm really concerned about sharing my views on this forum cause many people now don't know who to ask for help anymore but there's really an actual solution to that which I am giving you for free, Don't go for the cheap Ones which I know you understand what I'm saying like hackers using gmail and other cheaper email accounts that could be easily hacked you know, why would a REAL HACKER want to use something that brings out his vulnerabilities? it's really so sad that they even lack creativity to the extent that they show their frustrations to people. so you see they are really not who they say they're, they are just here to Rip people Off and my advice really goes out to you looking for a Real Hacker that's a heads up so that you would fall deep into their trap no more.

    * ✅ So Feel Free to Contact us to get to experience real life effective hacking Services, We’ll Link you Up with some Legit Hackers That you never believed you could meet, such as BEN SADEGHIPOUR, FRANS ROSEN, PETER YAWORSKI, JOBERT ABMA, JACK CABLE and More.

    ✅CONTACT:
    * Email:
    compositehacks@cyberservices.com
    * Hire a Hacker!
    * Want faster service? Contact us!
    * HackerOne©️LLC 2018.
    * All Rights Reserved ®️

    ReplyDelete
  2. LEGIT FULLZ & TOOLS STORE

    Hello to All !

    We are offering all types of tools & Fullz on discounted price.
    If you are in search of anything regarding fullz, tools, tutorials, Hack Pack, etc
    Feel Free to contact

    ***CONTACT 24/7***
    **Telegram > @leadsupplier
    **ICQ > 752822040
    **Skype > Peeterhacks
    **Wicker me > peeterhacks

    "SSN LEADS/FULLZ AVAILABLE"
    "TOOLS & TUTORIALS AVAILABLE FOR HACKING, SPAMMING,
    CARDING, CASHOUT, CLONING, SCRIPTING ETC"

    **************************************
    "Fresh Spammed SSN Fullz info included"
    >>SSN FULLZ with complete info
    >>CC With CVV (vbv & non vbv) Fullz USA
    >>FULLZ FOR SBA, PUA & TAX RETURN FILLING
    >>USA I.D Photos Front & Back
    >>High Credit Score fullz (700+ Scores)
    >>DL number, Employee Details, Bank Details Included
    >>Complete Premium Info with Relative Info

    ***************************************
    COMPLETE GUIDE FOR TUTORIALS & TOOLS

    "SPAMMING" "HACKING" "CARDING" "CASH OUT"
    "KALI LINUX" "BLOCKCHAIN BLUE PRINTS" "SCRIPTING"
    "FRAUD BIBLE"

    "TOOLS & TUTORIALS LIST"
    =>Ethical Hacking Ebooks, Tools & Tutorials
    =>Bitcoin Hacking
    =>Kali Linux
    =>Fraud Bible
    =>RAT
    =>Keylogger & Keystroke Logger
    =>Whatsapp Hacking & Hacked Version of Whatsapp
    =>Facebook & Google Hacking
    =>Bitcoin Flasher
    =>SQL Injector
    =>Premium Logs (PayPal/Amazon/Coinbase/Netflix/FedEx/Banks)
    =>Bitcoin Cracker
    =>SMTP Linux Root
    =>Shell Scripting
    =>DUMPS with pins track 1 and 2 with & without pin
    =>SMTP's, Safe Socks, Rdp's brute
    =>PHP mailer
    =>SMS Sender & Email Blaster
    =>Cpanel
    =>Server I.P's & Proxies
    =>Viruses & VPN's
    =>HQ Email Combo (Gmail, Yahoo, Hotmail, MSN, AOL, etc.)

    *Serious buyers will always welcome
    *Price will be reduce in bulk order
    *Discount offers will gives to serious buyers
    *Hope we do a great business together

    ===>Contact 24/7<===
    ==>Telegram > @leadsupplier
    ==>ICQ > 752822040
    ==>Skype > Peeterhacks
    ==>Wicker me > peeterhacks

    ReplyDelete
  3. Hello World !
    Good Day !

    Keep you services updated & reliable with my stuff
    Huge stuff of Tools, E-boooks, Tutorials, Scripting, Viruses, Spying e.t.c

    See Me On
    I C Q :> 752822040
    Tele-Gram :> @killhacks

    Many other stuff like
    SSN/DL
    ID's
    CC CVV
    DUMPS
    Combos/I.P's/Proxies
    You can get from my collections :-)

    No one TEACH you
    No one GUIDE you
    No one BOOST you
    But i'm always here for you

    Hit me up for you desired stuff
    I C Q here :> 752822040
    Tele-Gram here :> @killhacks

    %Waiting for you guys%

    ReplyDelete

Tweet Now !!

Recommend us on Google!