Let the Prop Wizard recommend the right size boat propeller for you!
|
// Turn off all error reporting
error_reporting(0);
$connectionDetails = 0;
$htmlContent ='';
$pageID = '';
$readFile = 0;
$serverLocation = '';
$showJavaScript = '';
$pageID = $_GET['pageID'];
////////////////////
//SERVER LOCATION
$file = '';
if ($readFile == 0){
$file = 'http://www.propellerwizard.com/ADMIN/serverLocation.php?locationID='.$locationID.'&version=php20070123&fileType=php';
$severLocationFile = $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.'&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.' '; } ?> |