<?php require_once('includes/affiliator.inc.php'); $afltr_id=TGET('afltr_id'); $jumptarget=TGET('jumptarget'); if (!$afltr_id) return; $DBConn->connect(true); $afltr=db_load_affiliator($DBConn,$afltr_id); if (!$afltr) return; $affiliator_key=affiliator_generate_key($afltr['afltr_id'],$afltr['afltr_name'],$afltr['afltr_timestamp'],get_userpcid()); $dataset['afltr_id']=$afltr_id; $dataset['affiliator_url']='http://'.$Config->SERVER_DOMAIN.'/affiliator?key='.urlencode($affiliator_key).'&jumptarget='.urlencode($jumptarget); $dataset['affiliator_queryurl']='http://'.$Config->SERVER_DOMAIN.'/affiliator.query?key='.urlencode($affiliator_key).'&name='.urlencode($afltr['afltr_name']); ?>