Chrome
Safari
Edge
Firefox
Chrome (Android)
Tap the lock icon next to the address bar. Tap Permissions → Notifications . Adjust your preference.
Chrome (Desktop)
Click the padlock icon in the address bar. Select Site settings . Find Notifications and adjust your preference.
Safari (iOS 16.4+)
Ensure the site is installed via Add to Home Screen . Open Settings App → Notifications . Find your app name and adjust your preference.
Safari (macOS)
Go to Safari → Preferences . Click the Websites tab. Select Notifications in the sidebar. Find this website and adjust your preference.
Edge (Android)
Tap the lock icon next to the address bar. Tap Permissions .
Find Notifications and adjust your preference.
Edge (Desktop)
Click the padlock icon in the address bar. Click Permissions for this site . Find Notifications and adjust your preference.
Firefox (Android)
Go to Settings → Site permissions . Tap Notifications . Find this site in the list and adjust your preference.
Firefox (Desktop)
Open Firefox Settings. Search for Notifications . Find this site in the list and adjust your preference.
Здравствуйте.
Помогите, не как не могу сделать время о выводе когда был загружен последний файл на сервер в каталог.
Вот сам скрипт:
<?php function file_size ($filename) { if (!file_exists($filename)) return "file missing"; $filesize = filesize($filename); if($filesize > 1024) { $filesize = ($filesize/1024); if($filesize > 1024) { $filesize = ($filesize/1024); if($filesize > 1024) { $filesize = ($filesize/1024); $filesize = round($filesize, 1); return $filesize." ГБ"; } else { $filesize = round($filesize, 1); return $filesize." MБ"; } } else { $filesize = round($filesize, 1); return $filesize." Кб"; } } else { $filesize = round($filesize, 1); return $filesize." байт"; } } foreach (glob("*.dem.bz2") as $filename) { sort($files); echo '<table width="100%" cellspacing="0" cellpadding="0" align="center" class="listtable"> <tr> <td width="20%" height="25" class="listtable_top" align="left"><b>Имя файла</b></td> <td width="20%" height="25" class="listtable_top" align="center"><b>Размер файла</b></td> <td width="20%" height="25" class="listtable_top" align="center"><b>Автор файла</b></td> <td width="20%" height="25" class="listtable_top" align="center"><b>Дата и Время</b></td> <td width="20%" height="25" class="listtable_top" align="center"><b>Загрузить</b></td> </tr> <tr> <td width="20%" height="25" class="listtable_name" align="left">'.$filename.'</td> <td width="20%" height="25" class="listtable_size" align="center">'.file_size($filename).'</td> <td width="20%" class="listtable_author"></td> <td width="20%" class="listtable_data" align="center"></td> <td width="20%" height="25" class="listtable_download" align="center"><a href = "'.$filename.'" class="download_button rounded right">Загрузить</a></td> </tr> </table>'; } ?>?
Edited by VetalDX