define('START', microtime()); # in other files start with if(!defined('START')) die;
include '/var/www/digitalfire/4sight/inc/init-4sight.php';
if(isset($_GET['oxid'])) {
echo '
This content can be found at the Digitalfire Reference Library
";
} else {
$getonly = 50;
$_POST['goto'] = substr($_POST['goto'],0,6);
# request may be from insight where lookup has more than one value
$row = GetSQLRecordi($sql = "SELECT * FROM OXIDES WHERE symbol='".$_POST['goto']."'");
$oid = $row['oxid'];
if($oid) {
$temp = new LinkLabel(AreaNum('oxides'), $oid, $row, 'linktemplate');
#if(strpos($temp->ShowIt(true), 'UnNamed')!==false) {
header("Location: ".$temp->url);
#}
} else {
showheader('Search failed', 'Oxide Not Found');
echo '
INSIGHT has called this page requesting information on a specific oxide, however it was not found here (either as an exact or partial match).