diff --git a/public_html/deployment/classes/actionlog.class.php b/public_html/deployment/classes/actionlog.class.php
index 0a8991616d26ef670de108649e8d8e07f38e0602..7eb14abe6d24613637edac6ba1a66d7437e87a8f 100644
--- a/public_html/deployment/classes/actionlog.class.php
+++ b/public_html/deployment/classes/actionlog.class.php
@@ -1,4 +1,5 @@
 <?php
+require_once 'user.class.php';
 
 /**
  * class to log all project actions, ie. build, deploy etc.
@@ -41,12 +42,11 @@ class Actionlog {
                 die("ERROR: unable to create sqlite database " . $this->_dbfile);
             }
         }
-
         $this->_sProject = $sProject;
-        if (isset($_SERVER) && is_array($_SERVER) && array_key_exists("PHP_AUTH_USER", $_SERVER) && $_SERVER["PHP_AUTH_USER"]
-        ) {
+        $oUser=new user();
+        if ($oUser->getUsername()) {
             $this->_sIP = $_SERVER["REMOTE_ADDR"];
-            $this->_sUser = $_SERVER["PHP_AUTH_USER"] . " (web)";
+            $this->_sUser = $oUser->getUsername() . " (web)";
         } else {
             $this->_sIP = 'local';
             $aUser=posix_getpwuid(posix_geteuid());