Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: <?php class DB { public $Conn; function __construct() { $username = 'myusername'; $password = 'mypassword'; try { $conn = new PDO('mysql:host=localhost;dbname=myDatabase', $username, $password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // show exceptions } catch(PDOException $e) { echo 'ERROR: ' . $e->getMessage(); Source: http://pastebin.com/raw.php?i=ahhQxhq7
↧