Ejemplo n.º 1
0
    /**
     * 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);
    }
Ejemplo n.º 2
0
<?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';
?>