librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1495] remove blocks thing


From: Clint Adams
Subject: [Librefm-commits] [1495] remove blocks thing
Date: Mon, 11 May 2009 21:47:40 +0000

Revision: 1495
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1495
Author:   clint
Date:     2009-05-11 21:47:40 +0000 (Mon, 11 May 2009)
Log Message:
-----------
remove blocks thing

Removed Paths:
-------------
    trunk/gnukebox/blocks.css
    trunk/gnukebox/blocks.php

Deleted: trunk/gnukebox/blocks.css
===================================================================
--- trunk/gnukebox/blocks.css   2009-05-11 21:47:36 UTC (rev 1494)
+++ trunk/gnukebox/blocks.css   2009-05-11 21:47:40 UTC (rev 1495)
@@ -1,150 +0,0 @@
-/*
-Copyright (c) 2009 Libre.fm
-
-License AGPL
-
-*/
-
-body{background-image: none;}
-#cards {
-    width: 820px;
-    margin: 10px;
-    margin-left:250px;
-    text-align:center;
-    padding: 0;
-}
-
-#statistics {
-    clear:both;
-    position:absolute;
-    top: 380px;
-    left: 80px;
-    width: 120px;
-    height: 130px;
-    -moz-border-radius-topleft: 15px;
-    -webkit-border-radius-topleft: 15px;
-    -moz-border-radius-bottomright: 15px;
-    -webkit-border-radius-bottomright: 15px;
-    background: #fff;
-    border: 1px solid #ccc;
-}
-
-#statistics h2 {
-    margin:0;
-    margin-bottom:15px;
-    background: #980101;
-    color: #fff;
-    font-weight: bold;
-    font-size: 15px;
-    line-height: 20px;
-    height: 20px;
-    display:block;
-    padding-left:5px;
-    -moz-border-radius-topleft: 15px;
-    -webkit-border-radius-topleft: 15px;
-}
-
-#statistics p {
-    padding: 0 10px;
-}
-
-#message {
-    position: absolute;
-    width: 190px;
-    padding: 5px;
-    margin-left:20px;
-}
-
-#nowplaying {
-    position: relative;
-    left: -5px;
-    -moz-border-radius: 15px;
-    margin: 20px;
-    margin-left:260px;
-    width: 780px;
-    height: 200px;
-    background: #eee;
-    padding: 10px;
-    overflow:auto;
-    clear:both;
-}
-#nowtracks {
-    overflow:auto;
-}
-#nowplaying p {
-    display: block;
-    background: #fff;
-    -moz-border-radius: 5px;
-    padding: 5px;
-    width: 760px;
-    overflow:hidden;
-    margin: 2px auto;
-}
-.singlecard {
-    position:relative;
-    width: 150px;
-    height: 150px;
-    float:left;
-    margin: 5px;
-    border: 1px dashed #444;
-    -moz-border-radius-topleft: 15px;
-    -webkit-border-radius-topleft: 15px;
-    -moz-border-radius-bottomright: 15px;
-    -webkit-border-radius-bottomright: 15px;
-    border: 1px solid #ccc;
-    background: #fff;
-    overflow:hidden;
-}
-
-.username {
-    background-color: #000;
-    color: #fff;
-    font-weight: bold;
-    font-size: 15px;
-    line-height: 20px;
-    height: 20px;
-    -moz-border-radius-topleft: 15px;
-    -webkit-border-radius-topleft: 15px;
-    text-align:left;
-}
-
-.username a {
-    margin-left:5px;
-    color: #fff;
-    text-decoration:none;
-}
-
-.artist {
-    padding:5px;
-    margin-top:5px;
-    font-size: 80%;
-    height: 30px;
-    overflow: hidden;
-}
-
-.artist a {
-    text-decoration:none;
-    color: #000;
-}
-
-.track {
-    margin-top:0px;
-    padding:5px;
-    font-size: 110%;
-    height: 70px;
-    overflow: hidden;
-}
-
-.track a {
-    text-decoration:none;
-    color: #000;
-}
-
-.time {
-    position:absolute;
-    bottom:8px;
-    left: 8px;
-    margin-top: 2px;
-    color: #ccc;
-    font-size:8px;
-}

