1. 24 Sep, 2012 1 commit
    • Eric Eide's avatar
      Replace license symbols with {{{ }}}-enclosed license blocks. · 6df609a9
      Eric Eide authored
      This commit is intended to makes the license status of Emulab and
      ProtoGENI source files more clear.  It replaces license symbols like
      "EMULAB-COPYRIGHT" and "GENIPUBLIC-COPYRIGHT" with {{{ }}}-delimited
      blocks that contain actual license statements.
      
      This change was driven by the fact that today, most people acquire and
      track Emulab and ProtoGENI sources via git.
      
      Before the Emulab source code was kept in git, the Flux Research Group
      at the University of Utah would roll distributions by making tar
      files.  As part of that process, the Flux Group would replace the
      license symbols in the source files with actual license statements.
      
      When the Flux Group moved to git, people outside of the group started
      to see the source files with the "unexpanded" symbols.  This meant
      that people acquired source files without actual license statements in
      them.  All the relevant files had Utah *copyright* statements in them,
      but without the expanded *license* statements, the licensing status of
      the source files was unclear.
      
      This commit is intended to clear up that confusion.
      
      Most Utah-copyrighted files in the Emulab source tree are distributed
      under the terms of the Affero GNU General Public License, version 3
      (AGPLv3).
      
      Most Utah-copyrighted files related to ProtoGENI are distributed under
      the terms of the GENI Public License, which is a BSD-like open-source
      license.
      
      Some Utah-copyrighted files in the Emulab source tree are distributed
      under the terms of the GNU Lesser General Public License, version 2.1
      (LGPL).
      6df609a9
  2. 10 Jun, 2010 1 commit
  3. 08 May, 2009 1 commit
  4. 10 Apr, 2009 1 commit
  5. 22 Jul, 2008 1 commit
  6. 02 Jun, 2008 1 commit
  7. 24 Mar, 2008 1 commit
  8. 20 Feb, 2007 1 commit
  9. 17 Feb, 2007 1 commit
  10. 13 Feb, 2007 1 commit
  11. 12 Feb, 2007 2 commits
    • Robert Ricci's avatar
      New front page text, for the first time in a few years. More clearly · ff45e20e
      Robert Ricci authored
      enumerates the different experimental environments we support. Most
      of the new text only gets displayed at Utah, since no one else has
      wireless nodes, etc. Other sites get some short generic text.
      ff45e20e
    • Leigh Stoller's avatar
      * Replace the argument processing code in all pages. Currently we rely on · 48acc8e3
      Leigh Stoller authored
        register_globals=1 to turn POST/GET/COOKIES arguments in local variables.
        This is known to be a terrible security risk, and we keep saying we are
        going to fix it, and now I am. In order to accomplish this on a
        transitional basis (since I don't want the entire web interface to stop
        working while I debug it), and because the code just needs the cleanup, I
        am doing it like this: Each page will sport new declarations at the top:
      
      	RequiredPageArguments("experiment", PAGEARG_EXPERIMENT,
                                    "template",   PAGEARG_TEMPLATE,
                                    "instance",   PAGEARG_INSTANCE,
                                    "metadata",   PAGEARG_METADATA,
                                    "osinfo",     PAGEARG_OSINFO,
                                    "image",      PAGEARG_IMAGE,
                                    "project",    PAGEARG_PROJECT,
                                    "group",      PAGEARG_GROUP,
                                    "user",       PAGEARG_USER,
      			      "node",       PAGEARG_NODE,
      			      "yesno",      PAGEARG_BOOLEAN,
      			      "message",    PAGEARG_STRING,
      			      "age",        PAGEARG_INTEGER,
                                    "cost",       PAGEARG_NUMERIC,
                                    "formfields", PAGEARG_ARRAY,
                                    "unknown",    PAGEARG_ANYTHING);
      
      	OptionalPageArguments("canceled", PAGEARG_BOOLEAN);
      
        The first token in each pair is the name of the global variable to
        set, and the second token is the type. So, for "experiment" we look at
        the URL for a pid/eid or exptidx, etc, sanity check them (safe for a
        DB query), and then try to find that experiment in the DB. If it maps
        to an experiment, set global variable $experiment to the object. Since
        its a required argument, produce an error if not supplied. Similar
        treatment for optional arguments, with the obvious difference.
      
        The goal is to have ALL argument processing in one place, consistent,
        and correct. I've found numerous places where we leak unchecked
        arguments into queries. It also cuts out a lot of duplicated code.
      
      * To make the above easier to deal with, I've been replacing lots of
        hardcoded URLS in the code of the form:
      
      	foo.php3?pid=$pid&eid=$eid ...
      
        with
      
              CreateURL("foo", $experiment)
      
        which creates and returns the neccessary url string, by looking at
        the type of its arguments (experiment, template, instance, etc.)
      
        Eventually plan to replace them all so that URL handling throughout
        the code is all defined in one place (all the new URL code is in
        url_defs.php).
      
      * I have cranked up error reporting to tell me anytime a variable is
        used before it is initialized, plus a bunch of other stuff that PHP
        deems improper. Think of it like -Wall ... and boy we get a lot of
        warnings.  A very large percentage of the diffs are to fix all these
        warnings.
      
        The warnings are currently going to /usr/testbed/log/php-errors.log,
        and I'll be adding a script to capture them each night and mail them
        to tbops. This file also gets errors (this will be a change for
        developers; rather then seeing errors and warnings dumped in the
        middle of web pages, they will go to this file instead).
      
      * Major refactoring of the code. More objects (nodes, images, osids).
        Moving tons of queries into the objects in the hopes of someday
        getting to a point where we can split the web interface onto a
        different server.  Lots of general cleanup.
      48acc8e3
  12. 20 Dec, 2006 1 commit
  13. 07 Jul, 2006 1 commit
  14. 27 Jun, 2006 1 commit
  15. 31 Mar, 2006 1 commit
  16. 28 Mar, 2006 1 commit
  17. 04 Jan, 2006 1 commit
  18. 04 Nov, 2005 1 commit
    • Leigh Stoller's avatar
      What started out as 10 minute hack, took a couple of hours of · a07561a1
      Leigh Stoller authored
      frustration until I realized that style.css does not actually come
      from your devel tree, but somehow comes from the main tree.
      But, along the way I did some reading about style sheets, and now I
      know just enough to be dangerous.
      
      Anyway, whats this revision about? No comment. You figure it out.
      a07561a1
  19. 19 Oct, 2005 1 commit
  20. 22 Sep, 2005 1 commit
  21. 15 Sep, 2005 1 commit
  22. 22 Jun, 2005 2 commits
  23. 21 Jun, 2005 1 commit
  24. 20 Jun, 2005 3 commits
  25. 13 May, 2005 1 commit
    • Leigh Stoller's avatar
      Automate initial user/project setup from setup-db.txt. Rather then · dd1b57bc
      Leigh Stoller authored
      have the user go through a set of hard to explain steps, just push
      them through it using the web interface.
      
      * New sitevars to control a little state machine used by the web
        interface.
      
      * When first setting up a testbed, the sitevar value will force the
        web interface to present the user with a single menu option "Create
        New Project" and the "Home" link will take the user to that page.
        The user is instructed to login is as elabman.
      
      * The user fills in the form as directed in setup-ops.txt. Even though
        he is logged in as elabman, the newproject form has been altered to
        operate as if no one is logged in. I also default a bunch more of
        the fields in this case.
      
      * The user submits the form. Rather then pend the new project, just
        jump straight into approveproject. That grinds along as usual, and
        when it is done, the elabman account is frozen and the user logged
        out. The user gets a link inviting him to log back in as the user
        just created.
      
      * Side effects of this new process:
      
      	* The user is made an admin user (admin=1) automatically.
      	* The user is added to the emulab-ops project as group_root.
      	* The user verification process is skipped.
      	* The user is added to the unixgroups wheel and tbadmin.
      
      * I reworked this entire section of setup-db.txt ...
      
      * The user still needs to give himself a real shell and password on
        boss, but I left that for the user to do explicitly. I also drop in
        a pointer to the shellonboss.txt. I might automate this part too at
        some point. Not sure yet.
      dd1b57bc
  26. 22 Dec, 2004 1 commit
  27. 26 Oct, 2004 1 commit
  28. 15 Oct, 2004 1 commit
  29. 11 Sep, 2004 1 commit
  30. 04 Sep, 2004 2 commits
  31. 20 Aug, 2004 1 commit
  32. 09 Aug, 2004 1 commit
    • Leigh Stoller's avatar
      Clean up the DirectoryIndex mess. · 30c0cff3
      Leigh Stoller authored
      * Remove DirectoryIndex from the .htaccess file. This file set the
        index for every directory to start.php3, which was wrong.
      
      * Change index.html to redirect to index.php3.
      
      * Change start.php3 to redirect to index.php3. I left the start.php3
        script in place (one line script) so that existing bookmarks work.
      
      * Move the code that used to be in start.php3 to the top of
        index.php3; this is the code that would zap to the My Emulab page
        when the user was logged in (and in https mode). Much simpler now.
      30c0cff3
  33. 16 Feb, 2004 1 commit
  34. 05 Aug, 2003 1 commit
    • Leigh Stoller's avatar
      A couple of robots changes. · 0121e3fe
      Leigh Stoller authored
      * Change Home page title to: Emulab - Network Emulation Testbed Home
      
      * Change mainsite robot meta tags to include a description, set to the
        same as the new home page title above.
      
      * Remote now sites get standard "noindex" robot directive; crawlers will
        follow links on remote sites but not index them in their search engines.
      
      * Add a fixed link to www.emulab.net/netemu.php3 on all sites; used to
        be on mainsite only; that was dumb!
      
      * Minor cosmetic changes to netemu.php3.
      0121e3fe
  35. 17 Jul, 2003 1 commit