Redo home page.

Add recent/common bugs to new bug page.

Fix redirection on login page.

Resize logo image.
pull/193/head
Michael R Sweet 16 years ago
parent 5946d5637e
commit c8155c2ebd
  1. BIN
      www/images/logo-large.gif
  2. 101
      www/index.php
  3. 4
      www/login.php
  4. 78
      www/str.php
  5. 7
      www/style.css

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

@ -13,11 +13,66 @@ html_header();
?>
<h1 align='center'>Mini-XML: Lightweight XML Support Library</h1>
<h1><img src='images/logo-large.gif' style='margin-left: 20px; float: right;'
width='150' height='150' alt='Mini-XML logo'>Mini-XML: Lightweight XML
Library</h1>
<h2><img src='images/logo-large.gif'
style='margin-left: 20px; float: right;' width='300' height='300'
alt='Mini-XML logo'>Recent News</h2>
<p>Mini-XML is a small XML library that you can use to read and write XML and
XML-like data files in your application without requiring large non-standard
libraries. Mini-XML only requires an ANSI C compatible compiler (GCC works, as
do most vendors' ANSI C compilers) and a 'make' program.</p>
<p>Mini-XML provides the following functionality:</p>
<ul>
<li>Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded
XML files and strings.</li>
<li>Data is stored in a linked-list tree structure,
preserving the XML data hierarchy.</li>
<li>Supports arbitrary element names, attributes, and
attribute values with no preset limits, just available
memory.</li>
<li>Supports integer, real, opaque ("cdata"), and text data
types in "leaf" nodes.</li>
<li>Functions for creating, indexing, and managing trees of
data.</li>
<li>"Find" and "walk" functions for easily locating and
navigating trees of data.</li>
</ul>
<table width='100%' cellpadding='0' cellspacing='0' border='0' summary=''>
<tr><td valign='top'>
<h2>Documentation</h2>
<p><a href='documentation.php/intro.html'>Introduction</a></p>
<p><a href='documentation.php/install.html'>Building, Installing, and Packaging
Mini-XML</a></p>
<p><a href='documentation.php/basics.html'>Getting Started with Mini-XML</a></p>
<p><a href='documentation.php/advanced.html'>More Mini-XML Programming
Techniques</a></p>
<p><a href='documentation.php/mxmldoc.html'>Using the mxmldoc Utility</a></p>
<p><a href='documentation.php/license.html'>Mini-XML License</a></p>
<p><a href='documentation.php/relnotes.html'>Release Notes</a></p>
<p><a href='documentation.php/reference.html'>Library Reference</a></p>
</td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td valign='top'>
<h2>Recent News</h2>
<?
@ -38,45 +93,15 @@ while ($row = db_next($result))
else
$count .= " comments";
print("<p><span class='dateinfo'>$date, $count</span><br>\n"
."<a href='articles.php?L$id'>$title</a> - $abstract</p>\n");
print("<p><a href='articles.php?L$id'>$title</a> - $abstract<br>\n"
."<span class='dateinfo'>$date, $count</span></p>\n");
}
db_free($result);
?>
<h2>About Mini-XML</h2>
<p>Mini-XML is a small XML parsing library that you can use to read
XML and XML-like data files in your application without requiring
large non-standard libraries. Mini-XML only requires an ANSI C
compatible compiler (GCC works, as do most vendors' ANSI C
compilers) and a 'make' program.</p>
<p>Mini-XML provides the following functionality:</p>
<ul>
<li>Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded
XML files and strings.</li>
<li>Data is stored in a linked-list tree structure,
preserving the XML data hierarchy.</li>
<li>Supports arbitrary element names, attributes, and
attribute values with no preset limits, just available
memory.</li>
<li>Supports integer, real, opaque ("cdata"), and text data
types in "leaf" nodes.</li>
<li>Functions for creating, indexing, and managing trees of
data.</li>
<li>"Find" and "walk" functions for easily locating and
navigating trees of data.</li>
</ul>
</td></tr>
</table>
<? html_footer(); ?>

@ -164,9 +164,12 @@ else if ($argc == 0 || $argv[0] != "E")
if ($argc == 0 && $usererror != "")
print("<p><b>$usererror</b></p>\n");
$page = htmlspecialchars($page, ENT_QUOTES);
print("<p>If you are a registered $PROJECT_NAME developer, please enter "
."your username and password to login:</p>\n"
."<form method='POST' action='$PHP_SELF'>"
."<input type='hidden' name='PAGE' value='$page'>"
."<table width='100%'>\n"
."<tr><th align='right'>Username:</th>"
."<td><input type='text' name='USERNAME' size='16' maxsize='255'");
@ -201,6 +204,7 @@ else if ($argc == 0 || $argv[0] != "E")
."in the form below to register. An email will be sent to the "
."address you supply to confirm the registration:</p>\n"
."<form method='POST' action='$PHP_SELF?A'>"
."<input type='hidden' name='PAGE' value='$page'>"
."<table width='100%'>\n"
."<tr><th align='right'>Username:</th>"
."<td><input type='text' name='USERNAME' size='16' maxsize='255' "

