-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexec.adicionarocorrenciagbif.php
More file actions
38 lines (32 loc) · 1.11 KB
/
exec.adicionarocorrenciagbif.php
File metadata and controls
38 lines (32 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php // 5 minutos
session_start();
$tokenUsuario = md5('seg'.$_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT']);
if ($_SESSION['donoDaSessao'] != $tokenUsuario)
{
header('Location: index.php');
}
//error_reporting(E_ALL);
//ini_set('display_errors','1');
require_once('classes/experimento.class.php');
require_once('classes/conexao.class.php');
$conexao = new Conexao;
$conn = $conexao->Conectar();
$Experimento = new Experimento();
$Experimento->conn = $conn;
$idexperimento = $_REQUEST['id'];
$idfontedados = $_REQUEST['id'];
$lat = $_REQUEST['id'];
$long = $_REQUEST['id'];
$taxon = $_REQUEST['id'];
$coletor = $_REQUEST['id'];
$numcoleta = $_REQUEST['id'];
$imagemservidor = $_REQUEST['id'];
$imagemcaminho = $_REQUEST['id'];
$imagemarquivo = $_REQUEST['id'];
$pais = $_REQUEST['id'];
$estado = $_REQUEST['id'];
$municipio = $_REQUEST['id'];
$fontedados = 2;
$Experimento->adicionarOcorrencia($idexperimento,$idfontedados,$lat,$long,$taxon,$coletor,$numcoleta,$imagemservidor,$imagemcaminho,$imagemarquivo,$pais,$estado,$municipio);
// header("Location: cadexperimento.php?op=A&pag=2&MSGCODIGO=71&id=$idexperimento");
?>