From a63fb39dd51a845a69fc96325a72b47f1bc74c3f Mon Sep 17 00:00:00 2001 From: zero Date: Sun, 12 Aug 2007 04:06:27 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=EB=B3=B8=20=EC=95=A0=EB=93=9C?= =?UTF-8?q?=EC=98=A8=EC=97=90=EC=84=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2336 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- addons/google_adsense/conf/info.xml | 194 ------------------ .../google_adsense/google_adsense.addon.php | 23 --- addons/google_adsense/google_adsense.lib.php | 53 ----- 3 files changed, 270 deletions(-) delete mode 100644 addons/google_adsense/conf/info.xml delete mode 100644 addons/google_adsense/google_adsense.addon.php delete mode 100644 addons/google_adsense/google_adsense.lib.php diff --git a/addons/google_adsense/conf/info.xml b/addons/google_adsense/conf/info.xml deleted file mode 100644 index 85077dded..000000000 --- a/addons/google_adsense/conf/info.xml +++ /dev/null @@ -1,194 +0,0 @@ - - - 게시글 구글 애드센스 연동 - グーグル・アドセンス - Google AdSense - Linkage of Articles and Google Adsense - - 제로 - Zero - zero - zero - - 게시글의 상/하단에 구글 애드센스를 추가할 수 있습니다. - 추가확장폼에서 사용자에게 구글애드센스 코드를 받게 하여 글쓴이와 연동되는 애드센스 출력이 가능합니다. - 이 기능을 사용하지 않거나 사용자가 애드센스 코드를 입력하지 않았다면 기본으로 설정된 애드센스 코드가 사용됩니다. - 색상을 입력할때는 # 을 제외한 나머지 6자리의 색상코드를 입력해주세요. - 위치를 top 또는 bottom을 입력하시면 게시글 상단 또는 하단에 광고를 출력할 수 있습니다. - - - コンテンツ(書き込み)の上・下段にグーグル・アドセンス(Google AdSense)を追加することができます。追加拡張フォームに、グーグル・アドセンス(Google AdSense)コードを入力すると、書き込みにユーザ自身のグーグル・アドセンス(Google AdSense)が挿入できます。 - - この機能を使わない、またはユーザがグーグル・アドセンス(Google AdSense)コードを入力しない場合は、デフォルトで設定されたアドセンス適用されます。文字列などに色を使用する場合は、「 #」を除く6ケタのカラーコードを入力してください。 - - 「top」または「bottom」を入力すると書き込みの上段または下段に広告を出力することができます。 - - - 可以把Google AdSense添加到文章的上/下端。 - 可以让用户在扩展表单里获得Google AdSense代码,从而也可以显示与作者相关联的AdSense。 - 不使用此功能或用户没有输入Google AdSense代码时,使用默认的AdSense代码。 - 输入颜色时,输入除#以外的 6位颜色代码。 - 指定显示位置时,输入top或bottom即可把AdSense显示在内容的上端或下端。 - - - Google Adsense can be added at top/bottom of article. - An adsense linked with writer can be displayed by Google adsense code input by user in additional form. - If this isn't used or user hasn't input the adsense code, the default adsense code will be used. - To use color, input 6 color code except '#'. - You can display the ad at the top or the bottom of article by input Position as top or bottom. - - - - - 위치 - 位置 - 位置 - Position - top : 게시글 상단, bottom : 게시글 하단 을 지정하실 수 있습니다. - top : 本文の上段, bottom : 本文の下段 - 可以指定显示位置。(top : 内容上端, bottom : 内容下端) - You can set top : top of article, bottom : bottom of article. - - - 구글 애드센스 키 - アドセンスキー - Google Adsense Key - Google Adsense Key - 기본으로 사용될 구글 애드센스 키를 입력해주세요. - デフォルトで使用するグーグルアドセンスキーを入力してください。 - 请输入要使用的默认Google Adsense Key。 - Please input Google Adsense key to use as default. - - - 회원 키 항목 이름 - キー項目名 - 会员Key项目名 - Name of Member Key Item - 회원의 구글 애드센스를 허락하시려면 가입항목중 구글 키 입력 항목 이름을 입력해주세요. - グーグル・アドセンスが使用できるようするにためには、加入項目でグーグルキー入力項目名を入力してください。 - - 允许会员使用个人Google AdSense时,请输入要在会员注册项目中显示的Google Key项目名。 - To permit members' Google Adsense, please input name of Google key item in join items. - - - 가로 길이 - 横幅 - 宽度 - Width - 애드센스의 가로길이를 입력해주세요. - アドセンスの横幅のサイズを入力してください - 请输入AdSense的宽度大小。 - Please input width of Adsense. - - - 세로 길이 - 縦幅 - 高度 - Height - 애드센스의 세로길이를 입력해주세요. - アドセンスの立幅のサイズを入力してください。 - 请输入高度大小。 - Please input height of Adsense. - - - 포맷 - フォーマット - 格式 - Format - 애드센스 포맷을 입력해주세요. - アドセンスのフォーマットを入力してください。 - 请输入广告格式 - Please input format of Adsense. - - - 타입 - タイプ - 样式 - Type - 애드센스의 타입을 입력해주세요. - アドセンスのタイプを入力してください。 - 请输入AdSense样式。 - Please input type of Adsense. - - - 채널 - チャンネル - 频道 - Channel - 채널을 입력해주세요. (사용자 정의 구글 애드센스일 경우 사용되지 않습니다) - チャンネルを入力してください(カスタマイズ・グーグル・アドセンスには使用されません)。 - 请输入频道。 (用户自定义Google AdSense不使用频道) - Please input channel. (It will not be used for custom Google Adsense) - - - 외곽선 색상 - ボーダカラー - 边框颜色 - Border Color - 외곽선 색상을 입력해주세요. - ボーダーカラーを入力してください。. - 请输入边框颜色。 - Please input color of border. - - - 배경색 - 背景色 - 背景色 - Background Color - 배경색상을 입력해주세요. - 背景色を入力してください - 请输入背景颜色。 - Please input color of background. - - - 링크 글자색 - リンク色 - 链接颜色 - Link Color - 링크가 걸린 글자의 색상을 입력해주세요. - リンクの文字列の色を入力してください。 - 请输入链接颜色。 - Please input color of linked text. - - - 글자 색 - 文字列色 - 字体颜色 - Text Color - 링크가 걸리지 않은 글자의 색을 입력해주세요 - 文字列の色を入力してください。 - 请输入没有链接字体颜色。 - Please input color of text. - - - URL 색 - URL色 - URL 颜色 - URL Color - URL의 글자색을 입력해주세요. - URLの色を入力してください。 - 请输入URL的颜色。 - Please input color of URL. - - - 테두리 형태 - ボーダスタイル - 边框样式 - Border Style - 테두리 형태를 입력해주세요. - ボーダースタイルを入力してください。 - 请输入边框样式。 - Please input style of border. - - - 배경 이미지를 입력해주세요. - 背景イメージ - 请输入背景图片。 - Please input image of background. - 접근가능한 웹서버에 올린 배경 이미지의 URL을 입력해주세요. - アクセス可能なWebサーバにアップロードされている背景イメージのURLを入力してください。 - 请输入有效的图片URL。 - Please input URL of background image which is uploaded on accessible web server. - - - diff --git a/addons/google_adsense/google_adsense.addon.php b/addons/google_adsense/google_adsense.addon.php deleted file mode 100644 index 5fa45eb00..000000000 --- a/addons/google_adsense/google_adsense.addon.php +++ /dev/null @@ -1,23 +0,0 @@ -position == "top") $pos_regx = "!<\!--BeforeDocument\(([0-9]+),([0-9]+)\)-->!is"; - else $pos_regx = "!<\!--AfterDocument\(([0-9]+),([0-9]+)\)-->!is"; - - $GLOBALS['__g_addon_info__'] = $addon_info; - - $output = preg_replace_callback($pos_regx, matchDocument, $output); -?> diff --git a/addons/google_adsense/google_adsense.lib.php b/addons/google_adsense/google_adsense.lib.php deleted file mode 100644 index 9d4f79d21..000000000 --- a/addons/google_adsense/google_adsense.lib.php +++ /dev/null @@ -1,53 +0,0 @@ -user_ad_client) { - $oMemberModel = &getModel('member'); - $member_info = $oMemberModel->getMemberInfoByMemberSrl($member_srl); - $key = $member_info->{$addon_info->user_ad_client}; - if($key) { - $addon_info->ad_client = $key; - $addAdSense->ad_type = ''; - } - } - - $adsense_code = addAdSense($addon_info); - - return $source_code.$adsense_code; - } - - function addAdSense($addon_info) { - $script_code = << - - -EndOfScript; - - if($addon_info->background_image) $backgroundStyle = sprintf('background-image:url(%s)', $addon_info->background_image); - - $script_code = sprintf('
%s
',$addon_info->ad_width, $addon_info->ad_height, $backgroundStyle, $script_code); - - return $script_code; - } - -?>