[SCM] BOINC packaging branch, SZTAKI, updated. debian/6.10.17+dfsg-3-301-g0f028e4

Steffen Moeller moeller at debian.org
Sun Jun 12 22:04:57 UTC 2011


The following commit has been merged in the SZTAKI branch:
commit 18ab0aee92dad06d69b3aec6bb8427cc7b0fcb9e
Author: Steffen Moeller <moeller at debian.org>
Date:   Sun Jun 12 23:35:25 2011 +0200

    Added show_hosts.php to provideHostinfo patch

diff --git a/debian/patches/upstream_sztaki_provideHostinfoPhp.patch b/debian/patches/upstream_sztaki_provideHostinfoPhp.patch
index 3223028..a4209da 100644
--- a/debian/patches/upstream_sztaki_provideHostinfoPhp.patch
+++ b/debian/patches/upstream_sztaki_provideHostinfoPhp.patch
@@ -47,3 +47,47 @@ Index: boinc/html/ops/hostinfo.php
 +		    ?>
 +	</body>
 +</html>
+Index: boinc/html/ops/show_hosts.php
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ boinc/html/ops/show_hosts.php	2011-06-12 23:35:07.000000000 +0200
+@@ -0,0 +1,39 @@
++<?php
++$sImageDir = "stats/";
++$htInterval = $_GET['i'];
++switch ($htInterval) {
++ case '31days':
++    $sInterval = '31days';
++    $sTitle = "Host activity for the last 31 days";
++    break;
++ case '1hour':
++    $sInterval = '1hour';
++    $sTitle = "Host activity for the last hour";
++    break;
++ case '1week':
++ default:
++    $sInterval = '1week';
++    $sTitle = "Host activity during the last 1 week";
++}
++?>
++<html>
++     <head>
++          <meta http-equiv="refresh" content="180">
++          <title><?=$sTitle?></title>
++          <link rel="stylesheet" type="text/css" href="../szdg-stat.css" />
++     </head>
++<body>
++     <div class="menu">
++           <a href="hostinfo.php">Back</a>
++     </div>
++<?
++$sFilename = $sImageDir. "show_hosts_". $sInterval. ".html";
++if (is_dir($sImageDir) && is_file($sFilename) ) {
++  include $sFilename;
++} else {
++  echo "No diagrams yet.";
++}
++?>
++
++      </body>
++</html>

-- 
BOINC packaging



More information about the pkg-boinc-commits mailing list