This file contains 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 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 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 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 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 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 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 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 |
This file contains 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> | |
#include <string.h> | |
int main(int narg, char *argv[]) { | |
system("clear"); | |
int continua = 1; | |
char opcao; | |
arquivo = fopen("agenda.txt","r"); |
This file contains 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)) { | |
echo 'arquivo <b>'.$url.'</b> existe'; | |
} | |
else { | |
echo 'A pagina <b>'.$url.'</b> nao existe'; | |
} |