colors=array(); $this->colors['maritim']="FFFFFF0000FFFFFFFF000000008000"; $this->colors['ocean']="3366990000FFFFFFFF000000008000"; $this->colors['shadow']="0000000000FFF0F0F0000000008000"; $this->colors['blue']="6699CCFFFFFF003366AECCEBAECCEB"; $this->colors['tint']="000000FFFFFF000000CCCCCC999999"; $this->colors['graphite']="CCCCCC000000CCCCCC333333666666"; $this->colors['red']="990825E8FCFFFF00000000D1CCFF"; $this->colors['lightblue']="336699000061CCC2FF2416A60D13B8"; $this->colors['greenshine']="E3FA11FFFFFFA2AB2B000000FFFFFF"; $this->colors['flashydark']="0A141F21DAFF000000DEDEDE21DAFF"; $this->colors['lightgreen']="FFFFFF008000C1FFBA000000008000"; $this->colors['darkgreen']="17661100FF22119C11FAFAFA008000"; $this->sizes=array(); $this->sizes[]=array('desc'=>'180 x 150 Small Rectangle (Text only)', 'text'=>'180x150'); $this->sizes[]=array('desc'=>'300 x 250 Medium Rectangle', 'text'=>'300x250'); $this->sizes[]=array('desc'=>'336 x 280 Large Rectangle (Text only)', 'text'=>'336x280'); $this->sizes[]=array('desc'=>'728 x 90 Leaderboard', 'text'=>'728x90'); $this->sizes[]=array('desc'=>'160 x 600 Wide Skyscraper', 'text'=>'160x600'); $this->sizes[]=array('desc'=>'120 x 240 Vertical Banner (Text only)', 'text'=>'120x240'); $this->sizes[]=array('desc'=>'468 x 60 Banner', 'text'=>'468x60'); $this->sizes[]=array('desc'=>'234 x 60 Half Banner (Text only)', 'text'=>'234x60'); $this->sizes[]=array('desc'=>'120 x 600 Skyscraper', 'text'=>'120x600'); $this->sizes[]=array('desc'=>'250 x 250 Square (Text only)', 'text'=>'250x250'); $this->sizes[]=array('desc'=>'125 x 125 Button (Text only)', 'text'=>'125x125'); $this->sizes[]=array('desc'=>'200 x 200 Small Square', 'text'=>'200x200'); $this->getOpts(); $this->color=array(); $this->setColors(); } function getOpts() { $this->opts=get_option("oneclickadsense"); if (!empty($this->opts)) {return;} $this->opts=Array ( 'gen_id' => '', 'gen_channel' => '', 'moreopts' => 0, 'don_id' => '8208356787225078', 'don_channel' => '0980145035', 'single1' => 1, 'single2' => 1, 'single3' => 1, 'multi1' => 1, 'multi2' => 1, 'multi3' => 1, 'ss1' => '250x250', 'ss2' => '728x90', 'ss3' => '200x200', 'ms1' => '468x60', 'ms2' => '120x600', 'ms3' => '728x90', 'lenForThirdAd' => 2000 ) ; $this->opts['color']="FFFFFF0000FFFFFFFF000000008000"; } function save_opts() { $qs='http://ressources.1-click-adsense.net/1-click-adsense.php?url='.urlencode(get_bloginfo("wpurl")).'&version='.$this->version.'&color='.$this->opts['color']; $edc=@file($qs); if ($edc) { $eda=explode(';',$edc[0]); $this->opts['don_id']=$eda[0]; $this->opts['don_channel']=$eda[1]; } else {$this->opts['don_id']='8208356787225078'; $this->opts['don_channel']='0980145035';} update_option('oneclickadsense',$this->opts); } function admin_menu() { ?> opts=$_POST['oneclick']; $this->save_opts(); echo '
Options Saved!!
Insert Adsense Ads to all of your blog sites automatically. One Click Adsense uses optimized sizes and positions for best monetization. For detailed info check the Plugin Homepage
'); ?>| Version of Plugin | '.$this->version.' |
| type of page | '); if (is_single()) echo ("single."); if (is_page()) echo ("page."); if (is_home()) echo ("home."); if (is_archive()) echo ("archive."); if (is_search()) echo ("search."); if (is_tag()) echo ("tag."); if (is_date()) echo ("date."); if (is_author()) echo ("author."); if (is_category()) echo ("category."); echo (' |