Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/www/include/configuration/FileConfiguration.php
<?php
printf('<form action="phpmyprepaid.php" method="post">');
if ($buttonID=="saveconfigfile")
{

echo "<p class=\"information\">Successfull saved apache configuration.</p>";
}
else if ($buttonID=="apache_config")
{
echo '<tr><td colspan=2><big><big style="font-family: Aircut"><span
	 style="font-weight: bold; text-decoration: italic;">';
	 echo "Apache configuration</big></big></td></tr>";
$file_name=$apache_file_name;
$config_path=$apache_config_path;
$config_bin_path=$apache_config_bin_path;
$error="Error, default apache configuration file not found!";
$msg_file_path="Apache modules directory";
$msg_file_bin_path="Apache command :";
}
else if ($buttonID=="firewall_config")
{
echo '<tr><td colspan=2><big><big style="font-family: Aircut"><span
	 style="font-weight: bold; text-decoration: italic;">';
	 echo "Firewall configuration</big></big></td></tr>";
$file_name=$firewall_file_name;
$config_path=$firewall_config_path;
$config_bin_path=$firewall_config_bin_path;
$error="Error, default firewall configuration file not found!";
$msg_file_path="Firewall directory";
$msg_file_bin_path="Firewall command";
}
else if ($buttonID=="bind_config")
{
echo '<tr><td colspan=2><big><big style="font-family: Aircut"><span
	 style="font-weight: bold; text-decoration: italic;">';
	 echo "DNS configuration</big></big></td></tr>";
$file_name=$bind_file_name;
$config_path=$bind_config_path;
$config_bin_path=$bind_config_bin_path;
$error="Error, default dns configuration file not found!";
$msg_file_path="Dns directory";
$msg_file_bin_path="Dns command";
}
$fh = fopen( $file_name, 'r' ) or die( "<p class=\"information\">$error</p>" );
$license_file = fread( $fh, filesize( $file_name ) );
fclose( $fh );
echo '<table style="text-align: left; width: 670px; height: 312px;"
 border="1" cellpadding="3" cellspacing="2">
 <tbody>';

echo '<tr><td>'.$msg_file_path.'</td>';
echo "<td ><input name=\"config_path\" size=\"30\" value=\"".$config_path."\"></td>";
echo "<td><input type=\"submit\" name=\"submit\" class=\"button\" value=\"Save configuration\" ></td></tr>";
echo '<tr><td>'.$msg_file_bin_path.'</td>';
echo "<td ><input name=\"config_bin_path\" size=\"30\" value=\"".$config_bin_path."\"></td>";
echo "<td><input type=\"submit\" name=\"submit\" class=\"button\" value=\"Execute\" ></td></tr>";
    echo '<tr>

      <td colspan="3" rowspan="1"><textarea cols="90" rows="30" name="apache_mod_file" >'.$license_file.'</textarea></td>
      <td></td>
    </tr>
  </tbody>
</table>';
echo "<input type=\"hidden\" name=\"buttonID\" value=\"saveconfigfile\">";
echo "</form>";
?>
Return current item: phpMyPrepaid