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 | |
{{ if user:logged_in }} | |
<p>This is just for logged in users.</p> | |
{{ endif }} | |
?> |
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 | |
{{page:title}} | |
{{page:body}} | |
<div class="tk-postcontent tk-postcontent-0 clearfix"> | |
<div class="tk-content-layout"> | |
<div class="tk-content-layout-row"> | |
<div class="tk-layout-cell layout-item-0" style="width: 35%" > | |
<h1>empresa</h1> |
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 | |
//echo $valor; | |
// ini_set('php_flag mail_filter', 0); | |
$this->load->library('email'); | |
$config['smtp_host'] = 'smtp.manualdama.dominiotemporario.com'; | |
$config['smtp_user'] = '[email protected]'; | |
$config['smtp_pass'] = 'manual1'; | |
$config['protocol'] = 'SMTP'; | |
$config['smtp_port'] = '587'; |
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 | |
//$data['subject'] = $this->settings->get('site_name') . ' - Meu Filho na Capa'; | |
$data['slug'] = 'denuncia'; | |
//$data['to'] = '[email protected], [email protected]'; | |
//$data['from'] = $this->settings->get('server_email'); | |
//$data['name'] = $this->settings->get('site_name'); | |
//$data['reply-to'] = $this->settings->get('contact_email'); | |
$data['valor'] = $valor; | |
$resultado = Events::trigger('email', $data, 'array'); | |
echo $resultado; |
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 | |
{{ if {session:flash name="success"} }}<div class="sucesso">{{ session:flash name="success" }}</div>{{ endif }} | |
{{ contato:form | |
nome = "text|required" | |
email = "text|required|valid_email" | |
telefone = "text" | |
mensagem = "textarea|required" | |
botao = "submit|value=Enviar|class=cenario-button cenario-button" | |
template = "contact" | |
sent = "Mensagem enviada." |
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
RewriteEngine on | |
RewriteRule ^(.*)$ /site/$1 [L] |
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
<meta property="og:title" content="Facebook Open Graph META Tags"/> | |
<meta property="og:image" content="http://davidwalsh.name/wp-content/themes/klass/img/facebooklogo.png"/> | |
<meta property="og:site_name" content="David Walsh Blog"/> | |
<meta property="og:description" content="Facebook's Open Graph protocol allows for web developers to turn their websites into Facebook "graph" objects, allowing a certain level of customization over how information is carried over from a non-Facebook website to Facebook when a page is 'recommended', 'liked', or just generally shared."/> |
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 echo !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : base_url(); ?> |
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 | |
# Conteúdo a ser examinado | |
$string = 'abcedf'; | |
# Ocorrências | |
preg_match('/[0-9]]/', $string); // Pode conter números de 0 à 9 | |
preg_match('/[4-8]]/', $string); // Pode conter números de 4 à 8 | |
preg_match('/[A-Z]]/', $string); // Pode conter letras de A à Z maiusculas | |
preg_match('/[a-z]/', $string); // Pode conter letras de A à Z minusculas | |
preg_match('/[F-P]]/', $string); // Pode conter letras de F à P maiusculas |
OlderNewer