summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2010-09-30 17:18:43 +0200
committerHugues Hiegel <hugues@hiegel.fr>2010-09-30 17:45:38 +0200
commit888004b32f7fe28e519b637ae2b1c3b7922023c2 (patch)
treebc54741a2341a5950c8c0a2ed29abef7185aaea3
parent640bd97d12d7f102dbfde197abca3126074d7ed3 (diff)
Lot of cleanup.
-rw-r--r--Config.BigLine.php4
-rw-r--r--DataBase/COLORS8
-rw-r--r--DataBase/STYLES34
-rw-r--r--DataBase/TYPES11
-rw-r--r--DataBase/color.plot8
-rw-r--r--DataBase/style.plot35
-rw-r--r--DataBase/type.plot96
-rw-r--r--Off.xcfbin0 -> 9603 bytes
-rw-r--r--Styles-generator.php22
l---------cache1
l---------fonts1
11 files changed, 196 insertions, 24 deletions
diff --git a/Config.BigLine.php b/Config.BigLine.php
index 1d31900..db4d949 100644
--- a/Config.BigLine.php
+++ b/Config.BigLine.php
@@ -5,9 +5,9 @@ define(CACHE, (3600*48));
define(WIDTH, 200);
define(HEIGHT, 50);
#putenv("GDFONTPATH=/usr/share/fonts/truetype");
-putenv("GDFONTPATH=/home/hugues/www/Last.fm/TrueType");
+putenv("GDFONTPATH=fonts");
-define(CACHE_FOLDER, "/var/cache/www/Lastfm");
+define(CACHE_FOLDER, "cache");
include("Config.mysql");
diff --git a/DataBase/COLORS b/DataBase/COLORS
new file mode 100644
index 0000000..ef75989
--- /dev/null
+++ b/DataBase/COLORS
@@ -0,0 +1,8 @@
+Black
+Red
+Green
+Yellow
+Blue
+LightBlue
+Gray
+White
diff --git a/DataBase/STYLES b/DataBase/STYLES
new file mode 100644
index 0000000..bb7b864
--- /dev/null
+++ b/DataBase/STYLES
@@ -0,0 +1,34 @@
+Astonished
+Broken
+Curly
+DirtyEgo
+DisgustingBehaviour
+DownCome
+Elegant
+FaceLift
+Flamy
+Funny
+Girlie
+Grindy
+Guilty
+Horrorful
+HorsePuke
+Letters
+MaxRhodes
+MemoryLapses
+MisProject
+Modern
+Morpheus
+Nails
+Nasty
+Pastelaria
+Porcelain
+PrintError
+Rochester
+Romantic
+Ruritania
+Screamy
+Selfish
+Shortcut
+Simple
+TypeO
diff --git a/DataBase/TYPES b/DataBase/TYPES
new file mode 100644
index 0000000..e73ff39
--- /dev/null
+++ b/DataBase/TYPES
@@ -0,0 +1,11 @@
+TracksPerDay
+TracksPerWeek
+TracksPerMonth
+TotalTracks
+AlbumsPerDay
+AlbumsPerWeek
+AlbumsPerMonth
+TotalAlbums
+Since
+Trueness
+Trueness
diff --git a/DataBase/color.plot b/DataBase/color.plot
new file mode 100644
index 0000000..296bc49
--- /dev/null
+++ b/DataBase/color.plot
@@ -0,0 +1,8 @@
+1 "Black" 90477
+2 "Red" 21473
+3 "Blue" 6572
+4 "Green" 4925
+5 "LightBlue" 4811
+6 "Gray" 1445
+7 "Yellow" 1187
+8 "White" 187
diff --git a/DataBase/style.plot b/DataBase/style.plot
new file mode 100644
index 0000000..81831dc
--- /dev/null
+++ b/DataBase/style.plot
@@ -0,0 +1,35 @@
+1 "TypeO" 37938
+2 "Modern" 12504
+3 "Letters" 11102
+4 "Morpheus" 10547
+5 "Horrorful" 9771
+6 "Grindy" 9146
+7 "Simple" 8242
+8 "Screamy" 6994
+9 "Romantic" 6626
+10 "Elegant" 4137
+11 "Ruritania" 3472
+12 "Funny" 2936
+13 "Girlie" 2630
+14 "FaceLift" 2036
+15 "Curly" 1532
+16 "Flamy" 1059
+17 "Astonished" 147
+18 "Broken" 81
+19 "DirtyEgo" 44
+20 "PrintError" 15
+21 "HorsePuke" 15
+22 "DisgustingBehaviour" 15
+23 "Porcelain" 12
+24 "DownCome" 11
+25 "MisProject" 11
+26 "Pastelaria" 10
+27 "Nasty" 8
+28 "Nails" 8
+29 "Guilty" 7
+30 "" 7
+31 "Shortcut" 4
+32 "Selfish" 3
+33 "MaxRhodes" 3
+34 "Rochester" 2
+35 "MemoryLapses" 2
diff --git a/DataBase/type.plot b/DataBase/type.plot
new file mode 100644
index 0000000..47ffb26
--- /dev/null
+++ b/DataBase/type.plot
@@ -0,0 +1,96 @@
+1 "TracksPerDay" 16559
+2 "Trueness" 16204
+3 "Since" 11123
+4 "TotalAlbums" 10409
+5 "TracksPerWeek" 10249
+6 "TotalTracks" 8558
+7 "TracksPerMonth" 8155
+8 "AlbumsPerDay" 6759
+9 "PerDay" 6221
+10 "AlbumsPerWeek" 5075
+11 "PerWeek" 5028
+12 "AlbumsPerMonth" 4885
+13 "PerMonth" 4091
+14 "Total2" 3886
+15 "Total" 3687
+16 "PerDay2" 2532
+17 "Trueness2" 2198
+18 "PerWeek2" 2191
+19 "PerMonth2" 1948
+20 "Since2" 1231
+21 "5"
+22 "TracksPerYear" 3
+23 "Monthly" 2
+24 "NotYourDoll" 2
+25 "Trueness1" 2
+26 "InsaneGenius" 2
+27 "Daily" 2
+28 "Bashenko" 2
+29 "OLYCOM" 1
+30 "engelmeine" 1
+31 "Totalsongs" 1
+32 "Utworow" 1
+33 "Noodle-CAT" 1
+34 "creamy-r0ck" 1
+35 "TracksserYear" 1
+36 "Wrig" 1
+37 "TracksProTag" 1
+38 "Mastodon118" 1
+39 "buscemigiuseppe" 1
+40 "unoriginal42" 1
+41 "Daily" tracks
+42 "jiajuNz" 1
+43 "benni89" 1
+44 "TracksDay" 1
+45 "tiigrikucu" 1
+46 "pocobelle" 1
+47 "IanAR" 1
+48 "Placebo" 1
+49 "Since1" 1
+50 "ssdlpf" 1
+51 "NeverSmile" 1
+52 "Deinvadda" 1
+53 "SSS" 1
+54 "TracksPeray" 1
+55 "razzamataz007" 1
+56 "laykanfighter" 1
+57 "dannyshaw123" 1
+58 "WeeklyTracks" 1
+59 "Pusch" 1
+60 "koji7" 1
+61 "beelzbubba" 1
+62 "TracksWeek" 1
+63 "Opooz" 1
+64 "gugusse" 1
+65 "--UncleSam--" 1
+66 "PerWeek1" 1
+67 "Denkmalvor" 1
+68 "xxprettyinmetal" 1
+69 "Muschelsucher" 1
+70 "C4lyps0" 1
+71 "wnnrssn" 1
+72 "Zzz" 1
+73 "Makeyo" 1
+74 "Blasphemia" 1
+75 "Треков" 1
+76 "treeny" 1
+77 "sc0ttmst" 1
+78 "-f-r-e-a-k-" 1
+79 "Morpheus" 1
+80 "the_jelly_fish" 1
+81 "PeopleEveryday" 1
+82 "haanka" 1
+83 "untrueness" 1
+84 "candle94" 1
+85 "Slayer_Soul" 1
+86 "nemoflow" 1
+87 "decadent_sluts" 1
+88 "Horrorful" 1
+89 "TC14" 1
+90 "rainstormiee" 1
+91 "Lady_Croft_90" 1
+92 "CtG" 1
+93 "TracksAlDía" 1
+94 "panopticon6" 1
+95 "Hell_RoB" 1
+96 "Total1" 1
diff --git a/Off.xcf b/Off.xcf
new file mode 100644
index 0000000..3466267
--- /dev/null
+++ b/Off.xcf
Binary files differ
diff --git a/Styles-generator.php b/Styles-generator.php
deleted file mode 100644
index 0cc5181..0000000
--- a/Styles-generator.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?
-
-include("Config.BigLine.php");
-
-define(WIDTH, 100);
-define(HEIGHT, 50);
-
-foreach ($Styles as $style => $font)
-{
- $img=imagecreatetruecolor(WIDTH, HEIGHT);
- imagealphablending($img, FALSE);
- imagesavealpha($img, TRUE);
-
- $transparent=imagecolorallocatealpha($img, 255, 255, 255, 127);
- $black=imagecolorallocatealpha($img, 0, 0, 0, 0);
-
- imagefilledrectangle($img, 0, 0, WIDTH, HEIGHT, $transparent);
- imagettftext($img, 30, 3, 0, HEIGHT * 80/100 , $black, "".$font, $style);
- imagepng($img, "styles/$style.png");
-}
-
-?>
diff --git a/cache b/cache
new file mode 120000
index 0000000..4e9f1be
--- /dev/null
+++ b/cache
@@ -0,0 +1 @@
+/var/cache/www/Lastfm \ No newline at end of file
diff --git a/fonts b/fonts
new file mode 120000
index 0000000..9a03ae6
--- /dev/null
+++ b/fonts
@@ -0,0 +1 @@
+/goinfre/Logiciels/Fontes/TrueType/ \ No newline at end of file