This is an ex post facto rendering of pq6 in its various versions in

svn, so that changes will be trackable thataway.

As checked in, right here, this is PQ 6.0
This commit is contained in:
Eric Fredricksen
2006-12-24 16:42:50 +00:00
commit d3bba84017
184 changed files with 12251 additions and 0 deletions
Executable
+3
View File
@@ -0,0 +1,3 @@
<Files qp.zip>
ForceType application/x-httpd-php
</Files>
+116
View File
@@ -0,0 +1,116 @@
<?
include('db.php');
include('util.php');
$posts = array();
$brags = array();
$dls = array();
$result = mysql_query("SELECT day,posts,brags,dls FROM pqsummary");
while ($row = mysql_fetch_row ($result)) {
$posts[$row[0]] = $row[1];
$brags[$row[0]] = $row[2];
$dls[$row[0]] = $row[3];
}
$bcolor = ImageColorAllocate($gif,255,0,0);
$pcolor = ImageColorAllocate($gif,0,255,0);
$dcolor = ImageColorAllocate($gif,0,0,255);
$n = 0;
$m = 0;
$day = strtotime("20020129");
$oneday = strtotime("+1 day");
$today = strtotime(date("Ymd"));
while ($day < $today) {
$d = date("Ymd",$day);
if (!isset($posts[$d])) {
$result = mysql_query("SELECT COUNT(*) FROM access_log WHERE uri = '/pq.zip/' AND stamp='$d'") or die(mysql_error());
$ds = $mysql_result($result,0,0);
$dls[$d] = $ds;
$result = mysql_query("SELECT COUNT(*) FROM access_log WHERE INSTR(uri,'cmd=brag') > 0 AND stamp='$d'") or die(mysql_error());
$bs = $mysql_result($result,0,0);
$brags[$d] = $bs;
$d2 = date("Y-m-d", $day);
$result = mysql_query("SELECT COUNT(*) FROM posts WHERE post_time='$d2'") or die(mysql_error());
$ps = $mysql_result($result,0,0);
$posts[$d] = $ps;
mysql_query("INSERT INTO pqsummary SET day='$d',posts=$ps,brags=$bs,dls=$ds") or die(mysql_error());
}
if ($m && ($m != $row[2])) {
ImageFilledRectangle($gif, $n * $w,$height+2,$n*$w,$height+$margin,$black);
ImageString($gif,2,$n*$w + 5,$height,$row[2],$black);
}
ImageFilledRectangle($gif, $x, $height-$brags[$d]/$bscaler, $x, $height-1, $bcolor);
$x++;
ImageFilledRectangle($gif, $x, $height-$posts[$d]/$pscaler, $x, $height-1, $pcolor);
$x++;
ImageFilledRectangle($gif, $x, $height-$dls[$d]/$dscaler, $x, $height-1, $dcolor);
$x++;
$x++;
$m = $row[2];
$n += 1;
}
// create the image
$width = 300;
$height = 100;
$scaler = 100;
$pscaler = 10;
$margin = 12;
$gif = ImageCreate($width,$height + $margin);
$bg = ImageColorAllocate($gif,225,225,255);
$tx = ImageColorAllocate($gif,0,220,92);
$black = ImageColorAllocate($gif,0,0,0);
$white = ImageColorAllocate($gif,255,255,255);
$red = ImageColorAllocate($gif,255,128,92);
ImageFilledRectangle($gif,0,0,$width,$height,$bg);
ImageFilledRectangle($gif,0,$height,$width,$height+50,$white);
ImageString($gif,2,140,3,"daily player activity",$tx);
ImageString($gif,2,140,15,"daily forum activity (x10)",$red);
$w = 4;
$limit = $width / $w;
$posts = array();
$result = mysql_query("SELECT COUNT(*), CONCAT(SUBSTRING(post_time,1,4),SUBSTRING(post_time,6,2),SUBSTRING(post_time,9,2)) AS t FROM posts GROUP BY t ORDER BY t LIMIT $limit");
while ($row = mysql_fetch_row ($result)) {
$posts[$row[1]] = $row[0];
}
$result = mysql_query("SELECT COUNT(*), SUBSTRING(time,1,8) AS t, MONTHNAME(time) FROM access_log WHERE INSTR(uri,'cmd=brag') > 0 GROUP BY t ORDER BY t LIMIT $limit");
$count = mysql_num_rows($result);
$n = 0;
$m = 0;
while ($row = mysql_fetch_row ($result)) {
if ($n == $count-1)
$tx = ImageColorAllocate($gif,162,220,180);
ImageFilledRectangle($gif, $n * $w,$height-$row[0]/$scaler,$n*$w+$w-2,$height,$tx);
if (isset($posts[$row[1]])) {
ImageFilledRectangle($gif, $n * $w,$height-$posts[$row[1]]/$pscaler,$n*$w+1,$height,$red);
}
if ($m && ($m != $row[2])) {
ImageFilledRectangle($gif, $n * $w,$height+2,$n*$w,$height+$margin,$black);
ImageString($gif,2,$n*$w + 5,$height,$row[2],$black);
}
$m = $row[2];
$n += 1;
}
// send the image
header("content-type: image/png");
ImagePng($gif);
?>
+5
View File
@@ -0,0 +1,5 @@
order deny,allow
deny from all
allow from .telocity.com
allow from .google.com
allow from .mclass.broadwing.net
+56
View File
@@ -0,0 +1,56 @@
<?
include('../log.php');
include('../db.php');
include('../util.php');
?>
<html>
<head>
<title>Progress Quest Admin</title>
<style>
<? include('../pq.css') ?>
</style>
</head>
<body bgcolor=#ffffff>
<font color=#404000>
<br>
<i>quamvis progressio</i>
<p>
<form>
<input type=text name=query size=80 height=5em value="<? echo(stripslashes($query)) ?>">
<input type=submit value=Go>
</form>
<?
if (isset($query)) {
$query = stripslashes($query);
$query2 = htmlspecialchars($query);
echo("<b>$query2</b><br>");
$result = mysql_query($query) or die(mysql_error());
if (is_bool($result)) {
echo($result ? 'OK' : 'FAILED');
}
else {
print "<table><tr>\n";
for ($i = 0; $i < mysql_num_fields($result); $i++)
print "<th>" . mysql_field_name($result,$i) . "\n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
print "\t<tr>\n";
foreach ($line as $col_value) {
print "\t\t<td>";
if (0 == strncmp($col_value, "http://", 7))
print "<a href=$col_value>$col_value</a>";
else
print $col_value;
print "</td>\n";
}
print "\t</tr>\n";
}
print "</table>\n";
}
}
?>
</body></html>
+7
View File
@@ -0,0 +1,7 @@
<?
include('../db.php');
include('../util.php');
heading();
footer();
?>
+106
View File
@@ -0,0 +1,106 @@
<?
include('../log.php');
include('../db.php');
include('../util.php');
mysql_query("
CREATE TABLE IF NOT EXISTS pqquotes (
num INTEGER NOT NULL AUTO_INCREMENT,
quote TEXT DEFAULT NULL,
source TEXT DEFAULT NULL,
stamp TIMESTAMP DEFAULT NULL,
PRIMARY KEY (num) )
")
or die(mysql_error());
if (isset($cmd)) {
$quote = arg($quote);
$source = arg($source);
$loc = "Location: http://progressquest.com/quote-admin.php?list=1";
if (isset($num))
$loc = $loc . "&disp=$num";
$num = arg($num);
if ($cmd == "add")
mysql_query("INSERT INTO pqquotes (quote,source) VALUES ('$quote','$source')") or die(mysql_error());
if ($cmd == "update")
mysql_query("UPDATE pqquotes SET quote='$quote', source='$source' WHERE num=$num") or die(mysql_error());
if ($cmd == "delete")
mysql_query("DELETE FROM pqquotes WHERE num=$num") or die(mysql_error());
header($loc);
exit();
}
$result = mysql_query("SELECT COUNT(*) FROM pqquotes") or die(mysql_error());
$count = mysql_result($result, 0);
?>
<h2> PQ Quote Admin</h2>
<a href=/quote-admin.php?list=1>List all <? echo($count) ?></a>
<p>
<form>
<?
if (isset($num))
$disp = $num;
if (isset($disp)) {
$result = mysql_query("SELECT num,quote,source FROM pqquotes WHERE num=$disp") or die(mysql_error());
if ($row = mysql_fetch_row($result)) {
echo("<b>Quote $disp</b>");
quotation($row[1], $row[2]);
if (isset($num)) {
$quote = $row[1];
$source = $row[2];
echo("<input type=hidden name=num value=$num>");
}
}
}
?>
<p>
Quote<br>
<textarea name=quote rows=8 cols=80>
<? echo($quote) ?>
</textarea>
<br>
Source<br>
<textarea name=source rows=3 cols=80>
<? echo($source) ?>
</textarea>
<br>
<input type=submit name=cmd value=add>
<? if (isset($num)): ?>
<input type=submit name=cmd value=update>
<input type=submit name=cmd value=delete>
<? endif; ?>
</form>
<p>
<?
if ($list) {
echo("<table style='border: solid 1'>");
$result = mysql_query("SELECT num,quote,source FROM pqquotes ORDER BY num")or die(mysql_error());
while ($row = mysql_fetch_row($result)) {
$num = $row[0];
$quote = $row[1];
$source = $row[2];
if (strlen($quote) > 50)
$quote = substr($quote,0,47) . "...";
if (strlen($source) > 50)
$source = substr($source,0,47) . "...";
$quote = htmlspecialchars($quote);
$source = htmlspecialchars($source);
echo("<tr><td><a href=/quote-admin.php?num=$num>$num</a><td>$quote<td>$source");
}
echo("</table>");
}
?>
+69
View File
@@ -0,0 +1,69 @@
<?
include('../log.php');
include('../db.php');
include('../util.php');
?>
<html>
<head>
<title>Progress Quest Referers</title>
<style>
<? include('../pq.css') ?>
</style>
</head>
<body bgcolor=#ffffff>
<font color=#404000>
<br>
<i>PQ Referers</i>
<p>
<?
if (!isset($host)) {
print "<b>Hosts</b>";
$query = <<<EOD
select
count(*) as count,
left(substring(referer,8),instr(substring(referer,8),'/')-1) as referer
from access_log
where instr(referer,'progressquest.com')<=0
group by referer
order by count desc
EOD;
} else {
print "<b>$host</b> (<a href=referers.php>list all hosts</a>)<p>";
$query = <<<EOD
select
count(*) as count,
referer
from access_log
where left(substring(referer,8),instr(substring(referer,8),'/')-1) = '$host'
group by referer
order by referer
EOD;
}
$query2 = htmlspecialchars($query);
$result = mysql_query($query) or die(mysql_error());
print "<table><tr>\n";
for ($i = 0; $i < mysql_num_fields($result); $i++)
print "<th>" . mysql_field_name($result,$i) . "\n";
while ($row = mysql_fetch_row($result)) {
$count = $row[0];
$referer = $row[1];
print "<tr><td>$count<td>";
if (0 == strncmp($referer, "http://", 7))
print "<a href=$referer>$referer</a>";
else if (!isset($host))
print "<a href=referers.php?host=$referer>$referer</a>";
else
print $referer;
}
print "</table>\n";
?>
</body></html>
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 857 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 875 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 882 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 887 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 891 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 891 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 892 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 946 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 900 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

+31
View File
@@ -0,0 +1,31 @@
<? include('log.php'); ?>
<html>
<body bgcolor=#ffffff alink=blue vlink=black>
<center>
<p>
<p>
<table border=0 cellpadding=20 height=100%>
<tr><td align=center colspan=6>
<img src=pq.gif>
<font color=#404000>
<br>
<i>quamvis progressio</i>
<tr valign=center>
<td align=center> <a href=pq.html>Information</a>
<td align=center> <a href=pq.zip>Download</a>
<td align=center> <a href=hi.php>Hall of Fame</a>
<td align=center> <a href=http://cafepress.com/pqm>Store</a>
<td align=center> <a href=stats.php>Stats</a>
<td align=center> <a href=bb>Forum</a>
<tr height=4em><td align=center colspan=6>
<small>
<font color=#808080>
&copy;2002 <a color=#808080 href=mailto:grumdrig@progressquest.com>grumdrig@progressquest.com</a>
</table>
</center>
+31
View File
@@ -0,0 +1,31 @@
<html>
<body bgcolor=#ffffff>
<p>
<table border=0 width=100% height=100%>
<tr><td><td><td>
<tr>
<td width=33% align=center>
<p>
<a href=manual.html>Information</a>
<p>
<a href=pq6.zip>Download</a>
<p>
<a href=mailto:efredricksen@yahoo.com>Comment</a>
<td align=center>
<img src=pq.gif>
<font color=#404000>
<br>
<i>quamvis progressio</i>
<td>
<tr><td><td><td>
</table>
</center>
Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

+56
View File
@@ -0,0 +1,56 @@
<?
include('db.php');
header('content-type: text/plain');
$fp=fopen('wiki/schemas/mysql.sql',"rb");
$result = mysql_query(fread($fp,100000));
$blah = <<<EOD
drop table if exists page;
CREATE TABLE page (
id INT NOT NULL,
pagename VARCHAR(100) BINARY NOT NULL,
hits INT NOT NULL DEFAULT 0,
pagedata MEDIUMTEXT NOT NULL DEFAULT '',
PRIMARY KEY (id),
UNIQUE KEY (pagename)
);
drop table if exists version;
CREATE TABLE version (
id INT NOT NULL,
version INT NOT NULL,
mtime INT NOT NULL,
minor_edit TINYINT DEFAULT 0,
content MEDIUMTEXT NOT NULL DEFAULT '',
versiondata MEDIUMTEXT NOT NULL DEFAULT '',
PRIMARY KEY (id,version),
INDEX (mtime)
);
drop table if exists recent;
CREATE TABLE recent (
id INT NOT NULL,
latestversion INT,
latestmajor INT,
latestminor INT,
PRIMARY KEY (id)
);
drop table if exists nonempty;
CREATE TABLE nonempty (
id INT NOT NULL,
PRIMARY KEY (id)
);
drop table if exists link;
CREATE TABLE link (
linkfrom INT NOT NULL,
linkto INT NOT NULL,
INDEX (linkfrom),
INDEX (linkto)
);
EOD;
print $blah;
?>
Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

+88
View File
@@ -0,0 +1,88 @@
<?
include('log.phpi');
mysql_connect('localhost','progressquest','placenta') or die("Unable to connect");
mysql_select_db("progressquest")
or die("Unable to select db");
mysql_query("
CREATE TABLE IF NOT EXISTS pqtips (
num INTEGER NOT NULL AUTO_INCREMENT,
tip TEXT DEFAULT NULL,
stamp TIMESTAMP DEFAULT NULL,
PRIMARY KEY (num) )
")
or die(mysql_error());
function arg($parm) {
return mysql_escape_string(stripslashes($parm));
}
if (isset($cmd)) {
$tip = arg($tip);
$num = arg($num);
if ($cmd == "add" && $tip != '')
mysql_query("INSERT INTO pqtips (tip) VALUES ('$tip')") or die(mysql_error());
if ($cmd == "update")
mysql_query("UPDATE pqtips SET tip = '$tip' WHERE num = $num") or die(mysql_error());
if ($cmd == "delete")
mysql_query("DELETE FROM pqtips WHERE num = $num") or die(mysql_error());
header("Location: http://progressquest.com/tip-admin.php?list=1");
exit();
}
$result = mysql_query("SELECT COUNT(*) FROM pqtips") or die(mysql_error());
$count = mysql_result($result, 0);
?>
<h2> PQ Tip Admin</h2>
<a href=/tip-admin.php?list=1>List all <? echo($count) ?></a>
<p>
<form>
<?
if (isset($num)) {
$result = mysql_query("SELECT num,tip FROM pqtips WHERE num=$num") or die(mysql_error());
while ($row = mysql_fetch_row($result)) {
$tip = $row[1];
echo("<h3>Tip $num</h3> <font color=blue>$tip</font>");
}
echo("<input type=hidden name=num value=$num>");
}
?>
<p>
<textarea name=tip rows=10 cols=50>
<? echo($tip) ?>
</textarea>
<br>
<input type=submit name=cmd value=add>
<? if (isset($num)): ?>
<input type=submit name=cmd value=update>
<input type=submit name=cmd value=delete>
<? endif; ?>
</form>
<p>
<?
if ($list) {
echo("<table>");
$result = mysql_query("SELECT num,tip FROM pqtips ORDER BY num")or die(mysql_error());
while ($row = mysql_fetch_row($result)) {
$num = $row[0];
$tip = $row[1];
if (strlen($tip) > 30)
$tip = substr($tip,0,27) . "...";
$tip = htmlspecialchars($tip);
echo("<tr><td><a href=/tip-admin.php?num=$num>$num</a><td>$tip");
}
echo("</table>");
}
?>
+5
View File
@@ -0,0 +1,5 @@
<style>
th { padding: 3px; border-style: solid; background-color: #ddddff; color: black; font: 8pt verdana; text-align: left; }
td { padding: 3px; border-style: solid; color: black; font: 8pt verdana; }
td.sel { background-color: #ffffa0; }
</style>
+23
View File
@@ -0,0 +1,23 @@
<?
mysql_connect('localhost','progressquest','placenta') or die("Unable to connect");
mysql_select_db("progressquest")
or die("Unable to select db");
mysql_query("
CREATE TABLE IF NOT EXISTS pqhi (
name char(30) NOT NULL,
passkey int(11) NOT NULL,
race char(30) default NULL,
class char(30) default NULL,
level int(11) default NULL,
plot char(30) default NULL,
item char(50) default NULL,
spell char(30) default NULL,
stat char(10) default NULL,
motto char(50) default NULL,
stamp timestamp default NULL,
stigma tinyint default 0 )
")
or die(mysql_error());
?>
+4
View File
@@ -0,0 +1,4 @@
<?
include('../log.php');
header('Location: http://progressquest.com/pq.zip/pq.zip');
?>
+90
View File
@@ -0,0 +1,90 @@
<?
include('../log.php');
include('../util.php');
//header('Location: http://www.geocities.com/grumdrig/index.html');
//header('Location: http://progressquest.com/pq.zip/pq.zip');
heading("Download Progress Quest");
?>
<center>
<h1>Download Progress Quest</h1>
</center>
<p align=center>
<table border=0 width=60%><tr><td colspan=2>
We're having a few issues with transfer quotas,
so it may be kind of hard to get ahold of Progress Quest just now.
Please stay tuned as we try to alleviate the problem.
<p>
Try one of these links,
<a href=http://briefcase.yahoo.com/bc/grumdrig/lst?.dir=/Progress+Quest>
HERE
</a>,
<a href=http://briefcase.yahoo.com/bc/lesterbarion/lst?.dir=/Progress+Quest>
HERE
</a>,
<a href=http://briefcase.yahoo.com/bc/progressquest/lst?.dir=/Progress+Quest>
HERE
</a>,
or
<a href=http://briefcase.yahoo.com/bc/efredricksen/lst?.dir=/Progress+Quest>
HERE
</a>.
They are likely to be mighty slow (Yahoo is only so generous).
Either
<a href=http://www.geocities.com/grumdrig/pq.zip> THIS </a>
or
<a href=http://www.geocities.com/lesterbarion/> THIS </a>
will sometimes work, also, and be faster if they do.
<p>
Luckily for you, several kind PQ fans have offered to host the download. Try one of
these:
<ul>
<li> <a href=http://market.swcombine.com/pq.zip>http://market.swcombine.com/pq.zip</a>
(the <a href=http://www.swcombine.com/>Star Wars Combine Simulation</a>)
<li> <a href=http://modeseven.d2g.com/pq.zip>http://modeseven.d2g.com/pq.zip</a>
<li> <a href=http://www.fragomatic.net/pq/pq.zip>http://www.fragomatic.net/pq/pq.zip</a>
(<a href=http://www.fragomatic.net/>Fragomatic Mush Hosting</a>)
</ul>
<!--
<p align=center>
<a href=http://sourceforge.net/project/showfiles.php?group_id=47704> Then, try this. </a>
<p align=center>
<a href=http://progressquest.com/dl/grab.php?s=dl> I suppose this is worth a shot. </a>
<p align=right>
<a href="http://sourceforge.net">
<img src="http://sourceforge.net/sflogo.php?group_id=47704&type=2" width="125" height="37" border="0" alt="SourceForge.net Logo">
</a>
-->
<tr>
<td valign=center>
<center>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="grumdrig@progressquest.com">
<input type="hidden" name="item_name" value="Progress Quest Donation">
<input type="image" src="http://images.paypal.com/images/x-click-butcc-donate.gif" border="0" name="submit" alt="Support PQ til it hurts!">
</form></center>
<td>
In the meantime here's your chance to donate to the cause...
A thousand thanks to those who already have!
If you'd rather donate bandwidth, kindly
<a href=mailto:gobblemybandwidth@progressquest.com>send me a URL</a> I can post here.
</table>
<?
footer();
?>
+173
View File
@@ -0,0 +1,173 @@
<?
if (0 && $cmd == 'create') {
echo("Sorry! ProgressQuest.com is down. Try again in a few days... In the meantime, create a character offline.");
exit();
}
include('log.php');
include('db.php');
include('util.php');
if ($cmd == 'create') {
//header('content-type: text/plain');
srand((double)microtime()*1000000);
$passkey = rand();
$name = arg($name);
$result = mysql_query("SELECT * FROM pqhi WHERE name='$name' and level >= 1") or die(mysql_error());
if (mysql_num_rows($result) > 0) {
echo("The character name you have selected is not available. Please choose a different name.");
} else if (!is_numeric($rev) || $rev < 2) {
echo("You version of Progress Quest is obsolete. You must download the latest version of Progress Quest before you can create any more online characters. Please visit http://progressquest.com/");
} else {
mysql_query("DELETE FROM pqhi WHERE name='$name'") or die(mysql_error());
mysql_query("INSERT INTO pqhi(name,passkey) VALUES ('$name',$passkey)") or die(mysql_error());
echo("ok|$passkey");
}
exit();
}
else if ($cmd == 'brag') {
$name = arg($name);
$class = arg($class);
$race = arg($race);
$level = intval($level);
$plot = arg($plot);
$item = arg($item);
$spell = arg($spell);
$stat = arg($stat);
$motto = arg($motto);
$ip = mysql_escape_string($REMOTE_ADDR);
$result = mysql_query("SELECT passkey FROM pqhi WHERE name='$name'") or die(mysql_error());
$key = mysql_result($result,0,0);
if ($passkey == ((~$level * 9831) ^ $key)) {
mysql_query("UPDATE pqhi SET class='$class', race='$race', level='$level', item='$item', spell='$spell', stat='$stat', plot='$plot', motto='$motto', ip='$ip' WHERE name='$name'");
if (($level > 299) || ($REMOTE_ADDR == '208.180.156.195'))
mysql_query("UPDATE pqhi SET stigma=1 WHERE name='$name'");
echo("ok");
} else {
echo("forbidden");
}
exit();
}
if (isset($cmd)) {
echo("'$cmd'?");
exit();
}
if (!is_numeric($min))
$min = 0;
if (!is_numeric($max))
$max = $cheaters ? 100 : 10;
if (isset($name)) {
$sname = arg($name);
$result = mysql_query("SELECT level,stamp,stigma FROM pqhi WHERE level >= 1 AND name='$sname'");
if ($row = mysql_fetch_row($result)) {
$l = $row[0];
$s = $row[1];
$cheaters = $row[2];
$filter = $cheaters ? '(stigma > 0)' : '(stigma = 0)';
$result = mysql_query("SELECT COUNT(*) FROM pqhi WHERE $filter AND (level > $l OR (level = $l AND stamp < '$s'))") or die(mysql_error());
$min = mysql_result($result, 0);
$min -= 6;
$max = 13;
if ($min < 0) { $max += $min; $min = 0; }
}
}
$title = "Fame";
if ($cheaters)
$title = "Infamy";
$filter = $cheaters ? '(stigma > 0)' : '(stigma = 0)';
$result = mysql_query("SELECT COUNT(*) FROM pqhi WHERE $filter AND level >= 1") or die(mysql_error());
$count = mysql_result($result, 0);
?>
<html>
<head>
<title>Progress Quest Hall of <? echo($title) ?></title>
<script>
function okp(){
if(event.ctrlKey && event.keyCode == 13)
alert('From within the *game*, Einstein.');
}
</script>
<style>
<? include('pq.css') ?>
</style>
</head>
<body bgcolor=#ffffff onKeyPress="okp()">
<center>
<img src=pq.gif>
<font color=#404000>
<br>
<?
echo("<i>Pop. $count</i>");
?>
<p>
<h1>Hall of <? echo($title) ?></h1>
<table border=1>
<tr><th align=right>Rank<th>Name<th>Race<th>Class<th align=right>Level<th>Prime Stat<th>Plot Stage<th>Prized Item<th>Specialty<th>Motto (Ctrl-M)</tr>
<?
$result = mysql_query("SELECT name,race,class,level,plot,item,spell,stat,motto,stamp FROM pqhi WHERE $filter AND level >= 1 ORDER BY level DESC, stamp LIMIT $min,$max");
$name = stripslashes($name);
$n = $min + 1;
while ($row = mysql_fetch_row ($result)) {
$dbname = htmlspecialchars($row[0]);
$race = htmlspecialchars($row[1]);
$class = htmlspecialchars($row[2]);
$level = $row[3];
$plot = htmlspecialchars($row[4]);
$item = htmlspecialchars($row[5]);
$spell = htmlspecialchars($row[6]);
$stat = htmlspecialchars($row[7]);
$motto = htmlspecialchars($row[8]);
$td = ($row[0] == $name) ? "td class=sel" : "td";
echo("<tr class=bob><$td align=right>$n.<$td>$dbname<$td>$race<$td>$class<$td align=right>$level<$td>$stat<$td>$plot<$td>$item<$td>$spell<$td>$motto</tr>");
$n = $n + 1;
}
?>
</table>
<?
//mysql_close($db);
if ($cheaters)
echo("<div align=center><small><a class=dim href=mailto:court-of-appeals@progressquest.com>Were you wrongly accused? Make your case.</a></small></div>");
?>
<p align=center>
<a href=/hi.php?max=10>Top 10</a> -
<a href=/hi.php?max=100>Top 100</a>
<?
if (!$cheaters) {
$span = $max;
$max = $min + $max;
if ($span > 100) $span = 100;
if ($span < 10) $span = 10;
if ($min > 0) {
$from = $min - $span;
if ($from < 0)
echo("- <a href=/hi.php?max=$span>First $span</a>\n");
else
echo("- <a href=/hi.php?min=$from&max=$span>Previous $span</a>\n");
}
if ($max < $count) {
$to = $max + $span;
if ($to >= $count) {
$span = $count - $max;
echo("- <a href=/hi.php?min=$max&max=$span>Last $span</a>\n");
} else {
echo("- <a href=/hi.php?min=$max&max=$span>Next $span</a>\n");
}
}
}
footer();
?>
+59
View File
@@ -0,0 +1,59 @@
<html>
<head>
<title>hello</title>
<meta http-equiv="Content-Type" content="text/html">
<style type="text/css">
<!--
.main {font-size: 12px}
.main1{ font-size: 14.8px }
.main2{ font-size: 16px }
.main4{font-size: 10px}
A:link {color: #0066ff; font-style: normal; text-decoration: none; cursor: hand}
A:visited {color: #0066ff; font-style: normal; text-decoration: none}
A:active {color: #33CCFF; font-style: normal; text-decoration: underline}
A:hover {color: #33CCFF; font-style:bold; text-decoration: underline}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Verdana, Arial, Helvetica, sans-serif"><span class="main1"><b>If
you can see this page, your account with Name2Host.com has been successfully
opened. You have 10 days of free trial time. This account will be automatically
disabled by the end of 10 days, so please upgrade it to a real account within
10 days. </b></span></font></p>
<p><b><font face="Verdana, Arial, Helvetica, sans-serif"><span class="main1">Before
upload any files, please pay attention to the following: </span></font></b></p>
<p class="main"><b><span class="main1"><font face="Verdana, Arial, Helvetica, sans-serif">(1).
You can use the following file names as your default home page file name, the
search order is: "index.html, index.htm, default.html, index.cgi, index.php,
index.php3". So if you have both "index.html" and "index.htm", only "index.html"
will be shown, if you have both "index.htm and "index.php", only "index.htm"
will be shown, and so on. </font></span></b></p>
<p class="main"><b><span class="main1"><font face="Verdana, Arial, Helvetica, sans-serif">(2).
When you upload files into your home directory, please put them under "public_html".
this directory is setup by the system and you should NOT delete it. </font></span></b></p>
<p class="main"><b><span class="main1"><font face="Verdana, Arial, Helvetica, sans-serif">(3).
For security reason, please set the permission of your sensitive files to 700(-rwx------).
</font></span></b></p>
<p class="main"><b><span class="main1"><font face="Verdana, Arial, Helvetica, sans-serif">(4).
Our system is UNIX, all the file names are case sensitive, we suggest that you
use lower case.</font></span></b></p>
<p class="main"><b><span class="main1"><font face="Verdana, Arial, Helvetica, sans-serif">
(5). We do not support ASP. </font></span></b></p>
<p class="main"><b><span class="main1"><font face="Verdana, Arial, Helvetica, sans-serif">(6).
About CGI, perl and PHP: your CGI programs should be in: /home/***/public_html/cgi-bin/,
where "***" is your user name; for Perl, use: #!/usr/bin/perl; for PHP, use:
#!/usr/bin/php. Please do not use our server as CGI house, any CGI programs
that run by web pages that are not in our server will be removed. </font></span></b></p>
<p class="main"><b><span class="main1"><font face="Verdana, Arial, Helvetica, sans-serif">(7).
You can only use POP3 email when you become real user, we will tell you how
to setup POP3 email box at that time. </font></span></b></p>
<p class="main"><b><span class="main1"><font face="Verdana, Arial, Helvetica, sans-serif">You
may want to change the name of this file and keep it for future reference. If
you have more question, please check our "FAQ" page or send us email by using
our "Contact" page. </font></span></b></p>
<p class="main"><b><span class="main1"><font face="Verdana, Arial, Helvetica, sans-serif">Thanks
for using Name2Host.com, we hope you become a real user soon, so that we can
continue to serve you.</font></span></b><span class="main1"><font face="Verdana, Arial, Helvetica, sans-serif">
</font></span></p>
+101
View File
@@ -0,0 +1,101 @@
<?
$try = 1;
if (!$try):
include('util.php');
heading();
?>
<p align=center>
<table border=0 width=60%><tr><td colspan=2>
Well, it seems the site is partially down.
We've gotten swamped.
Perhaps you can
<b>download it</b>
<a href=http://briefcase.yahoo.com/bc/grumdrig/lst?.dir=/Progress+Quest>
HERE
</a>,
<a href=http://briefcase.yahoo.com/bc/lesterbarion/lst?.dir=/Progress+Quest>
HERE
</a>,
<a href=http://briefcase.yahoo.com/bc/progressquest/lst?.dir=/Progress+Quest>
HERE
</a>,
or
<a href=http://briefcase.yahoo.com/bc/efredricksen/lst?.dir=/Progress+Quest>
HERE
</a>.
<p>
Those downloads are likely to be mighty slow (Yahoo Briefcase is only so generous).
Luckily for you, several kind PQ fans have offered to host the download. Try one of
these:
<ul>
<li> <a href=http://market.swcombine.com/pq.zip>http://market.swcombine.com/pq.zip</a>
(the <a href=http://www.swcombine.com/>Star Wars Combine Simulation</a>
<li> <a href=http://modeseven.d2g.com/pq.zip>http://modeseven.d2g.com/pq.zip</a>
</ul>
<p>
You'll have to stick with single-player mode for the time being.
Check back soon; we're working hard on getting site back up.
<tr><td colspan=2 align=right>
- <a href=mailto:grumdrig@progressquest.com>grumdrig@progressquest.com</a>
<tr height=1em><td height=1em><td>
<tr>
<td valign=center>
<center>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="grumdrig@progressquest.com">
<input type="hidden" name="item_name" value="Progress Quest Donation">
<input type="image" src="http://images.paypal.com/images/x-click-butcc-donate.gif" border="0" name="submit" alt="Support PQ til it hurts!">
</form></center>
<td>
In the meantime here's your chance to donate to the cause...
A thousand thanks to those who already have!
If you'd rather donate bandwidth, which also rules, kindly
<a href=mailto:gobblemybandwidth@progressquest.com>send me a URL</a> I can post here.
</table>
<p align=center>
<a href=/>Home</a> -
<a href=/pq.html>Info</a> -
Hall of Fame/Infamy -
<a href=http://cafepress.com/pqm>Store</a> -
Stats -
Forum
<?
exit();
endif;
include('util.php');
heading();
include('db.php');
$result = mysql_query("SELECT quote,source FROM pqquotes ORDER BY RAND() LIMIT 1")
or die(mysql_error());
$row = mysql_fetch_row($result);
quotation($row[0], $row[1]);
print "<table width=60% border=0><tr><td align=right><div align=right><a class=dim href=testimonials.php><small>more testimonials...</small></a></table>";
/*
quotation(
"The site died, but has returned. Please have patience if it dies again. We're working on it!",
"Grumdrig");
print "<table width=60% border=0><tr><td align=right><div align=right><a class=dim href=testimonials.php><small>more testimonials...</small></a></table>";
*/
footer();
include('log.php');
?>
+28
View File
@@ -0,0 +1,28 @@
<?
$domain = 'progressquest';
mysql_connect('localhost',$domain,'placenta') or die(mysql_error());
mysql_select_db($domain) or die(mysql_error());
mysql_query("
CREATE TABLE IF NOT EXISTS access_log (
time TIMESTAMP,
ip CHAR(15),
uri VARCHAR(100),
user_agent VARCHAR(50),
uid INTEGER DEFAULT 0,
referer VARCHAR(250)
)") or die(mysql_error());
if (!is_numeric($uid)) {
$uid = rand();
setcookie('uid', $uid, mktime(1,1,1,1,1,2030));
}
$ip = mysql_escape_string($REMOTE_ADDR);
$uri = mysql_escape_string($REQUEST_URI);
$user_agent = mysql_escape_string($HTTP_USER_AGENT);
$referer = mysql_escape_string($HTTP_REFERER);
mysql_query("INSERT INTO access_log
(ip,uri,user_agent,uid,referer) VALUES
('$ip','$uri','$user_agent',$uid,'$referer')") or die(mysql_error());
?>
+6
View File
@@ -0,0 +1,6 @@
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="efredricksen@yahoo.com">
<input type="hidden" name="item_name" value="Progress Quest Donor">
<input type="image" src="http://images.paypal.com/images/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
+4
View File
@@ -0,0 +1,4 @@
th { padding: 3px; border-style: solid; background-color: #ddddff; color: black; font: 8pt verdana; text-align: left; }
td { padding: 3px; border-style: solid; color: black; font: 8pt verdana; }
td.sel { background-color: #ffffa0; }
td.nobo { padding: 3px; border-style: none; color: black; font: 8pt verdana; }
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

+122
View File
@@ -0,0 +1,122 @@
<html>
<body bgcolor=#ffffd0>
<font color=#404000>
<h1><font color=#e02000>P</font>rogress <font color=#e02000>Q</font>uest</h1>
<font color=#404000>
<a href=http://progressquest.com/>http://progressquest.com/</a>
<h3> Back story </h3>
Since time before time the Vorlak had held the Crosshutch at Thraeskamp.
The ancient reckoning held that the Five Skrelkampi (and their Truebine) would
return when the great Trond-feast could be held anew and the Belnap reunited.
But this legend became lost to all but the Papperboxen at Horbug.
One of their own was Yallow the Speldrig, who found an unlikely pupil in
Torbole Understeady, the discarded illigitimate waif of Wainthane Topknox,
whom Yallow renamed Grumdrig and began to school as a boar-pulmet's apprentice. ...And, as it
was said by some, in aberdoxy.
<p>
As our story opens young Grumdrig has returned to Horbug following a trying stint in
Spilwaer Spond where his laconic disposition and fertile mind bred a series
of misadventures which had landed him outside the good graces of the Jordref there,
Welham, who had secretly begun a long term course of slow but
disaccomodating illpeel in the lad's morning fanwael.
Meanwhile, though scarce a tuft of <i>mansefur</i> had yet made its appearance
on the boy's <i>manssach</i>, a number of visiting Roilwachhs have begun to
exhibit a discreet
and seemingly inexplicable interest in the boy. Strange indeed, as he would not reach
his krouchensterm for another harvest or more.
And when Grumdrig's resiliant compatriot Paedri
appears at Drumdrig's lochnotat with a Scrolstamp from the old Speldrig,
a woozy foreboding feeling rises from his young gut...
<h3> Introduction </h3>
<b>Progress Quest</b> is next generation computer role-playing game.
Gamers who have played modern online role-playing games,
or almost any computer role-playing game,
or who have at any time installed or upgraded their operating system, will find themselves
incredibly comfortable with <b>Progress Quest</b>'s very familiar gameplay.
<b>Progress Quest</b> follows reverently in the footsteps of recent smash hit
online worlds, but is careful to streamline the more tedious aspects of those
offerings. Players will still have the satisfaction of building thier character
from a ninety-pound level 1 teenager, to an incredibly puissant, magically imbued warrior,
well able to snuff out the lives of a barnload of bugbears
without need of so much as a lunch break. Yet, gone are the tedious micromanagement
and other frustrations common to that older generation of RPG's.
<h3> User manual </h3>
Even inexpereinced gamers will find <b>Progress Quest</b>
remarkably intutive and simple to play. Start the program
and click the <code>New Game</code> button. You will presented with the character creation screen.
Select a name, race and class for the new character. Then, use the <code>Roll</code> button
until you are statisfied with the stats
for your character. <i>Tip: You can use the <code>Unroll</code> button (a feature exclusive to <b>Progress Quest</b>)
to go back to any previous roll if you find that you've
clicked too hastily.</i>
<p>
If "Play online" is checked, your character will share adventures with other <b>Progress
Quest</b> characters in an online virtual world. Online play is reccommended only for
users with always-on internet connectivity, though sophisiticated algorithms
keep the bandwidth usage to a minimum. You can compare your character against
the top <b>Progress Quest</b> players by visiting
<a href=http://progressquest.com/hi.php>http://progressquest.com/hi.php</a>.
<p>
Finally, hit the <code>Sold!</code> button to begin the game. The game will start immediately and
you can safely familiarize yourself with the game's single interface screen as the game progresses
on its own.
Soon your avatar will will be seeking and destroying an exotic panopoly of beasts while you
gaze proudly on. Missing, you will notice, is the tedious march from town, the bewildering maze of cookie cutter
streets hiding some specific merchant or NPC,
and the repetetive hunt for just the right beast to execute. <b>Progress Quest</b> supplies
your character with an endless series of victims, as well as exciting quests which keep your quest
log full to the brim at all times.
<p>
TREASURE: Each slain creature yields a trophy, which can be sold in any town.
When the encumberance bar reaches maximum, your character automatically returns to the nearest town
to sell your loot. If sufficiently liquid, he may then purchase an upgrade in equpiment (weapon or armor).
That being done, the interpid adventurer then returns to the frontier to spill more blood.
<i>Tip: The amount your character can carry before his encumberance bar fills up
increases as his STR stat improves.</i>
<p>
QUESTS: When a quest is complete, your character is rewarded with one of: a) a special, valuable, treasure item,
b) an improved weapon
or piece of armor, c) a boost in stats, or d) a new spell for his spellbook. The character is then assigned
a follow-up quest, which he immediately begins to make progress on.
<p>
EXPERIENCE AND LEVELING UP: Experience represents your character's knowledge about the world
around him, as well as his battle prowess and ability to channel the forces of magical power.
Your character gains experience by killing monsters and sentient beings,
over and over again. Once the experience bar is full, your character levels up, and is
given an automatic boost in several of his stats and a new spell for his spellbook.
<p>
DYING: Be warned that your character can be slain by monsters which are tougher than
he can handle. However, this concept
has been abstracted out of the game and takes effect simply by somewhat reducing the experience
accumulated for each successful murder.
<p>
SAVING YOUR PROGRESS: Your game is saved whenever you quit, as well as each time your character levels
up or completes a quest. You can pick up where you left off by restarting <b>Progress Quest</b> and clicking the <code>Load Game</code>
button.
<h3> Game controls </h3>
<b>Progress Quest</b> belongs to a new breed of "fire and forget" RPG's. There is no need to interact
with <b>Progress Quest</b> at all; it will make progress with you or without you.
<p>
You can quit <b>Progress Quest</b> by using the window close box, or by hitting &lt;Alt&gt;-&lt;F4&gt;
(hold down the &lt;Alt&gt; key while hitting &lt;F4&gt;), but there is really little need to ever do so.
Please note that your character will <i>not</i> make any progress <i>except when <b>Progress Quest</b> is
running</i>. Your character will make <i>no</i> progress once you quit the program, until you start
<b>Progress Quest</b> again.
<h3> Keyboard quick reference </h3>
<table border=1 cellspacing=5><th>Key</th><th>Description</tr>
<tr><td>Alt-F4<td>Exit <b>Progress Quest</b></table>
<p>
<small>&copy:Copyright 2002
<a href=mailto:grumdrig@progressquest.com>grumdrig@progressquest.com</a>
BIN
View File
Binary file not shown.
+13
View File
@@ -0,0 +1,13 @@
<?
$pq = "pq.zip/pq.zip";
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Content-Length: ' . filesize($pq));
header('Content-Type: application/zip');
include('log.php');
$fp = fopen($pq, "rb");
while(!feof($fp)) {
$buffer = fread($fp, 4096);
print $buffer;
}
?>
+61
View File
@@ -0,0 +1,61 @@
<?
include('log.php');
include('db.php');
include('util.php');
heading("Progress Quest Stats");
?>
<center>
<h1>Stats</h1>
<style>
<? include('pq.css') ?>
</style>
<?
function showstats($caption, $query) {
print "<table border=1 width=100%>";
print "<tr><th colspan=2>$caption";
$result = mysql_query($query) or die(mysql_error());
$n = 1;
while ($row = mysql_fetch_row ($result)) {
$v = htmlspecialchars($row[0]);
$p = round($row[1] / $row[2]);
print "<tr><td>$n. $v<td align=right>$p</tr>";
$n++;
}
print "</table>";
}
$filter = '(stigma = 0 AND level < 99 AND level > 0)';
$result = mysql_query("SELECT COUNT(*), SUM(level), SUM(LEAST(level-1,1)) FROM pqhi WHERE $filter") or die(mysql_error());
$count = mysql_result($result, 0);
$slugg = mysql_result($result, 0, 1);
$elite = mysql_result($result, 0, 2);
print "Pop. $count<br>($elite level 2 or higher)<br>";
print "Average Level: " . round($slugg/$count);
$top = 5;
$suffix = ",1 FROM pqhi WHERE $filter GROUP BY 1 ORDER BY c DESC LIMIT $top";
print "<table border=0 style='border-style:none' cellspacing=20><tr><td class=nobo>";
showstats("Top $top Races by Popularity", "SELECT race, COUNT(*) AS c $suffix");
print "<td class=nobo>";
showstats("Top $top Races by Combined Level", "SELECT race, SUM(level) AS c $suffix");
print "<tr><td class=nobo>";
showstats("Top $top Classes by Popularity", "SELECT class, count(*) AS c $suffix");
print "<td class=nobo>";
showstats("Top $top Classes by Combined Level", "SELECT class, sum(level) AS c $suffix");
print "<tr><td class=nobo>";
showstats("Top $top Avatars by Popularity", "SELECT CONCAT(race,' ',class), count(*) AS c $suffix");
print "<td class=nobo>";
showstats("Top $top Avatars by Combined Level", "SELECT CONCAT(race,' ',class), sum(level) AS c $suffix");
print "</table>";
footer();
?>
+14
View File
@@ -0,0 +1,14 @@
<?
include('log.php');
include('util.php');
heading();
print "<h1 align=center>Player Testimonials</h1>";
$result = mysql_query("SELECT quote,source FROM pqquotes ORDER BY num DESC")
or die(mysql_error());
while($row = mysql_fetch_row($result))
quotation($row[0], $row[1]);
footer();
?>
+127
View File
@@ -0,0 +1,127 @@
<?
include('db.php');
include('util.php');
mysql_query("
CREATE TABLE IF NOT EXISTS pqsummary (
day CHAR(8) NOT NULL,
brags INTEGER,
posts INTEGER,
dls INTEGER,
PRIMARY KEY(day))
") or die(mysql_error());
$posts = array();
$brags = array();
$dls = array();
$result = mysql_query("SELECT day,posts,brags,dls FROM pqsummary");
while ($row = mysql_fetch_row ($result)) {
$posts[$row[0]] = $row[1];
$brags[$row[0]] = $row[2];
$dls[$row[0]] = $row[3];
}
// create the image
if (!isset($width))
$width = 300;
if (!isset($height))
$height = 100;
$margin = 12;
if (!isset($thickness))
$thickness=2;
if (!isset($gap))
$gap=$thickness;
$gif = ImageCreate($width,$height + $margin);
$bg = ImageColorAllocate($gif,225,225,255);
$tx = ImageColorAllocate($gif,0,220,92);
$black = ImageColorAllocate($gif,0,0,0);
$white = ImageColorAllocate($gif,255,255,255);
$red = ImageColorAllocate($gif,255,128,92);
ImageFilledRectangle($gif,0,0,$width,$height,$bg);
ImageFilledRectangle($gif,0,$height,$width,$height+50,$white);
$bcolor = ImageColorAllocate($gif,255,0,0);
$pcolor = ImageColorAllocate($gif,0,255,0);
$dcolor = ImageColorAllocate($gif,0,0,255);
//$bmax = 50000;
//$dmax = 10000;
//$pmax = 500;
$y=3;
if ($bmax) {
ImageString($gif,2,5,$y,"player activity / $bmax", $bcolor);
$y += 12;
}
if ($dmax) {
ImageString($gif,2,5,$y,"downloads / $dmax", $dcolor);
$y += 12;
}
if ($pmax) {
ImageString($gif,2,5,$y,"forum activity / $pmax", $pcolor);
$y += 12;
}
$bscale = $bmax / $width;
$pscale = $pmax / $width;
$dscale = $dmax / $width;
$x = 0;
$mstore = 0;
$day = strtotime("20020129");
$oneday = strtotime("0000-00-01");
$today = strtotime(date("Ymd"));
while ($x < $width) {
$d = date("Ymd",$day);
if ($day < $today && !isset($posts[$d])) {
$result = mysql_query("SELECT COUNT(*) FROM access_log WHERE uri = '/pq.zip/' AND time='$d'") or die(mysql_error());
$ds = mysql_result($result,0,0);
$dls[$d] = $ds;
$result = mysql_query("SELECT COUNT(*) FROM access_log WHERE INSTR(uri,'cmd=brag') > 0 AND time='$d'") or die(mysql_error());
$bs = mysql_result($result,0,0);
$brags[$d] = $bs;
$d2 = date("Y-m-d", $day);
$result = mysql_query("SELECT COUNT(*) FROM posts WHERE post_time='$d2'") or die(mysql_error());
$ps = mysql_result($result,0,0);
$posts[$d] = $ps;
mysql_query("INSERT INTO pqsummary SET day='$d',posts=$ps,brags=$bs,dls=$ds") or die(mysql_error());
}
$m = date("F",$day);
if ($mstore && ($m != $mstore)) {
ImageFilledRectangle($gif, $x, $height+2, $x, $height+$margin, $black);
ImageString($gif, 2, $x + 5, $height, $m, $black);
}
$mstore = $m;
if ($bmax) {
ImageFilledRectangle($gif, $x, $height-$brags[$d]*$height/$bmax, $x+$thickness-1, $height-1, $bcolor);
$x+=$thickness;
}
if ($pmax) {
ImageFilledRectangle($gif, $x, $height-$posts[$d]*$height/$pmax, $x+$thickness-1, $height-1, $pcolor);
$x+=$thickness;
}
if ($dmax) {
ImageFilledRectangle($gif, $x, $height-$dls[$d]*$height/$dmax, $x+$thickness-1, $height-1, $dcolor);
$x+=$thickness;
}
$x += $gap;
$d++;
$day = strtotime($d);
}
// send the image
header("content-type: image/png");
ImagePng($gif);
?>
+64
View File
@@ -0,0 +1,64 @@
<?
function arg($parm) {
return mysql_escape_string(stripslashes($parm));
}
function heading($title="Progress Quest") {
?>
<html>
<head>
<title><? echo($title) ?></title>
</head>
<body bgcolor=#ffffff alink=blue vlink=black>
<p align=center>
<img src=/pq.gif>
<font color=#404000>
<br>
<i>progressus imprimis</i>
<?
}
function footer() {
?>
<p align=center>
<a href=/>Home</a> -
<a href=/pq.html>Info</a> -
<a href=/dl>Download</a> -
<a href=/hi.php>Hall of Fame</a>/<a href=/hi.php?cheaters=1>Infamy</a> -
<a href=http://cafepress.com/pqm>Store</a> -
<a href=/stats.php>Stats</a> -
<a href=/bb>Forum</a>
<style><!--
a.dim:anchor, a.dim:visited { color: #808080 }
--></style>
<p align=center>
<small>
<font color=#808080>
&copy;2002 <a class=dim href=mailto:grumdrig@progressquest.com>grumdrig@progressquest.com</a>
</font></small>
</body></html>
<?
}
function quotation($quote,$source) {
?>
<p align=center>
<table width=60%>
<tr height=3em><td>
<tr><td>
<div style='padding: 1em; background-color: #f5f5ff; border: solid 1 #707090'>
<i>
<small>
<? echo($quote) ?></i>
<div align=right>
-<? echo($source) ?>
</div>
</small>
</div>
<tr height=3em><td>
</table>
<?
}
?>
+6
View File
@@ -0,0 +1,6 @@
<?
//include('../log.php');
//header('Location: http://www.geocities.com/grumdrig/index.html');
//header('Location: http://progressquest.com/dl/index.php?s=pq.zip');
header('Location: http://progressquest.com/');
?>