<body> <div class="block-center mt-xl wd-xl"> <!-- START panel--> <div class="panel panel-primary"> <div class="panel-heading text-center"> <a href="#" style="color: white;">Forgot your password | <?php echo substr($_SESSION['panel'], 0, -3); ?> </a> </div> <div class="panel-body"> <h4 class="h4 text-danger" id="errorMsg" hidden></h4> <h4 class="h4 text-success" id="successMsg" hidden>The link with further instructions was sent to your e-mail address.</h4> <p class="text-center pv">Please fill in the form below</p> <?php if (isset($_GET['key']) && isKeyValid($_GET['key'])) { ?> <h4 class="h4 text-danger" id="passwordNotMatch" hidden>The passwords you inserted do not match</h4> <h4 class="h4 text-success" id="success" hidden>Password changed, redirecting you to login page</h4> <form role="form" class="mb-lg" onsubmit="resetPassword();"> <input type="hidden" id="key" value="<?php echo $_GET['key']; ?> "> <div class="form-group has-feedback"> <label>Enter a new password</label> <input id="psw1" type="password" placeholder="Enter your desired password" required class="form-control"> <span class="fa fa-lock form-control-feedback text-muted"></span> </div> <div class="form-group has-feedback"> <label>Enter the password again</label>
function tailSpecificLog($key) { global $log_files; if (isKeyValid($key)) { echo "Tail {$key} log"; pcntl_exec(exec("which tail"), array("-F", $log_files[$key])); pcntl_wait($status); } else { printUsage(); } }