PHP Classes

File: simple_example.php

Recommend this page to a friend!
  Classes of Arturs Sosins   Pop under class   simple_example.php   Download  
File: simple_example.php
Role: Example script
Content type: text/plain
Description: Simple implementation example
Class: Pop under class
Display interstitial advertising
Author: By
Last change: credits changed
Date: 12 years ago
Size: 1,523 bytes


Class file image Download
 * This script is developed by Arturs Sosins aka ar2rsawseen,
 * Fee free to distribute and modify code, but keep reference to its creator
 * Pop under class allows you to implement pop under advertising to your website.
 * You can customize probability of ads to appear, time for how long to show advertisement and much more.
 * Language and template files included to provide full outlook customization
 * For more information, examples and online documentation visit:

//declaring class instance
$popunder = new pop_under();

//putting in link to show with optional title text
$popunder->add_url("", "Code snippets");
$popunder->add_url("", "Arturs Sosin's PHP classes");

//for testing purpose visitors won't be marked

//and of course showing ads
//put this before any other output

//and some content goes here
echo "<p>Content</p>";
"<p>Default probability of popunder to appear is 10% on every pageview, so just keep refreshing till you get it ;)</p>";
"<p><a href='?id=".($_GET['id']+1)."'>Goto ".($_GET['id']+1)."</a></p>";