This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8" /> | |
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> | |
<title>..:: Maclife ::..</title> | |
<style id="jsbin-css"> | |
*{ | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*Antes de Tudo, tudo mesmo, testamos se uma das sessões que iniciamos na index não existem*/ | |
session_start(); | |
if(!isset($_SESSION["usuario"]) || !isset($_SESSION["senha"])){ | |
header("Location: index.php"); | |
exit; | |
} | |
/* Caso as duas sessões existam, | |
*criamos duas variaveis que vai obter o nome de usuario | |
*e senha que estão guardados na sessão para posteriormente usa-los.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Destruimos a sessão e redirecionamos | |
o usuário para a página index.php */ | |
session_start(); | |
session_destroy(); | |
header("Location: index.php") | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<title>Sistema de Login :: Toolmmer</title> | |
<meta charset="UTF-8" /> | |
<!-- Estilos da Index.php --> | |
<style type="text/css"> | |
body{ | |
background: linear-gradient(45deg, #f0f9ff 10%, #cbebff 47%, #a1dbff 100%); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE `sistema_de_login`; | |
CREATE TABLE IF NOT EXISTS `sistema_de_login`.`tb_users` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`user` varchar(20) NOT NULL, | |
`pass` varchar(20) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Destruimos a sessão e redirecionamos | |
o usuário para a página index.php */ | |
session_start(); | |
session_destroy(); | |
header("Location: index.php") | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::-webkit-input-placeholder { /* WebKit browsers */ | |
color: red; | |
} | |
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | |
color: red; | |
} | |
::-moz-placeholder { /* Mozilla Firefox 19+ */ | |
color: red; | |
} | |
:-ms-input-placeholder { /* Internet Explorer 10+ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Validação de E-mail - PHP :: Scriptadores</title> | |
<!-- Alguns estilos em CSS para ficar bunitinhu :v --> | |
<style type="text/css"> | |
body{background: linear-gradient(45deg, rgba(0, 150, 0,.8) 10%, #fff 47%, rgba(0, 150, 0,.8) 100%);} | |
div.global{ | |
width: 40%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<title>Como criar um sistema de upload de imagens em PHP</title> | |
</head> | |
<body> | |
<form method="post" name="formUpload" action="upload.php" enctype="multipart/form-data"> | |
<input type="file" name="file[]" multiple /> | |
<input type="submit" value="Upar" /> | |
</form> |
OlderNewer