I created a php wrapper to grab the web output from dgate.exe so I could manipulate the web page look and feel and possibly add some security later like a login. As long as dgate.exe html output stays pretty static like it is this should work (will have to replace the head/title removal line depending on version). This was created using PHP 5.2 but it might work with PHP4. This code includes a customization to take the viewer and set it to a % based size instead of using the .ini value. It only works if the .ini size is set to 700. This sets the width to 100% and height to 95% which works well in IE7 as tested. Comment or remove the 2 replacements referring to width and height if this is not disirable, but leave the code block within the if statement because you do not want the script to replace the dgate.exe references within the viewer page.
Create the file and name it index.php and put it in the same directory as dgate.exe then set your $app_base variable, or create a resource file to include that has the $app_base variable set (see comments in the code):
See below for updated version
P.S. One thing I can't figure out: what is that little square at the top right that turns red when you click it for?