Help:Extension/GetEnvironment

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
 
環境変数を取得するextensionです。
 
環境変数を取得するextensionです。
 
取得できる環境変数はHTTP_ACCEPT_LANGUAGEのみです。
 
取得できる環境変数はHTTP_ACCEPT_LANGUAGEのみです。
 +
 +
== Usage ==
 +
=== <nowiki>{{#getenv:変数名}}</nowiki> ===
 +
現在はlang変数以外は使えません。
 +
 +
* コード
 +
<nowiki>{{#getenv:lang}}</nowiki>
 +
 +
* 実行例
 +
{{#getenv:lang}}
  
 
== Requirements ==
 
== Requirements ==

Revision as of 22:44, 28 February 2011

Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.1
MediaWiki
License
Hooks used
Token type

Contents


環境変数を取得するextensionです。 取得できる環境変数はHTTP_ACCEPT_LANGUAGEのみです。

Usage

{{#getenv:変数名}}

現在はlang変数以外は使えません。

  • コード
{{#getenv:lang}}
  • 実行例

Requirements

None

Download

versionsourcemd5OperationCheck version
0.1(April 23,2010)GetEnvironment.phps
35a3028c1584a5fc0e0810206b92486a
1.11.1, 1.16.2

Installtion

  1. Download the source code and rename it to GetEnvironment.php.
  2. Place it in the extensions/ directory.
  3. Insert the follow lines to LocalSettings.php
require_once( "$IP/extensions/GetEnvironment.php" );

Function

  1. getenv
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox