if (({visitor_id} > 0 && {visitor_id} == {owner_id}) || ({admin_mode}==true)) {
    return (getParam('permalinks_module_ads') == 'on') ? 'ads/my_page/edit/{ads_id}' : 'modules/boonex/ads/classifieds.php?action=my_page&mode=add&EditPostID={ads_id}';
} else return null;