core_second/functions/functions.administration.php
/* Function display config.ini parameters and create a form to change its values */
Function display config.ini parameters and create a form to change its values
Function display config . ini parameters and create a form to change its values
function display_config()
{
  $ini= parse_ini_file("config.ini", true);
  echo '<h2>Modification de la configuration</h2>';
  echo '<form name ="update_config" method="post" action="index.php?page=administration&manage=config">';
  foreach($ini as $header => $section)
  {
    echo '<h3>' . $header . '</h3>';
    foreach($section as $param => $value)
    {
      $row = '<label>' . $param .' : </label><input type="text" name="'. $param . '" value="' . $value;
      $rowend;
      if($header == "DATABASE")
      {
        $rowend = '" readonly/><br>';
      }
      else
      {
        $rowend = '" required/><br>';
      }
      echo $row.$rowend;
    }
  }
  echo '<p> Validez les changements : </p>';
  echo '<label>Mot de passe : </label>';
  echo '<input type="password" name="password_config" required/><br/>';
  echo '<input type="submit" value="Valider" name="config_submit"/></form>';
}
function display_config ( ) { $ ini = parse_ini_file ( " config.ini " , true ) ; echo '<h2>Modification de la configuration</h2>' ; echo '<form name ="update_config" method="post" action="index.php?page=administration&manage=config">' ; foreach ( $ ini as $ header => $ section ) { echo '<h3>' . $ header . '</h3>' ; foreach ( $ section as $ param => $ value ) { $ row = '<label>' . $ param . ' : </label><input type="text" name="' . $ param . '" value="' . $ value ; $ rowend ; if ( $ header == " DATABASE " ) { $ rowend = '" readonly/><br>' ; } else { $ rowend = '" required/><br>' ; } echo $ row . $ rowend ; } } echo '<p> Validez les changements : </p>' ; echo '<label>Mot de passe : </label>' ; echo '<input type="password" name="password_config" required/><br/>' ; echo '<input type="submit" value="Valider" name="config_submit"/></form>' ; }
Function display config.ini parameters and create a form to change its values
Function display config . ini parameters and create a form to change its values