mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 12:19:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1572 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
24008a04ad
commit
8a2042ea61
9 changed files with 166 additions and 8 deletions
25
addons/openid_delegation_id/conf/info.xml
Normal file
25
addons/openid_delegation_id/conf/info.xml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<addon version="0.1">
|
||||
<title xml:lang="ko">OpenID delegation ID</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<description xml:lang="ko">
|
||||
본인의 도메인을 사용하여 오픈아이디로 활용할 수 있도록 합니다.
|
||||
꼭 설정을 통해서 openid provider관련 값을 입력후 사용해주세요.
|
||||
</description>
|
||||
</author>
|
||||
<extra_vars>
|
||||
<var name="server">
|
||||
<title xml:lang="ko">server</title>
|
||||
<description xml:lang="ko">openid.server 값을 입력해 주세요.</description>
|
||||
</var>
|
||||
<var name="delegate">
|
||||
<title xml:lang="ko">delegate</title>
|
||||
<description xml:lang="ko">openid.delegate값을 입력해주세요.</description>
|
||||
</var>
|
||||
<var name="xrds">
|
||||
<title xml:lang="ko">xrds</title>
|
||||
<description xml:lang="ko">X-XRDS-Location값을 입력해주세요.</description>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</addon>
|
||||
29
addons/openid_delegation_id/openid_delegation_id.addon.php
Normal file
29
addons/openid_delegation_id/openid_delegation_id.addon.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
if(!defined("__ZBXE__")) exit();
|
||||
|
||||
/**
|
||||
* @file openid_delegation_id.addon.php
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief OpenID Delegation ID 애드온
|
||||
*
|
||||
* 오픈아이디를 자신의 홈페이지나 블로그 주소로 이용할 수 있도록 해줍니다.
|
||||
* 꼭 설정을 통해서 사용하시는 오픈아이디 서비스에 해당하는 정보를 입력해주세요.
|
||||
**/
|
||||
|
||||
// called_position이 before_module_init일때만 실행
|
||||
if($called_position != 'before_module_init') return;
|
||||
|
||||
// openid_delegation_id 애드온 설정 정보를 가져옴
|
||||
if(!$addon_info->server||!$addon_info->delegate||!$addon_info->xrds) return;
|
||||
|
||||
$header_script = sprintf(
|
||||
'<link rel="openid.server" href="%s" />'."\n".
|
||||
'<link rel="openid.delegate" href="%s" />'."\n".
|
||||
'<meta http-equiv="X-XRDS-Location" content="%s" />',
|
||||
$addon_info->server,
|
||||
$addon_info->delegate,
|
||||
$addon_info->xrds
|
||||
);
|
||||
|
||||
Context::addHtmlHeader($header_script);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue