示例#1
0
function update_options($upd)
{
    if ($upd != 'upd') {
        return;
    }
    $options = new options($_SESSION[AuthTroll]);
    $options->set_display_mouches_option($_REQUEST[display_mouches_option]);
    $options->set_display_noms_mouches_option($_REQUEST[display_noms_mouches_option]);
    $options->set_refresh_dla_option($_REQUEST[refresh_dla_option]);
    $options->set_vue_zoom_option($_REQUEST[vue_zoom_option]);
    $options->set_vue_taille_option($_REQUEST[vue_taille_option]);
    $options->set_vue_animations_option($_REQUEST[vue_animations_option]);
    $options->set_vue_max_pa_option($_REQUEST[vue_max_pa_option]);
    $options->set_vue_display_trollometer_option($_REQUEST[vue_display_trollometer_option]);
    $options->set_vue_fantomes_option($_REQUEST[vue_fantomes_option]);
    $message = $options->write_db();
    /*  $id_troll_option = $_SESSION[AuthTroll];
      $display_mouches_option = $_REQUEST[display_mouches_option];
      $display_noms_mouches_option = $_REQUEST[display_noms_mouches_option];
      $refresh_dla_option = $_REQUEST[refresh_dla_option];
    	$message .= editDbOptions($id_troll_option,$display_mouches_option,$display_noms_mouches_option,$refresh_dla_option);
    */
    if ($message != "") {
        $message = "Erreur : {$message}";
    } else {
        $message = "Modifications effectuées";
    }
    ?>
		<table class='mh_tdborder' align='center' width='80%'>
			<tr class='mh_tdtitre'>
				<td align='center'>
					<h2><i><?php 
    echo $message;
    ?>
</i></h2>
				</td>
			</tr>
		</table><br>

	<?php 
}