Warning: Undefined variable $rel_root_path in C:\websites.apache\soundtaxi.org\order.php on line 9
require_once("pathes.inc.php");
require_once("config.inc.php");
require_once($rel_include_path."includes.php");
require_once($rel_include_path."utils.php");
//require_once($rel_include_path."lic_gen.php");
//require_once($rel_include_path."db_mysql.php");
require_once($rel_include_path."/class.FastTemplate.php");
global $tpl;
if (!$tpl)
{
$tpl = new FastTemplate($rel_root_path.$rel_templates_parent.$templates_path."/");
$tpl->assign('HTML_ROOT',$rel_root_path.$rel_templates_parent.$templates_path.'/');
$tpl->assign('PHP_ROOT',$rel_root_path);
$tpl->assign('TEMPLATE_RELATIVE_PATH', "/".$rel_root_path.$rel_templates_parent.$templates_path."/");
$tpl->assign('GA_ID', $GA_ID);
}
require_once($rel_include_path."language_helper.inc.php"); //to support page translation
$tpl->assign('GA_DOWNLOAD_BUNDLE_ATTRIBUTE', $GA_DOWNLOAD_BUNDLE_ATTRIBUTE);
$tpl->assign('GA_DOWNLOAD_RIPTIGER_ATTRIBUTE', $GA_DOWNLOAD_RIPTIGER_ATTRIBUTE);
$tpl->assign('GA_DOWNLOAD_RADIOGET_ATTRIBUTE', $GA_DOWNLOAD_RADIOGET_ATTRIBUTE);
$tpl->assign('GA_DOWNLOAD_TUNEGET_ATTRIBUTE', $GA_DOWNLOAD_TUNEGET_ATTRIBUTE);
$tpl->assign('GA_DOWNLOAD_ST_ATTRIBUTE', $GA_DOWNLOAD_ST_ATTRIBUTE);
$tpl->assign('GA_DOWNLOAD_DVDCOPY_ATTRIBUTE', $GA_DOWNLOAD_DVDCOPY_ATTRIBUTE);
$tpl->assign('GA_DOWNLOAD_MEDIABUDDY_ATTRIBUTE',$GA_DOWNLOAD_MEDIABUDDY_ATTRIBUTE);
$tpl->assign('GA_DOWNLOAD_MEDIABUDDY_ATTRIBUTE',$GA_DOWNLOAD_MEDIABUDDY_ATTRIBUTE);
$tpl->assign('GA_DOWNLOAD_IPODBACKUP_ATTRIBUTE',$GA_DOWNLOAD_IPODBACKUP_ATTRIBUTE);
$tpl->assign('DOWNLOAD_BUNDLE_URL', $DOWNLOAD_BUNDLE_URL);
$tpl->assign('DOWNLOAD_RIPTIGER_URL', $DOWNLOAD_RIPTIGER_URL);
$tpl->assign('DOWNLOAD_RADIOGET_URL', $DOWNLOAD_RADIOGET_URL);
$tpl->assign('DOWNLOAD_TUNEGET_URL', $DOWNLOAD_TUNEGET_URL);
$tpl->assign('DOWNLOAD_ST_URL', $DOWNLOAD_ST_URL);
$tpl->assign('DOWNLOAD_DVDCOPY_URL', $DOWNLOAD_DVDCOPY_URL);
$tpl->assign('DOWNLOAD_MEDIABUDDY_URL', $DOWNLOAD_MEDIABUDDY_URL);
$tpl->assign('DOWNLOAD_3DVIDEOCONVERTER_URL', $DOWNLOAD_3DVIDEOCONVERTER_URL);
$tpl->assign('DOWNLOAD_3DVIDEOPLAYER_URL', $DOWNLOAD_3DVIDEOPLAYER_URL);
$tpl->assign('DOWNLOAD_IPODBACKUP_URL', $DOWNLOAD_IPODBACKUP_URL);
$tpl->assign('BUY_BUNDLE_URL', $BUY_BUNDLE_URL);
$tpl->assign('BUY_RIPTIGER_URL', $BUY_RIPTIGER_URL);
$tpl->assign('BUY_RADIOGET_URL', $BUY_RADIOGET_URL);
$tpl->assign('BUY_TUNEGET_URL', $BUY_TUNEGET_URL);
$tpl->assign('BUY_ST_URL', $BUY_ST_URL);
$tpl->assign('BUY_DVDCOPY_URL', $BUY_DVDCOPY_URL);
$tpl->assign('BUY_MEDIABUDDY_URL', $BUY_MEDIABUDDY_URL);
$tpl->assign('BUY_3DVIDEOCONVERTER_URL', $BUY_3DVIDEOCONVERTER_URL);
$tpl->assign('BUY_3DVIDEOPLAYER_URL', $BUY_3DVIDEOPLAYER_URL);
$tpl->assign('BUY_IPODBACKUP_URL', $BUY_IPODBACKUP_URL);
$tpl->assign('BUY_BUNDLE_URL_EX', $BUY_BUNDLE_URL_EX);
$tpl->assign('BUY_RIPTIGER_URL_EX', $BUY_RIPTIGER_URL_EX);
$tpl->assign('BUY_RADIOGET_URL_EX', $BUY_RADIOGET_URL_EX);
$tpl->assign('BUY_TUNEGET_URL_EX', $BUY_TUNEGET_URL_EX);
$tpl->assign('BUY_ST_URL_EX', $BUY_ST_URL_EX);
$tpl->assign('BUY_DVDCOPY_URL_EX', $BUY_DVDCOPY_URL_EX);
$tpl->assign('BUY_MEDIABUDDY_URL_EX', $BUY_MEDIABUDDY_EX);
$tpl->assign('BUY_3DVIDEOCONVERTER_URL_EX', $BUY_3DVIDEOCONVERTER_URL_EX);
$tpl->assign('BUY_3DVIDEOPLAYER_URL_EX', $BUY_3DVIDEOPLAYER_URL_EX);
$tpl->assign('BUY_IPODBACKUP_URL_EX', $BUY_IPODBACKUP_URL_EX);
$tpl->assign('GA_BUY_BUNDLE_ATTRIBUTE', $GA_BUY_BUNDLE_ATTRIBUTE);
$tpl->assign('GA_BUY_RIPTIGER_ATTRIBUTE', $GA_BUY_RIPTIGER_ATTRIBUTE);
$tpl->assign('GA_BUY_RADIOGET_ATTRIBUTE', $GA_BUY_RADIOGET_ATTRIBUTE);
$tpl->assign('GA_BUY_TUNEGET_ATTRIBUTE', $GA_BUY_TUNEGET_ATTRIBUTE);
$tpl->assign('GA_BUY_ST_ATTRIBUTE', $GA_BUY_ST_ATTRIBUTE);
$tpl->assign('GA_BUY_DVDCOPY_ATTRIBUTE', $GA_BUY_DVDCOPY_ATTRIBUTE);
$tpl->assign('GA_BUY_MEDIABUDDY_ATTRIBUTE', $GA_BUY_MEDIABUDDY_ATTRIBUTE);
$tpl->assign('GA_BUY_IPODBACKUP_ATTRIBUTE', $GA_BUY_IPODBACKUP_ATTRIBUTE);
$tpl->assign('TITLE', $tpl->get_assigned($TITLE) );
$tpl->assign('KEYWORDS', $tpl->get_assigned($KEYWORDS) );
$tpl->assign('DESCRIPTION', $tpl->get_assigned($DESCRIPTION) );
?>
Warning: Undefined variable $rel_root_path in C:\websites.apache\soundtaxi.org\order.php on line 10
//put here some template specific logic
//list any possible page here
$tpl->define
(
array
(
"header" => "header.tpl",
"left_column" => "left_column.tpl",
"footer" => "footer.tpl",
"default_page" => "default.tpl",
"layout" => "layout.tpl",
"riptiger_content" => "riptiger.tpl",
"radioget_content" => "radioget.tpl",
"tuneget_content" => "tuneget.tpl",
"soundtaxi_content" => "soundtaxi.tpl",
"media_anywhere_content" => "media_buddy.tpl",
"media_buddy_cuda" => "media_buddy_nvidia_cuda_optimization.tpl",
"media_buddy_ati" => "media_buddy_ati_stream_transcoding.tpl",
"media_buddy_intel" => "media_buddy_intel_cpu_optimization.tpl",
"soundtaxi_media_suite_content" => "soundtaxi_media_suite.tpl",
"1stepdvdcopy_content" => "1step_dvdcopy.tpl",
"order" => "order.tpl",
"how_to_download_video_from" => "how_to_download_video_from.tpl",
"site_also_interested_in" => "site_also_interested_in.tpl",
"riptiger_supported_sites" => "riptiger_supported_sites.tpl",
"how_to_download_any_mp3" => "how-to-download-any-mp3.tpl",
"how_to_download_any_mp3-1" => "how-to-download-any-mp3-1.tpl",
"how_to_download_any_mp3-2" => "how-to-download-any-mp3-2.tpl",
"how_to_download_any_mp3-3" => "how-to-download-any-mp3-3.tpl",
"how_to_download_any_mp3-4" => "how-to-download-any-mp3-4.tpl",
"how_to_download_any_music_video" => "how-to-download-any-music-video.tpl",
"st_generic_video" => "soundtaxi_video_conversion.tpl",
"st_generic_audio" => "soundtaxi_audio_conversion.tpl",
"st_valentines_edition" => "soundtaxi_valentines_edition.tpl",
"soundtaxims_valentines_edition" => "soundtaxims_valentines_edition.tpl",
"any_video_to_ipad_converter" => "any_video_to_ipad_converter.tpl",
"how_to_copy_videos_to_ipad" => "how_to_copy_videos_to_ipad.tpl",
"get_media_buddy_free_video_converter" => "get_media_buddy_free_video_converter.tpl",
"3d_video_player" => "3d_video_player.tpl",
"3d_video_converter" => "3d_video_converter.tpl",
"privacy_information" => "privacy_information.tpl",
"upgrade" => "upgrade.tpl",
"backup_ipod" => "backup_ipod.tpl",
"why_uninstall" => "why_uninstall.tpl",
"why_uninstall_finished" => "why_uninstall_finished.tpl",
"affiliates" => "affiliates.tpl",
"black_friday_cyber_monday_software_sale" => "black_friday_cyber_monday_software_sale.tpl",
"calendar" => "calendar.tpl",
)
);
//parse only parts that are used on every page
$tpl->parse('HEADER','header');
$tpl->parse('FOOTER','footer');
$tpl->parse('LEFT_COLUMN','left_column');
?>
Warning: Undefined variable $rel_root_path in C:\websites.apache\soundtaxi.org\order.php on line 11
function logPinging( $s )
{
$fp = fopen("logs/regnow_ping.log","a");
fwrite($fp,$_SERVER['REMOTE_ADDR']." ".date("d.m H:i:s")." ".$s."\n");
fclose($fp);
}
function redirectToUrl( $url )
{
CheckIfPrimaryURLIsAliveAndRedirectToBackupIfNot( $url );
//header("Location: $url");
exit();
}
function CheckIfPrimaryURLIsAliveAndRedirectToBackupIfNot( $url )
{
/*if(is_valid_url( $url ))*/
$workingURL = $url;
/*else
{
$workingURL = GetBackupURLFor( $url );
logPinging( "URL: ".$url." Seems not to be valid. Redirecting to: ".$workingURL );
}*/
header("Location: ".$workingURL);
}
function GetBackupURLFor( $url )
{
$ProductIDSubst = "";
if( strstr($url, "13255-33") ) //media suite
$ProductIDSubst = "2398330";
else if( strstr($url, "18831-3") ) //riptiger
$ProductIDSubst = "2038946";
else if( strstr($url, "13255-34") ) //1step dvd copy
$ProductIDSubst = "2606434";
else if( strstr($url, "13255-30") ) //tuneget
$ProductIDSubst = "2359828";
else if( strstr($url, "13255-16") ) //soundtaxi
$ProductIDSubst = "1693354";
else if( strstr($url, "13255-40") ) //3d video converter
return $url;
else if( strstr($url, "13255-39") ) //3d video player
return $url;
else //if( strstr($url, "13255-31") ) //radioget
$ProductIDSubst = "2265264";
return "https://www.plimus.com/jsp/buynow.jsp?contractId=$ProductIDSubst&SS_SHORT_ORDER=true";
}
function is_valid_url( $url )
{
$start = microtime();
$url = @parse_url($url);
if ( !$url)
return false;
$url = array_map('trim', $url);
$url['port'] = (!isset($url['port'])) ? 80 : (int)$url['port'];
$path = (isset($url['path'])) ? $url['path'] : '';
if ($path == '')
$path = '/';
$path .= ( isset ( $url['query'] ) ) ? "?$url[query]" : '';
if ( isset ( $url['host'] ) AND $url['host'] != gethostbyname ( $url['host'] ) )
{
if ( PHP_VERSION >= 5 )
{
$headers = get_headers("$url[scheme]://$url[host]:$url[port]$path");
}
else
{
$fp = fsockopen($url['host'], $url['port'], $errno, $errstr, 30);
if ( ! $fp )
return false;
fputs($fp, "HEAD $path HTTP/1.1\r\nHost: $url[host]\r\n\r\n");
$headers = fread ( $fp, 128 );
fclose ( $fp );
}
$headers = ( is_array ( $headers ) ) ? implode ( "\n", $headers ) : $headers;
$end = microtime();
$start = explode(" ",$start);
$end = explode(" ",$end);
$diff = ($end[0] + $end[1]) - ($start[0] + $start[1]);
logPinging(" pinging took: ".$diff);
return ( bool ) preg_match ( '#^HTTP/.*\s+[(200|301|302)]+\s#i', $headers );
}
$end = microtime();
$start = explode(" ",$start);
$end = explode(" ",$end);
$diff = ($end[0] + $end[1]) - ($start[0] + $start[1]);
logPinging(" (in return always false) pinging took: ".$diff);
return false;
}
//////
///
/// returns array with all parameters for requested product or null if bundle requested
///
//////
function ReadInputOrderParameters()
{
$pr = strtolower($_GET["pr"]);
if($pr==null || strlen($pr)==0)
$pr = strtolower($_POST["pr"]);
switch($pr)
{
case "st":
return
array
(
"name" => "SoundTaxi",
"name_full" => "SoundTaxi Media Converter",
"price_full" => "$39.99",
"description" => "Easily convert any of your audio or video files",
"dev_name" => strtolower($_GET["pr"]),
"buy_url_ex" => $_SERVER["BUY_ST"],
"difference_to_bundle" => "$20"
);
case "rt":
return
array
(
"name" => "RipTiger",
"name_full" => "RipTiger (ST Media Catcher)",
"price_full" => "$34.99",
"description" => "Easily download ANY only videos",
"dev_name" => strtolower($_GET["pr"]),
"buy_url_ex" => $_SERVER["BUY_RT"],
"difference_to_bundle" => "$25"
);
case "tg":
return
array
(
"name" => "TuneGet",
"name_full" => "TuneGet (ST Media Downloader)",
"price_full" => "$19.99",
"description" => "FREE unlimited MP3 downloads",
"dev_name" => strtolower($_GET["pr"]),
"buy_url_ex" => $_SERVER["BUY_TG"],
"difference_to_bundle" => "$40"
);
case "rg":
return
array
(
"name" => "GetRadio",
"name_full" => "GetRadio (ST Radio Recorder)",
"price_full" => "$25.99",
"description" => "Listen to your favorite music from over 25,000 internet radio stations",
"dev_name" => strtolower($_GET["pr"]),
"buy_url_ex" => $_SERVER["BUY_RG"],
"difference_to_bundle" => "$34"
);
case "dc":
return
array
(
"name" => "1Step DVD Copy",
"name_full" => "1Step DVD Copy",
"price_full" => "$29.99",
"description" => "Backup and copy any DVD/Bluray disc(s)",
"dev_name" => strtolower($_GET["pr"]),
"buy_url_ex" => $_SERVER["BUY_DC"],
"difference_to_bundle" => "$30"
);
case "3dc":
return
array
(
"name" => "3D Video Converter",
"name_full" => "3D Video Converter",
"price_full" => "$24.99",
"description" => "Convert any video to 3D red-cyan anaglyph",
"dev_name" => strtolower($_GET["pr"]),
"buy_url_ex" => $_SERVER["BUY_3DC"],
"difference_to_bundle" => "$35"
);
case "3dp":
return
array
(
"name" => "3D Video Player",
"name_full" => "3D Video Player",
"price_full" => "$19.99",
"description" => "Play any video as 3D anaglyph - on-the-fly conversion to 3D Video",
"dev_name" => strtolower($_GET["pr"]),
"buy_url_ex" => $_SERVER["BUY_3DP"],
"difference_to_bundle" => "$35"
);
default:
return null;
}
}
?>
Fatal error: Uncaught Error: Call to undefined function ReadInputOrderParameters() in C:\websites.apache\soundtaxi.org\order.php:13
Stack trace:
#0 {main}
thrown in C:\websites.apache\soundtaxi.org\order.php on line 13