<?php
/* This file is part of the FiForms Framework
Copyright (C) 2003-2008 by Daniel McFeeters,
Licensed under the GNU GPL.
See LICENSE.txt for details.
*/
require_once('localconfig.php');
if($FIFORMS_CONFIG['USE_COMBINED'])
{
include_once(dirname(__FILE__).'/FiForms_combined.inc.php');
}
else
{
include_once($FIFORMS_CONFIG['INCLUDE_PATH'].'FiForms_genericIcons.inc.php');
include_once($FIFORMS_CONFIG['INCLUDE_PATH'].'FiForms_global.inc.php');
}
require_once($FIFORMS_CONFIG['AUTH_MODULE']);
require_once('promptpage.php');
$auth = new FiFormsAuth();
if(!@mysql_connect($FIFORMS_CONFIG['DEFAULT_SERVER'],$auth->username,$auth->passwd))
{
$auth->connectFailure();
die();
}
mysql_close();
promptPage("Install New FiForms Package",<<<EOD
<form enctype="multipart/form-data" action="update_exec.php" method="post">
Please choose the package you would like to install:<br />
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
<input type="file" name="package" /><br />
<input type="checkbox" name="overwrite" /> Allow Overwriting?<br />
FiForms Update / Installation Password:<br />
<input type="password" name="password" /><br />
<input type="submit" value="Install Package" />
<a href="javascript:history.go(-1);">Cancel</a>
</form>
EOD
,"25%","25%","50%");