[FX.php List] Perplexing login problem

Anthony Talo atalo at mac.com
Tue Dec 13 12:42:43 MST 2005


A clients site has a very perplexing login problem. The basic site  
layout is: An intro screen to pick your database -> a search screen  
with 2 forms - one for a quick search (FMFindAll()) and an advanced  
search (FMFind()). The XSL version worked perfectly - prompting the  
user to log in before showing the search page. After converting the  
site to PHP, the login prompt appears after the search is completed,  
showing the returned data but not the images. Now here is the  
perplexing part...the login prompt appears in the advanced search  
form BUT NOT the quick search form. The site is at:

http://209.114.248.9/opmaimagelinks/index.html
UN: fxphp
PW: rocks

The target files are identical (and standard fxphp files) for at  
least the first 9 lines:

Advanced search target:
<?PHP
define("DEBUG", false);
// by setting DEBUG to true, you can look at some of what FX.php is  
doing
include_once($_SERVER['DOCUMENT_ROOT'] . "/FX/FX.php");
include_once($_SERVER['DOCUMENT_ROOT'] . "/FX/server_data.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/FX/image_proxy.php");
$search_result = new FX($serverIP,$webCompanionPort);

#$databaseFile = 'LexiconImageLinks.fp7';
$databaseFile = $_GET['db'];
$queryLayout = 'all';

$skip = $_GET['skip'];
$GLOBALS['view'] = 'img';
#

$max = $_GET[max];

$Stock_NumberMFG = $_GET['Stock_NumberMFG'];
...and more parameters
$search_result->SetDBData($databaseFile,$queryLayout,$max);
$search_result->SetDBUserPass ($webUN, $webPW);
if (! isset($skip) || $skip == '') {
     $skip = 0;
}
$search_result->FMSkipRecords($skip);
$search_result->AddDBParam("Stock_NumberMFG",$Stock_NumberMFG);
...and more parameters
if ($lop == 'or' )
{
        $search_result->AddDBParam("-lop",$lop) ;
}
else
{
}
$recordData = $search_result->FMFind();
?>
----------
Quick Search Target:
<?PHP
define("DEBUG", false);
// by setting DEBUG to true, you can look at some of what FX.php is  
doing
include_once($_SERVER['DOCUMENT_ROOT'] . "/FX/FX.php");
include_once($_SERVER['DOCUMENT_ROOT'] . "/FX/server_data.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/FX/image_proxy.php");
$search_result = new FX($serverIP,$webCompanionPort);

$GLOBALS['view'] = 'img';
$databaseFile = $_GET['db'];
#$databaseFile = 'LexiconImageLinks.fp7';
$queryLayout = 'all';
$max = $_GET['max'];
$skip = $_GET['skip'];
if (! isset($skip) || $skip == '') {
     $skip = 0;
}
$search_result->SetDBData($databaseFile,$queryLayout,$max);
$search_result->SetDBUserPass ($webUN, $webPW);
$search_result->FMSkipRecords($skip);
$recordData = $search_result->FMFindAll();
?>

Any help is greatly appreciated,
TIA
Tony

---
Anthony Talo, Ph. D.
Digital Wrangler
Salient Technologies, Inc.
400 Ann Street NW, Ste. 212
Grand Rapids, MI 49504
616-365-8707
www.salienttech.com
tony at salienttech.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20051213/54f85f86/attachment.html


More information about the FX.php_List mailing list