*** empty log message ***
authorMatthew Mondor <mmondor@pulsar-zone.net>
Sat, 9 Jul 2005 19:15:26 +0000 (19:15 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Sat, 9 Jul 2005 19:15:26 +0000 (19:15 +0000)
tests/js-test/js/httpd/httpd.js

index 707351e..001d920 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: httpd.js,v 1.45 2005/07/09 19:00:04 mmondor Exp $ */
+/* $Id: httpd.js,v 1.46 2005/07/09 19:15:26 mmondor Exp $ */
 
 /*
  * Copyright (c) 2005, Matthew Mondor
@@ -111,7 +111,7 @@ eval(file_read('root.js'));         /* Root object for virtual chroot(2) */
  * Server identification
  */
 SERVER_VERSION                 = 'mmondor_js_httpd/0.0.1 (NetBSD)';
-SERVER_CVSID   = '$Id: httpd.js,v 1.45 2005/07/09 19:00:04 mmondor Exp $';
+SERVER_CVSID   = '$Id: httpd.js,v 1.46 2005/07/09 19:15:26 mmondor Exp $';
 
 
 
@@ -142,8 +142,10 @@ function VHost(o)
        o.name = o.name.toLowerCase();
        this.name = o.name;
 
-       if (o.scripts != undefined && o.scripts == true)
+       if (o.scripts != undefined && o.scripts == true) {
                this.scripts = true;
+               this.globals = {};
+       }
 
        /*
         * Create VHost object
@@ -938,6 +940,7 @@ FD.prototype.httpRespond = function(time)
                obj.post = this.http_vars_post;
                obj.cookie = this.http_vars_cookies;
                obj.session = this.http_vars_session;
+               obj.global = this.http_vhost.globals;
 
                /*
                 * Check if object in our cache already and file not modified