Exemplo n.º 1
0
 * (at your option) any later version.
 *
 * sysMonDash is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with sysMonDash.  If not, see <http://www.gnu.org/licenses/>.
 */
use SMD\Core\Init;
use SMD\Core\Language;
use SMD\Util\Util;
define('APP_ROOT', '..');
require APP_ROOT . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'Base.php';
Init::start();
$updates = Util::checkUpdates();
if (is_array($updates)) {
    ?>
    <a href="<?php 
    echo $updates['url'];
    ?>
" target="_blank"
       title="<?php 
    printf(Language::t('Nueva Versión %s'), $updates['version']);
    ?>
">
        <i class="fa fa-cloud-download"></i>
    </a>
<?php 
}