Ejemplo n.º 1
0
 */
?>

<?php 
require_once "../functions.php";
global $DEBUG;
if ($DEBUG) {
    $starttime_main = microtime(true);
}
session_start();
if ($_POST['submit'] == "go") {
    logoff();
} elseif ($_POST['submit'] == "continue") {
    header("HTTP/1.1 302 Found");
    if ($_POST['ref'] != "") {
        header("Location: " . sanitize_paranoid_path($_POST['ref']));
    } else {
        header("Location: index.php");
    }
    header("Connection: close");
    header("Content-Type: text/html; charset=UTF-8");
}
?>


<!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" />
	<title>WAF-FLE</title>
	<link rel="stylesheet" type="text/css" href="css/main.css" />  
Ejemplo n.º 2
0
     unset($_SESSION['filter']['Not_path']);
     unset($_SESSION['filter']['path_wc']);
     if (isset($_SESSION['filterIndexHint'])) {
         unset($_SESSION['filterIndexHint'][array_search("path", $_SESSION['filterIndexHint'])]);
     }
 } else {
     if (isset($_GET['Not_path']) and $_GET['Not_path'] == '1') {
         $_SESSION['filter']['Not_path'] = TRUE;
     } else {
         unset($_SESSION['filter']['Not_path']);
     }
     if (strpos($_GET['path'], '*') + 1 == strlen($_GET['path'])) {
         $pathWildcard_tmp = true;
     }
     if (isset($_GET['path']) and $parsedPath = parse_url($_GET['path'])) {
         $_SESSION['filter']['path'] = @sanitize_paranoid_path($parsedPath['path']);
         $_SESSION['filterIndexHint'][] = "path";
         if ($pathWildcard_tmp) {
             $_SESSION['filter']['path_wc'] = true;
         } else {
             unset($_SESSION['filter']['path_wc']);
         }
     } else {
         unset($_SESSION['filter']['path']);
         unset($_SESSION['filter']['Not_path']);
         unset($_SESSION['filter']['path_wc']);
         if (isset($_SESSION['filterIndexHint'])) {
             unset($_SESSION['filterIndexHint'][array_search("path", $_SESSION['filterIndexHint'])]);
         }
     }
 }