Esempio n. 1
0
// INCLUIR CONFIGURACOES
include_once("../config/init.php");

// ACESSO A BASE DE DADOS
include_once($BASE_DIR . "database/jogos.php");

// TRATAMENTO DE INFORMACAO
if (!isset($_GET["id"]))
{
   header("Location: " . $BASE_URL . "pages/jogos.php");
}

$id = $_GET["id"];

$jogoAuxiliar = obterJogoIndex($id);
if ($jogoAuxiliar == false)
{
   header("Location: " . $BASE_URL . "pages/jogos.php");
}

$jogo = $jogoAuxiliar[0];

$idiomasVoz = obterIdiomasJogoVoz($id);
if ($idiomasVoz == false)
{
   header("Location: " . $BASE_URL . "pages/jogos.php");
}

$idiomasSubtitulo = obterIdiomasJogoSubtitulo($id);
if ($idiomasSubtitulo == false)
Esempio n. 2
0
<?php
// DEFINIR NOME DA PAGINA
$nome_pagina[0] = "Editar Jogo";
$nome_pagina[1] = $_SERVER["REQUEST_URI"];

// INCLUIR CONFIGURACOES
include_once("../config/init.php");

// ACESSO A BASE DE DADOS
include_once($BASE_DIR . "database/jogos.php");

// TRATAMENTO DE INFORMACAO
if (isset($_GET['id']))
{
	$id = $_GET['id'];
	$jogo = obterJogoIndex($id)[0];

	$idiomasVoz = obterIdiomasJogoVoz($id);
	if ($idiomasVoz == false)
	{
		header("Location: " . $BASE_URL . "pages/editar_jogo.php");
	}

	$idiomasSubtitulo = obterIdiomasJogoSubtitulo($id);
	if ($idiomasSubtitulo == false)
	{
		header("Location: " . $BASE_URL . "pages/editar_jogo.php");
	}

	$plataformas = obterPlataformasJogo($id);
	if ($plataformas == false)