This content can be found at the Digitalfire Reference Library'; $link = SECUREURL.'/oxide/'.intval($_GET['oxid']); echo '

Click here to go there.

'; } elseif(isset($_GET['goto'])) { echo '

This content can be found at the Digitalfire Reference Library

'; $link = SECUREURL.'/oxide/'.substr(strtolower($_GET['goto']), 0, 6); echo '

Click here to go there.

'; } else { echo '

Digitalfire Refernce Library Jump Error

This content was not found

'; } echo '

Other links:

'; die; session_start(); define('START', microtime()); # in other files start with if(!defined('START')) die; define('PAGENAME', 'Oxide Jumper'); include '../inc/init-4sight.php'; include("../../../mastercopies/reference_utilities.php"); include("../inc/areafunctions.php"); # $_GET['s'] = str(intN)+str(val(snum.product)-intN)+str(val(snum.personid)+intN) if($_GET['goto'] != NULL) $_POST['goto'] = $_GET['goto']; if($_GET['s'] != NULL) $_POST['s'] = $_GET['s']; $_POST['goto'] = FSTsanitize($_POST['goto'], 10); # this comes from individual pages at cermat if($_GET['oxid'] != NULL) { showheader('Jump to New Oxide Information Page at '.SECUREURL, 'Jump to Oxide'); $temp = new LinkLabel(AreaNum('oxides'), $_GET['oxid'], $row, 'linktemplate'); $temp->linktext = $row['name']; if(strpos($temp->ShowIt(true), 'UnNamed')!==false) { echo '

Oxide name may have changed, cannot link. '; echo '
Try the Oxide index to find it. '; } else { echo '

Go directly to '.$temp->ShowIt(true).'

'; } } elseif($_POST['goto'] == '') { showheader('Search Failed', 'Search Failed', false); echo "

Error: Cannot jump, no oxide search term provided

"; } 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).

'; } } function showheader($title, $header, $showlink = true) { global $checksum; echo ''.$title.''; echo ''; echo ''; echo ''; # echo ''; echo ''; echo ''; echo ''; echo '

Ceramic Oxides Database

'; if($showlink) { echo '
Go to Oxide index for list of all oxides
'; } else echo '
'; echo '

'.$header."

"; } ?>