/** * getLastReleaseCreated */ public function getLastReleaseCreated() { $sql = sprintf("SELECT UNIX_TIMESTAMP(adddate) AS age FROM releases ORDER BY id DESC LIMIT 1"); $pdo = new Settings(); $data = $pdo->queryOneRow($sql); $age_of_package = DashData::time_elapsed($data['age']); printf('<span class="icon32 icon-blue icon-clock"></span> <div>Last Release Created</div> <div>%s ago</div>', $age_of_package); }
<?php require_once '../www/automated.config.php'; if (!file_exists(NN_WWW . DS . 'config.php')) { # send the browser to the configuration page, something is wrong! header("Location: configure.php"); } require_once 'config.php'; require_once "lib/dashdata.php"; $dashdata = new DashData(); ?> <html lang="en"> <meta http-equiv="refresh" content="30"> <?php include 'includes/header.php'; ?> <body> <?php include 'includes/topbar.php'; ?> <div class="container-fluid"> <div class="row-fluid"> <?php include 'includes/leftmenu.php'; ?>