gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r5452 - in GNUnet-docs/WWW: . test test/logos


From: gnunet
Subject: [GNUnet-SVN] r5452 - in GNUnet-docs/WWW: . test test/logos
Date: Sat, 11 Aug 2007 11:52:12 -0600 (MDT)

Author: durner
Date: 2007-08-11 11:52:07 -0600 (Sat, 11 Aug 2007)
New Revision: 5452

Added:
   GNUnet-docs/WWW/test/
   GNUnet-docs/WWW/test/html_footer.php3
   GNUnet-docs/WWW/test/html_header.php3
   GNUnet-docs/WWW/test/index.php
   GNUnet-docs/WWW/test/logos/
   GNUnet-docs/WWW/test/logos/afs.png
   GNUnet-docs/WWW/test/logos/afs_small.png
   GNUnet-docs/WWW/test/logos/gnu_in_net.png
   GNUnet-docs/WWW/test/logos/gnunet-logo-color.png
   GNUnet-docs/WWW/test/logos/gnunet-logo.png
   GNUnet-docs/WWW/test/menu.php3
   GNUnet-docs/WWW/test/scripts.inc
   GNUnet-docs/WWW/test/scripts.php3
Log:
set up test/

Added: GNUnet-docs/WWW/test/html_footer.php3
===================================================================
--- GNUnet-docs/WWW/test/html_footer.php3                               (rev 0)
+++ GNUnet-docs/WWW/test/html_footer.php3       2007-08-11 17:52:07 UTC (rev 
5452)
@@ -0,0 +1,30 @@
+<?php
+if (! $no_footer) {
+  P();
+  if ($menu != "NO") {
+    HR();
+    $menu_once = 0;
+    menu_bar();
+  }
+  HR();
+  PRE("Copyright (C) 2002, 2003, 2004, 2005, 2006 Christian Grothoff.\n" .
+      "Verbatim copying and distribution of this entire article\n" .
+      "is permitted in any medium, provided this notice is preserved.");
+  BR();
+  generateFooter();
+  if ($haveNBO) {
+    HR();
+    H2("Footnotes");
+    ANCHOR("NBO");H3("NBO - network byte order");
+               BP();
+    W("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, <tt>htonl</tt> for 
4-byte values" .
+      " and <tt>htonll</tt> for 8-byte values.");
+    W("Before writing to these fields, the value must be converted using" . 
+      " <tt>ntohs</tt>, <tt>ntohl</tt> and <tt>ntohll</tt> respectively.");   
+               EP();
+  }
+  echo "</body></html>\n";
+ }
+?>

Added: GNUnet-docs/WWW/test/html_header.php3
===================================================================
--- GNUnet-docs/WWW/test/html_header.php3                               (rev 0)
+++ GNUnet-docs/WWW/test/html_header.php3       2007-08-11 17:52:07 UTC (rev 
5452)
@@ -0,0 +1,51 @@
+<?php
+DOCTYPE("HTML", "Transitional");
+echo "<html><head>\n";
+$haveNBO = 0;
+if ($title) {
+  TITLE($title);
+ } else {
+  TITLE("GNUnet");
+ }
+if ($description) {
+  echo "<meta name=\"description\" content=\"";
+  TRANSLATE($description);
+  echo "\">";
+ }
+?>
+<meta name="author" content="Christian Grothoff">
+<meta name="keywords" 
content="GNUnet,distributed,anonymous,p2p,sharing,accounting,accountability,denyability,backup,freenet,file,decentralized,free,GNU,Linux,GPL">
+<meta name="robots" content="index,follow">
+<meta name="revisit-after" content="28 days">
+<?php
+echo "<meta name=\"content-language\" content=\"" . $languagecodes[$lang] . 
"\">";
+echo "<meta name=\"language\" content=\"" . $languagecodes[$lang] . "\">";
+?>
+<meta name="publisher" content="Christian Grothoff">
+<meta name="date" content="2004-12-19">
+<?php
+if ($author)
+ echo "<meta name=\"rights\" content=\"(C) 2001,2002,2003,2004 by $author\">";
+else
+ echo "<meta name=\"rights\" content=\"(C) 2001,2002,2003,2004 by Christian 
Grothoff\">";
+?>
+<meta http-equiv="expires" content="43200">
+<meta http-equiv="content-type" content="text/html">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<link rel="icon" href="favicon.ico" type="image/x-icon">
+<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> 
+<link rel=stylesheet type="text/css" href="gnunet.css">
+</head>
+<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
+<?php
+ if ($menu != "NO") {
+   include("menu.php3");
+?>
+<font class="lang-menu">
+<?php
+   generateLanguageBar();
+?>
+</font>
+<?php
+ }
+?>

