mirror of
https://bitbucket.org/grumdrig/pq.git
synced 2026-09-30 01:01:00 -06:00
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:
commit
d3bba84017
184 files changed
+12251
No files matched your search
@@ -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>
|
||||
©2002 <a color=#808080 href=mailto:grumdrig@progressquest.com>grumdrig@progressquest.com</a>
|
||||
</table>
|
||||
</center>
|
||||
@@ -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 |
@@ -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 |
@@ -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>");
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user