getDatabaseSize() public method

Get the size of the database.
public getDatabaseSize ( $measurment = "" )
Exemplo n.º 1
0
">
                                    <input type="radio" name="networkInterface" id="metric" value="wlan0" autocomplete="off"<?php 
$networkInterface == "wlan0" ? print ' checked' : '';
?>
> wlan0
                                </label>
                            </div>
                        </div>
                    </div>
                </div>
                <div role="tabpanel" class="tab-pane fade" id="maintenance">
                    <div class="panel panel-default">
                        <div class="panel-heading">Purge Positions</div>
                        <div class="panel-body">
                            <p>Current Database Size: <?php 
echo $common->getDatabaseSize("mb");
?>
MB</p>
                            <div class="form-group">
                                <label for="purgepositionspicker">Purge flight positions old than...</label><br />
                                <input type="text" class="form-control" id="purgepositionspicker" name="purgepositionspicker" autocomplete="off" <?php 
$settings::db_driver == "xml" ? print ' disabled' : '';
?>
>
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="purgepositions" value="purge"<?php 
$settings::db_driver == "xml" ? print ' disabled' : '';
?>
> Check to confirm purge of data.