<?

if ($set['rekl']=='mobiads'){
if (isset ($set['mobiads_id']) && $set['mobiads_id']!=0 && isset ($set['mobiads_num_links']) && $set['mobiads_num_links']!=0){
echo "<div class='rekl_main'>\n";

echo "<!--mobiads.ru $set[mobiads_id]-->\n"; 
include_once H.'sys/inc/mobiads.php';
$ads = @get_ads($set['mobiads_id'], $set['mobiads_code'],$set['mobiads_num_links']); 
if($ads['STATUS'] == 'OK') 
foreach($ads['ADS'] as $link) 
{ 
echo '<a target="_blank" href="'.htmlspecialchars($link[0], ENT_QUOTES, 'UTF-8').'">'.htmlspecialchars($link[1], ENT_QUOTES, 'UTF-8')."</a><br />\n"; 
} 
else echo $ads['DESCRIPTION']; 
echo "</div>\n";
}
}
if ($set['rekl']=='wappc' && $set['wappc_num_links']!=0){
echo "<div class='rekl_main'>\n";
echo "<!-- http://vrozetke.ru/?uid=".ereg_replace('\..*$','',$set['wappc_id'])." -->";
global $wappc3_curl;
$wappc3_curl=0;
include_once H.'sys/inc/libwappc3.php';
print GetFeedWAPPC3($set['wappc_num_links'],array('charset'=>'utf-8','temp'=>H.'sys/tmp','aff'=>"$set[wappc_id]",'empty'=>"<a target='_blank' href='http://vrozetke.ru'>vrozetke.ru</a>",'template'=>'%code%','sep'=>'<br />','topbid'=>1,'operator'=>1));

echo "</div>\n";
}

?>