]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb/Include.pm
Change database structure for planets and alliances + PG 8.4 changes
[ndwebbie.git] / lib / NDWeb / Include.pm
index 8105dad2f89c54bbfaab521b540410fe83c8945b..1cbcca9de3e09790280105192f16df6345ab1f2d 100644 (file)
@@ -56,6 +56,8 @@ my $bbc = Parse::BBCode->new({
                        code => 'block:<div class="bbcode-quote"><pre class="bbcode-code">%{html}s</pre></div>',
                        img   => 'url:<a href="%{link}A" rel="external">%s</a>',
                        li  => 'block:<li>%{parse}s</li>',
+                       size  => '<span style="font-size: %{num}a%">%s</span>',
+
                },
                close_open_tags   => 1,
        });
@@ -79,9 +81,9 @@ sub intelquery {
        return qq{
 SELECT $columns, i.mission, i.tick AS landingtick,MIN(i.eta) AS eta, i.amount, i.ingal, u.username
 FROM (intel i NATURAL JOIN users u)
-       JOIN current_planet_stats t ON i.target = t.id
-       JOIN current_planet_stats o ON i.sender = o.id
-WHERE $where 
+       JOIN current_planet_stats t ON i.target = t.pid
+       JOIN current_planet_stats o ON i.sender = o.pid
+WHERE $where
 GROUP BY i.tick,i.mission,t.x,t.y,t.z,o.x,o.y,o.z,i.amount,i.ingal,u.username,t.alliance,o.alliance,t.nick,o.nick,i.sender,i.target
 ORDER BY i.tick DESC, i.mission};
 }