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
| <div id="fb-root"></div> | |
| <script>(function(d, s, id) { | |
| var js, fjs = d.getElementsByTagName(s)[0]; | |
| if (d.getElementById(id)) return; | |
| js = d.createElement(s); js.id = id; | |
| js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1"; | |
| fjs.parentNode.insertBefore(js, fjs); | |
| }(document, 'script', 'facebook-jssdk')); | |
| </script> | |
| <div class="fb-like-box fb_iframe_widget" data-href="http://www.facebook.com/clubedoaniversario" |
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 | |
| $sql = "Order By Case When campo_nome Like '{$nome}%' Then 0 Else 1 End Asc"; | |
| ?> |
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 | |
| public function categoria_global($id){ | |
| $contar = $this->global_sistemas_m->contar($id); | |
| $config['base_url'] = base_url().'loja/categoria_global/'.$id.'/'; | |
| $config['total_rows'] = $contar; | |
| $config['per_page'] = $this->por_pagina; | |
| $config["uri_segment"] = 4; | |
| $this->pagination->initialize($config); |
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 | |
| /** | |
| * Verifica se o CPF informado é valido | |
| * @param string | |
| * @return bool | |
| */ | |
| function valid_cpf($cpf) | |
| { | |
| // Verifiva se o número digitado contém todos os digitos | |
| $cpf = str_pad(preg_replace('/[^0-9]/', '', $cpf), 11, '0', STR_PAD_LEFT); |
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 | |
| date_default_timezone_set("Brazil/East"); | |
| //echo strtotime(date('Y-m-d H:i:s',time())); exemplo de redundancia | |
| //BUSCA SQL DE UMA DATA MENOR NAO TIMESTAMP | |
| ->where('UNIX_TIMESTAMP(STR_TO_DATE(DATA,"%d/%m/%Y")) <',now()) | |
| date("d/m/Y H:i:s a",time()); //30/12/2013 23:50:15 pm | |
| //VARIOS DIAS |
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
| problema no name server | |
| solution | |
| <?php | |
| // for multi-site logins to work properly we have to set a prefix. We use the subdomain for that or default_ if none exists. | |
| //$config['cookie_prefix'] = (substr_count($_SERVER['SERVER_NAME'], '.') > 1) ? substr($_SERVER['SERVER_NAME'], 0, strpos($_SERVER['SERVER_NAME'], '.')) . '_' : 'default_'; | |
| //$config['cookie_domain'] = ($_SERVER['SERVER_NAME'] == 'localhost') ? '' : $_SERVER['SERVER_NAME']; | |
| //$config['cookie_path'] = BASE_URI; | |
| //$config['cookie_secure'] = false; | |
| $config['cookie_prefix'] = '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
| <div class="box_skitter box_skitter_large"> | |
| <ul> | |
| {{ files:listing folder="2" }} | |
| <li> | |
| <a href="#"> | |
| <img class="cut" src="{{ url:site }}files/thumb/{{ id }}/754/485/fit" alt="{{ description }}"/> | |
| </a> | |
| <div class="label_text"><p></p></div> | |
| </li> | |
| {{ /files:listing }} |
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
| <script type="text/javascript"> | |
| $(document).ready(function(){ | |
| }); | |
| </script> |
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 | |
| $this->template->build('users/login',array('redirect_to' => 'produtos/enderecos/selecionar')); | |
| ?> |
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 | |
| $resultado = $this->load->view('admin/galeria',array(),true); | |
| carregando na TORA o controle com php | |
| modules::run('module/controller/method', $params, $...); | |
| ?> |