$self = "lpstore_about.php";
include "include/igb.php";
include "include/login.php";
include "include/output.php";
include "include/factions.php";
include "include/filename.php";
if ($igb == FALSE) echo <<
body {margin:20px 3% 3em;color:#765;background-color:#ffe;}
a:link {color:#423} a:visited {color:#423} th { text-align:left } .u2 { font-size:small }
a.u3 { padding:0 1em; border:1px solid #f8f8d8; background-color:#f8f8d8; position:relative; z-index:24; }
a.u3:hover { border:1px solid black; z-index: 25; } a.u3 span { display: none; }
a.u3:hover span { display:block; position:absolute; top:1.5em; left:0em; white-space:nowrap;
border:1px solid #eeee80; background-color:#f8f8d8; color:#000; padding:5px 1em; }
.u0 td { padding:0 0.6em; } .u0 th { padding:0 0.6em; }
END;
out("\n".loginbox());
out("!igb
"
."
"
."
"
."
"
."
"
."
"
."
\n");
$db = explode("\n",file_get_contents($fn_lpdb_master));
$ct = 0;
$factct = array();
$corpfact = array();
$corpct = array();
foreach($db as $line) if ($line)
{
list($lp,$isk,$realitem,$fact,$corp,$cost,$ts) = explode(chr(1),$line,7);
if ($corp)
{
if ($fact && !isset($corpfact[$corp])) $corpfact[$corp] = $fact;
if (isset($corpct[$corp])) $corpct[$corp]++;
else $corpct[$corp] = 1;
}
if ($fact)
{
if (isset($factct[$fact])) $factct[$fact] += 1;
else $factct[$fact] = 1;
}
if ($lp > 0) $ct++;
}
unset($db);
$x = file_get_contents($fn_lpdb_log);
$x = str_replace("\r","",$x);
$x = explode("\n",$x);
$added = array();
$edit = array();
$rank = array();
foreach($x as $line) if ($line)
{
preg_match(":\[.*\] ([A-Za-z' ]+) \((\d+)\) (added|edited)[\: ]?.*$:",$line,$m);
if (isset($m[1]) && isset($m[2]) && isset($m[3]))
{
$name = $m[1];
$id = $m[2];
$action = $m[3];
$rank[$name] = 0;
if ($action == "added")
{
if (isset($added[$name])) $added[$name] += 1;
else $added[$name] = 1;
}
if ($action == "edited")
{
if (isset($edit[$name])) $edit[$name] += 1;
else $edit[$name] = 1;
}
}
}
$cachect = file_get_contents($fn_lpdb_counter);
out("LP Store Database Contains $ct Offers
\n");
out();
if ($cachect != $ct)
{
$f = fopen($fn_lpdb_counter,"w");
fwrite($f,$ct);
fclose($f);
}
arsort($factct);
arsort($corpct);
$factlist = "";
foreach($factct as $fact => $num) if ($fact != "all")
{
$this_short = "";
foreach($faction2long as $short => $long)
{
if ($fact == $short)
{
$fact = $long;
$this_short = $short;
}
}
$fact = ucfirst($fact);
$factlist .= "| $fact | $num | Total |
\n";
$bg = "";
if ($this_short == "caldari") $bg = "
";
if ($this_short == "gallente") $bg = "
";
if ($this_short == "amarr") $bg = "
";
foreach($corpct as $corp => $num)
{
if ($this_short && $corpfact[$corp] == $this_short)
{
$factlist .= "| $bg ".$corp." | ".$num." | |
\n";
$bg = "";
}
}
}
foreach($added as $name => $num) $rank[$name] = $num * 3;
foreach($edit as $name => $num) $rank[$name] += $num;
arsort($rank);
$editlist = "";
foreach($rank as $name => $num)
{
$a = (isset($added[$name])) ? $added[$name] : 0;
$b = (isset($edit[$name])) ? $edit[$name] : 0;
$editlist .= "| $name | $a | $b |
\n";
}
echo <<
| Editor | Added Offers | Edited Offers |
$editlist
How to be an editor?
First you should join the in game channel LPDB and strike up a conversation.
You need to go to the LP Store webpage in your in game browser.
The website needs to be manually added to your trusted website list,
this is done in the browser under "Options" -> "Trusted Sites".
In the Dialog, manually enter "http://joonicks.eu/" in the add box and press Add.
Reload the page once you have done so. Now Simmith needs to verify you.
Right after that is done, extra options to add or edit existing entries will show up on the page.
Changes:
- June 20th, 2007 -- The LP Store Database is opened for business and the first entries are added. The code is still pretty immature but works.
- June 22nd, 2007 -- The database reaches 1000+ entries from all major factions (Amarr, Caldari, Gallente and Minmatar).
- June 24th, 2007 -- The database reaches 2000+ entries.
- June 27th, 2007 -- The database passes 3000 entries and about half the implants listed on implant list.
- July 2nd, 2007 -- The database reaches 4000+ entries.
- July 12th, 2007 -- The database reaches 5000+ entries.
- July 16th, 2007 -- All the new hardwires listed on the implants page.
- July 30th, 2007 -- An anonymous submitter provided the entire Rev 2.1 LP store database, 28,489 entries.