招きロゴ
会社 ロゴマーク‖会社の顔であるロゴマークを作成 サンプルからお選びいただき48時間でお届けします!


MENU
テーマ別ロゴマーク販売サンプル
ロゴマーク販売サンプル
新着ロゴマーク販売サンプル
おすすめ販売ロゴ
オリジナルロゴ作成
特定商取引法表示

ご利用案内
ロゴマーク検索
お問い合せ
#!/usr/bin/perl use LWP::UserAgent; use Time::HiRes qw(gettimeofday); use URI::Escape; sub google_append_color { my @color_array = split(/,/, $_[0]); return $color_array[$_[1] % @color_array]; } sub google_append_screen_res { my $screen_res = $ENV{"HTTP_UA_PIXELS"}; if ($screen_res == "") { $screen_res = $ENV{"HTTP_X_UP_DEVCAP_SCREENPIXELS"}; } if ($screen_res == "") { $screen_res = $ENV{"HTTP_X_JPHONE_DISPLAY"}; } my @res_array = split("[x,*]", $screen_res); if (@res_array == 2) { return "&u_w=" . $res_array[0] . "&u_h=" . $res_array[1]; } } sub google_append_muid { my $muid = $ENV{"HTTP_X_DCMGUID"}; if ($muid) { return "&muid=" . $muid; } my $muid = $ENV{"HTTP_X_UP_SUBNO"}; if ($muid) { return "&muid=" . $muid; } my $muid = $ENV{"HTTP_X_JPHONE_UID"}; if ($muid) { return "&muid=" . $muid; } my $muid = $ENV{"HTTP_X_EM_UID"}; if ($muid) { return "&muid=" . $muid; } } sub google_append_via_and_accept { if ($_[0] eq "") { my $via_and_accept; my $via = uri_escape($ENV{"HTTP_VIA"}); if ($via) { $via_and_accept = "&via=" . $via; } my $accept = uri_escape($ENV{"HTTP_ACCEPT"}); if ($accept) { $via_and_accept = $via_and_accept . "&accept=" . $accept; } if ($via_and_accept) { return $via_and_accept; } } } my $google_dt = sprintf("%.0f", 1000 * gettimeofday()); my $google_scheme = ($ENV{"HTTPS"} eq "on") ? "https://" : "http://"; my $google_user_agent = uri_escape($ENV{"HTTP_USER_AGENT"}); my $google_ad_url = "http://pagead2.googlesyndication.com/pagead/ads?" . "ad_type=text_image" . "&channel=3882717231" . "&client=ca-mb-pub-1030413283713069" . "&dt=" . $google_dt . "&format=mobile_single" . "&ip=" . uri_escape($ENV{"REMOTE_ADDR"}) . "&markup=xhtml" . "&oe=utf8" . "&output=xhtml" . "&ref=" . uri_escape($ENV{"HTTP_REFERER"}) . "&url=" . uri_escape($google_scheme . $ENV{"HTTP_HOST"} . $ENV{"REQUEST_URI"}) . "&useragent=" . $google_user_agent . google_append_screen_res() . google_append_muid() . google_append_via_and_accept($google_user_agent); my $google_ua = LWP::UserAgent->new; my $google_ad_output = $google_ua->get($google_ad_url); if ($google_ad_output->is_success) { print $google_ad_output->content; }

ログイン
新規登録はこちら
ご購入ロゴマーク

Copyright (C) 2009-2010 招きロゴ.com. All Rights Reserved.