Deleted: trunk/gnukebox/blocks.php
===================================================================
--- trunk/gnukebox/blocks.php   2009-05-11 21:47:36 UTC (rev 1494)
+++ trunk/gnukebox/blocks.php   2009-05-11 21:47:40 UTC (rev 1495)
@@ -1,197 +0,0 @@
-<?php
-
-/* Libre.fm -- a free network service for sharing your music listening habits
-
-   Copyright (C) 2009 Free Software Foundation, Inc
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU Affero General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program 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 Affero General Public License for more details.
-
-   You should have received a copy of the GNU Affero General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-*/
-
-header('Content-type: text/html; charset=utf-8');
-require_once('database.php');
-require_once('version.php');
-
-if (!isset($config_version) || $config_version != $version) {
-       die("Configuration file is out of date. Please delete it (and 
associated database) and <a href='install.php'>reinstall</a>."); //TODO: 
Upgrade script for release versions
-}
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd";>
-<html>
-<head>
-               <title>Libre.fm Gobble Server</title>
-   <link rel="stylesheet" href="reset-fonts-grids.css" type="text/css">
-   <link rel="stylesheet" href="base.css" type="text/css">
-   <link rel="stylesheet" href="librefm.css" type="text/css">
-   <link rel="stylesheet" href="blocks.css" type="text/css">
-<!--
-<rdf:RDF xmlns="http://web.resource.org/cc/";
-         xmlns:dc="http://purl.org/dc/elements/1.1/";
-         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
-<license rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/us/"; />
-</Work>
-<License rdf:about="http://creativecommons.org/licenses/by-sa/3.0/us/";>
-</License>
-</rdf:RDF>
--->
-</head>
-<body>
-<div id="doc3" class="yui-t7">
-   <div id="hd" style="banner"><h1><a href="http://libre.fm/";>Libre.fm Gobble 
Server</a></h1></div>
-   <div id="bd" style="main">
-       <div id="yui-main">
-       <div class="yui-b"><div class="yui-g">
-<div id='message'>
-  <p>This is a demo site for the libre.fm 'gobbler' server. That name might 
change. If you'd like an account, come to our IRC channel and ask mattl, Elleo 
or Clint nicely. You'll need to supply us with a username, password and email 
address.</p>
-
-<p>You'll also need to be comfortable editing your 'hosts' file and understand 
the implications of doing that.</p>
-</div>
-
-<div id="cards">
-               <?php
-
-  $req_user = $_GET["u"];
-$req_artist = $_GET["a"];
-$req_track = $_GET["t"];
-
-
-if ($req_user) {
-
-                       $res = $mdb2->query("SELECT username, artist, track, 
time FROM Scrobbles WHERE username = '" . $req_user . "' ORDER BY time DESC 
LIMIT 15");
-
-                       echo "<h2>Last 15 Gobbles by " . 
stripslashes($req_user) . "</h2>";
-
-} elseif ($req_artist) {
-
-                       $res = $mdb2->query("SELECT username, artist, track, 
time FROM Scrobbles WHERE artist = '" . $req_artist ."' ORDER BY time DESC 
LIMIT 15");
-
-                       echo "<h2>Last 15 Gobbles of " . 
stripslashes($req_artist) . "</h2>";
-
-} elseif ($req_track) {
-
-                       $res = $mdb2->query("SELECT username, artist, track, 
time FROM Scrobbles WHERE track = '" . $req_track . "' ORDER BY time DESC LIMIT 
15");
-
-                       echo "<h2>Last 15 Gobbles of " . 
stripslashes($req_track) . "</h2>";
-
-} elseif (!$res) {
-
-                       $res = $mdb2->query("SELECT username, artist, track, 
time FROM Scrobbles ORDER BY time DESC LIMIT 15");
-
-                       echo "<h2>Last 15 Gobbles</h2>";
-
-}
-
-                       if(PEAR::isError($res)) {
-                               die($res->getMessage());
-                       }
-                        $i=0;
-                       while($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {
-                                $i++;
-                                echo "<div id='card".$i."' 
class='singlecard'>";
-                               foreach($row as $field => $value) {
-                                       if($field == "artist") {
-                                               echo "<div 
class='".stripslashes($field)."'><a href='/blocks.php?a=".
-                                                   
htmlspecialchars(stripslashes($value), ENT_QUOTES)."'>"  .stripslashes($value) 
. "</a></div>";
-                                       }
-                                       else if($field == "track") {
-                                               echo "<div 
class='".stripslashes($field)."'><a href='/blocks.php?t=".
-                                                   
htmlspecialchars(stripslashes($value), ENT_QUOTES)."'>"  .stripslashes($value) 
. "</a></div>";
-                                       }
-                                       else if($field == "time") {
-                                               $value = strftime("%c", $value);
-                                               echo "<div 
class='".stripslashes($field)."'>". stripslashes($value) . "</div>";
-                                       }
-                                       else if($field == "username") {
-                                           echo "<div 
class='".stripslashes($field)."'><a href='/blocks.php?u=" . 
stripslashes($value) . "'>" . stripslashes($value) . "</a></div>";
-                                        }
-                                }
-                               echo "</div>";
-                       }
-
-               ?>
-</div>
-<div id="nowplaying">
-               <h2>Now Playing?</h2>
-
-<div id="nowtracks">
-               <?php
-                        if(empty($req_user)) {
-                               $res = $mdb2->query("SELECT username, artist, 
track, ClientCodes.name from Now_Playing LEFT OUTER JOIN Scrobble_Sessions ON 
Now_Playing.sessionid=Scrobble_Sessions.sessionid LEFT OUTER JOIN ClientCodes 
ON Scrobble_Sessions.client=ClientCodes.code ORDER BY Now_Playing.expires DESC 
LIMIT 10");
-                        } else {
-                               $res = $mdb2->query("SELECT username, artist, 
track, ClientCodes.name from Now_Playing LEFT OUTER JOIN Scrobble_Sessions ON 
Now_Playing.sessionid=Scrobble_Sessions.sessionid LEFT OUTER JOIN ClientCodes 
ON Scrobble_Sessions.client=ClientCodes.code WHERE username = '" . 
stripslashes($req_user) . "' ORDER BY Now_Playing.expires DESC LIMIT 10");
-                        }
-
-                       if(PEAR::isError($res)) {
-                               die($res->getMessage());
-                       }
-                       while($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {
-                               echo "<p>" . stripslashes($row["username"]) . " 
is listening to " . stripslashes($row["track"]) . " by " . 
stripslashes($row["artist"]) . "</p>";
-                       }
-               ?>
-</div>
-</div>
-<div id="statistics">
-               <h2>Statistics</h2>
-               <?php
-                       $res = $mdb2->query("SELECT COUNT(*) as total from 
Scrobbles");
-                       if(PEAR::isError($res)) {
-                               die($res->getMessage());
-                       }
-                       $row = $res->fetchRow(MDB2_FETCHMODE_ASSOC);
-                       echo "<p>" . stripslashes($row["total"]) . " 
gobbles</p>";
-
-                       $res = $mdb2->query("SELECT COUNT(*) as total from 
Track");
-                       if(PEAR::isError($res)) {
-                               die($res->getMessage());
-                       }
-                       $row = $res->fetchRow(MDB2_FETCHMODE_ASSOC);
-                       echo "<p>" . stripslashes($row["total"]) . " 
tracks</p>";
-
-                       $res = $mdb2->query("SELECT COUNT(*) as total from 
Users");
-                       if(PEAR::isError($res)) {
-                               die($res->getMessage());
-                       }
-                       $row = $res->fetchRow(MDB2_FETCHMODE_ASSOC);
-                       echo "<p>" . stripslashes($row["total"]) . " users</p>";
-
-               ?>
-</div>
- <p>
-    <a href="http://validator.w3.org/check?uri=referer";><img
-        src="http://www.w3.org/Icons/valid-html401";
-        alt="Valid HTML 4.01 Strict" height="31" width="88"></a>
-  </p>
-
-
-</div>
-</div>
-       </div>
-
-       </div>
-   <div id="ft" style="contentinfo">
-
-<p>This site handles <em>gobble</em> and <em>now playing</em>
-submissions from client applications and offers access to our web
-services API. If you just want to use <a
-href="http://libre.fm";>libre.fm</a> then you probably want to
-visit the <a href="http://libre.fm";>main site</a>, but if you're
-a developer then here are some useful stats to help you see
-what's happening.</p>
-
-<p><a 
href="http://svn.savannah.gnu.org/viewvc/trunk/gobbler/?root=librefm";>http://svn.savannah.gnu.org/viewvc/trunk/gobbler/?root=librefm</a></p></div>
-</div>
-</body>
-</html>
-





reply via email to

[Prev in Thread] Current Thread [Next in Thread]