This file has been truncated, but you can view the full file.
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
function setCookie(a, b, c) { | |
var d = new Date; | |
d.setTime(d.getTime() + 24 * c * 60 * 60 * 1e3); | |
var e = "expires=" + d.toUTCString(); | |
document.cookie = a + "=" + b + ";" + e + ";path=/" | |
} | |
function getCookie(a) { | |
for (var b = a + "=", c = document.cookie.split(";"), d = 0; d < c.length; d++) { | |
for (var e = c[d]; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<table border="1" width="100%"> | |
<thead> | |
<tr> | |
<th>Name</th> |
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 | |
/** | |
* CodeIgniter | |
* | |
* An open source application development framework for PHP | |
* | |
* This content is released under the MIT License (MIT) | |
* | |
* Copyright (c) 2014 - 2017, British Columbia Institute of Technology | |
* |
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 defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Cripto extends CI_Controller { | |
public function __construct(){ | |
parent::__construct(); | |
} | |
/** | |
* Buscando criptomedas ... |
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
public function csv(){ | |
if( isset($_POST['enviar_csv']) && count($_FILES['userfile']['name']) > 0 ){ | |
// ... | |
$file = $_FILES['userfile']['tmp_name']; | |
$handle = fopen($file, "r"); | |
$data = []; | |
// Loop through the csv file and insert into database | |
do { | |
if ( isset($data[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
<?php | |
class Usuario { | |
public function login($email, $senha){ | |
# faz login | |
} | |
} |
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
(function(){ | |
'use strict'; | |
var empresas_id = "#ajax_empresa"; | |
var local_id = "#ajax_local"; | |
var servicos_id = "#ajax_servico"; | |
var pesquisadores_id = "#ajax_persquisador"; | |
var pesquisa_id = "#ajax_pesquisa"; | |
var unidades_id = "#ajax_unidade"; |
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).on('blur', '.edit_descr > span', function(event){ | |
event.preventDefault(); | |
var descricao = $(this).text(); | |
var metodo_id = $(this).data("metodo_id"); | |
if(descricao && metodo_id){ | |
if(confirm("Deseja realmente atualizar a descrição desta função no sistema?") == true){ |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading | |
# slashes. | |
# If your page resides at | |
# http://www.example.com/mypage/test1 | |
# then use | |
# RewriteBase /mypage/test1/ | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f |
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 f.FUNC_NOME, p.PERG_PERG, r.RSPND_RESP_AVALO, e.PDOS_AVALR_ID, | |
(SELECT f.FUNC_NOME FROM funcionarios f WHERE f.ID = e.PDOS_AVALR_ID) AS NOME_AVALIADOR | |
FROM responder r | |
INNER JOIN perguntas p on r.RSPND_PERG_ID = p.ID | |
INNER JOIN funcionarios f on r.RSPND_AVALO_ID = f.ID | |
INNER JOIN pesquisados e on r.RSPND_PESQ_ID = e.ID |