Exemplo n.º 1
0
echo PMF_System::getVersion();
?>
 Update</h1>
                <?php 
$version = $faqConfig->get('main.currentVersion');
if (version_compare($version, '2.8.0-alpha2', '>=')) {
    if (!$faqConfig->get('main.maintenanceMode')) {
        echo '<p class="alert alert-warning"><strong>Warning!</strong> Your phpMyFAQ installation is ' . 'not in maintenance mode, you should enable the maintenance mode in your administration ' . 'backend before running the update!</p>';
    }
}
?>
            </div>
        </div>
<?php 
$installer = new PMF_Installer();
$installer->checkPreUpgrade();
/**************************** STEP 1 OF 3 ***************************/
if ($step === 1) {
    ?>
        <form action="update.php?step=2" method="post">
        <input name="version" type="hidden" value="<?php 
    echo $version;
    ?>
">
        <div class="row form-group">
            <div class="col-lg-12">
                <ul class="nav nav-pills nav-justified thumbnail setup-panel">
                    <li class="active">
                        <a href="#">
                            <h4 class="list-group-item-heading">Step 1 of 3</h4>
                            <p class="list-group-item-text">Update information</p>