代码拉取完成,页面将自动刷新
<?php
require __DIR__ . '/bootstrap.php';
$path = '/';
if (isset($_GET['path']))
$path = $_GET['path'];
if (isset($_POST['user'])
&& isset($_POST['password'])) {
$_SESSION['ZA_CERTS'][] = $_POST['user'] . ':' . $_POST['password'];
header("Location: index.php?path=" . urlencode($path));
exit(0);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Zookeeper Admin</title>
<link href="libs/bootstrap-3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<link href="res/css/dashboard.css" rel="stylesheet" />
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="/">Zookeeper Admin</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="/">Dashboard</a></li>
<li><a href="https://github.com/Timandes/zookeeper-admin/">Help</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<form action="add_auth.php?path=<?php echo urlencode($path); ?>" method="POST">
<div class="form-group">
<label for="inputUser">User</label>
<input class="form-control" type="text" name="user" id="inputUser" />
</div>
<div class="form-group">
<label for="inputPassword">Password</label>
<input class="form-control" type="password" name="password" id="inputPassword" />
</div>
<button class="btn btn-primary" type="submit">Add Auth</button>
</form>
</div>
</div>
</div>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。