Example #1
0
//import_request_variables("gP", "st");
$step = $HTTP_POST_VARS['Submit'];
if ($step == "next") {
    echo "something<br>";
} else {
    if ($step == "Save") {
        $apache->replace_values($HTTP_POST_VARS);
        $PHP->replace_values($HTTP_POST_VARS);
        echo "\r\n\t<div class=\"resultMsg\">The changes have been sucssesfuly saved.</div>\r\n\t<div class=\"confirm\">The changes will have effect after restart of the server!</div>\r\n\t<br>";
    }
    echo "<form action=\"";
    echo $_SERVER["PHP_SELF"] . "\" name=f method=\"POST\">\r\n\t<table class=\"outer\">\r\n\t<tr><th colspan=\"2\">Apache configuration</th></tr>";
    $apache->echo_values();
    echo "</table>\r\n\t<br>";
    echo "<table class=\"outer\">\r\n\t<tr><th colspan=\"2\">PHP configuration</th></tr>";
    $PHP->echo_values();
    echo "\r\n\t<tr><td colspan=\"2\" class=\"foot\">\r\n    <input type=submit value=\"Save\" name=Submit>\r\n    </td></tr>\r\n\t</table>\r\n\t</form>\r\n\t<br>\r\n\t";
    if ($PHPmod == True) {
        echo "<div class=\"resultMsg\">At the moment PHP is loaded as Apache module.</div>";
    } else {
        echo "<div class=\"resultMsg\">At the moment PHP scripts are executed thought Apache CGI interface.</div>";
    }
}
//-------------------------------------------------------------------- functions
class Config
{
    var $contents;
    var $name;
    var $comments;
    var $Var_Name;
    var $Var_Text;
Example #2
0
    $step = 'dummay';
}
if ($step == "next") {
    echo "<p>" . $US['aconfig-text-0'] . "</p>";
} else {
    if ($step == "Save") {
        mpgUpdateRedirectFile();
        $apache->replace_values($_POST);
        echo "<p><font color=\"red\">" . $US['aconfig-text-1'] . "</font><p>";
    }
    ?>

        <form action="
<?php 
    echo $_SERVER["PHP_SELF"] . "\" name=\"f\" method=\"post\">";
    @$apache->echo_values();
    ?>
        <br />
        <input type="submit" value="<?php 
    echo $US['aconfig-save'];
    ?>
" name="Submit" />
        </form>
        <br />
<?php 
    if ($PHPmod == True) {
        echo "<p><font color=\"red\">" . $US['aconfig-module'] . "</font></p>";
    } else {
        echo "<p><font color=\"red\">" . $US['aconfig-cgi'] . "</font></p>";
    }
}