PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
osta
/
php
<?php /********************************************************************* osta/php/version-notification.php Version update notification logic for osTicket Awesome admin panel. Called from scp/admin.inc.php to build the warning bar notification. **********************************************************************/ /** * Build the version update notification HTML for the admin warning bar. * Returns HTML string if an update is available, empty string otherwise. */ function osta_version_notification($thisstaff) { $version_info = osta_check_version(); $installed_version = osta_get_installed_version(); if (!$version_info || !$installed_version || $installed_version === $version_info['latest']) return ''; // Check if user dismissed this version $dismissed_version = $thisstaff->getExtraAttr('osta_dismissed_version'); if ($dismissed_version === $version_info['latest']) return ''; $version_label = !empty($version_info['urgent']) ? __('Security Update Available') : __('Update Available:'); return '<span class="notif-left"><i class="icon-info-sign"></i> ' . $version_label . ' <a href="' . htmlspecialchars($version_info['release_notes']) . '" class="version-number">' . htmlspecialchars($version_info['latest']) . '</a></span>' . '<span class="notif-right">' . '<a class="notif-update" href="' . htmlspecialchars($version_info['download']) . '"><i class="icon-download"></i> ' . __('Update Now') . '</a>' . '<a class="notif-dismiss" href="?osta_dismiss_version=' . urlencode($version_info['latest']) . '"><i class="icon-remove"></i> ' . __('Dismiss') . '</a>' . '</span>'; }
[+]
..
[-] functions.php
[edit]
[-] avatar-initials.php
[edit]
[-] version-notification.php
[edit]
[-] .htaccess.disabled
[edit]