@ -48,6 +48,8 @@ $subsystems = array(
);
$versions = array(
"+Will Not Fix",
"+None",
"Trunk",
"+3.0",
"+2.6",
@ -980,7 +982,6 @@ switch ($op)
$master_id = (int)$_POST["MASTER_ID"];
$summary = db_escape($_POST["SUMMARY"]);
$subsystem = db_escape($_POST["SUBSYSTEM"]);
$create_user = db_escape($_POST["CREATE_EMAIL"]);
$manager_email = db_escape($_POST["MANAGER_EMAIL"]);
$modify_user = db_escape($_COOKIE["FROM"]);
$contents = db_escape(trim($_POST["CONTENTS"]));
@ -996,7 +997,6 @@ switch ($op)
."subsystem = '$subsystem', "
."str_version = '$_POST[STR_VERSION]', "
."fix_version = '$_POST[FIX_VERSION]', "
."create_user = '$create_user', "
."manager_email = '$manager_email', "
."modify_date = $time, "
."modify_user = '$modify_user' "
@ -1160,8 +1160,7 @@ switch ($op)
print("</select></td></tr>\n");
print("<tr><th align='right'>Created By:</th>"
."<td><input type='text' name='CREATE_EMAIL' maxsize='128' "
."value='$create_user' size='40'></td></tr>\n");
."<td>$create_user</td></tr>\n");
print("<tr><th align='right'>Assigned To:</th>"
."<td><select name='MANAGER_EMAIL'>"
@ -1605,19 +1604,7 @@ switch ($op)
$summary = $_POST["SUMMARY"];
$version = $_POST["VERSION"];
$contents = $_POST["CONTENTS"];
if ($LOGIN_USER != "" && $LOGIN_LEVEL < AUTH_DEVEL)
$email = $LOGIN_USER;
else if (array_key_exists("EMAIL", $_POST) &&
validate_email($_POST["EMAIL"]))
{
$email = $_POST["EMAIL"];
setcookie("FROM", "$email", time() + 90 * 86400, "/");
}
else if (array_key_exists("FROM", $_COOKIE))
$email = $_COOKIE["FROM"];
else
$email = "";
$email = $LOGIN_USER;
if (array_key_exists("STRFILE", $_FILES))
{
@ -1634,13 +1621,7 @@ switch ($op)
}
else
{
if ($LOGIN_USER != "")
$email = $LOGIN_USER;
else if (array_key_exists("FROM", $_COOKIE))
$email = $_COOKIE["FROM"];
else
$email = "";
$email = $LOGIN_USER;
$npriority = 0;
$nscope = 0;
$summary = "";
@ -1649,9 +1630,6 @@ switch ($op)
$filename = "";
}
if (ereg("Anonymous.*", $email))
$email = "";
if ($REQUEST_METHOD == "POST" && $havedata)
{
$time = time();
@ -1719,12 +1697,12 @@ switch ($op)
if ($REQUEST_METHOD == "POST")
{
print("<p><b>Error:</b> Please fill in the fields marked in "
."<b><font color='red'>bold red</font></b> below and resubmit "
print("<p><b>Error:</b> Please fill in the fields marked "
."<span class='invalid'>like this</span> below and resubmit "
."your trouble report.</p>\n");
$hstart = "<font color='red'>";
$hend = "</font>";
$hstart = "<span class='invalid'>";
$hend = "</span>";
}
else
{
@ -1737,9 +1715,43 @@ switch ($op)
$hstart = "";
$hend = "";
}
print("<form method='POST' action='$PHP_SELF?N$options' "
$recent = time() - 90 * 86400;
$result = db_query("SELECT master_id, "
."count(master_id) AS count FROM str "
."WHERE master_id > 0 AND modify_date > $recent "
."GROUP BY master_id "
."ORDER BY count DESC, modify_date DESC");
if (db_count($result) > 0)
{
print("<hr noshade>\n"
."<p>Commonly reported bugs:</p>\n"
."<ul>\n");
$count = 0;
while ($row = db_next($result))
{
$count ++;
if ($count > 10)
break;
$common = db_query("SELECT summary, status, fix_version "
."FROM str WHERE id=$row[master_id]");
$crow = db_next($common);
$csummary = htmlspecialchars($crow["summary"], ENT_QUOTES);
$cstatus = $STR_STATUS_SHORT[$crow["status"]];
if ($crow["fix_version"] != "")
$cstatus .= ", $crow[fix_version]";
print("<li><a href='$PHP_SELF?L$row[master_id]$options'>"
."STR #$row[master_id]: $csummary ($cstatus)</a></li>\n");
}
print("</ul>\n");
}
}
print("<hr noshade>\n"
."<form method='POST' action='$PHP_SELF?N$options' "
."enctype='multipart/form-data'>"
."<input type='hidden' name='MAX_FILE_SIZE' value='10000000'>");

@ -143,3 +143,10 @@ TR.data1 TD, TR.data1 TH {
font-size: 80%;
font-style: italic;
}
.invalid {
background: red;
color: white;
font-weight: bold;
padding: 2px;
}

Loading…
Cancel
Save