| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/baby-ratgeber.net/web/ |
Upload File : |
<?php
require_once("wp-load.php");
$post = get_post_by_slug($_GET['post_title']);
$sOfferLink = get_post_meta($post->ID, 'offer_link');
$link = $sOfferLink ? $sOfferLink[0] : false;
if($link === false) {
if(isset($_GET['search'])) { // Produktsuche auf Amazon
$sAmazonSearch = urlencode(str_replace('-', ' ', $post->ID));
header("location: http://www.amazon.de/s/ref=as_li_ss_tl?_encoding=UTF8&field-keywords=".$sAmazonSearch."&linkCode=ur2&search-type=ss&site-redirect=de&tag=handysofortor-21");
die;
} elseif(isset($_GET['link_id'])) {
$sOfferLink = get_post_meta($_GET['link_id'], 'offer_link');
header("location: ".$sOfferLink[0]);
die;
} else {
$sAmazonLink = get_post_meta($post->ID, 'offer_asa');
if(isset($sAmazonLink[0])) {
header("location: http://www.amazon.de/exec/obidos/ASIN/".$sAmazonLink[0]."/babyratgebernet-21");
die;
} else {
echo "fehlerhafter Link";
}
}
} else {
header("location: ".$link);
die;
}