Ana Sayfa
$val)
{
$data = $_POST['categories_'.$key];
if (!empty($data))
// do we have selected categories?
{
$c = count($data)-1; $s = "";
foreach ($data as $k=>$v)
{
$s.=trim($v); if ($c != $k) $s.=",";
}
update_option("ace_categories_".$key,$s);
}
// no, so we clean up.
else update_option("ace_categories_".$key,'');
if($key == $xsg_category)
{
if (empty($data)) $data = array();
ace_xsg_update($data);
}
unset($data);
}
}
}
}
if ($_POST['empty'])
{
foreach ($ace_targets as $key=>$val)
{
update_option("ace_categories_".$key,"");
}
}
if(!function_exists('get_terms'))
/**
* Wordpress 2.2 < way, to list out categories
*/
{
if(get_option("default_link_category") != "") $defaultLinkCat = get_option("default_link_category");
/**
* This is deprecated since WP 2.3
*/
if (!empty($ec3Category)) $exclude = 'exclude='.$defaultLinkCat.','.$ec3Category;
else $exclude = 'exclude='.$defaultLinkCat;
}
else
{
if (!empty($ec3Category)) $exclude = 'exclude='.$ec3Category;
else $exclude = 'exclude=';
}
// for ec3 users
if (get_option("ace_settings_ec3") != "1" && get_option("ec3_event_category") != "")
{
$exclude = 'exclude='.$defaultLinkCat.','.get_option("ec3_event_category");
}
else $exclude = 'exclude='.$defaultLinkCat;
$hide_empty = '&hide_empty=1';
if (get_option("ace_settings_showempty") == '1')
{
$hide_empty = '&hide_empty=0';
}
$categories = get_categories($exclude.$hide_empty);
?>
-
- a donation here'), "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal@djz.hu&item_name=Advanced%20Category%20Excluder%20for%20Wordpress"); ?>
flush();
?>