Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once "usuarios.php"
- // Ou User extends classe de cima {
- class User {
- function checkPOST(){
- if (isset($_POST['usuario'] AND isset($_POST['senha'])) {
- $user = addslashes($_POST['usuario']);
- $passwd = addslashes($_POST['senha']);
- }
- }
- function checkLOGIN() {
- if (!empty($usuario) AND !empty($senha)) {
- $u->mysqli_connect("nomeDB", "localhost", "user", "password") or
- die("Credenciais incorretas");
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment