<?php
	/**************************************************************************\
	* phpGroupWare - WAP                                                       *
	* http://www.phpgroupware.org                                              *
	* Written by Phill Zarfos <zarf@home.com>                                  *
	* --------------------------------------------                             *
	*  This program is free software; you can redistribute it and/or modify it *
	*  under the terms of the GNU General Public License as published by the   *
	*  Free Software Foundation; either version 2 of the License, or (at your  *
	*  option) any later version.                                              *
	\**************************************************************************/

	/* $Id: index.php,v 1.2 2001/05/07 01:03:14 zarf Exp $ */

	// This is the first page users will see when they go to the WAP section.
	// It shows a WAP emulator called waplet and loads the first WAP page.
	// (One could argue that this section should not be visible from
	// a web browser, and only from a WAP device.  I have included this
	// so users can preview the WAP pages from their desktops while 
	// setting preferences.  If the sysadmin decides that this should not
	// be accessable, he can turn it off in the admin-applications screen.
	//
	// KNOWN ISSUES:
	// - Right now it sends login/password as cleartext.
	// - Java must be enabled in your browser.

	$phpgw_info["flags"] = array("currentapp" => "wap", 
	                             "enable_wap_class" => True, 
	                             "enable_nextmatchs_class" => True);
	include("../header.inc.php");

	$log = $phpgw_info["user"]["userid"];
	$pw = $phpgw_info["user"]["passwd"];
	$url = "/wap/wap.php?login=$log&passwd=$pw"
?>
	<p align="center">
	<applet code="waplet.class" archive="waplet.jar" name="waplet" 
	width=174 height=385>
	<param name="page" 
		<?php
			$url = $phpgw->link('/wap/wap.php', "login=$log&passwd=$pw");
			echo "value=\"$url\">\n";
		?>
	</applet>
	</p>

	<hr>
	<font size="-1">
	<p align="center">WAP applet browser (waplet)
	<br>Copyright (c) 2000 <a href="http://www.pagea.com">Pagea Company</a>
	<br>Licensed under the GPL
	<br>Java source code available at 
	<a href="http://waplet.sourceforge.net/">waplet.sourceforge.net</a>
	</font>

<?php $phpgw->common->phpgw_footer(); ?>
