Handy
Propeller pitch calculator from
|
||||
Using The Prop Wizard you can enter all your boat's information, like engine size, type of boat etc and extra weight etc, the wizard will then tell you exactly which prop you need.
|
// Turn off all error reporting
error_reporting(0);
$connectionDetails = 0;
$htmlContent ='';
$pageID = '';
$readFile = 0;
$serverLocation = '';
$showJavaScript = '';
$pageID = $_GET['pageID'];
$ip = $_SERVER['REMOTE_ADDR'];
////////////////////
//SERVER LOCATION
$file = '';
if ($readFile == 0){
$file = 'http://www.propellerwizard.com/ADMIN/serverLocation.php?remoteIP='.$ip.'&locationID='.$locationID.'&version=php20070123&fileType=php';
$serverLocationFile = $file;
$fp = @ fopen($file , 'r');
if (!$fp){ $readFile = 0; }else{ $readFile = 1;}
}
if ($readFile == 1){
$serverLocation = fgets($fp);
$returnServerLocation = $serverLocation;
fclose($fp);
$readFile = 0;
}
//END: SERVER LOCATION
////////////////////
if ($pageID != ''){
$i = 0;
/////////////////////
///BUILDS THE STRING
$string = '';
while ($element = each($_GET)){
$Key = $element['key'];
$Val = $element['value'];
$Val = ereg_replace(" ","%20",$Val);
$string = $string.'&'.$Key.'='.$Val;
$i++;
} //END: while ($element = each($_GET)){
///END: BUILDS THE STRING
/////////////////////
/////////////////////
///CONTECTS TO THE TP SERVER
$file = '';
if ($readFile == 0){
$file = $serverLocation.$pageID.'?PWinsert=php&'.$string.'';
$severContentFile = $file;
$fp = @ fopen($file , 'r');
if (!$fp){ $readFile = 0; }else{ $readFile = 1;}
}
///END: CONTECTS TO THE TP SERVER
/////////////////////
/////////////////////
//GETS CONTENT FROM THE TP SERVER
if ($readFile == 1){
$fp_row_count = 1;
while (!feof($fp)){
$row = fgets($fp, 1024);
$htmlContent = $htmlContent.$row;
}
fclose($fp);
}
//END: GETS CONTENT FROM THE TP SERVER
/////////////////////
echo $htmlContent;
}else {
/////////////////////
///CONTECTS TO THE TP SERVER
$file = '';
if ($readFile == 0){
$file = $serverLocation.'propWizard.php?locationID='.$locationID.'&PWinsert=php&redirect='.$pageRedirect;
$fp = @ fopen($file , 'r');
if (!$fp){ $readFile = 0; }else{ $readFile = 1;}
}
///END: CONTECTS TO THE TP SERVER
/////////////////////
/////////////////////
//GETS CONTENT FROM THE TP SERVER
if ($readFile == 1){
$fp_row_count = 1;
while (!feof($fp)){
$row = fgets($fp, 1024);
$htmlContent = $htmlContent.$row;
}
fclose($fp);
}
//END: GETS CONTENT FROM THE TP SERVER
/////////////////////
$showJvScriptLocation = ''.$serverLocation.'js/propWizardJS.php';
$showJavaScript = '';
echo $showJavaScript.$htmlContent;
}
if ($connectionDetails == 1){
echo '
REQUEST SERVER LOCATION: '.$severLocationFile.' RETURN SERVER LOCATION: '.$returnServerLocation.' JAVASCRIPT SERVER LOCATION: '.$showJvScriptLocation.' SERVER CONTENT REQUEST URL: '.$severContentFile.' LOCATION ID: '.$locationID.' FILE: '.$file.' PAGE ID: '.$pageID.' '; } ?> |
|
||