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
{ | |
"editor.detectIndentation": false, | |
"editor.tabSize": 2, | |
"window.zoomLevel": 1, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"[scss]": { | |
"editor.defaultFormatter": "stylelint.vscode-stylelint", | |
"editor.formatOnSave": true | |
}, | |
"editor.formatOnSave": true, |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^contato/?$ /contato.php [NC,L] | |
</IfModule> |
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> | |
<head> | |
<title>ADOTPET - Adote animais e dê-os um lar e muito amor </title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="keywords" content="" /> | |
<meta name="description" content="" /> | |
<link href="../css/bootstrap.css" rel='stylesheet' type='text/css' /> | |
<link href="../css/dashboard.css" rel='stylesheet' type='text/css' /> |
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
$(document).ready(function() { | |
$("#cepDest").on('blur', function() { | |
$("#logradouro").val("..."); | |
$("#bairro").val("..."); | |
$("#cidade").val("..."); | |
$("#uf").val("..."); | |
// seta a variavel requisitada no campo cep | |
consulta = $("#cepDest").val(); |
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 | |
function checkDomain($dominio){ | |
$regexp = '/^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,6}$/'; | |
if (preg_match($regexp, $dominio) == 1) { | |
exec("host -t ns $dominio",$hasil); | |
if (ereg("Nada encontrado.", strtolower(trim($hasil[0])))) { | |
echo 'O dominio está disponível!'; | |
} else { | |
echo 'O dominio não está disponível!'; | |
} |
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 | |
/** | |
* @author Tiarê Balbi | |
* @package PagSeguro | |
* @category osCommerce, Loja Virtual, Pagamentos | |
*/ | |
class Pagseguro { | |
/** |
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
sudo apt-get install apache2 apache2-mpm-prefork apache2.2-bin apache2.2-common libaio1 libapache2-mod-php5 libaprutil1-dbd-sqlite3 libaprutil1-ldap libc-client2007e libdbd-mysql-perl libdbi-perl libhtml-template-perl libmcrypt4 libming1 libmysqlclient18 libnet-daemon-perl libplrpc-perl librecode0 libterm-readkey-perl libtidy-0.99-0 mlock mysql-client mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 php-pear php5 php5-cli php5-common php5-curl php5-gd php5-imagick php5-imap php5-intl php5-mcrypt php5-memcache php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xsl pslib1 |
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
App::uses('HttpSocket', 'Network/Http'); | |
//script para salvar o email de newsletter para a api da locaweb, sim, locaweb. | |
//cria uma array com o email para cadastrar na api | |
$dados = array('list' => array( | |
'contacts' => array(array( | |
'email' => 'email@docliente.com', | |
'custom_fields' => array( | |
'name' => 'nome@docliente.com' | |
) |