Permalink
Browse files

Added footer

  • Loading branch information...
1 parent 73e415a commit 5317cf96a913859bc45794be868c39bdea634153 @alanbriolat committed May 2, 2010
Showing with 18 additions and 1 deletion.
  1. +4 −0 index.php
  2. +3 −1 lib/rtorrent.php
  3. +4 −0 style.less
  4. +7 −0 tpl/base.php
View
@@ -1,5 +1,9 @@
<?php
+define('YARG_NAME', 'YARG');
+define('YARG_VERSION', '0.1');
+define('YARG_URL', 'http://github.com/alanbriolat/YARG');
+
error_reporting(E_ALL|E_NOTICE);
require_once 'csf/csf.php';
View
@@ -98,14 +98,16 @@ public function get_torrents($view = '')
public function get_sysinfo()
{
$msgs = array();
+ $msgs[] = new xmlrpcmsg('system.client_version', array());
+ $msgs[] = new xmlrpcmsg('system.library_version', array());
$msgs[] = new xmlrpcmsg('get_down_rate', array());
$msgs[] = new xmlrpcmsg('get_up_rate', array());
$msgs[] = new xmlrpcmsg('get_directory', array());
$resps = $this->_rpc->multicall($msgs);
$values = array();
foreach ($resps as $r)
$values[] = php_xmlrpc_decode($r->value());
- $values = array_combine(array('downrate', 'uprate', 'directory'), $values);
+ $values = array_combine(array('version', 'lib_version', 'downrate', 'uprate', 'directory'), $values);
$values['downrate'] = round($values['downrate'] / 1024, 2).'K';
$values['uprate'] = round($values['uprate'] / 1024, 2).'K';
View
@@ -195,6 +195,10 @@ span.progbar_outer, span.progbar_inner {
}
}
+#footer {
+ color: @color_text_alt;
+}
+
#header {
padding: 0 30px 0 30px;
border-top: 5px solid @header_accent;
View
@@ -59,6 +59,13 @@
<? $TPL->block('body'); ?>
<? $TPL->endblock(); ?>
</div>
+
+ <p id="footer">
+ <a href="<?=YARG_URL?>"><?=YARG_NAME?>-<?=YARG_VERSION?></a>
+ &bull; rtorrent-<?=$C['sysinfo']['version']?>
+ &bull; libtorrent-<?=$C['sysinfo']['lib_version']?>
+ &bull; Silk icons by <a href="http://www.famfamfam.com/">Mark James</a>
+ </p>
</div>
</body>
</html>

0 comments on commit 5317cf9

Please sign in to comment.