Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
Always Learning

Valdiney França valdiney

😎
Always Learning
View GitHub Profile
View Rotas de envio de Email
5:Instalar o links nos servidores:
[Comando]:
aptitude install links
////////////////////////////////////////
Rota de E-mail bem vindo ao Wifiaqui:
[Dominio]/?admin=email_bem_vindo
Rota Alerta de Publicidades Desativadas:
View Exemplo_para_o_Medium_imprimir_com_js.js
<script>
window.onload = function() {
var imprimir = document.querySelector("#imprimir");
imprimir.onclick = function() {
imprimir.style.display = 'none';
window.print();
var time = window.setTimeout(function() {
imprimir.style.display = 'block';
}, 1000);
View Exemplo_para_o_Medium.php
<?php
# Incluindo a biblioteca
require_once("mpdf/mpdf.php");
# Criando a instancia do Objeto
$pdf = new Mpdf();
$html = "<h2>Usando a biblioteca MPDF.</h2>";
View ImageDimensionValidation .php
<?php
/**
[ImageDimensionValidation]
This class is used to verify the image dimensions after upload.
@author Valdiney França
*/
class ImageDimensionValidation
{
private $image;
@valdiney
valdiney / Image_dimensions.php
Last active Jul 4, 2016
This class is used to verify the image dimensions after upload.
View Image_dimensions.php
<?php
/**
[Image_dimensions]
This class is used to verify the image dimensions after upload.
@author Valdiney França
*/
class Image_dimensions
{
private $image;
@valdiney
valdiney / Controller_Exemplo.php
Created Jun 12, 2016
Exemplo da utilização de um Controler no Ofir Framework.
View Controller_Exemplo.php
<?php
class Campanhas_Controller extends Controller
{
protected $user;
protected $view;
protected $layout_pricipal;
protected $campanhas;
protected $upload;
public function __construct(Array $models, Array $services)
View Login_facebook.php
<?php
session_start(); // Sessao do php deve estar ativa
ini_set('display_errors',1);
ini_set('display_startup_erros',1);
error_reporting(E_ALL);
require_once __DIR__ . '/facebook/autoload.php';
// configurar APP_ID e SECRET
@valdiney
valdiney / ExportToTxt.php
Created Apr 23, 2016
Exporting data to the txt file
View ExportToTxt.php
<?php
/*
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @author Valdiney França <valdiney.2@hotmail.com>
* @version 0.1
* With this class you can pass data into the text file of simple way.
*/
class ExportToTxt
View Login_Controller.php
<?php
class Login_Controller extends Controller
{
protected $view;
protected $browser;
protected $device;
protected $send_email;
protected $radcheck;
protected $visitante;
View Filtragem_em_lista.js
<script>
$(document).ready(function() {
$('.mais_ap').click(function() {
$('.mais_ap_div').toggle('slow');
return false;
});
$("#txtBusca").keyup(function() {
var text = $(this).val();