function getRootSiteAbsolute()
 {
     $hostname = ExtraWatchHelper::getProtocol() . "://" . $_SERVER['HTTP_HOST'];
     $scriptName = $_SERVER['SCRIPT_NAME'];
     $scriptNameExploded = explode("wp-content/", $scriptName);
     if (sizeof($scriptNameExploded) > 1) {
         $subdir = @$scriptNameExploded[0];
     } else {
         $subdir = str_replace("wp-admin/admin.php", "", $scriptName);
     }
     $rootSite = $hostname . $subdir;
     return $rootSite;
 }
 /**
  * Returns url like: http://www.thisweburl.com/directory  	 	    	    		  	 	  	 	  		 	 		    	 			 	   		  	 	 		 	 	   	      	  	 		 		 				 			 		  		    	 		 		  
  * @return string  	 	    	    		  	 	  	 	  		 	 		    	 			 	   		  	 	 		 	 	   	      	  	 		 		 				 			 		  		    	 		 		  
  */
 static function getAbsoluteWebURL()
 {
     $hostname = ExtraWatchHelper::getProtocol() . "://" . ExtraWatchInput::validate(_EW_INPUT_HOST, $_SERVER['HTTP_HOST']);
     ///
     $scriptName = ExtraWatchInput::validate(_EW_INPUT_SCRIPT_NAME, $_SERVER['SCRIPT_NAME']);
     ///
     $subdir = str_replace("/index.php", "", $scriptName);
     $env = ExtraWatchInput::validate(_EW_INPUT_ENV, ExtraWatchEnvFactory::getEnvironment());
     ///
     $adminDirName = $env->getAdminDir();
     $subdir = str_replace("/" . $adminDirName, "", $subdir);
     return $hostname . $subdir;
 }