Location: PHPKode > projects > FiForms Framework > FiForms/scripts/dbexport.php
<?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');
require_once($FIFORMS_CONFIG['AUTH_MODULE']);
$auth = new FiFormsAuth();
if(!@mysql_connect($FIFORMS_CONFIG['DEFAULT_SERVER'],$auth->username,$auth->passwd))
{
        $auth->connectFailure();
        die();
}
mysql_close();

if($FIFORMS_CONFIG['UPDATE_HOST'] !== "any" && ($FIFORMS_CONFIG['UPDATE_HOST'] !== "local" || $_SERVER['REMOTE_ADDR'] !== "127.0.0.1"))
{
    die("This feature is not allowed in FiForms_global.inc.php.");
}

if(!$_POST['password'] || sha1($_POST['password']) !== $FIFORMS_CONFIG['UPDATEPW_HASH'])
{
    die("Password Incorrect.");
}


?><html>
<head>
<title>FiForms Database Export Utility</title>
</head>
<body>
<?php

require("compress.zlib://".$_FILES['package']['tmp_name']);

?>
</body>
</html>  
Return current item: FiForms Framework