function wiziapp_upgrade_configuration()
{
    $installer = new WiziappInstaller();
    $status = $installer->upgradeConfiguration();
    $header = array('action' => 'upgrade_configuration', 'status' => $status, 'code' => $status ? 200 : 500, 'message' => '');
    echo json_encode(array('header' => $header));
    exit;
}
Esempio n. 2
0
function wiziapp_upgrade_check()
{
    $installer = new WiziappInstaller();
    if ($installer->needUpgrade() && $_GET['page'] != 'wiziapp') {
        ?>
        <div id="wiziapp_internal_upgrade_needed_message" class="updated fade">
            <p style="line-height: 150%">
                WiziApp needs one more step to finish the upgrading process, click <a href="admin.php?page=wiziapp">here</a> to upgrade your database.
                <br />
                Make sure to update as soon as you can to enjoy the security, bug fixes and new features this update contain.
            </p>
        </div>
    <?php 
    }
}