1. 03 Dec, 2007 1 commit
  2. 07 Nov, 2007 1 commit
    • Leigh B. Stoller's avatar
      Just for kicks and cause I'm such a fan of "the wiki" I went ahead and · b15d5f78
      Leigh B. Stoller authored
      fully integrated Trac. I put a new installation in /usr/local/www/data/trac
      and I added all the hooks for adding users and doing the cross machine
      login. Only STUDLY() users will actually see the new option in the collab
      dropdown menu.
      
      I have not done anything to make the trac installation look like Emulab.
      b15d5f78
  3. 01 Nov, 2007 2 commits
  4. 31 Oct, 2007 2 commits
    • Leigh B. Stoller's avatar
      Convert the usage box at the top from an iframe to an inline table so that · b3210aa7
      Leigh B. Stoller authored
      it can be actively clicked and toggled between the short status view and
      the long freenode view. There was no way to do this when it was an iframe,
      and the upside of not using an iframe is that iframes often mess up rendering
      and cause many cross-browser problems.
      
      Since its not an iframe, I have to hook into the Sajax stuff even on
      pages that already use Sajax, and I want to go to a different URL then
      the current page (want to use currentusage.php3). So I tweaked the Sajax
      stuff a bit, and roll out some inline sajax code in PAGEFOOTER().
      
      Also, at Rob's request I added a cookie to remember the state of the
      user's choice so that subsequent page loads get the same view. This
      is done with an inline cookie in the javascript (document.cookies).
      b3210aa7
    • Leigh B. Stoller's avatar
      eed59a1c
  5. 30 Oct, 2007 1 commit
  6. 25 Oct, 2007 1 commit
  7. 24 Oct, 2007 2 commits
    • Leigh B. Stoller's avatar
      Add back in the /dev tree style file so that dev trees look a little · 5f4ea8e5
      Leigh B. Stoller authored
      different.
      
      Temporary switch to style-new.css for a few days since many browsers do
      not reload the style files for some reason.
      5f4ea8e5
    • Leigh B. Stoller's avatar
      Moderate rework of the Emulab UI. When logged in, all of the main · 69ec957f
      Leigh B. Stoller authored
      menus that used to be on the left side, are now drop down menus along
      the top. The banner across the top will also be smaller and more space
      efficient.
      
      The primary motivation for these changes is to leave more room for
      actual content in the main window.
      
      Tested with Firefox (1.5 and 2.0), Safari (2.0 and 3.0) and on
      Internet Explorer Version 7. IE6 has some visual issues that might
      make it a little annoying, but should be viewed as incentive to
      upgrade to IE7 since it has been out a long time.
      69ec957f
  8. 17 Oct, 2007 1 commit
  9. 15 Oct, 2007 1 commit
  10. 21 Sep, 2007 1 commit
    • Leigh B. Stoller's avatar
      Two somewhat related template changes. · 217de8ab
      Leigh B. Stoller authored
      * Reorg the CVS repo so that records and setup are toplevel modules in
        the repo, instead of directories in a single module named by the
        guid (which is redundant and annoying).
      
      * Some changes to the spewlog stuff. It used to handle only
        experiments, but I really wanted it to handle template create and
        modify. Took a bunch of small changes to a lot of places to make
        this work correctly, but it was worth it.
      
        There are some changes I made that I can retrofit to the other spew
        pages to make it look a little nicer at the top of the page, to use
        less space.
      217de8ab
  11. 01 Jun, 2007 1 commit
    • Leigh B. Stoller's avatar
      Some javascript debugging code I found with google. · 81132bd3
      Leigh B. Stoller authored
      Turn on $javascript_debug at the top of menu.php3, and then use warn()
      statements in the code to have those debug statements turn up at the
      bottom of the page. This is the most cross-browser implementation I could
      find (which means it works on Safari, IE, and Firefox).
      81132bd3
  12. 16 May, 2007 1 commit
  13. 23 Apr, 2007 1 commit
  14. 17 Apr, 2007 1 commit
  15. 15 Mar, 2007 1 commit
  16. 14 Mar, 2007 1 commit
  17. 09 Mar, 2007 1 commit
  18. 15 Feb, 2007 1 commit
  19. 13 Feb, 2007 1 commit
  20. 12 Feb, 2007 8 commits
    • Robert Ricci's avatar
      Make the background portion of the banner a .jpg . This cuts the total · 01cc19ed
      Robert Ricci authored
      filesize by about three.
      01cc19ed
    • Robert Ricci's avatar
    • Leigh B. Stoller's avatar
      Fix a couple more merge errors. · 80be9a9c
      Leigh B. Stoller authored
      80be9a9c
    • Leigh B. Stoller's avatar
    • Robert Ricci's avatar
      a7d7a046
    • Robert Ricci's avatar
      Horrible hack. Browsers seem to not always reload style sheets even · 2028560a
      Robert Ricci authored
      when they have changed. So, change the URL for our stylesheet in
      order to force browsers to load a new version. (I installed this
      manually on boss.)
      
      This should be removed before making a release!
      2028560a
    • Robert Ricci's avatar
      New front page text, for the first time in a few years. More clearly · b3e8a3e5
      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.
      
      New banner, plus other visual tweaks. The new banner is turned on via
      the new @FANCYBANNER@ autoconf variable. This is turned on for
      TBMAINSITE, but defaults to off for other sites. This is so that
      existing sites which already have their own versions of the old banner
      don't have to update them right away.
      
      Made the usage iframe a little less prominent, by darkening it, and
      making it ever so slightly transparent on browsers that support it.
      
      Some minor visual tweaks to the background and content area.
      
      Added specific IDs for the main menu subgroups so that if we want, we
      can style them differently.
      
      Man, IE is a pain in the ass.
      b3e8a3e5
    • Leigh B. Stoller's avatar
      * Replace the argument processing code in all pages. Currently we rely on · 48acc8e3
      Leigh B. 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
  21. 08 Feb, 2007 1 commit
  22. 18 Jan, 2007 1 commit
  23. 21 Dec, 2006 1 commit
  24. 20 Dec, 2006 1 commit
  25. 12 Dec, 2006 1 commit
  26. 20 Nov, 2006 1 commit
  27. 31 Oct, 2006 1 commit
    • Leigh B. Stoller's avatar
      Flyspray #120: Fix several problems that were causing log output from · 88ef17c4
      Leigh B. Stoller authored
      various template operations to get lost. Also fixed the code in
      mungelog.js that was supposed to handle bailing out if there was no
      response from the server in a reasonable amount of time; if that code
      had been working, no one would have even noticed all the other problems!
      
      Also some cleanup in parts of mungelog.js and showlogfile_sup.php3;
      slowly migrating parts of this to emulab_sup.js since we use some of
      the same code in other places.
      88ef17c4
  28. 29 Oct, 2006 1 commit
  29. 27 Oct, 2006 2 commits