'Commission Junction', 'shortname' => 'cj', 'www' => 'http://www.cj.com/', 'www-create' => 'https://members.cj.com/member/publisher/accounts/listmyadvertisers.do?sortKey=active_start_date&sortOrder=DESC', 'www-signup' => 'http://www.cj.com/', ); /* INITIALISATION All functions in here called at startup (after other plugins have loaded, in case we need to wait for the widget-plugin). */ class Ad_CJ extends Ad_Generic { function Ad_CJ(){ $this->Ad_Generic(); } function render_ad(){ /* Get Paid to Blog About the Things You Love */ $cjservers=array( 'www.kqzyfj.com', 'www.tkqlhce.com', 'www.jdoqocy.com', 'www.dpbolvw.net', 'www.lduhtrp.net'); $code = ''; $code .= ''; $code .= 'pd('new-window')=='yes'){$code.=' target="_blank" ';} if($this->pd('hide-link')=='yes'){ $code.='onmouseover="window.status=\''; $code.=$this->pd('hide-link-url'); $code.='\';return true;" onmouseout="window.status=\' \';return true;"'; } $code .= '>'; $code .= 'pd('width') . '" '; $code .= ' height="' . $this->pd('height') . '" '; $code .= ' alt="' . $this->pd('alt-text') . '" '; $code .= '>'; $code .= ''; return $code; } function can_benice(){return false;} function reset_defaults_network() { global $_adsensem; $_adsensem['defaults'][$this->network()]+= array ( 'hide-link' => 'no', 'hide-link-url' => '', 'new-window' => 'no', 'alt-text' => '', 'adformat' => '250x250', ); } function save_settings_network() { $this->p['slot']=strip_tags(stripslashes($_POST['adsensem-slot'])); $this->p['adformat']=stripslashes($_POST['adsensem-adformat']); //$this->p['code']=stripslashes($_POST['adsensem-code']); $this->p['hide-link']=strip_tags(stripslashes($_POST['adsensem-hide-link'])); $this->p['hide-link-url']=strip_tags(stripslashes($_POST['adsensem-hide-link-url'])); $this->p['new-window']=strip_tags(stripslashes($_POST['adsensem-new-window'])); $this->p['alt-text']=strip_tags(stripslashes($_POST['adsensem-alt-text'])); } function import_detect_network($code){ # Domains: (add more) $domains = array( 'www.commission-junction.com', 'www.cj.com', 'www.qksrv.net', 'www.kqzyfj.com', 'www.tkqlhce.com', 'www.jdoqocy.com', 'www.dpbolvw.net', 'www.lduhtrp.net', 'www.anrdoezrs.net'); $match=false; foreach($domains as $d){$match=$match || (strpos($code,'href="http://' . $d)!==false);} return $match; } function import_settings($code){ /* Get Paid to Blog About the Things You Love */ if(preg_match('/http:\/\/([.\w]*)\/click-(\d*)-(\d*)/', $code, $matches)!=0){ //ACCOUNT ID? NEEDS DEFAULT IMPORT RULES. GAH. $_POST['adsensem-account-id'] = $matches[2]; $_POST['adsensem-slot'] = $matches[3]; } if(preg_match('/width="(\w*)"/', $code, $matches)!=0){ $width=$matches[1]; } if(preg_match('/height="(\w*)"/', $code, $matches)!=0){ $height=$matches[1]; } $_POST['adsensem-adformat'] = $width . "x" . $height; $this->save_settings(); } function _form_settings_help(){ ?>

Further campaigns can be found through CJ's site:

Statistics and earnings.

'Use Default'); $yesno = array('yes' => 'Yes','no' => 'No'); adsensem_admin::_field_input('Alternate Text','alt-text',$this->p['alternate-text'],25,'Alt text to display where images not shown.'); adsensem_admin::_field_select('In New Window','new-window',$yesno,$this->p['new-window']); adsensem_admin::_field_select('Hide Link','hide-link',$yesno,$this->p['hide-link']); adsensem_admin::_field_input('Display URL','hide-link-url',$this->p['hide-link-url'],25,'Destination to display when mouse hovers link.'); } function _var_ad_formats_available(){ $formats['horizontal']=array('728x90' => '728 x 90 Leaderboard', '468x60' => '468 x 60 Full Banner', '234x60' => '234 x 60 Half Banner', '150x50' => '150 x 50 Banner', '120x90' => '120 x 60 Button 1', '120x60' => '120 x 60 Button 2', '83x31' => '83 x 31 Micro Bar'); $formats['vertical']=array('240x400' => '240 x 400 Vertical Rectangle', '120x600' => '120 x 600 Skyscraper', '160x600' => '160 x 600 Wide Skyscraper', '120x240' => '120 x 240 Vertical Banner'); $formats['square']=array('336x280' => '336 x 280 Large Rectangle', '300x250' => '300 x 250 Medium Rectangle', '250x250' => '250 x 250 Square', '200x200' => '200 x 200 Small Square', '180x150' => '180 x 150 Small Rectangle', '125x125' => '125 x 125 Button'); $formats['custom']=array('custom' => 'Custom'); return $formats; } //Middle function admin_manage_column2(){ adsensem_admin::manage_dbxoutput(array('ad_format','link_options')); } } ?>