%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/congress-intercultural.eu/public_html/
Upload File :
Create Path :
Current File : /home/alliance/domains/congress-intercultural.eu/public_html/a-parametres.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();
$colonne = new Colonne();

//affichage du html
include("theme/html.php");
//affichage des metas
include("theme/meta.php");
echo "\n<title>Paramètres - ".$info_titresite."</title>\n";
//affichage du header
include("theme/header_admin.php");
?>

<div class="text_admin">
<h2>Paramètres du site</h2>
<?php
if(isset($_POST['post']) && $_POST['post'] == 1)
{
	$values = array (
		"value" => $_POST['affiche_stats'] );
	$db->update("config", $values, "code = 'affiche_stats'");
	echo "<p class=\"infobloc\">Opération effectuée</p>";
}
?>

	<h3 class="mt15">Affichage des statistiques</h3>
	<form action="admin/parametres.php" method="post" class="form">
	<table>
		<tr>
			<td class="label">Afficher ?</td>
			<td class="field">
				<select name="affiche_stats">
					<option value="1"<?php if($db->getparam("affiche_stats") == 1) echo ' selected="selected"';?>>Oui</option>
					<option value="0"<?php if($db->getparam("affiche_stats") == 0) echo ' selected="selected"';?>>Non</option>
				</section>
			</td>
		</tr>
	</table>
	<div class="form_bouton">
		<input type="hidden" name="post" value="1" />
		<input type="submit" class="bouton" id="maj_bouton" value="Modifier les paramètres" />
	</div>


</div>

<?

//affichage du footer
include("theme/footer.php");

?>

Zerion Mini Shell 1.0