<?php require dirname(__FILE__) . '/includes/bootstrap.php'; $classPublisherAd = new BuckysPublisherAds(); $bannerHTML = $classPublisherAd->renderAd($_GET['ad']); ?> <!DOCTYPE html> <html lang="en"> <head> <style type="text/css"> *{ margin: 0; padding: 0; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; } /*** publisher.css Starts Here ***/ .buckysroom-ad-banner table{ border: solid 1px #006699; } .buckysroom-ad-banner td{ padding: 0; } .buckysroom-ad{ padding: 0 8px; white-space: -moz-pre-wrap !important; white-space: -pre-wrap;
function render_forum_ad($userID) { global $db; $publisherAdClass = new BuckysPublisherAds(); //Getting Ad Token $query = $db->prepare("SELECT token FROM " . TABLE_PUBLISHER_ADS . " WHERE publisherID=%d AND adType=%d", $userID, TNB_AD_TYPE_FORUM); $token = $db->getVar($query); echo $publisherAdClass->renderAd($token); }