Update of /cvsroot/wpdev/xmlscripts/documentation
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7633
Modified Files:
FAQ.html command.php config.inc.php event.php footer.inc.php
header.inc.php index.php method.php object.php style.css
Log Message:
Updates. Cleaned up some small html bugs.
Index: object.php
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/object.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** object.php 6 Apr 2004 21:52:53 -0000 1.5
--- object.php 20 Jun 2004 20:20:59 -0000 1.6
***************
*** 1,106 ****
! <?
! require_once('config.inc.php');
! ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
! <head>
! <title>Wolfpack Reference</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
! <style type="text/css">
! <!--
! body {
! margin-left: 0px;
! margin-top: 0px;
! margin-right: 0px;
! margin-bottom: 0px;
! }
! -->
! </style>
! <link href="style.css" rel="stylesheet" type="text/css">
! <style type="text/css">
! <!--
! a:link {
! color: #0000FF;
! text-decoration: none;
! }
! a:visited {
! text-decoration: none;
! color: #0000FF;
! }
! a:hover {
! text-decoration: underline;
! }
! a:active {
! text-decoration: none;
! }
! .style2 {
! color: #999999;
! font-weight: bold;
! }
! -->
! </style></head>
!
! <body>
! <?
! require_once('header.inc.php');
! ?>
! <a name="top"></a>
! <div align="center">
! <p><span class="maintitle">Wolfpack Object Reference </span></p>
! <table width="780" border="0" cellspacing="3" cellpadding="0">
! <tr valign="top">
! <td class="text">
! <?
$row = NULL;
! if ($_REQUEST['object']) {
! $name = mysql_escape_string($_REQUEST['object']);
$result = mysql_query("SELECT `object`,`description` FROM `documentation_objects` WHERE `object` = '$name';");
! if (mysql_num_rows($result) > 0) {
! $row = mysql_fetch_array($result);
}
! mysql_free_result($result);
}
! if ( $row || $row != NULL ) {
! ?>
! <p><span class="sectiontitle">OBJECT DESCRIPTION</span><br>
! <br>
! <strong>Name:</strong> <?=$row[0]?>
! <br>
! <br>
! <?
! if (strlen($row[1]) > 0) {
! ?>
! <strong>Description:</strong><br>
! <?=$row[1]?>
! <br>
! <?
! }
! ?>
! <br>
! <strong>Methods:</strong>
! <table width="100%" border="0" cellspacing="0" cellpadding="2">
! <?
$commands = array();
! $result = mysql_query("SELECT `method` FROM `documentation_objects_methods` WHERE `object` = '$name' ORDER BY `method` ASC;");
! while ($row = mysql_fetch_array($result)) {
! array_push($commands, $row[0]);
}
! mysql_free_result($result);
$cols = 7;
! $rows = ceil(sizeof($commands) / $cols);
! for ($row = 0; $row < $rows; ++$row) {
echo "<tr>\n";
! for ($col = 0; $col < $cols; ++$col) {
$id = $col * $rows + $row;
! if ($id < sizeof($commands)) {
! ?>
! <td>- <a href="#meth_<?=$commands[$id]?>"><?=$commands[$id]?></a></td>
! <?
! } else {
! echo "<td> </td>\n";
}
}
--- 1,75 ----
! <?php require_once('config.inc.php'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
! <head>
! <title>Wolfpack Reference</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
! <link href="./style.css" rel="stylesheet" type="text/css" />
! </head>
! <body>
! <?php require_once('header.inc.php'); ?>
! <a name="top"></a>
! <div align="center">
! <p><span class="maintitle">Wolfpack Object Reference</span></p>
! <table width="780" border="0" cellspacing="3" cellpadding="0">
! <tr valign="top">
! <td class="text">
! <?php
$row = NULL;
! if ( $_REQUEST['object'] )
! {
! $name = mysql_escape_string( $_REQUEST['object'] );
$result = mysql_query("SELECT `object`,`description` FROM `documentation_objects` WHERE `object` = '$name';");
! if ( mysql_num_rows( $result ) > 0 )
! {
! $row = mysql_fetch_array( $result );
}
! mysql_free_result( $result );
}
! if ( $row || $row != NULL )
! {
! ?>
! <p><span class="sectiontitle">OBJECT DESCRIPTION</span><br /><br />
! <strong>Name:</strong> <?=$row[0]?><br /><br />
! <?php
! if ( strlen( $row[1] ) > 0 )
! {
! ?>
! <strong>Description:</strong><br /><?=$row[1]?><br />
! <?php
! }
! ?>
! <br />
! <strong>Methods:</strong>
! <table width="100%" border="0" cellspacing="0" cellpadding="2">
! <?php
$commands = array();
! $result = mysql_query( "SELECT `method` FROM `documentation_objects_methods` WHERE `object` = '$name' ORDER BY `method` ASC;" );
! while ( $row = mysql_fetch_array( $result ) )
! {
! array_push( $commands, $row[0] );
}
! mysql_free_result( $result );
$cols = 7;
! $rows = ceil( sizeof( $commands ) / $cols );
! for ( $row = 0; $row < $rows; ++$row )
! {
echo "<tr>\n";
! for ( $col = 0; $col < $cols; ++$col )
! {
$id = $col * $rows + $row;
! if ( $id < sizeof( $commands ) )
! {
! ?>
! <td>- <a href="#meth_<?=$commands[$id]?>"><?=$commands[$id]?></a></td>
! <?php
! }
! else
! {
! echo "<td> </td>\n";
}
}
***************
*** 108,137 ****
}
?>
! </table>
! <p>
! <strong>Properties:</strong>
! <table width="100%" border="0" cellspacing="0" cellpadding="2">
! <?
$commands = array();
! $result = mysql_query("SELECT `property` FROM `documentation_objects_properties` WHERE `object` = '$name' ORDER BY `property` ASC;");
! while ($row = mysql_fetch_array($result)) {
! array_push($commands, $row[0]);
}
! mysql_free_result($result);
$cols = 7;
! $rows = ceil(sizeof($commands) / $cols);
! for ($row = 0; $row < $rows; ++$row) {
echo "<tr>\n";
! for ($col = 0; $col < $cols; ++$col) {
$id = $col * $rows + $row;
! if ($id < sizeof($commands)) {
! ?>
! <td>- <a href="#prop_<?=$commands[$id]?>"><?=$commands[$id]?></a></td>
! <?
! } else {
! echo "<td> </td>\n";
}
}
--- 77,112 ----
}
?>
! </table>
! <p>
! <strong>Properties:</strong>
! <table width="100%" border="0" cellspacing="0" cellpadding="2">
! <?php
$commands = array();
! $result = mysql_query( "SELECT `property` FROM `documentation_objects_properties` WHERE `object` = '$name' ORDER BY `property` ASC;" );
! while ( $row = mysql_fetch_array( $result ) )
! {
! array_push( $commands, $row[0] );
}
! mysql_free_result( $result );
$cols = 7;
! $rows = ceil( sizeof( $commands ) / $cols );
! for ( $row = 0; $row < $rows; ++$row )
! {
echo "<tr>\n";
! for ( $col = 0; $col < $cols; ++$col )
! {
$id = $col * $rows + $row;
! if ( $id < sizeof( $commands ) )
! {
! ?>
! <td>- <a href="#prop_<?=$commands[$id]?>"><?=$commands[$id]?></a></td>
! <?php
! }
! else
! {
! echo "<td> </td>\n";
}
}
***************
*** 139,268 ****
}
?>
! </table>
! <p><span class="sectiontitle">OBJECT METHODS</span><br>
! <br>
! <?
! // There could be multiple methods
! $i = 0;
! $result = mysql_query("SELECT `object`,`method`,`prototype`,`parameters`,`returnvalue`,`description` FROM `documentation_objects_methods` WHERE `object` = '$name' ORDER BY `method` ASC;");
! $count = mysql_num_rows($result);
! while ($row = mysql_fetch_array($result)) {
! ?>
! <a name="meth_<?=$row[1]?>"></a>
! <b><code style="font-size: 12px"><?=$row[2]?></code></b><br>
! <br>
! <?
! if (strlen($row[3]) > 0) {
! ?>
! <?=$row[3]?>
! <br>
! <br>
! <?
! }
! if (strlen($row[4]) > 0) {
! ?>
! <span class="style2">Return Value: </span><br>
! <?=$row[4]?>
! <p>
! <?
! }
! if (strlen($row[5]) > 0) {
! ?>
! <span class="style2">Description:</span><br>
! <?=$row[5]?>
! <br>
! <?
! }
! ?>
! <br><a href="#top">Back to top</a>
! <?
! if (++$i < $count) {
! echo '<hr size="1" noshade>';
! }
}
! ?>
! <span class="sectiontitle"><br>
! <br>
! OBJECT PROPERTIES </span><br>
! <br>
! <?
! // There could be multiple methods
! $i = 0;
! $result = mysql_query("SELECT `property`,`description`,`readonly` FROM `documentation_objects_properties` WHERE `object` = '$name' ORDER BY `property` ASC;");
! $count = mysql_num_rows($result);
! while ($row = mysql_fetch_array($result)) {
! ?>
! <a name="prop_<?=$row[0]?>"></a> <b><code style="font-size: 12px">
! <?=$row[0]?>
! </code></b><? if ($row[2] == 1) { echo '(read only)'; } ?><br>
! <br>
! <?
! if (strlen($row[1]) > 0) {
! ?>
! <span class="style2">Description:</span><br>
! <?=$row[1]?>
! <br>
! <?
}
! ?>
! <br><a href="#top">Back to top</a>
! <?
! if (++$i < $count) {
echo '<hr size="1" noshade>';
}
}
?>
! <br>
! <br>
! <?
! } else {
?>
! <span class="sectiontitle">SCRIPTING OBJECTS</span><br>
! An object in Wolfpack has several methods (functions working with the object) and property (data assigned to the object). This section will serve as a reference to all available classes of objects in Wolfpack. <br>
! Choose one of the object classes from the list at the bottom. </p>
! <table width="100%" border="0" cellspacing="0" cellpadding="2">
! <?
$commands = array();
$result = mysql_query("SELECT `object` FROM `documentation_objects` ORDER BY `object` ASC;");
! while ($row = mysql_fetch_array($result)) {
! array_push($commands, $row[0]);
}
! mysql_free_result($result);
$cols = 7;
! $rows = ceil(sizeof($commands) / $cols);
! for ($row = 0; $row < $rows; ++$row) {
echo "<tr>\n";
! for ($col = 0; $col < $cols; ++$col) {
$id = $col * $rows + $row;
! if ($id < sizeof($commands)) {
?>
! <td>- <a href="object.php?object=<?=$commands[$id]?>"><?=$commands[$id]?></a></td>
! <?
! } else {
! echo "<td> </td>\n";
}
}
echo "</tr>\n";
}
! ?>
! </table>
! <br>
! <?
}
- ?>
- </td>
- </tr>
- <tr valign="top">
- <td class="text"><a href="index.php"></a><a href="object.php">Back to the Object Overview </a><a href="index.php"><br>
- Back to the Wolfpack Reference</a></td>
- </tr>
- </table>
- <br>
- <?
- require_once('footer.inc.php');
?>
! </div>
! </body>
</html>
--- 114,247 ----
}
?>
! </table>
! <p>
! <span class="sectiontitle">OBJECT METHODS</span><br />
! <br />
! <?php
! // There could be multiple methods
! $i = 0;
! $result = mysql_query("SELECT `object`,`method`,`prototype`,`parameters`,`returnvalue`,`description` FROM `documentation_objects_methods` WHERE `object` = '$name' ORDER BY `method` ASC;");
! $count = mysql_num_rows($result);
! while ($row = mysql_fetch_array($result))
! {
! ?>
! <a name="meth_<?=$row[1]?>"></a>
! <b><code style="font-size: 12px"><?=$row[2]?></code></b><br />
! <br />
! <?php
! if ( strlen($row[3]) > 0 ) {
! ?>
! <?=$row[3]?><br /><br />
! <?php
}
! if ( strlen( $row[4] ) > 0 )
! {
! ?>
! <span class="style2">Return Value:</span><br /><?=$row[4]?><br />
! <?php
! }
! if ( strlen( $row[5] ) > 0 )
! {
! ?>
! <span class="style2">Description:</span><br />
! <?=$row[5]?><br />
! <?php
! }
! ?>
! <br /><a href="#top">Back to top</a>
! <?php
! if ( ++$i < $count )
! {
! echo '<hr size="1" noshade>';
! }
! }
! ?>
! <span class="sectiontitle"><br /><br />OBJECT PROPERTIES</span><br /><br />
! <?php
! // There could be multiple methods
! $i = 0;
! $result = mysql_query("SELECT `property`,`description`,`readonly` FROM `documentation_objects_properties` WHERE `object` = '$name' ORDER BY `property` ASC;");
! $count = mysql_num_rows($result);
! while ($row = mysql_fetch_array($result))
! {
! ?>
! <a name="prop_<?=$row[0]?>"></a><b><code style="font-size: 12px"><?=$row[0]?></code></b><? if ($row[2] == 1) { echo '(read only)'; } ?><br /><br />
! <?php
! if ( strlen($row[1]) > 0 )
! {
! ?>
! <span class="style2">Description:</span><br />
! <?=$row[1]?><br />
! <?php
}
! ?>
! <br /><a href="#top">Back to top</a>
! <?php
! if ( ++$i < $count )
! {
echo '<hr size="1" noshade>';
}
}
?>
! <br /><br />
! <?php
! }
! else
! {
?>
! <span class="sectiontitle">SCRIPTING OBJECTS</span><br />
! An object in Wolfpack has several methods (functions working with the object) and property (data assigned to the object). This section will serve as a reference to all available classes of objects in Wolfpack. <br />
! Choose one of the object classes from the list at the bottom.
! </p>
! <table width="100%" border="0" cellspacing="0" cellpadding="2">
! <?php
$commands = array();
$result = mysql_query("SELECT `object` FROM `documentation_objects` ORDER BY `object` ASC;");
! while ( $row = mysql_fetch_array( $result ) )
! {
! array_push( $commands, $row[0] );
}
! mysql_free_result( $result );
$cols = 7;
! $rows = ceil( sizeof( $commands ) / $cols );
! for ( $row = 0; $row < $rows; ++$row )
! {
echo "<tr>\n";
! for ( $col = 0; $col < $cols; ++$col )
! {
$id = $col * $rows + $row;
! if ( $id < sizeof( $commands ) )
! {
?>
! <td>- <a href="object.php?object=<?=$commands[$id]?>"><?=$commands[$id]?></a></td>
! <?php
! }
! else
! {
! echo "<td> </td>\n";
}
}
echo "</tr>\n";
}
! ?>
! </table>
! <br />
! <?php
}
?>
! </td>
! </tr>
! <tr valign="top">
! <td class="text">
! <a href="index.php"></a><a href="object.php">Back to the Object Overview </a><a href="index.php"><br />
! Back to the Wolfpack Reference</a>
! </td>
! </tr>
! </table>
! <br />
! <?php require_once('footer.inc.php'); ?>
! </div>
! </body>
</html>
Index: event.php
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/event.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** event.php 5 Apr 2004 18:19:19 -0000 1.2
--- event.php 20 Jun 2004 20:20:59 -0000 1.3
***************
*** 1,150 ****
! <?
! require_once('config.inc.php');
! ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
! <head>
! <title>Wolfpack Reference</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
! <style type="text/css">
! <!--
! body {
! margin-left: 0px;
! margin-top: 0px;
! margin-right: 0px;
! margin-bottom: 0px;
! }
! -->
! </style>
! <link href="style.css" rel="stylesheet" type="text/css">
! <style type="text/css">
! <!--
! a:link {
! color: #0000FF;
! text-decoration: none;
! }
! a:visited {
! text-decoration: none;
! color: #0000FF;
! }
! a:hover {
! text-decoration: underline;
! }
! a:active {
! text-decoration: none;
! }
! -->
! </style></head>
!
! <body>
! <table width="100%" border="0" cellspacing="0" cellpadding="0">
! <tr>
! <td bgcolor="#004B2C"><img src="top_logo.jpg" width="586" height="87"></td>
! </tr>
! <tr>
! <td height="3" bgcolor="#999999"><img src="spacer.gif" width="1" height="3"></td>
! </tr>
! </table>
! <div align="center">
! <p> <span class="maintitle">Wolfpack Event Reference </span></p>
! <table width="780" border="0" cellspacing="3" cellpadding="0">
! <tr valign="top">
! <td class="text"><?
$row = NULL;
! if ($_REQUEST['name']) {
! $name = mysql_escape_string($_REQUEST['name']);
! $result = mysql_query("SELECT `name`,`prototype`,`parameters`,`returnvalue`,`callcondition`,`notes` FROM documentation_events WHERE `name` = '$name';");
! if (mysql_num_rows($result) > 0) {
! $row = mysql_fetch_array($result);
}
! mysql_free_result($result);
}
!
! if ($row != NULL) {
! ?>
! <p><span class="sectiontitle">EVENT DESCRIPTION</span><br>
! <br>
! <strong>Event Name:</strong> <?=$row[0]?><br>
! <br>
! <strong>Prototype:</strong><br>
! <?=$row[1]?><br>
! <br>
! <?
! if (strlen($row[2]) > 0) {
! ?>
! <strong>Parameters:</strong><br>
! <?=$row[2]?><br>
! <br>
<?
! }
! if (strlen($row[3]) > 0) { ?>
! <strong>Return Value: </strong><br>
! <?=$row[3]?><br>
! <br>
! <?
! }
! if (strlen($row[4]) > 0) {
! ?>
! <strong>Call Condition:</strong><br>
! <?=$row[4]?><br>
! <br>
! <?
! }
! if(strlen($row[5]) > 0) {
! ?>
! <strong>Notes:</strong><br>
! <?=$row[5]?><br>
! <br>
! <?
! }
! } else {
?>
! <span class="sectiontitle">SCRIPTING EVENTS</span><br>
! Your scripts will be notified of certain events by event functions. To use one of these events, simply place the event function in your script. The name of event functions are case sensitive.<br>
! You can see a list of all available events at the bottom of this page.<br>
! </p>
! <?
! }
! ?></td>
! </tr>
! <tr valign="top">
! <td class="text"><span class="sectiontitle">OTHER EVENTS </span><br>
! <table width="100%" border="0" cellspacing="0" cellpadding="2">
! <?
! $commands = array();
! $result = mysql_query("SELECT name FROM documentation_events ORDER BY name ASC;");
! while ($row = mysql_fetch_array($result)) {
! array_push($commands, $row[0]);
}
! mysql_free_result($result);
!
! $cols = 7;
! $rows = ceil(sizeof($commands) / $cols);
! for ($row = 0; $row < $rows; ++$row) {
! echo "<tr>\n";
! for ($col = 0; $col < $cols; ++$col) {
! $id = $col * $rows + $row;
! if ($id < sizeof($commands)) {
?>
! <td>- <a href="event.php?name=<?=$commands[$id]?>"><?=$commands[$id]?></a></td>
! <?
! } else {
! echo "<td> </td>\n";
! }
}
- echo "</tr>\n";
}
?>
! </table><br> </td>
! </tr>
! <tr valign="top">
! <td class="text"><a href="index.php">Back to the Wolfpack Reference</a></td>
! </tr>
! </table>
! <br>
! <?
! require_once('footer.inc.php');
! ?></div>
! </body>
</html>
--- 1,132 ----
! <?php require_once('config.inc.php'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
! <head>
! <title>Wolfpack Reference</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
! <link href="./style.css" rel="stylesheet" type="text/css" />
! </head>
! <body>
! <?php require_once('./header.inc.php'); ?>
! <div align="center">
! <p><span class="maintitle">Wolfpack Event Reference</span></p>
! <table width="780" border="0" cellspacing="3" cellpadding="0">
! <tr valign="top">
! <td class="text">
! <?php
$row = NULL;
! if ( $_REQUEST['name'] )
! {
! $name = mysql_escape_string( $_REQUEST['name'] );
! $result = mysql_query( "SELECT `name`,`prototype`,`parameters`,`returnvalue`,`callcondition`,`notes` FROM documentation_events WHERE `name` = '$name';" );
! if ( mysql_num_rows( $result ) > 0 )
! {
! $row = mysql_fetch_array( $result );
}
! mysql_free_result( $result );
}
! if ( $row != NULL )
! {
! ?>
! <p>
! <span class="sectiontitle">EVENT DESCRIPTION</span><br />
! <br />
! <strong>Event Name:</strong> <?=$row[0]?><br />
! <br />
! <strong>Prototype:</strong><br />
! <?=$row[1]?><br />
! <br />
<?
! if ( strlen( $row[2] ) > 0 )
! {
?>
! <strong>Parameters:</strong><br />
! <?=$row[2]?><br />
! <br />
! <?php
}
! if ( strlen( $row[3] ) > 0 )
! {
! ?>
! <strong>Return Value:</strong><br />
! <?=$row[3]?><br />
! <br />
! <?php
! }
! if ( strlen( $row[4] ) > 0 )
! {
! ?>
! <strong>Call Condition:</strong><br />
! <?=$row[4]?><br />
! <br />
! <?php
! }
! if( strlen( $row[5] ) > 0 )
! {
! ?>
! <strong>Notes:</strong><br />
! <?=$row[5]?><br />
! <br />
! <?php
! }
! }
! else
! {
! ?>
! <span class="sectiontitle">SCRIPTING EVENTS</span><br />
! Your scripts will be notified of certain events by event functions. To use one of these events, simply place the event function in your script. The name of event functions are case sensitive.<br />
! You can see a list of all available events at the bottom of this page.<br />
! </p>
! <?php
! }
! ?>
! </td>
! </tr>
! <tr valign="top">
! <td class="text">
! <span class="sectiontitle">OTHER EVENTS </span><br />
! <table width="100%" border="0" cellspacing="0" cellpadding="2">
! <?php
! $commands = array();
! $result = mysql_query( "SELECT name FROM documentation_events ORDER BY name ASC;" );
! while ( $row = mysql_fetch_array( $result ) )
! {
! array_push( $commands, $row[0] );
! }
! mysql_free_result( $result );
! $cols = 7;
! $rows = ceil( sizeof( $commands ) / $cols );
!
! for ( $row = 0; $row < $rows; ++$row )
! {
! echo "<tr>\n";
! for ( $col = 0; $col < $cols; ++$col )
! {
! $id = $col * $rows + $row;
! if ( $id < sizeof( $commands ) )
! {
?>
! <td>- <a href="event.php?name=<?=$commands[$id]?>"><?=$commands[$id]?></a></td>
! <?php
! }
! else
! {
! echo "<td> </td>\n";
}
}
+ echo "</tr>\n";
+ }
?>
! </table>
! <br />
! </td>
! </tr>
! <tr valign="top">
! <td class="text"><a href="./index.php">Back to the Wolfpack Reference</a></td>
! </tr>
! </table>
! <br />
! <?php require_once('footer.inc.php'); ?>
! </body>
</html>
Index: style.css
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/style.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** style.css 5 Apr 2004 20:52:44 -0000 1.2
--- style.css 20 Jun 2004 20:20:59 -0000 1.3
***************
*** 1,2 ****
--- 1,10 ----
+
+ body {
+ margin-left: 0px;
+ margin-top: 0px;
+ margin-right: 0px;
+ margin-bottom: 0px;
+ }
+
.maintitle {
font-family: "Trebuchet MS", Arial, Helvetica;
***************
*** 5,8 ****
--- 13,17 ----
color: #336633;
}
+
.smalltext {
font-family: "Trebuchet MS", Arial, Helvetica;
***************
*** 10,13 ****
--- 19,23 ----
color: #999999;
}
+
.sectiontitle {
***************
*** 17,25 ****
color: #666666;
}
.text {
font-family: "Trebuchet MS", Arial, Helvetica;
font-size: 12px;
}
img {
border: 0;
! }
\ No newline at end of file
--- 27,55 ----
color: #666666;
}
+
.text {
font-family: "Trebuchet MS", Arial, Helvetica;
font-size: 12px;
}
+
img {
border: 0;
! }
!
! a:link {
! color: #0000FF;
! text-decoration: none;
! }
!
! a:visited {
! text-decoration: none;
! color: #0000FF;
! }
!
! a:hover {
! text-decoration: underline;
! }
!
! a:active {
! text-decoration: none;
! }
Index: index.php
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/index.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** index.php 6 Apr 2004 18:24:24 -0000 1.4
--- index.php 20 Jun 2004 20:20:59 -0000 1.5
***************
*** 1,3 ****
! <?
require_once('config.inc.php');
global $SETTINGS;
--- 1,3 ----
! <?php
require_once('config.inc.php');
global $SETTINGS;
***************
*** 5,92 ****
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
! <head>
! <title>Wolfpack Reference</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
! <style type="text/css">
! <!--
! body {
! margin-left: 0px;
! margin-top: 0px;
! margin-right: 0px;
! margin-bottom: 0px;
! }
! -->
! </style>
! <link href="style.css" rel="stylesheet" type="text/css">
! <style type="text/css">
! <!--
! a:link {
! color: #0000FF;
! text-decoration: none;
! }
! a:visited {
! text-decoration: none;
! color: #0000FF;
! }
! a:hover {
! text-decoration: underline;
! }
! a:active {
! text-decoration: none;
! }
! -->
! </style></head>
!
! <body>
! <?
! require_once('header.inc.php');
! ?>
! <div align="center"><br><span class="maintitle">Wolfpack Reference</span><br>
! <br>
! <table width="740" border="0" cellspacing="3" cellpadding="2">
! <tr align="left" valign="top">
! <td width="33%" class="text"><div align="left"><span class="sectiontitle">INGAME COMMANDS</span><br>
! These commands can be used by players, gms and admins while in the game. This section gives you an overview over all available commands and how to use them.<br>
! <a href="command.php">Read more... (<?
! $result = mysql_query("SELECT COUNT(*) FROM documentation_commands;");
! echo array_pop(mysql_fetch_array($result));
! mysql_free_result($result);
! ?> commands)</a><br>
! <br>
! </div></td>
! <td width="33%" class="text"><span class="sectiontitle">SCRIPTING OBJECTS</span><br>
! This section of the documentation gives you an overview over available wolfpack specific objects, their properties and methods and in some cases how to create them.<br>
! <a href="object.php">Read more... (<?
! $result = mysql_query("SELECT COUNT(*) FROM documentation_objects;");
! echo array_pop(mysql_fetch_array($result));
! mysql_free_result($result);
! ?> objects)</a></td>
! <td width="33%" class="text"><span class="sectiontitle">SCRIPTING LIBRARY</span><br>
! Wolfpack comes with a sophisticated library of scripts. This section of the documentation provides an overview over the library and its functions.<br>
! <a href="#">Read more... </a></td>
! </tr>
! </table>
! <hr width="740" size="1" noshade>
!
! <table width="740" border="0" cellpadding="2" cellspacing="3">
! <tr align="left" valign="top">
! <td width="33%" class="text"><span class="sectiontitle">SCRIPTING EVENTS</span><br>
! This section describes the events your scripts will be notified about.<br>
! <a href="event.php">Read more... (<?
! $result = mysql_query("SELECT COUNT(*) FROM documentation_events;");
! echo array_pop(mysql_fetch_array($result));
! mysql_free_result($result);
! ?> events)</a><br></td><td width="33%" class="text"><span class="sectiontitle">DEFINITION TAGS</span><br>
! This section provides an overview over the tags used in the Wolfpack XML definitions.
! <a href="#">Read more...</a></td>
! <td width="33%" class="text"><span class="sectiontitle">MISCELLANEOUS</span><br>
! Miscelleneous information can be found in this section. Links, configuration and setup among other things.<br>
! <a href="#">Read more...</a> </td>
! </tr>
! </table>
! <br>
! <?
! require_once('footer.inc.php');
! ?></div>
! </body>
</html>
--- 5,76 ----
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
! <head>
! <title>Wolfpack Reference</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
! <link href="./style.css" rel="stylesheet" type="text/css" />
! </head>
! <body>
! <?php require_once('header.inc.php'); ?>
! <div align="center">
! <br />
! <span class="maintitle">Wolfpack Reference</span><br />
! <br />
! <table width="740" border="0" cellspacing="3" cellpadding="2">
! <tr align="left" valign="top">
! <td width="33%" class="text">
! <div align="left">
! <span class="sectiontitle">INGAME COMMANDS</span><br />
! These commands can be used by players, gms and admins while in the game. This section gives you an overview over all available commands and how to use them.<br />
! <a href="command.php">Read more... (<?
! $result = mysql_query("SELECT COUNT(*) FROM documentation_commands;");
! echo array_pop(mysql_fetch_array($result));
! mysql_free_result($result);
! ?> commands)</a><br />
! <br />
! </div>
! </td>
! <td width="33%" class="text">
! <span class="sectiontitle">SCRIPTING OBJECTS</span><br />
! This section of the documentation gives you an overview over available wolfpack specific objects, their properties and methods and in some cases how to create them.<br />
! <a href="object.php">Read more... (<?
! $result = mysql_query("SELECT COUNT(*) FROM documentation_objects;");
! echo array_pop(mysql_fetch_array($result));
! mysql_free_result($result);
! ?> objects)</a>
! </td>
! <td width="33%" class="text">
! <span class="sectiontitle">SCRIPTING LIBRARY</span><br />
! Wolfpack comes with a sophisticated library of scripts. This section of the documentation provides an overview over the library and its functions.<br />
! <a href="#">Read more... </a>
! </td>
! </tr>
! </table>
! <hr width="740" size="1" noshade="noshade" />
! <table width="740" border="0" cellpadding="2" cellspacing="3">
! <tr align="left" valign="top">
! <td width="33%" class="text">
! <span class="sectiontitle">SCRIPTING EVENTS</span><br />
! This section describes the events your scripts will be notified about.<br />
! <a href="event.php">Read more... (<?
! $result = mysql_query("SELECT COUNT(*) FROM documentation_events;");
! echo array_pop(mysql_fetch_array($result));
! mysql_free_result($result);
! ?> events)</a><br />
! </td>
! <td width="33%" class="text">
! <span class="sectiontitle">DEFINITION TAGS</span><br />
! This section provides an overview over the tags used in the Wolfpack XML definitions.
! <a href="#">Read more...</a>
! </td>
! <td width="33%" class="text">
! <span class="sectiontitle">MISCELLANEOUS</span><br />
! Miscelleneous information can be found in this section. Links, configuration and setup among other things.<br />
! <a href="#">Read more...</a>
! </td>
! </tr>
! </table>
! <br />
! <?php require_once('footer.inc.php'); ?>
! </div>
! </body>
</html>
Index: config.inc.php
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/config.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** config.inc.php 5 Apr 2004 20:52:44 -0000 1.3
--- config.inc.php 20 Jun 2004 20:20:59 -0000 1.4
***************
*** 1,3 ****
! <?
// Change these settings to whatever you need.
$db_host = 'localhost';
--- 1,3 ----
! <?php
// Change these settings to whatever you need.
$db_host = 'localhost';
Index: header.inc.php
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/header.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** header.inc.php 6 Apr 2004 18:24:24 -0000 1.2
--- header.inc.php 20 Jun 2004 20:20:59 -0000 1.3
***************
*** 1,8 ****
! <table width="100%" border="0" cellspacing="0" cellpadding="0">
! <tr>
! <td bgcolor="#004B2C"><a href="./index.php"><img src="top_logo.jpg" width="586" height="87" border="0"/></a></td>
! </tr>
! <tr>
! <td height="3" bgcolor="#999999"><img src="spacer.gif" width="1" height="3" /></td>
! </tr>
! </table>
\ No newline at end of file
--- 1,9 ----
!
! <table width="100%" border="0" cellspacing="0" cellpadding="0">
! <tr>
! <td bgcolor="#004B2C"><a href="./index.php"><img src="./top_logo.jpg" width="586" height="87" border="0"/></a></td>
! </tr>
! <tr>
! <td height="3" bgcolor="#999999"><img src="./spacer.gif" width="1" height="3" /></td>
! </tr>
! </table>
Index: footer.inc.php
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/footer.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** footer.inc.php 20 Jun 2004 20:15:45 -0000 1.3
--- footer.inc.php 20 Jun 2004 20:20:59 -0000 1.4
***************
*** 1,7 ****
! <span class="smalltext">Generated: <?
! echo date('d.m.Y H:M', $SETTINGS['generated']);
! ?> | Version: <?
! echo $SETTINGS['version'];
! ?></span><br>
! <span class="smalltext">© 2004 Wolfpack Team |
! <a href="http://www.wpdev.org" target="_blank">http://www.wpdev.org</a></span>
\ No newline at end of file
--- 1,4 ----
!
! <span class="smalltext">Generated: <?=date('d.m.Y H:m', $SETTINGS['generated'])?> | Version: <?=$SETTINGS['version']?></span>
! <br />
! <span class="smalltext">© 2004 Wolfpack Team | <a href="http://www.wpdev.org" target="_blank">http://www.wpdev.org</a></span>
Index: method.php
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/method.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** method.php 5 Apr 2004 20:52:44 -0000 1.2
--- method.php 20 Jun 2004 20:20:59 -0000 1.3
***************
*** 1,148 ****
! <?
! require_once('config.inc.php');
! ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
! <head>
! <title>Wolfpack Reference</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
! <style type="text/css">
! <!--
! body {
! margin-left: 0px;
! margin-top: 0px;
! margin-right: 0px;
! margin-bottom: 0px;
! }
! -->
! </style>
! <link href="style.css" rel="stylesheet" type="text/css">
! <style type="text/css">
! <!--
! a:link {
! color: #0000FF;
! text-decoration: none;
! }
! a:visited {
! text-decoration: none;
! color: #0000FF;
! }
! a:hover {
! text-decoration: underline;
! }
! a:active {
! text-decoration: none;
! }
! -->
! </style></head>
!
! <body>
! <?
! require_once('header.inc.php');
! ?>
! <div align="center">
! <p> <span class="maintitle">Wolfpack Object Reference </span></p>
! <table width="780" border="0" cellspacing="3" cellpadding="0">
! <tr valign="top">
! <td class="text"><?
$row = NULL;
! if ($_REQUEST['object'] && $_REQUEST['method']) {
! $object = mysql_escape_string($_REQUEST['object']);
! $method = mysql_escape_string($_REQUEST['method']);
! $result = mysql_query("SELECT `object`,`method`,`prototype`,`parameters`,`returnvalue`,`description` FROM documentation_objects_methods WHERE `object` = '$object' AND `method` = '$method';");
! if (mysql_num_rows($result) > 0) {
! $row = mysql_fetch_array($result);
! $count = mysql_num_rows($result);
}
! mysql_free_result($result);
! }
!
! if ($row != NULL) {
! ?><span class="sectiontitle"> METHOD DESCRIPTION</span><br> <br>
! <strong>Method Name:</strong> <?=$row[1]?>
! <br>
! <hr size="1" noshade>
! <?
! // There could be multiple methods
! $i = 0;
! $result = mysql_query("SELECT `object`,`method`,`prototype`,`parameters`,`returnvalue`,`description` FROM documentation_objects_methods WHERE `object` = '$object' AND `method` = '$method';");
! while ($row = mysql_fetch_array($result)) {
! ?> <code><?=$row[2]?> </code><br>
! <br>
! <?
! if (strlen($row[3]) > 0) {
! ?>
! <?=$row[3]?>
! <br>
! <br>
! <?
}
! if (strlen($row[4]) > 0) { ?>
! <strong>Return Value: </strong><br>
! <?=$row[4]?> <p>
! <?
! }
! if (strlen($row[5]) > 0) {
! ?>
! <strong>Description:</strong><br>
! <?=$row[5]?>
! <br>
! <?
}
! ?>
! <hr size="1" noshade>
! <?
! }
! }
!
?>
! </p> </td>
! </tr>
! <tr valign="top">
! <td class="text"><table width="100%" border="0" cellspacing="0" cellpadding="2">
! <tr>
! <td colspan="7"><span class="sectiontitle">OBJECT METHODS</span></td>
! </tr>
! <?
! $commands = array();
! $result = mysql_query("SELECT `method` FROM documentation_objects_methods ORDER BY `method` ASC;");
! while ($row = mysql_fetch_array($result)) {
! array_push($commands, $row[0]);
}
! mysql_free_result($result);
! $cols = 7;
! $rows = ceil(sizeof($commands) / $cols);
! for ($row = 0; $row < $rows; ++$row) {
! echo "<tr>\n";
! for ($col = 0; $col < $cols; ++$col) {
! $id = $col * $rows + $row;
! if ($id < sizeof($commands)) {
?>
! <td>- <a href="method.php?object=<?=$_REQUEST['object']?>&method=<?=$commands[$id]?>">
! <?=$commands[$id]?>
! </a></td>
! <?
! } else {
! echo "<td> </td>\n";
! }
}
- echo "</tr>\n";
}
?>
! </table>
! <br></td>
! </tr>
! <tr valign="top">
! <td class="text"><a href="object.php?object=<?=$_REQUEST['object']?>">Back to the Object Details </a><br>
! <a href="object.php">Back to the Object Reference </a><a href="index.php"><br>
! Back to the Wolfpack Reference</a></td>
! </tr>
! </table>
! <br>
! <?
! require_once('footer.inc.php');
! ?></div>
! </body>
</html>
--- 1,125 ----
! <?php require_once('config.inc.php'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
! <head>
! <title>Wolfpack Reference</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
! <link href="./style.css" rel="stylesheet" type="text/css" />
! </head>
! <body>
! <?php require_once('header.inc.php'); ?>
! <div align="center">
! <p><span class="maintitle">Wolfpack Object Reference</span></p>
! <table width="780" border="0" cellspacing="3" cellpadding="0">
! <tr valign="top">
! <td class="text">
! <?php
$row = NULL;
! if ( $_REQUEST['object'] && $_REQUEST['method'] )
! {
! $object = mysql_escape_string( $_REQUEST['object'] );
! $method = mysql_escape_string( $_REQUEST['method'] );
! $result = mysql_query( "SELECT `object`,`method`,`prototype`,`parameters`,`returnvalue`,`description` FROM documentation_objects_methods WHERE `object` = '$object' AND `method` = '$method';" );
! if ( mysql_num_rows( $result ) > 0 )
! {
! $row = mysql_fetch_array( $result );
! $count = mysql_num_rows( $result );
}
! mysql_free_result( $result );
}
! if ( $row != NULL )
! {
! ?>
! <span class="sectiontitle">METHOD DESCRIPTION</span><br /><br />
! <strong>Method Name:</strong> <?=$row[1]?><br />
! <hr size="1" noshade="noshade" />
! <?php
! // There could be multiple methods
! $i = 0;
! $result = mysql_query( "SELECT `object`,`method`,`prototype`,`parameters`,`returnvalue`,`description` FROM documentation_objects_methods WHERE `object` = '$object' AND `method` = '$method';" );
! while ( $row = mysql_fetch_array( $result ) )
! {
! ?>
! <code><?=$row[2]?></code><br /><br />
! <?php
! if ( strlen( $row[3] ) > 0 )
! {
! ?>
! <?=$row[3]?><br /><br />
! <?php
! }
! if ( strlen( $row[4] ) > 0 )
! {
! ?>
! <strong>Return Value:</strong><br /><?=$row[4]?><br />
! <?php
}
! if (strlen($row[5]) > 0)
! {
?>
! <strong>Description:</strong><br /><?=$row[5]?><br />
! <?php
! }
! ?>
! <hr size="1" noshade="noshade" />
! <?php
}
! }
! ?>
! </td>
! </tr>
! <tr valign="top">
! <td class="text"><table width="100%" border="0" cellspacing="0" cellpadding="2">
! <tr>
! <td colspan="7">
! <span class="sectiontitle">OBJECT METHODS</span></td><br />
! <table width="100%" border="0" cellspacing="0" cellpadding="2">
! <?php
! $commands = array();
! $result = mysql_query( "SELECT `method` FROM documentation_objects_methods ORDER BY `method` ASC;" );
! while ( $row = mysql_fetch_array( $result ) )
! {
! array_push( $commands, $row[0] );
! }
! mysql_free_result( $result );
! $cols = 7;
! $rows = ceil(sizeof($commands) / $cols);
! for ( $row = 0; $row < $rows; ++$row )
! {
! echo "<tr>\n";
! for ( $col = 0; $col < $cols; ++$col )
! {
! $id = $col * $rows + $row;
! if ( $id < sizeof( $commands ) )
! {
?>
! <td>- <a href="method.php?object=<?=$_REQUEST['object']?>&method=<?=$commands[$id]?>"><?=$commands[$id]?></a></td>
! <?php
! }
! else
! {
! echo "<td> </td>\n";
}
}
+ echo "</tr>\n";
+ }
?>
! </table>
! <br />
! </td>
! </tr>
! <tr valign="top">
! <td class="text">
! <a href="object.php?object=<?=$_REQUEST['object']?>">Back to the Object Details </a><br />
! <a href="object.php">Back to the Object Reference </a><a href="index.php"><br />
! Back to the Wolfpack Reference</a>
! </td>
! </tr>
! </table>
! <br />
! <?php require_once('footer.inc.php'); ?>
! </div>
! </body>
</html>
Index: command.php
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/command.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** command.php 5 Apr 2004 20:52:44 -0000 1.3
--- command.php 20 Jun 2004 20:20:59 -0000 1.4
***************
*** 1,116 ****
! <?
! require_once('config.inc.php');
! ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
! <head>
! <title>Wolfpack Reference</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
! <style type="text/css">
! <!--
! body {
! margin-left: 0px;
! margin-top: 0px;
! margin-right: 0px;
! margin-bottom: 0px;
! }
! -->
! </style>
! <link href="style.css" rel="stylesheet" type="text/css">
! <style type="text/css">
! <!--
! a:link {
! color: #0000FF;
! text-decoration: none;
! }
! a:visited {
! text-decoration: none;
! color: #0000FF;
! }
! a:hover {
! text-decoration: underline;
! }
! a:active {
! text-decoration: none;
! }
! -->
! </style></head>
!
! <body>
! <?
! require_once('header.inc.php');
! ?>
! <div align="center">
! <p> <span class="maintitle">Wolfpack Command Reference </span></p>
! <table width="780" border="0" cellspacing="3" cellpadding="0">
! <tr valign="top">
! <td class="text"><?
$row = NULL;
! if ($_REQUEST['name']) {
! $name = mysql_escape_string($_REQUEST['name']);
! $result = mysql_query("SELECT `name`,`description`,`usage`,`notes` FROM documentation_commands WHERE `name` = '$name';");
! if (mysql_num_rows($result) > 0) {
! $row = mysql_fetch_array($result);
}
! mysql_free_result($result);
}
!
! if ($row != NULL) {
! ?><span class="sectiontitle">COMMAND DESCRIPTION</span><br>
! <br> <strong>Command Name:</strong> <?=$row[0]?><br>
! <br>
! <strong>Short Description:</strong> <?=$row[1]?><br>
! <br>
! <?
! if (strlen($row[2]) > 0) {
! ?>
! <strong>Usage:</strong><br>
! <?=$row[2]?><br>
! <br>
! <?
}
!
! if (strlen($row[3]) > 0) {
! ?>
! <strong>Notes:</strong><br>
! <?=$row[3]?><br>
! <br>
! <?
}
- } else {
?>
!
! <span class="sectiontitle">INGAME COMMANDS</span><br>
! To use one of the commands in this section, you have to know about your <em>Command Prefix</em> first. The default command prefix is the character <strong>'</strong>, but you can change it to any character you like in your wolfpack.xml file. If you know your command prefix, simply prepend it to the name of the command and say it ingame. The command will then be executed. <br>
! The name of the command is case insensitive.<br>
! You can see a list of all available commands at the bottom of this page.<br><br>
! <?
! }
! ?></td>
! </tr>
! <tr valign="top">
! <td class="text"><span class="sectiontitle">OTHER COMMANDS</span><br>
! <table width="100%" border="0" cellspacing="0" cellpadding="2">
! <?
! $commands = array();
! $result = mysql_query("SELECT name FROM documentation_commands ORDER BY name ASC;");
! while ($row = mysql_fetch_array($result)) {
! array_push($commands, $row[0]);
}
! mysql_free_result($result);
$cols = 7;
! $rows = ceil(sizeof($commands) / $cols);
! for ($row = 0; $row < $rows; ++$row) {
echo "<tr>\n";
! for ($col = 0; $col < $cols; ++$col) {
$id = $col * $rows + $row;
! if ($id < sizeof($commands)) {
?>
! <td>- <a href="command.php?name=<?=$commands[$id]?>"><?=$commands[$id]?></a></td>
! <?
! } else {
! echo "<td> </td>\n";
}
}
--- 1,98 ----
! <?php require_once('config.inc.php'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
! <head>
! <title>Wolfpack Reference</title>
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
! <link href="./style.css" rel="stylesheet" type="text/css" />
! </head>
! <body>
! <?php require_once('./header.inc.php'); ?>
! <div align="center">
! <p><span class="maintitle">Wolfpack Command Reference </span></p>
! <table width="780" border="0" cellspacing="3" cellpadding="0">
! <tr valign="top">
! <td class="text">
! <?php
$row = NULL;
! if ( $_REQUEST['name'] )
! {
! $name = mysql_escape_string( $_REQUEST['name'] );
! $result = mysql_query( "SELECT `name`,`description`,`usage`,`notes` FROM documentation_commands WHERE `name` = '$name';" );
! if ( mysql_num_rows( $result ) > 0 )
! {
! $row = mysql_fetch_array( $result );
}
! mysql_free_result( $result );
}
! if ( $row != NULL )
! {
! ?>
! <span class="sectiontitle">COMMAND DESCRIPTION</span><br />
! <br /><strong>Command Name:</strong> <?=$row[0]?><br />
! <br />
! <strong>Short Description:</strong> <?=$row[1]?><br />
! <br />
! <?php
! if ( strlen( $row[2] ) > 0 )
! {
! ?>
! <strong>Usage:</strong><br />
! <?=$row[2]?><br />
! <br />
! <?php
! }
! if ( strlen( $row[3] ) > 0 )
! {
! ?>
! <strong>Notes:</strong><br />
! <?=$row[3]?><br />
! <br />
! <?php
! }
}
! else
! {
! ?>
! <span class="sectiontitle">INGAME COMMANDS</span><br />
! To use one of the commands in this section, you have to know about your <em>Command Prefix</em> first. The default command prefix is the character <strong>'</strong>, but you can change it to any character you like in your wolfpack.xml file. If you know your command prefix, simply prepend it to the name of the command and say it ingame. The command will then be executed. <br />
! The name of the command is case insensitive.<br />
! You can see a list of all available commands at the bottom of this page.<br /><br />
! <?php
}
?>
! </td>
! </tr>
! <tr valign="top">
! <td class="text">
! <span class="sectiontitle">OTHER COMMANDS</span><br />
! <table width="100%" border="0" cellspacing="0" cellpadding="2">
! <?php
! $commands = array();
! $result = mysql_query( "SELECT name FROM documentation_commands ORDER BY name ASC;" );
! while ( $row = mysql_fetch_array( $result ) )
! {
! array_push( $commands, $row[0] );
}
! mysql_free_result( $result );
$cols = 7;
! $rows = ceil( sizeof( $commands ) / $cols );
! for ( $row = 0; $row < $rows; ++$row )
! {
echo "<tr>\n";
! for ( $col = 0; $col < $cols; ++$col )
! {
$id = $col * $rows + $row;
! if ( $id < sizeof( $commands ) )
! {
?>
! <td>- <a href="command.php?name=<?=$commands[$id]?>"><?=$commands[$id]?></a></td>
! <?php
! }
! else
! {
! echo "<td> </td>\n";
}
}
***************
*** 118,131 ****
}
?>
! </table><br> </td>
! </tr>
! <tr valign="top">
! <td class="text"><a href="index.php">Back to the Wolfpack Reference</a></td>
! </tr>
! </table>
! <br>
! <?
! require_once('footer.inc.php');
! ?></div>
! </body>
</html>
--- 100,114 ----
}
?>
! </table>
! <br />
! </td>
! </tr>
! <tr valign="top">
! <td class="text"><a href="index.php">Back to the Wolfpack Reference</a></td>
! </tr>
! </table>
! <br />
! <?php require_once('./footer.inc.php'); ?>
! </div>
! </body>
</html>
Index: FAQ.html
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/FAQ.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FAQ.html 18 Jun 2004 22:45:47 -0000 1.3
--- FAQ.html 20 Jun 2004 20:20:59 -0000 1.4
***************
*** 133,136 ****
--- 133,142 ----
font-family: Fixed, Arial;
}
+ div.smalltext {
+ font-family: "Trebuchet MS", Arial, Helvetica;
+ font-size: 10px;
+ color: #999999;
+ text-align: center;
+ }
-->
</style>
***************
*** 139,142 ****
--- 145,149 ----
<div class="header"><img src="top_logo.jpg" style="width:586px;height:87px;" alt="" /></div>
<div class="header2"><img src="spacer.gif" style="width:1px;height:3px;" alt="" /></div>
+ <a name="top"></a>
<br />
<!-- QUESTIONS -->
***************
*** 145,149 ****
Frequently Asked Questions<br />
<br />
! Table of Contents
<ul class="toc">
<li><a href="#01">What is new in Wolfpack 13.x.x?</a></li>
--- 152,156 ----
Frequently Asked Questions<br />
<br />
! Table of Contents<br />
<ul class="toc">
<li><a href="#01">What is new in Wolfpack 13.x.x?</a></li>
***************
*** 154,158 ****
<ul>
<li><a href="#05a">Using MSVC.</a></li>
! <li><a href="#05b">Using Cygwin/MinGW</a></li>
</ul>
</li>
--- 161,165 ----
<ul>
<li><a href="#05a">Using MSVC.</a></li>
! <li><a href="#05b">Using Cygwin/MinGW.</a></li>
</ul>
</li>
***************
*** 191,194 ****
--- 198,202 ----
</ul>
</div>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
</li>
<!-- Answer 02 -->
***************
*** 202,205 ****
--- 210,214 ----
</ul>
</div>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
</li>
<!-- Answer 03 -->
***************
*** 224,227 ****
--- 233,237 ----
Naturally, the better your hardware the better your server's performance will be.
</div>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
</li>
<!-- Answer 04 -->
***************
*** 241,244 ****
--- 251,255 ----
</ul>
</div>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
</li>
<!-- Answer 05 -->
***************
*** 270,273 ****
--- 281,285 ----
</li>
</ul>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
</li>
<!-- Answer 06 -->
***************
*** 303,306 ****
--- 315,319 ----
</div>
</div>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
</li>
<!-- Answer 07 -->
***************
*** 322,325 ****
--- 335,339 ----
</div>
</div>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
</li>
<!-- Answer 08 -->
***************
*** 341,344 ****
--- 355,359 ----
command as an alternative to using import.
</div>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
</li>
<!-- Answer 09 -->
***************
*** 379,382 ****
--- 394,398 ----
</ul>
</div>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
</li>
<!-- Answer 11 -->
***************
*** 391,394 ****
--- 407,411 ----
</ul>
</div>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
</li>
<!-- Answer 12 -->
***************
*** 407,410 ****
--- 424,428 ----
</div>
</li>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
<!-- Answer 13 -->
<li><a name="13" class="question">Where can I find the latest CVS Snapshots?</a><br />
***************
*** 413,419 ****
--- 431,440 ----
<a href="http://wpdev.sourceforge.net/snapshots/">http://wpdev.sourceforge.net/snapshots/</a>
</div>
+ <a href="#top" style="font-size:9pt;">Return To Questions</a><br /><br />
</li>
</ul>
</div>
+ <div class="smalltext">© 2004 Wolfpack Team | <a href="http://www.wpdev.org/">http://www.wpdev.org</a></div>
+ <br />
</body>
</html>
|