Exemplo n.º 1
0
<?php

require './include/global-vars.php';
require './include/global-functions.php';
require './include/menu.php';
LoadConfigFile();
if ($Config['Password'] != '') {
    session_start();
    if (!Check_SessionID()) {
        header("Location: ./login.php");
        exit;
    }
}
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8" />
  <link href="./css/master.css" rel="stylesheet" type="text/css" />
  <link href="./css/help.css" rel="stylesheet" type="text/css" />
  <link rel="icon" type="image/png" href="./favicon.png" />
  <script src="./include/menu.js"></script>
  <title>NoTrack Help</title>
</head>

<body>
<?php 
//-------------------------------------------------------------------
function LoadHelpPage($Page)
{
    if (file_exists('./help/' . $Page . '.html')) {
Exemplo n.º 2
0
//4eii. On failure write Delay into Memcache and show message of Incorrect Username or Password
//      Add entry into ntrk-access.log to allow functionality with Fail2ban
//      (Deny attacker knowledge of whether Username OR Password is wrong)
//5. Draw basic top menu
//6. Draw form login
//7. Draw box with $Msg (If its set)
//8. Draw hidden box informing user that Cookies must be enabled
//9. Use Javascript to check if Cookies have been enabled
//9a. If Cookies are disabled then set 8. to Visible
require './include/global-vars.php';
require './include/global-functions.php';
LoadConfigFile();
$Msg = '';
if ($Config['Password'] != '') {
    session_start();
    if (Check_SessionID()) {
        header('Location: ./index.php');
        exit;
    }
} else {
    header('Location: ./index.php');
    exit;
}
if (isset($_POST['password'])) {
    $Delay = $Mem->get('Delay');
    //Load Delay from Memcache
    if ($Delay) {
        //If it is set then Wait
        $Msg = 'Wait';
    } else {
        //No Delay, check Password