Skip to content

Instantly share code, notes, and snippets.

View valdiney's full-sized avatar
😎
Always Learning

Valdiney França valdiney

😎
Always Learning
View GitHub Profile
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:
<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);
<?php
# Incluindo a biblioteca
require_once("mpdf/mpdf.php");
# Criando a instancia do Objeto
$pdf = new Mpdf();
$html = "<h2>Usando a biblioteca MPDF.</h2>";
<?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 July 4, 2016 12:50
This class is used to verify the image dimensions after upload.
<?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 June 12, 2016 02:06
Exemplo da utilização de um Controler no Ofir Framework.
<?php
class Campanhas_Controller extends Controller
{
protected $user;
protected $view;
protected $layout_pricipal;
protected $campanhas;
protected $upload;
public function __construct(Array $models, Array $services)
<?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 April 23, 2016 16:16
Exporting data to the txt file
<?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
<?php
class Login_Controller extends Controller
{
protected $view;
protected $browser;
protected $device;
protected $send_email;
protected $radcheck;
protected $visitante;
<script>
$(document).ready(function() {
$('.mais_ap').click(function() {
$('.mais_ap_div').toggle('slow');
return false;
});
$("#txtBusca").keyup(function() {
var text = $(this).val();