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
//pegar o valor do auxilio para os dependentes | |
if (!is_null($idades_dep)) { | |
foreach ($idades_dep as $key =>$idadeDep){ | |
$faixaDepen = mostrar_faixa($idadeDep); | |
$myArray = retornar_valor_auxilio($faixa_rem, $faixaDepen, $conn); | |
foreach ($myArray as $k=>$subArray) { | |
foreach ($subArray as $id=>$value) { | |
$sumArray[$id]+=$value; | |
} | |
} |
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
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsite.com', 'http://www.newsite.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldsite.com','http://www.newsite.com'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldsite.com', 'http://www.newsite.com'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.oldsite.com', 'http://www.newsite.com'); |
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 | |
$setup = 'remote'; // local or remote | |
switch ($setup) { | |
case 'local'; | |
$config['index_page'] = ""; | |
$config['base_url'] = "http://".$_SERVER['SERVER_NAME']; | |
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']); | |
$config['secure_base_url'] = "https://".$_SERVER['SERVER_NAME']; | |
$config['secure_base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']); | |
break; |
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
if | |
( | |
(current_user_can('ajuda-manual-do-usuario_visualizar')) || | |
(current_user_can('ajuda-suporte_visualizar')) | |
) | |
{ | |
$CI->utils->add_menu_item('Ajuda', 'glyphicons glyphicons-life_preserver', 'ajuda', NULL); | |
if (current_user_can('ajuda-manual-do-usuario_visualizar')) { | |
$CI->utils->add_menu_item('Manual do Usuário', 'glyphicons glyphicons-notes', 'ajuda/faq', 'ajuda'); |
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 | |
try { | |
/* TABELAS: rcsaude_codigo_regional, rcsaude_regional_plano, | |
rcsaude_tabela_plano, rcsaude_tabela_preco */ | |
$q = $conn->query("SELECT *, tabp.tiulo AS tituloPlano | |
FROM rcsaude_codigo_regional cr | |
JOIN rcsaude_regional_plano rp ON cr.codigo=rp.id_codigo_regional | |
JOIN rcsaude_tabela_plano tp ON rp.id_plano=tp.id | |
JOIN rcsaude_tabela_preco tabp ON tp.id_preco=tabp.id |
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
<? | |
the_post(); | |
$keys = get_post_custom_keys(); | |
if(in_array("category",$keys)) { | |
$categoryslug = get_post_custom_values("category"); | |
query_posts('category_name='.$categoryslug[0]); | |
} | |
?> |
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
//Direciona para mapa | |
function geocode() { | |
var address = "-23.608290506940648, -46.69083239999998"; | |
geocoder.geocode({ | |
'address': address, | |
'partialmatch': true}, geocodeResult); | |
} | |
function geocodeResult(results, status) { | |
if (status == 'OK' && results.length > 0) { | |
map.fitBounds(results[0].geometry.viewport); |
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
$(document).ready(function(){ | |
var cores = [ "#609bcf", "#4f7a78", "#82b359", "#8f2f29", "#dca853", "#433073" ]; | |
// pesquisa de todos os elementos qbutton na página | |
$j(".carousel-inner .slider_content .text .qbutton").each(function(i){ | |
// Aplica a cor de fundo | |
$j(this).css("background", cores[i]); | |
console.log(cores[i]); | |
}); |
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 | |
$userData = array(); | |
foreach ($userList as $user) { | |
$userData[] = '("' . $user['first_name'] . '", "' . $user['last_name'] . '")'; | |
} | |
$query = 'INSERT INTO users (first_name,last_name) VALUES' . implode(',', $userData); | |
mysql_query($query); |
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
algoritmo "TOCAR VALOR" | |
var | |
x,a,b,c,d :real | |
inicio | |
// Seção de Comandos | |
escreva("Digite o valor(numérico) da variável A: ") | |
leia(a) | |
escreval("") |