Added: GNUnet-docs/WWW/test/index.php
===================================================================
--- GNUnet-docs/WWW/test/index.php                              (rev 0)
+++ GNUnet-docs/WWW/test/index.php      2007-08-11 17:52:07 UTC (rev 5452)
@@ -0,0 +1,129 @@
+<?php
+include("scripts.php3");
+$description="GNUnet - GNU&#8216;s decentralized anonymous and 
censorship-resistant P2P framework";
+$title = $description;
+include("html_header.php3");
+
+H2("About GNUnet");
+
+BP();
+W("GNUnet is a framework for secure peer-to-peer networking that does not use 
any centralized or otherwise trusted services.");
+W("A first service implemented on top of the networking layer allows anonymous 
censorship-resistant file-sharing.");
+W("GNUnet uses a simple, excess-based economic model to allocate resources.");
+W("Peers in GNUnet monitor each others behavior with respect to resource 
usage; peers that contribute to the network are rewarded with better service.");
+P();
+
+W("GNUnet is part of the %s.",
+  extlink_("http://www.gnu.org/","GNU project"));
+W("Our official GNU website can be found at %s.",
+  
extlink_("http://www.gnu.org/software/gnunet/","http://www.gnu.org/software/gnunet/";));
+W("GNUnet can be downloaded from this site or the %s.",
+  extlink_("http://www.gnu.org/prep/ftp.html","GNU mirrors"));
+P();
+
+W("%s is a graphical user interface for the GNUnet framework.",
+  intlink_("gnunetgtk.php3", "gnunet-gtk"));
+W("It is a separate %s; some %s are available.", 
+  ARRAY(intlink_("download.php3", "download"),
+        intlink_("screenshots.php3","screenshots")));
+
+EP();
+H2("Why GNUnet?");
+BP();
+W("The first question that developers of any of the dozens of emerging P2P 
networks (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) should probably answer is 
<em>why yet another network?</em>",
+  ARRAY(extlink_("http://freenetproject.org/";, "1"),
+        extlink_("http://tor.eff.org/";, "2"),
+        extlink_("http://mnet.sourceforge.net/";, "3"),
+        extlink_("http://www.i2p.net/";, "4"),
+        extlink_("http://gift.sf.net/";, "5"),
+        extlink_("http://entropy.stop1984.com/";, "6"),
+        extlink_("http://thecircle.org.au/";, "7"),
+        extlink_("http://www.invisiblenet.net/iip/";, "8"),
+        extlink_("http://mute-net.sourceforge.net/";, "9"),
+        extlink_("http://rshare.de/";, "10"),
+        extlink_("http://larytet.sourceforge.net/btRat.shtml";, "11")));
+W("GNUnet was started in late 2001 with a set of new technical ideas for 
secure peer-to-peer networking.");
+W("Most of the key technical contributions behind GNUnet are described in 
detail in our %s.",
+  intlink_("papers.php3", "research papers"));
+W("The ideas include an improved content encoding (ECRS, the encoding for 
censorship resistant sharing) and a new protocol for anonymous routing (gap).");
+W("Properties of the content encoding and the routing protocol allow GNUnet to 
reward contributing peers with better service using an excess-based economic 
model for resource allocation.");
+W("Furthermore, GNUnet is extensible and makes it easy to build new 
peer-to-peer applications or add alternative network transports to the base 
system.");
+W("When GNUnet was started, existing systems were investigated (at the time in 
particular %s and %s) to find a starting point.",
+  ARRAY(extlink_("http://freenetproject.org/";, "Freenet"),
+        extlink_("http://mnet.sourceforge.net/";, "mnet")));
+W("However, the conclusion was that the envisioned system was too far from the 
existing codebases to benefit from building on top of any of those.");
+P();
+W("GNUnet continues to improve both in terms of technical ideas and 
implementation, often thanks to discussions with developers from related 
projects.");
+W("Probably the most well-known such project is %s, a peer-to-peer network 
that acts as a proxy which anonymizes low-latency TCP traffic.",
+  extlink_("http://tor.eff.org/";, "TOR"));
+W("TOR is general in design and lacks features that would be specific to 
(anonymous) file-sharing, such as searching, swarming or caching.");
+P();
+W("In conclusion, we believe that GNUnet is (or at least will become) the best 
solution for (anonymous) file-sharing.");
+W("The key technical ideas continue to distinguish GNUnet from other projects 
with similar goals.");
+W("Some GNUnet developers also have the ambition to provide a good general 
infrastructure for developing new peer-to-peer protocols.");
+W("In the meantime, users that are looking for %s solutions or to %s should 
probably look elsewhere.",
+  ARRAY(extlink_("http://www.bittorrent.com/";, "faster, non-anonymous"),
+        extlink_("http://tor.eff.org/";, "anonymize their HTTP traffic")));
+
+EP();
+H2("News");
+BP();
+W("Older news can be found %s.\n",
+  intlink_("old_news.php3", "here"));
+EP();
+echo "<dl>\n";
+
+// definition: news is what is less than 3 months old :-)
+$query = "SELECT title,include,posted FROM news " .
+   "WHERE TO_DAYS(NOW())-TO_DAYS(posted) < 90 " .
+   "ORDER BY posted DESC";
+$result = mysql_query($query, $connection);
+$num = 0;
+if ($result) {
+  $num = mysql_numrows($result);
+}
+for ($i=0;$i<$num;$i++) {
+  $row = mysql_fetch_array($result);
+  $pd = $row["posted"];
+  echo "<dt>" . strtok($pd, " ") . ": " . W_($row["title"]) . "</dt>\n";
+  echo "<dd>\n";
+  include("news/" . $row["include"]);
+  echo "\n</dd>\n";
+}
+echo "</dl>\n";
+H2("Helping GNUnet");
+BP();
+W("Help is always welcome.");
+BR();
+W("Here are some ideas:");
+echo "<ul>";
+LI("join our IRC channel #gnunet and our %s and help newcomers",
+       extlink_("https://gnunet.org/drupal";, "community"));
+LI("write easy setup instructions");
+LI("build universal static binaries and upload them");
+LI("build binary packages for your OS/distribution and upload them");
+LI("Fix %s or contribute new code",
+       extlink_("https://gnunet.org/mantis/","bugs";));
+echo "</ul>";
+EP();
+H2("Roadmap");
+BP();
+W("Here is the current development plan:");
+echo "<ul>\n";
+LI("fix %s",
+   extlink_("https://gnunet.org/mantis/","bugs";));
+LI("add testbed harness to allow automated testing and profiling");
+LI("extend GTK UI (unindex, more statistics, configuration)");
+LI("complete and integrate DHT implementation");
+echo "</ul>\n";
+EP();
+H2("Contact");
+BP();
+W("GNUnet is developed by %s.",
+  extlink_("http://www.gnu.org/software/gnunet/","the GNUnet developers"));
+W("For questions about GNUnet send E-Mail to %s.",
+  extlink_("mailto:address@hidden","address@hidden";));
+EP();
+
+include("html_footer.php3");
+?>

Added: GNUnet-docs/WWW/test/logos/afs.png
===================================================================
(Binary files differ)


Property changes on: GNUnet-docs/WWW/test/logos/afs.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: GNUnet-docs/WWW/test/logos/afs_small.png
===================================================================
(Binary files differ)


Property changes on: GNUnet-docs/WWW/test/logos/afs_small.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: GNUnet-docs/WWW/test/logos/gnu_in_net.png
===================================================================
(Binary files differ)


Property changes on: GNUnet-docs/WWW/test/logos/gnu_in_net.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: GNUnet-docs/WWW/test/logos/gnunet-logo-color.png
===================================================================
(Binary files differ)


Property changes on: GNUnet-docs/WWW/test/logos/gnunet-logo-color.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: GNUnet-docs/WWW/test/logos/gnunet-logo.png
===================================================================
(Binary files differ)


Property changes on: GNUnet-docs/WWW/test/logos/gnunet-logo.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: GNUnet-docs/WWW/test/menu.php3
===================================================================
--- GNUnet-docs/WWW/test/menu.php3                              (rev 0)
+++ GNUnet-docs/WWW/test/menu.php3      2007-08-11 17:52:07 UTC (rev 5452)
@@ -0,0 +1,41 @@
+<?php
+if (! $menu_once) {
+  $menu_once = 1;
+?>
+<table bgcolor="#0a6cce" border="0" cellpadding="0" cellspacing="0" 
height="58" width="100%">
+  <tr> 
+    <td colspan="4" height="10" nowrap="nowrap" valign="middle">
+    </td>
+  </tr>
+  <tr>
+    <td width="15">
+     &nbsp;
+    </td>
+    <td height="1" nowrap="nowrap" valign="middle"> 
+                       <font class="title">GNUnet</font>
+                       <br />
+                       <font class="subtitle">
+                               <?php
+                                       W("GNU&#8216;s decentralized anonymous 
and censorship-resistant P2P framework.");
+                               ?>
+                       </font>
+
+    </td>
+    <td align="right" valign="top">
+<?php
+    gnunetlogo();
+?>
+    </td>
+    <td width="10">
+     &nbsp;
+    </td>
+  </tr>
+  <tr> 
+    <td colspan="4" height="10" nowrap="nowrap" valign="middle">
+    </td>
+  </tr>
+</table>
+<?php
+       menu_bar();
+ }
+?>                         

Added: GNUnet-docs/WWW/test/scripts.inc
===================================================================
--- GNUnet-docs/WWW/test/scripts.inc                            (rev 0)
+++ GNUnet-docs/WWW/test/scripts.inc    2007-08-11 17:52:07 UTC (rev 5452)
@@ -0,0 +1,132 @@
+<?php
+include_once("i18nHTML/i18nhtml.php");
+
+// GNUnet specific functions
+
+function afslogo() {
+  img("logos/afs_small.png", "Anonymous file sharing logo", "RIGHT", 150, 115);
+}
+function gnunetlogo() {
+  img("logos/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("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_();
+}
+
+?>

Added: GNUnet-docs/WWW/test/scripts.php3
===================================================================
--- GNUnet-docs/WWW/test/scripts.php3                           (rev 0)
+++ GNUnet-docs/WWW/test/scripts.php3   2007-08-11 17:52:07 UTC (rev 5452)
@@ -0,0 +1,6 @@
+<?php
+if (! $scripts_once) {
+  $scripts_once = 1;
+  include("scripts.inc");
+ }
+?>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]