gimme4free, you are lying to me.
Those variables/arrays are from the standalone version, $num (actually $magic_number) and $cpa_offer_url.
And you are right about that the standalone version needs to be edited, because initially it can do only one redirect.
So I always assumed the WP version was also only able to redirect to one CPA Offer.
The WP version always crapped out on me with a timeout error.
But I was always too lazy to research what caused it.
But I just checked the source code and I know why I the plugin gets the timeout error.
When you go to the options page, the plugin tries to load all posts and pages with the status "publish", with a SQL SELECT, to display their title.
I always installed the plugin on a blog with combined over 2000 posts and pages. So it timed out.
But just now, I installed it on a WP blog with just 4 pages and no posts yet, and the plugin's screen showed up. I can attach a different Affiliate/CPA URL to each published WP post/page URL.
Only when the magic number in the incoming URL matches the one in the options, the magic number is stripped from the incoming URL, and the plugin redirects to the Affiliate/CPA URL.
When the magic number is not present, or mismatches, the WP post or page is displayed as normal.
So I can redirect many links with the WP version, as long as I keep the blogposts and pages at a low number. I'll set up a special blog with a page (not post) for each affilite offer and see how that goes.
Thanks for
"forcing" me to check this out.
Oh yes and you have to add 1 line of code (with the function call) to the header.php file of the template.