This file contains hidden or 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
/* | |
* Método de extensão para tradizir mensagens de erro do plugin jQuery Validation. | |
* Locale: PT_BR | |
*/ | |
jQuery.extend(jQuery.validator.messages, { | |
required: "Este campo é requerido.", | |
remote: "Por favor, corrija este campo.", | |
email: "Por favor, forneça um endereço eletrônico válido.", | |
url: "Por favor, forneça uma URL válida.", | |
date: "Por favor, forneça uma data válida.", |
This file contains hidden or 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
using System; | |
using System.Security.Cryptography; | |
using System.Linq; | |
public class Program | |
{ | |
public static Protocolo protocolo { get; set; } | |
public static void Main() |
This file contains hidden or 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 | |
$password = 'myPassword'; | |
$hash = '$2y$11$60E.YbPVdujZB5pt71C51.FTKINFQnkdyPFttgeRtLdUbOlZTD0.S'; | |
$options = array('cost' => 12); | |
if (password_verify($password, $hash)) { | |
if (password_needs_rehash($hash, PASSWORD_DEFAULT, $options)) { |
This file contains hidden or 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 | |
$options = [ | |
'cost' => 13, | |
'salt' => 'FPNk5qN6b6WIiLnUrp', | |
]; | |
echo password_hash('MyPassword', PASSWORD_BCRYPT, $options); |
This file contains hidden or 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 | |
//Senha supostamente obtida por um banco de dados: | |
$hashPassword = '$2y$11$60E.YbPVdujZB5pt71C51.FTKINFQnkdyPFttgeRtLdUbOlZTD0.S'; | |
//Senha supostamente entrada por usuário para comparação: | |
$passwordInput = 'myPassword'; | |
if (password_verify($passwordInput, $hashPassword)) { | |
This file contains hidden or 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 | |
$prevPost = get_adjacent_post(false, '', true); | |
$nextPost = get_adjacent_post(false, '', false); |
This file contains hidden or 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
<select name="slc_status"> | |
<option value="0">Estado</option> | |
<option value="ac">Acre</option> | |
<option value="al">Alagoas</option> | |
<option value="ap">Amapá</option> | |
<option value="am">Amazonas</option> | |
<option value="ba">Bahia</option> | |
<option value="ce">Ceará</option> | |
<option value="df">Distrito Federal</option> | |
<option value="es">Espírito Santo</option> |
This file contains hidden or 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 | |
$password = 'myPassword'; | |
$options = [ | |
'cost' => 13, | |
]; | |
echo password_hash($password, PASSWORD_DEFAULT, $options); |
This file contains hidden or 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 | |
$password = 'myPassword'; | |
echo password_hash($password, PASSWORD_DEFAULT); |
This file contains hidden or 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 | |
$frults = array( | |
'Pineapple', | |
'Cashew', | |
'Apple', | |
'Strawberry' | |
); | |
foreach ($frults as $value) { |