예제 #1
0
파일: db.php 프로젝트: hewu/blogwp
 function get_tables_overhead_simple()
 {
     $tables = GDPTDB::get_tables_status();
     $size = 0;
     foreach ($tables as $t) {
         $size += $t->Data_free;
     }
     return $size;
 }
예제 #2
0
파일: tables.php 프로젝트: hewu/blogwp
_e("Size", "gd-press-tools");
?>
</th>
            <th scope="col" class="awidth" style="text-align: right;"><?php 
_e("Overhead", "gd-press-tools");
?>
</th>
            <th scope="col" style="text-align: right;"><?php 
_e("Options", "gd-press-tools");
?>
</th>
        </tr>
    </thead>
    <tbody>
    <?php 
$tables = GDPTDB::get_tables_status();
$col_id = 0;
foreach ($tables as $t) {
    echo '<tr>';
    echo '<td style="padding: 0 4px;">';
    echo '<div class="gdptdbtoggle on" id="ct' . $col_id . '"><img src="' . PRESSTOOLS_URL . 'gfx/blank.gif" height="16" width="16" /></div>';
    echo '</td>';
    echo '<td><strong>' . $t->Name . '</strong></td>';
    echo '<td>';
    $status = GDPTDB::check_table($t->Name);
    echo $status->Msg_type . ": " . $status->Msg_text;
    echo '</td>';
    echo '<td>' . $t->Collation . '</td>';
    echo '<td style="text-align: right;">' . $t->Rows . '</td>';
    echo '<td style="text-align: right;">' . gdFunctionsGDPT::size_format($t->Data_length) . '</td>';
    echo '<td style="text-align: right;">';