Location: PHPKode > projects > Netautor Professional > netautor/napro4/appl/na_professional/editor_magic.php
<?php
/* +----------------------------------------------------------------------+
   | Netautor Professional Application Server                             |
   +----------------------------------------------------------------------+
   | Copyright (C) 1998-2002 digiconcept GmbH. <www.digiconcept.net>      |
   +----------------------------------------------------------------------+
   | This file is subject to license, that is bundled with this package   |
   | in the file LICENSE.TXT, and is available at through the             |
   | world-wide-web at http://www.netautor.com/license/                   |
   |                                                                      |
   | If you did not receive a copy of the license and are unable to       |
   | obtain it through the world-wide-web, please send a note to          |
   | hide@address.com so we can mail you a copy.                      |
   +----------------------------------------------------------------------+
   | Authors: Stefan Rottensteiner <hide@address.com>    |
   |          Gregor Wollner                                              |
   |          Helli  Kleinhans     <hide@address.com>         |
   +----------------------------------------------------------------------+*/

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<BODY BGCOLOR="#A0A0A0">
<?php 
if (empty($head)) $head="";
if (empty($tail)) $tail="";
if (empty($protocol)) $protocol="";
if (!empty($call))
{
	$script="<script language='JavaScript' type='text/javascript'>\r";
	$script.="function getAppletContext()
			{
				return window.parent.frames['editor_applet'].document.applets['XEditor'];
			}\r";
	$script.="function getProtocol()
				{
					return '".$protocol."';
				}\r";
	$script.="win = window.open('$call','Editor_Helper','width=350,height=100,dependent=true.menubar=no,location=no,scrollbars=no,resizeable=yes');\r";
	$script.="</script>";
	echo($script);
}
?>
</body>
</html>
Return current item: Netautor Professional