@@ -353,18 +353,18 @@ class="form-check-input"
353353 EvolutionCMS ()->getDatabase ()->getConfig ('prefix ' ) . 'manager_log ' ,
354354 );
355355 if (EvolutionCMS ()->hasPermission ('settings ' ) && in_array ($ db_status ['Name ' ], $ truncateable ) && $ db_status ['Rows ' ] > 0 ) {
356- echo '<td class="text-xs-right"><a class="text-danger" href="index.php?a=54&mode=93&u= ' . $ db_status ['Name ' ] . '" title=" ' . $ _lang ['truncate_table ' ] . '"> ' . nicesize ($ db_status ['Data_length ' ] + $ db_status ['Data_free ' ]) . '</a> ' . '</td> ' . "\n" ;
356+ echo '<td class="text-xs-right"><a class="text-danger" href="index.php?a=54&mode=93&u= ' . $ db_status ['Name ' ] . '" title=" ' . $ _lang ['truncate_table ' ] . '"> ' . niceSize ($ db_status ['Data_length ' ] + $ db_status ['Data_free ' ]) . '</a> ' . '</td> ' . "\n" ;
357357 } else {
358- echo '<td class="text-xs-right"> ' . nicesize ($ db_status ['Data_length ' ] + $ db_status ['Data_free ' ]) . '</td> ' . "\n" ;
358+ echo '<td class="text-xs-right"> ' . niceSize ($ db_status ['Data_length ' ] + $ db_status ['Data_free ' ]) . '</td> ' . "\n" ;
359359 }
360360
361361 if (EvolutionCMS ()->hasPermission ('settings ' )) {
362- echo '<td class="text-xs-right"> ' . ($ db_status ['Data_free ' ] > 0 ? '<a class="text-danger" href="index.php?a=54&mode=93&t= ' . $ db_status ['Name ' ] . '" title=" ' . $ _lang ['optimize_table ' ] . '"> ' . nicesize ($ db_status ['Data_free ' ]) . '</a> ' : '- ' ) . '</td> ' . "\n" ;
362+ echo '<td class="text-xs-right"> ' . ($ db_status ['Data_free ' ] > 0 ? '<a class="text-danger" href="index.php?a=54&mode=93&t= ' . $ db_status ['Name ' ] . '" title=" ' . $ _lang ['optimize_table ' ] . '"> ' . niceSize ($ db_status ['Data_free ' ]) . '</a> ' : '- ' ) . '</td> ' . "\n" ;
363363 } else {
364- echo '<td class="text-xs-right"> ' . ($ db_status ['Data_free ' ] > 0 ? nicesize ($ db_status ['Data_free ' ]) : '- ' ) . '</td> ' . "\n" ;
364+ echo '<td class="text-xs-right"> ' . ($ db_status ['Data_free ' ] > 0 ? niceSize ($ db_status ['Data_free ' ]) : '- ' ) . '</td> ' . "\n" ;
365365 }
366366
367- echo '<td class="text-xs-right"> ' . nicesize ($ db_status ['Data_length ' ] - $ db_status ['Data_free ' ]) . '</td> ' . "\n" . '<td class="text-xs-right"> ' . EvolutionCMS ()-> nicesize ($ db_status ['Index_length ' ]) . '</td> ' . "\n" . '<td class="text-xs-right"> ' . EvolutionCMS ()->nicesize ($ db_status ['Index_length ' ] + $ db_status ['Data_length ' ] + $ db_status ['Data_free ' ]) . '</td> ' . "\n" . "</tr> " ;
367+ echo '<td class="text-xs-right"> ' . niceSize ($ db_status ['Data_length ' ] - $ db_status ['Data_free ' ]) . '</td> ' . "\n" . '<td class="text-xs-right"> ' . niceSize ($ db_status ['Index_length ' ]) . '</td> ' . "\n" . '<td class="text-xs-right"> ' . EvolutionCMS ()->nicesize ($ db_status ['Index_length ' ] + $ db_status ['Data_length ' ] + $ db_status ['Data_free ' ]) . '</td> ' . "\n" . "</tr> " ;
368368
369369 $ total += $ db_status ['Index_length ' ] + $ db_status ['Data_length ' ];
370370 $ totaloverhead += $ db_status ['Data_free ' ];
@@ -375,9 +375,9 @@ class="form-check-input"
375375 <tr>
376376 <td class="text-xs-right"><?= $ _lang ['database_table_totals ' ] ?> </td>
377377 <td colspan="4"> </td>
378- <td class="text-xs-right"><?= $ totaloverhead > 0 ? '<b class="text-danger"> ' . nicesize ($ totaloverhead ) . '</b><br />( ' . number_format ($ totaloverhead ) . ' B) ' : '- ' ?> </td>
378+ <td class="text-xs-right"><?= $ totaloverhead > 0 ? '<b class="text-danger"> ' . niceSize ($ totaloverhead ) . '</b><br />( ' . number_format ($ totaloverhead ) . ' B) ' : '- ' ?> </td>
379379 <td colspan="2"> </td>
380- <td class="text-xs-right"><?= "<b> " . nicesize ($ total ) . "</b><br />( " . number_format ($ total ) . " B) " ?> </td>
380+ <td class="text-xs-right"><?= "<b> " . niceSize ($ total ) . "</b><br />( " . number_format ($ total ) . " B) " ?> </td>
381381 </tr>
382382 </tfoot>
383383 </table>
@@ -539,7 +539,7 @@ class="<?= $_style['icon_save'] ?>"></i> <?= $_lang["bkmgr_snapshot_submit"] ?>
539539 arsort ($ files );
540540 while ($ file = array_shift ($ files )) {
541541 $ filename = substr ($ file , strrpos ($ file , '/ ' ) + 1 );
542- $ filesize = nicesize (filesize ($ file ));
542+ $ filesize = niceSize (filesize ($ file ));
543543
544544 $ file = fopen ($ file , "r " );
545545 $ count = 0 ;
0 commit comments