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
<? | |
define('ORA_CHARSET_DEFAULT', 'SPANISH_SPAIN.AL32UTF8'); | |
define('ORA_CONNECTION_TYPE_DEFAULT', 1); | |
define('ORA_CONNECTION_TYPE_PERSISTENT', 2); | |
define('ORA_CONNECTION_TYPE_NEW', 3); | |
define('ORA_MESSAGES_NOT_CONNECTED', 'Not connected to Oracle instance'); | |
class ORACLE { | |
private static $_instance; | |
private $conn_handle; |
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
/* | |
* params $file // Arquivo $_FILES | |
* params $diretoio // Diretório raiz do www + pasta (saocamilo/ + ... ) | |
* params $nome // Nome customizado para o arquivo, padrão hash_files() | |
*/ | |
Upload::criar( $file, $diretorio, $nome = NULL); |
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
// Envia os dados com o upload | |
$http({ | |
method: 'POST', | |
url: , | |
headers: { 'Content-Type': undefined }, | |
transformRequest: function(data) { | |
var formData = new FormData(); | |
formData.append("post", angular.toJson(data.post)); | |
// Agora add os arquivos |
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
$("#search").keyup(function(){ | |
_this = this; | |
// Mostrando apenas as linhas que combinam e escondendo o restante | |
$.each($("#table tbody tr"), function() { | |
if($(this).text().toLowerCase().indexOf($(_this).val().toLowerCase()) === -1) | |
$(this).hide(); | |
else | |
$(this).show(); | |
}); | |
}); |
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 convert_number_to_words($number) | |
{ | |
$hyphen = '-'; | |
$conjunction = ' and '; | |
$separator = ', '; | |
$negative = 'negative '; | |
$decimal = ' point '; | |
$dictionary = array( | |
0 => 'zero', |
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('SYSPATH') or die('No direct script access.'); | |
abstract class Bcrypt { | |
// blowfish | |
private static $algo = '$2a'; | |
// Parametro de custo | |
private static $custo = '$10'; |