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 | |
/** | |
* BarcodeQR - Code QR Barcode Image Generator (PNG) | |
* | |
* @package BarcodeQR | |
* @category BarcodeQR | |
* @name BarcodeQR | |
* @version 1.0 | |
* @author Shay Anderson 05.11 | |
* @link http://www.shayanderson.com/php/php-qr-code-generator-class.htm |
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
package br.com.aplicativo.app; | |
package view; | |
import android.app.Activity; | |
public class MainActivity extends Activity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { |
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 | |
// Variables | |
$to = $_REQUEST['to']; | |
$message = $_REQUEST['message']; | |
$subject = $_REQUEST['subjet']; | |
$from = $_REQUEST['from']; | |
// Headers | |
$headers = "From: ".$from."\r\n"; | |
$headers .= "Content-type: text/plain; charset=utf-8\r\n"; |
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 | |
function no($var) { | |
$array = Array("'", "\\", "-", "SELECT", "select", "INSERT", "UPDATE", "*", "DELETE", "&", ",", ".", "/", ":", "]", "[", "%", "$", "!", "@", "#", "¹", "²", "³", "£", "¢", "¬", "{", "[", "]", "}", "-", "§"); | |
$var = str_replace($array, "", $var); | |
$var = preg_replace("/[^0-9]/","", $var); | |
return $var; | |
} | |
function number($var) { | |
// Só passa números e nada mais | |
$array = Array("'", "\\", "-", "SELECT", "select", "INSERT", "UPDATE", "*", "DELETE", "&", ",", ".", "/", ":", "]", "[", "%", "$", "!", "@", "#", "¹", "²", "³", "£", "¢", "¬", "{", "[", "]", "}", "-", "§"); |
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
package br.com.aplicacao.app; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
public class MainActivity extends Activity { |
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
<html> | |
<head> | |
<style type="text/css"> | |
p.neat { | |
display: none; | |
clear: both; | |
margin: 1em 0; | |
padding: 1em 15px; | |
width:100px; | |
background: #0F67A1; |
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
<script language="javascript"> | |
$('html, body').animate({scrollTop:0}, 'slow'); | |
$('html, body').animate({ scrollTop: $("#text").offset().top }, 1300); | |
</script> |
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
#include<stdio.h> | |
#include<stdlib.h> | |
int main(int narg, char *argv[]) { | |
int n, i; | |
scanf("%d", &n); | |
for(i=2;i<=n;i++) { | |
if(i%2 == 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 | |
$url = (isset($_GET['url'])) ? $_GET['url'] : "home"; | |
$file = $url.".php"; | |
if(file_exists($file)) { | |
include($file); | |
} | |
else { | |
echo "Desculpe... Esta página não existe."; | |
} |
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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php?url=$1 |
OlderNewer