[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1912 - GNUnet-docs/WWW/test
From: |
durner |
Subject: |
[GNUnet-SVN] r1912 - GNUnet-docs/WWW/test |
Date: |
Thu, 25 Aug 2005 14:33:56 -0700 (PDT) |
Author: durner
Date: 2005-08-25 14:33:52 -0700 (Thu, 25 Aug 2005)
New Revision: 1912
Added:
GNUnet-docs/WWW/test/screenshots.php3
Modified:
GNUnet-docs/WWW/test/scripts.inc
Log:
screenshots?
Added: GNUnet-docs/WWW/test/screenshots.php3
===================================================================
--- GNUnet-docs/WWW/test/screenshots.php3 2005-08-25 21:30:55 UTC (rev
1911)
+++ GNUnet-docs/WWW/test/screenshots.php3 2005-08-25 21:33:52 UTC (rev
1912)
@@ -0,0 +1,37 @@
+<?php
+include("scripts.php3");
+$title = "GNUnet Screenshots";
+$description="GNUnet Screenshots";
+include("html_header.php3");
+H2("GNUnet Screenshots");
+
+BP();
+W("Besides command line tools, GNUnet provides a graphical user interface:
%s.", extlink_("gnunet-gtk", "gnunetgtk.php3"));
+W("Here are some screenshots of gnunet-gtk and its features and ports.");
+EP();
+BP();
+IMG("gnunet-gtk-fs-status-winxp.png",
+ "gnunet-gtk status page",
+ "CENTER",732,464);
+BR();
+W("Overview of all pending and completed filesharing operations (Windows
XP).");
+EP();
+
+BP();
+IMG("gnunet-gtk-directory-browser.png",
+ "gnunet-gtk download page",
+ "CENTER",732,464);
+BR();
+W("Search and download page with thumbnails (Linux, standard GTK theme).");
+EP();
+
+BP();
+IMG("gnunet-gtk-stats-winxp.png",
+ "gnunet-gtk statistics page",
+ "CENTER",732,464);
+BR();
+W("Statistics of outgoing network traffic (Windows XP).");
+EP();
+
+include("html_footer.php3");
+?>
Modified: GNUnet-docs/WWW/test/scripts.inc
===================================================================
--- GNUnet-docs/WWW/test/scripts.inc 2005-08-25 21:30:55 UTC (rev 1911)
+++ GNUnet-docs/WWW/test/scripts.inc 2005-08-25 21:33:52 UTC (rev 1912)
@@ -1,81 +1,133 @@
-<?php
-include("i18nhtml.inc.php");
-
-// GNUnet specific functions
-
-function afslogo() {
- img("afs_small.png", "Anonymous file sharing logo", "RIGHT", 150, 115);
-}
-function gnunetlogo() {
- img("gnu_in_net.png", "GNUnet logo", "RIGHT", 149, 150);
-}
-
-function menu_bar() {
-?>
- <table bgcolor="#0a6cce" border="0" cellpadding="0" cellspacing="0"
width="100%">
- <tr>
- <td class="menu"><?php intlink("index.php","Welcome") ?></td>
- <td class="menu"><?php intlink("mailinglist.php3","Contact");
?></td>
- <td class="menu"><?php extlink("https://gnunet.org/drupal/",
"Community"); ?></td>
- <td class="menu"><?php intlink("faq.php3","FAQ"); ?></td>
- <td class="menu"><?php intlink("download.php3","Download"); ?></td>
- <td class="menu"><?php
intlink("documentation.php3","Documentation"); ?></td>
- <td class="menu"><?php intlink("papers.php3","Papers"); ?></td>
- <td class="menu"><?php intlink("links.php3","Links"); ?></td>
- </tr>
- </table>
-<?php
-}
-
-function shortEntry_($a, $b="") {
- return "<td class=\"tbl\">" . W_($a) . $b . "</td>";
-}
-function shortEntryVerbatim_($a, $b="") {
- return "<td class=\"tbl\">" . $a . $b . "</td>";
-}
-function row($a, $b) {
- echo "<tr>" . $a . $b . "</tr>\n";
-}
-function rowIntEntry($a, $b="") {
- echo "<tr><td class=\"tbl\" colspan=2>" . W_($a) . $b . "</td></tr>\n";
-}
-function rowIntEntryNBO($a) {
- rowIntEntry($a, NBO_());
-}
-function fiveRowIntEntries($a) {
- for ($i=0;$i<5;$i++)
- rowIntEntry($a);
-}
-function rowIntEntryVerbatim($a, $b="") {
- echo "<tr><td class=\"tbl\" colspan=2>" . $a . $b . "</td></tr>\n";
-}
-function rowSizeType($size, $type) {
- row(shortEntryVerbatim_($size . " (" . W_("size") . ")", NBO_()),
- shortEntryVerbatim_($type . " (" . W_("type") . ")", NBO_()));
-}
-
-function NBO() {
- global $haveNBO;
-
- $haveNBO = 1;
- echo "(<a href=\"#NBO\">NBO</a>)";
-}
-function NBO_() {
- global $haveNBO;
- $haveNBO = 1;
- return "(<a href=\"#NBO\">NBO</a>)";
-}
-
-
-//H2("Footnotes");
-//ANCHOR("nbo");H3("NBO - network byte order");
-/*Fields of this type are in network byte order.");
- W("Before reading these
- fields, they must be converted to host byte order using <tt>htons</tt>
- for 2-byte values and <tt>htonl</tt> for 4-byte values.");
- W("Before writing
- to these fields, the value must be converted using <tt>ntohs</tt> and
- <tt>ntohl</tt> respectively.");
-*/
-
-?>
+<?php
+include("i18nhtml.inc.php");
+
+// GNUnet specific functions
+
+function afslogo() {
+ img("afs_small.png", "Anonymous file sharing logo", "RIGHT", 150, 115);
+}
+function gnunetlogo() {
+ img("gnunet-logo-color.png", "GNUnet logo", "RIGHT", 73, 75);
+}
+
+function menu_bar() {
+?>
+ <table bgcolor="#0a6cce" border="0" cellpadding="0" cellspacing="0"
width="100%">
+ <tr>
+ <td class="menu"><?php intlink("index.php","Welcome") ?></td>
+ <td class="menu"><?php intlink("mailinglist.php3","Contact");
?></td>
+ <td class="menu"><?php extlink("https://gnunet.org/drupal/",
"Community"); ?></td>
+ <td class="menu"><?php intlink("screenshots.php3","Screenshots");
?></td>
+ <td class="menu"><?php intlink("faq.php3","FAQ"); ?></td>
+ <td class="menu"><?php intlink("download.php3","Download"); ?></td>
+ <td class="menu"><?php
intlink("documentation.php3","Documentation"); ?></td>
+ <td class="menu"><?php intlink("papers.php3","Papers"); ?></td>
+ <td class="menu"><?php intlink("links.php3","Links"); ?></td>
+ </tr>
+ </table>
+<?php
+}
+
+// create an alement name consisting of the translation of $name
+// and the concrete value $name and possibly an NBO tag
+function V($name, $val, $nbo="") {
+ return W_($name) . " (" . $val . (($nbo == "")?"":",$nbo") . ")";
+}
+
+// create an alement name consisting of the translation of $name
+// and possibly an NBO tag
+function N($name, $nbo="") {
+ return W_($name) . (($nbo == "")?"":"($nbo)");
+}
+
+// formats a struct for showStructLayout
+// $elements is an (ordered!) list mapping a name
+// Todo: hack a bit more to give range for byte-offsets (i.e 4-13 bytes);
+// Also: for variable-size elements (size==0), improve "plusX" (and add
+// also "plusY, plusZ" etc if multiple var-size ones happen to be used)
+function F($elements) {
+ $ret = ARRAY();
+ $offset = 0;
+ $currString = "";
+ $plusX = "";
+ foreach($elements as $name => $size) {
+ $osize = $size;
+ if (($offset % 4) == 0) {
+ if ( ($size >= 4) || ($size == 0) ) {
+ $ret[] = "<th class=\"tbl\">$offset$plusX</th><td class=\"tbl\"
colspan=4>$name</td>";
+ $mod = $size % 4;
+ $offset += $size - $mod;
+ $size = $mod;
+ }
+ if ($size > 0) {
+ $currString = "<th class=\"tbl\">$offset$plusX</th><td class=\"tbl\"
colspan=$size>$name</td>";
+ $offset += $size;
+ }
+ } else {
+ $left = 4 - ($offset % 4);
+ if ($left > $size)
+ $left = $size;
+ $currString = $currString . "<td class=\"tbl\" colspan=$left>$name</td>";
+ $offset += $left;
+ $size -= $left;
+ if (($offset % 4) == 0) {
+ $ret[] = $currString;
+ $currString = "";
+ }
+ if ($size > 0) {
+ $mod = $size % 4;
+ if ($size >= 4) {
+ $size -= $mod;
+ $ret[] = "<th class=\"tbl\">$offset$plusX</th><td class=\"tbl\"
colspan=4>$name</td>";
+ $offset += $size;
+ }
+ if ($mod > 0) {
+ $currString = "<th class=\"tbl\">$offset$plusX</th><td class=\"tbl\"
colspan=$mod>$name</td>";
+ $offset += $mod;
+ }
+ }
+ }
+ if ($osize == 0)
+ $plusX = "+X";
+ }
+ if ($currString != "")
+ $ret[] = $currString;
+ return $ret;
+}
+
+// See the various protocol*.php3 files for how to use this
+// one. Rather complicated :-). Used to display the layout
+// of a struct when describing protocols.
+function LAYOUT($structName,
+ $fieldArray) {
+ echo "<center>\n";
+ echo "<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\"
width=\"90%\">\n";
+ echo "<tr><th colspan=5 valign=center><a href=\"doxygen/html/struct" .
+ str_replace("_", "__", $structName) . ".html\">" . $structName .
+ "</a></th></tr>";
+ echo "<tr><th rowspan=2 class=\"tbl\">" . W_("Offset") .
+ "</th><th colspan=4 class=\"tbl\">" . W_("Bit position") .
+ "</th></tr>\n";
+ echo "<tr><th class=\"tbl\">0-7</th><th class=\"tbl\">8-15</th><th
class=\"tbl\">16-23</th><th class=\"tbl\">24-31</th></tr>\n";
+ $cnt = 0;
+ foreach($fieldArray as $value) {
+ echo "<tr>" . $value . "</tr>\n";
+ $cnt++;
+ }
+ if ($cnt > 5)
+ echo "<tr><th class=\"tbl\"></th><th class=\"tbl\">0-7</th><th
class=\"tbl\">8-15</th><th class=\"tbl\">16-23</th><th
class=\"tbl\">24-31</th></tr>\n";
+ echo "</table>\n";
+ echo "</center>\n";
+}
+
+
+function NBO_() {
+ global $haveNBO;
+ $haveNBO = 1;
+ return "<a href=\"#NBO\">NBO</a>";
+}
+function NBO() {
+ echo NBO_();
+}
+
+?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1912 - GNUnet-docs/WWW/test,
durner <=