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
// Author: Ramon Barros <[email protected]> | |
/* jslint devel: true, unparam: true, indent: 4 */ | |
/* global $,document,window,event,url,introJs,XMLHttpRequest,ActiveXObject,onlyNumbers */ | |
function validarCPF(doc) { | |
'use strict'; | |
var i, cpf = doc.replace(/\D/g, ''), pattern = /^(\d{1})\1{10}$/, sum, mod, digit; | |
if (cpf.length !== 11) { | |
return false; | |
} |
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 é um número de CNPJ válido. | |
* @author Gabriel Heming <[email protected]> | |
* @param $cnpj O número a ser verificado | |
* @return boolean | |
*/ | |
public function validar_cnpj( $cnpj ) { | |
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 é um número de CPF válido. | |
* @author Gabriel Heming <[email protected]> | |
* @param $cpf O número a ser verificado | |
* @return boolean | |
*/ | |
private function validar_cpf( $cpf ) { | |
$cpf = preg_replace('/\D/', '', $cpf); |
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 | |
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ | |
/** | |
* Converts to and from JSON format. | |
* | |
* JSON (JavaScript Object Notation) is a lightweight data-interchange | |
* format. It is easy for humans to read and write. It is easy for machines | |
* to parse and generate. It is based on a subset of the JavaScript | |
* Programming Language, Standard ECMA-262 3rd Edition - December 1999. | |
* This feature can also be found in Python. JSON is a text format that is |
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
file 1 |
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 | |
require_once('TableOrder.php'); | |
$tableOrder = new TableOrder(); | |
$startIds = $pagination->startRow+1; | |
$endIds = $pagination->startRow + $db->RowCount(); | |
$tableOrder->init('fotos',$mainSession,$primaryKey,$startIds,$endIds); // Class TableOrder Jquery UI |
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 | |
/** | |
* Contato | |
* | |
* @package Neogas | |
* @category Classes | |
* @name Contact.class.php | |
* @author Cristiano T. Fetter | |
* @version 1.0.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 | |
/** | |
* PostgreSQL Application | |
* | |
* An open source application development framework for PHP 5.1.6 or newer | |
* | |
* @package PostgreSQL | |
* @category Classes | |
* @author Ramon Barros |
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 | |
/** | |
* MySQL Application | |
* | |
* An open source application development framework for PHP 5.1.6 or newer | |
* | |
* @package MySQL | |
* @category Classes | |
* @author Ramon Barros |