- if (empty($row_array[1])) $row_array[1] = "NONE";
- $eval = "\$REP = OPTIMIZE_STATUS_".strtoupper($row_array[1]).";";
- eval($eval); $B1 = ""; $B2 = "";
- $OPT = OPTIMIZE_STATUS_UNSUPPORTED;
- if ($row_array[4] > 0)
- {
- $OPT = OPTIMIZE_STATUS_OPTIMIZED;
- $B1 = "<STRONG>"; $B2 = "<STRONG>";
+ if (empty($row_array[1])) $row_array[1] = 'NONE';
+
+ // Get repair/optimization status
+ $repairStatus = '{--ADMIN_OPTIMIZE_STATUS_' . str_replace(array('__', ',', '+', chr(39), ' '), array('_', '', '', '', '_'), strtoupper($row_array[1])) . '--}';
+ $optimizeStatus = '{--ADMIN_OPTIMIZE_STATUS_UNSUPPORTED--}';
+
+ if ($row_array[4] > 0) {
+ $optimizeStatus = '{--ADMIN_OPTIMIZE_STATUS_OPTIMIZED--}';
+ $B1 = '<strong>'; $B2 = '<strong>';