root/dev/common/about.php @ 10

Revision 10, 3.9 KB (checked in by exi, 16 years ago)

Changed portrait generation to cache the pictures from
Changed about-page-spacing
Changed MapView? to use PNG instead of GIF
Added BugCompat? to MapView? for the GD<>imagefilledellipse()-Issue
Added Code for NPC-Corphandling (Corps have to be added manually)
Changed Raw-Killmail Window slightly
Added Killmail-Delete option within the killmail itself
Fixed privilege bug between admin and superadmin
Removed the need to enter the postpassword if you're logged in as admin
Changed coding style to Allman/BSD in all touched files
Various small changes i cant remember

6$page = new Page("About");
8$html .= "<div class=block-header2>Killboard</div>";
9$html .= KB_TITLE . ", a killboard for <a href=\"\">EVE Online</a> corporations and alliances.<br><p>Based on EVE-Killboard created by <a href=\"\">rig0r</a>. All EVE graphics used are &copy; <a href=\"\">CCP</a>.<br><br>";
11$qry = new DBQuery();
12$qry->execute("select count(*) as cnt from kb3_kills");
13$row = $qry->getRow();
14$kills = $row['cnt'];
15$qry->execute("select sum(itd_quantity) as cnt from kb3_items_destroyed");
16$row = $qry->getRow();
17$items = $row['cnt'];
18$qry->execute("select count(*) as cnt from kb3_pilots");
19$row = $qry->getRow();
20$pilots = $row['cnt'];
21$qry->execute("select count(*) as cnt from kb3_corps");
22$row = $qry->getRow();
23$corps = $row['cnt'];
24$qry->execute("select count(*) as cnt from kb3_alliances");
25$row = $qry->getRow();
26$alliances = $row['cnt'];
27// $html .= "<div class=block-header2>Killboard stats</div>";
28$html .= "The database currently stores <b>" . number_format($kills, 0, ',', '.') . "</b> killmails, <b>" . number_format($items, 0, ',', '.') . "</b> destroyed items, <b>" . number_format($pilots, 0, ',', '.') . "</b> pilots, <b>" . number_format($corps, 0, ',', '.') . "</b> corporations and <b>" . number_format($alliances, 0, ',', '.') . "</b> alliances.<br><br>";
30$html .= "<div class=block-header2>Portraits</div>";
31$html .= "If you would like your ingame character portrait to show up on the killboard, please visit the killboard using the ingame browser and select the 'Update portrait' option presented.<br>";
32$html .= "After trusting the site (press Yes when prompted), your character ID will be grabbed and recorded in the database.<br><br>";
34$html .= "<div class=block-header2>Kills & Real kills</div>";
35$html .= "Real kills are all recorded kills minus pod, shuttle and noobship kills. This value is used throughout all award and statistic pages you see on the killboard.<br><br>";
37$html .= "<div class=block-header2>Kill points</div>";
38$html .= "If enabled, every kill gets a certain amount of points assigned. The number of points says something about the difficulty of the kill. It is based on the shiptype destroyed, and the number and types of ships involved in the kill. As a result, a gank will get a lot less points awarded than a kill in a small engagement.<br><br>";
40$html .= "<div class=block-header2>Efficiency</div>";
41$html .= "Every shipclass has a value in ISK assigned. This is based on the average amount of ISK that would have been lost if  the ship was destroyed, taking current average market prices, insurance costs and insurance payouts into account. ";
42$html .= "Any modules that might have been fitted or cargo that might have been destroyed or confiscated is not included.<br><br>";
43$html .= "The efficiency is calculated as the ratio of damage done in ISK versus the damage received in ISK. This comes down to <i>damagedone / (damagedone + damagereceived ) * 100</i>.<br><br>";
45$html .= "<div class=block-header2>Ship values</div>";
46$html .= "The shipclasses and average ISK value are as follows:<br><br>";
47$sql = "select scl_id
48            from kb3_ship_classes
49           where scl_class not in ( 'Drone', 'Unknown' )
50          order by scl_value";
52$qry = new DBQuery();
54$html .= "<table class=kb-table cellspacing=1>";
55$html .= "<tr class=kb-table-header><td width=110>Ship class</td><td>Value in ISK (M)</td><td align=center>Indicator</td></tr>";
56while ($row = $qry->getRow())
58    $shipclass = new ShipClass($row['scl_id']);
59    $html .= "<tr class=kb-table-row-odd><td>" . $shipclass->getName() . "</td><td>" . $shipclass->getValue() . "</td><td align=center><img class=ship src=\"" . $shipclass->getValueIndicator() . "\" border=\"0\"></td></tr>";
61$html .= "</table>";
Note: See TracBrowser for help on using the browser.