private function a()
 {
     $variable1 = "blabla";
     $variable2 = "login=a&password=xxx";
     // Noncompliant
     $variable3 = "login=a&password="******"login=a&password={$password}";
     $variableNameWithPasswordInIt = "xxx";
     // Noncompliant
     $otherVariableNameWithPasswordInIt;
     $this->fieldNameWithPasswordInIt = "xx";
     // Noncompliant
     $this->fieldNameWithPasswordInIt = retrievePassword();
 }
Ejemplo n.º 2
0
<?php

if (isset($_POST['submit_login'])) {
    session_start();
    $_SESSION['GRANTED'] = true;
    $_SESSION['USERNAME'] = $_POST['username'];
    checkLogin($_POST['username'], $_POST['password']);
}
// If user forgot their username
if (isset($_POST['retrieve_username_submit'])) {
    retrieveUsername($_POST['username_retrieve']);
}
// If user forgot their password
if (isset($_POST['retrieve_password_submit'])) {
    retrievePassword($_POST['password_retrieve']);
}
?>

<!DOCTYPE HTML>
<html>

	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0"> <!-- maximum-scale=1, user-scalable=0 -->
		<link rel="stylesheet" href="../css/style.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/1.3.4/jquery.fancybox-1.3.4.css" />

		<title>The Zen Picks</title>
		<link rel="icon" type="image/gif" href="../images/fav_icon.png">
	</head>