if ($v['desc']) { b('<div class="file_row_desc">'); b($v['desc']); b('</div>'); } if ($v['width']) { b('<div class="file_row">'); b($v['width'] . ' x ' . $v['height']); b('</div>'); } b('<div class="file_row">'); $size = number_format($v['size'], 0, ',', ' '); b(substr($size, 0, -3) . '<span style="color:#888;">' . substr($size, -3, 3) . '</span>'); b('</div>'); b('<div class="file_row">'); b(dateh($v['dtu'])); b('</div>'); b('<div class="file_row">'); //b('<input name="s" id="s'.$k.'" type="checkbox"'); //if (isset($files_sel) && $files_sel && in_array($k, $files_sel)) b(' checked'); //b('>'); if (p('edit')) { b(icona('/' . $mod . '/fle/?fle=' . $k)); } b(icona('/f/' . $k)); if (p('edit')) { b(icona('#if (confirm(\'Подтвердите удаление\')) {file_delete(' . $k . ')}')); } b('</div>'); b('</div>'); }
if (datesqltime($v['datel']) < $curr['time'] - 1209600) { b(' style="opacity: 0.2;"'); } elseif (datesqltime($v['datel']) < $curr['time'] - 259200) { b(' style="opacity: 0.4;"'); } elseif (datesqltime($v['datel']) < $curr['time'] - 86400) { b(' style="opacity: 0.6;"'); } b('>'); b('<td>'); b($k); b('<td>'); b(inet_ntop($v['ip'])); b('<td>'); b(dateh($v['date'])); b('<td>'); b(dateh($v['datel'])); b('<td>'); b(ua_str($v['ua'])); b('<td>'); b(icona('/' . $mod . '/srk/?row=' . $k)); } b('</table>'); } else { b('error: no `sess`.'); } } // -------------------------------- session revoke proxy ------------------------------------ // if ($act == 'srk') { db_write(array('table' => 'sess', 'set' => array('stat' => 2), 'where' => '`id` = ' . $grow)); $redirect = '/' . $mod . '/'; }