include_once( $_SERVER['DOCUMENT_ROOT'] . '/adsense/lib.pagedisplay.inc.php' ); $mobile = PageDisplay::getInstance()->mobile(); if ( empty( $mobile ) ) { // not mobile $ad = '728x90'; $forum = strpos( $_SERVER['REQUEST_URI'], 'forum' ); if ( ! empty( $forum ) ) { $ad = '728x90-dark'; } echo PageDisplay::getInstance()->adsense( $ad ); }