cmp_php

Source Location: /cmsimple/cms.php
作成日:2015/09/20

データ元
http://www.cmsimple-xh.org/dev-doc/php/XH/_cmsimple---cms.php.html

 

The main file of CMSimple_XH.

PHP versions 4 and 5

Author:   The CMSimple_XH developers <devs@cmsimple-xh.org>
Author:   Peter Harteg <peter@harteg.dk>
Version:   SVN: $Id: cms.php 1502 2015-03-08 00:52:55Z cmb69 $
Copyright:   1999-2009 Peter Harteg
Copyright:   2009-2015 The CMSimple_XH developers <http://cmsimple-xh.org/?The_Team>
Link:   http://cmsimple-xh.org/
License:   GNU GPLv3

Includes
include ($pth['file']['plugin_admin']) [line 1164]
include ($pth['file']['template']) [line 1381]
include ($pth['file']['plugin_index']) [line 1153]
include_once ($pth['file']['plugin_classes']) [line 887]
include_once ($pth['folder']['cmsimple'].'userfuncs.php') [line 1038]
include_once ($pth['folder']['classes'].'LinkChecker.php') [line 1292]
include_once ($pth['folder']['cmsimple'].'adminfuncs.php') [line 923]
require_once ($pth['folder']['classes'].'PluginMenu.php') [line 278]
require_once ($pth['folder']['cmsimple'].'tplfuncs.php') [line 271]
require_once (UTF8.'/ucfirst.php') [line 280]
require_once ($pth['folder']['cmsimple'].'functions.php') [line 270]
require_once ($pth['folder']['classes'].'PasswordHash.php') [line 274]
require_once ($pth['folder']['classes'].'PageDataView.php') [line 277]
require_once ($pth['folder']['classes'].'PageDataModel.php') [line 276]
require_once ($pth['folder']['classes'].'PageDataRouter.php') [line 275]
require_once (UTF8.'/utils/validation.php') [line 281]
require_once ($pth['folder']['classes'].'Controller.php') [line 272]
require_once ($pth['folder']['plugins'].'utf8/utf8.php') [line 279]
require_once ($pth['folder']['classes'].'CSRFProtection.php') [line 273]


定数
CMSIMPLE_BASE  [line 768]

CMSIMPLE_BASE = $pth['folder']['base']

ルートフォルダの相対パス
./

CMSIMPLE_ROOT  [line 763]

CMSIMPLE_ROOT = XH_getRootFolder()

インストールした ルートフォルダのパス.
例えば、 http://cmsimple-jp.org/sub/ が、トップページなら /sub/

※絶対パス(ドキュメントルート)は 、 $_SERVER['DOCUMENT_ROOT'] . CMSIMPLE_ROOT  で取る

CMSIMPLE_URL  [line 777]

CMSIMPLE_URL = 'http'.(!empty($_SERVER['HTTPS'])&&$_SERVER['HTTPS']!='off'?'s':'').'://'.$_SERVER['HTTP_HOST'].$sn

The fully qualified absolute URL of the installation (main or current language).
インストールの完全修飾絶対URL(メインまたは現在の言語).
 インストールした CMSimpleのトップページのURL
例えば このサイトなら http://cmsimple-jp.org/

API Tags:
See:   $sn

Information Tags:
Since:   1.6
CMSIMPLE_XH_BUILD  [line 214]

CMSIMPLE_XH_BUILD = '@CMSIMPLE_XH_BUILD@'

更新日時(新規作成?): YYYYMMDDBB

CMSIMPLE_XH_DATE  [line 218]

CMSIMPLE_XH_DATE = '@CMSIMPLE_XH_DATE@'

The release date in ISO 8601 format: YYYY-MM-DD

CMSIMPLE_XH_VERSION  [line 210]

CMSIMPLE_XH_VERSION = '@CMSIMPLE_XH_VERSION@'

CMSimpeのバージョン, e.g. CMSimple_XH 1.6

PLUGINLOADER  [line 1051]

PLUGINLOADER = true

プラグインとの互換性のため.

PLUGINLOADER_VERSION  [line 1056]

PLUGINLOADER_VERSION = 2.111

PLUGINLOADERのバージョン.

XH_ADM  [line 920]

XH_ADM = $adm

管理モードかどうか?.

API Tags:
See:   $adm

Information Tags:
Link:   http://www.cmsimple-xh.org/wiki/doku.php/plugin_interfaces#xh_adm
Since:   1.5.4
XH_FORM_NAMESPACE  [line 1063]

XH_FORM_NAMESPACE = 'PL3bbeec384_'

A unique prefix for autogenerated forms.
自動生成されたフォームの一意の接頭辞

Information Tags:
Link:   http://forum.cmsimple-xh.dk/?f=12&t=4956#p25550
XH_URICHAR_SEPARATOR  [line 89]

XH_URICHAR_SEPARATOR = '|'

The separator for urichar_org/new.
URLパラメーターの区切り

Information Tags:
Since:   1.6


グローバル変数
string   $action [line 485]

要求されたアクション.

要求されたアクション アクションGET / POSTパラメータから初期化され、通常、プラグインのバックエンドの一部の機能を要求するために$admin と組み合わせて使用​​されます。

Default value:  null
API Tags:
Access:   public
bool   $adm [line 837]

管理者モードであるか否か

This variable is strictly read-only.

Default value:  0
API Tags:
See:   XH_ADM
Access:   public
string   $admin [line 472]

管理者モードで要求されたプラグイン 

This read-only variable is initialized from an admin GET/POST parameter, and is usually used in combination with $action to request some functionality of a plugin back-end.

Default value:  null
API Tags:
Access:   public
string   $bjs [line 160]

(X)HTML that will be inserted right before the </body> tag.

This read-write variable can be used to add script elements to the end of the body element. Usually you will only append to this variable.

Default value:  ''
API Tags:
See:   $hjs
Access:   public

Information Tags:
Link:   http://www.cmsimple-xh.org/wiki/doku.php/plugin_interfaces#bjs
Since:   1.5.4
array   $c [line 992]

コンテンツの全データ。配列。
$c[$s] で、ページが指定される

Treat as read-only when in edit mode.

Default value:  null
API Tags:
Access:   public
array   $cf [line 303]

 基本的に 設定されたデータ config.phpの内容

※ そのページに設定されてる Meta-tagプラグイン、Page_paramsプラグイン の内容で上書きされる。
※ 表示してるページの テンプレート周りのデータを探るときは、ここを

/*
 * Set the meta tags contents.
 */
if ($pd_current['title']) {
    $cf['site']['title'] = $pd_current['title'];
    $cf['title']['format'] = "{SITE}";
}
if ($pd_current['description']) {
    $tx['meta']['description'] = $pd_current['description'];
}
if ($pd_current['keywords']) {
    $tx['meta']['keywords'] = $pd_current['keywords'];
}
if ($pd_current['robots']) {
    $cf['meta']['robots'] = $pd_current['robots'];
}
-------------------------------------------
/**
 * Page-Parameters - main index.php
 */
...
$cf['site']['template'] = $data['template'];



Should be treated as read-only.

Default value:  XH_readConfiguration()
API Tags:
See:   $plugin_cf
Access:   public
bool   $cgi [line 443]

Whether PHP is executed as (F)CGI.

Should be treated as read-only.

Default value:  (php_sapi_name() == 'cgi' || php_sapi_name() == 'cgi-fcgi')
API Tags:
Access:   public
int   $cl [line 944]

全ページ数・・全体で何ページあるか。

Treat as read-only.

Default value:  0
API Tags:
Access:   public
string   $download [line 560]

ダウンロード時にリクエストされたファイル名.

This variable is initialized from a download GET/POST parameter.

Default value:  null
API Tags:
Access:   private
string   $downloads [line 573]

Whether the file browser is requested to show the download folder.

This variable is initialized from a downloads GET/POST parameter, and should only be used by file browsers and similar extensions, which may treat it as read-write.

Default value:  null
API Tags:
Access:   public
string   $e [line 128]

The (X)HTML for the <li>s holding error messages.

This read-write variable can be used to add error messages above the content. Usually you will only append to this variable.

Default value:  ''
API Tags:
See:   e()
Access:   public
string   $edit [line 627]

編集モードかどうか?.

This read-only variable is initialized from a edit GET/POST parameter or the mode cookie. If you want to switch to edit or view mode, you should set the edit GET parameter.

Default value:  null
API Tags:
See:   $normal
Access:   public
array   $errors [line 332]

 エラーの内容:デバッグモード時に使用.

Default value:  array()
API Tags:
Access:   private
string   $f [line 850]

要求された関数名.

This read-write variable is initialized from different GET/POST parameters. Usually you will want to treat it as read-only or even as private.

Default value:  ''
API Tags:
Access:   public
string   $file [line 665]

The name of a special file to be handled in the back-end.

This variable is initialized from a file GET/POST parameter.

Default value:  null
API Tags:
Access:   private
string   $function [line 498]

The requested function.

This variable is set from a function GET/POST parameter, which denotes some special functionality. If set from your extension treat it as read-write; otherwise ignore it.

Default value:  null
API Tags:
Access:   public
array   $h [line 1005]

全ページの見出し・・pageplugin(ページ管理)で設定した見出し. 配列 
配列の数は $cl
メニューで使用されてる

Treat as read-only.

Default value:  null
API Tags:
See:   h()
Access:   public
array   $hc [line 1199]

可視メニュー項目のページインデックス(The page indexes of the visible menu items.)
配列
メニュー非掲載を除く
例えば $hc[3] には、メニューの4番目に対応するのが、全データで何番目のデータ(ページインデックス:$s)が入る
$hc[$si]
※メニューの作成時に使用される

This read-only variable can be used to build a menu with li().

Default value:  array()
API Tags:
Access:   public
string   $hjs [line 142]

(X)HTML の <head> に記述される内容.

This read-write variable can be used to add script, style, meta and link elements etc. to the head element. Usually you will only append to this variable.

Default value:  ''
API Tags:
See:   $bjs
Access:   public
int   $hl [line 1208]

 $hc.の文字列の長さ

Default value:  -1
API Tags:
Access:   private
mixed   $i [line 194]

テンポラリーなループ変数.

This read-write variable can be used to avoid polluting the global scope.

Default value:  null
API Tags:
Access:   public
bool   $iis [line 432]

ISサーバー(Microsoft社のWebサーバソフト)がどうか.

Should be treated as read-only.

Default value:  strpos(sv('SERVER_SOFTWARE'), "IIS")
API Tags:
Access:   public
string   $images [line 586]

Whether the file browser is requested to show the image folder.

This variable is initialized from a images GET/POST parameter, and should only be used by file browsers and similar extensions, which may treat it as read-write.

Default value:  null
API Tags:
Access:   public
mixed   $j [line 205]

テンポラリーなループ変数.

This read-write variable can be used to avoid polluting the global scope.

Default value:  null
API Tags:
Access:   public
string   $keycut [line 525]

管理者のパスワード.

This variable is initialized from a keycut GET/POST parameter.

This variable has been renamed from $passwd since CMSimple_XH 1.6 to avoid trouble with mod_security.

Default value:  null
API Tags:
Access:   private
array   $l [line 1031]

各ページのレベル(深さ). 配列。 配列数は $cl個 
例えば 2番目のデータのレベル(深さ)のデータは、 $l[1] に入ってる

Treat as read-only.

Default value:  null
API Tags:
See:   l()
Access:   public
string   $login [line 511]

Whether login is requested.

This variable is initialized from a login GET/POST parameter. If the login has been successful, $f == 'login'; otherwise $f == 'xh_login_failed'.

Default value:  null
API Tags:
Access:   private
string   $logout [line 537]

Whether logout is requested.

This variable is initialized from a logout GET/POST parameter. On logout $f == 'xh_loggedout'.

Default value:  null
API Tags:
Access:   private
string   $mailform [line 549]

mailform のリクエスト.

This variable is initialized from a mailform GET/POST parameter. If the mailform has been requested $f == 'mailform'.

Default value:  null
API Tags:
Access:   private
string   $media [line 599]

Whether the file browser is requested to show the media folder.

This variable is initialized from a media GET/POST parameter, and should only be used by file browsers and similar extensions, which may treat it as read-write.

Default value:  null
API Tags:
Access:   public
string   $normal [line 642]

「表示モード」かどうか(管理画面).

This read-only variable is initialized from a normal GET/POST parameter or the mode cookie. If you want to switch to edit or view mode, you should set the normal GET parameter.

Default value:  null
API Tags:
See:   $edit
Access:   public
string   $o [line 114]

The (X)HTML for the contents area.

This read-write variable is used to buffer the output, which is prepended to the contents of the current page (if any). Usually you will only append to this variable.

Default value:  ''
API Tags:
Access:   public
string   $onload [line 172]

JavaScript for the onload attribute of the body element.

This read-write variable can be used to register window onload event handlers. Usually you will only append to this variable.

Default value:  ''
API Tags:
Access:   public
string   $output [line 1331]

The output to be manipulated by CMSimple scripting.

Default value:  null
API Tags:
Access:   public
array   $pd_current [line 1100]

現在のページに関する情報.

各ページに設定された Metaデータ等の 本体(本文)以外のデータが配列で入ってる。
※meta_tagsプラグインの内容も反映されてる。
ex.  ["url"]
  ["last_edit"]
  ["description"]
  ["keywords"]
  ["title"]
  ["robots"] ナド

array(16) {
  ["url"]=>
  string(22) "Welcome-to-CMSimple_XH"
  ["last_edit"]=>
  string(10) "1475333693"
  ["description"]=>
  string(35) "ココハトップだけDescription( meta_tagsプラグインの内容)"
  ["keywords"]=>
  string(32) "ココハトップだけKeywords(meta_tagsプラグインの内容)"
  ["title"]=>
  string(18) "タイトル代替(meta_tagsプラグインの内容)"
  ["robots"]=>
  string(0) ""
  ["heading"]=>
  string(48) "H1(トップの大文字)の代替する"
  ["show_heading"]=>
  string(1) "1"
  ["template"]=>
  string(1) "0"
  ["published"]=>
  string(1) "1"
  ["show_last_edit"]=>
  string(1) "0"
  ["linked_to_menu"]=>
  string(1) "1"
  ["header_location"]=>
  string(0) ""
  ["use_header_location"]=>
  string(1) "0"
  ["publication_date"]=>
  string(0) ""
  ["expires"]=>
  string(0) ""
}

 

Default value:  $pd_router->find_page($pd_s)
API Tags:
Access:   public
XH_PageDataRouter   $pd_router [line 955]

The page data router.

Treat as read-only.

object(XH_PageDataRouter)#4 (3) {
  ["model"]=>
  object(XH_PageDataModel)#5 (5) {
    ["headings"]=>
    array(28) {
      [0]=>
      string(22) "Welcome to CMSimple_XH"
      [1]=>
      string(26) "Menu Levels & Headings"
      [2]=>
      string(23) "Menu Level 2 – Page 1"
      [3]=>
      string(23) "Menu Level 3 – Page 1"
      [4]=>
      string(23) "Menu Level 3 – Page 2"
      [5]=>
      string(23) "Menu Level 3 – Page 3"
      [6]=>
      string(23) "Menu Level 2 – Page 2"
      [7]=>
      string(23) "Menu Level 3 – Page 1"
      [8]=>
      string(23) "Menu Level 3 – Page 2"
      [9]=>
      string(23) "Menu Level 3 – Page 3"
      [10]=>
      string(23) "Menu Level 2 – Page 3"
      [11]=>
      string(23) "Menu Level 3 – Page 1"
      [12]=>
      string(23) "Menu Level 3 – Page 2"
      [13]=>
      string(23) "Menu Level 3 – Page 3"
      [14]=>
      string(23) "Templates & Plugins"
      [15]=>
      string(7) "gonzo-h"
      [16]=>
      string(5) "mini1"
      [17]=>
      string(13) "n6200tbisGPL3"
      [18]=>
      string(7) "photo11"
      [19]=>
      string(5) "praia"
      [20]=>
      string(14) "responsivehtml"
      [21]=>
      string(16) "structure1_black"
      [22]=>
      string(9) "Languages"
      [23]=>
      string(6) "News01"
      [24]=>
      string(6) "News02"
      [25]=>
      string(6) "News03"
      [26]=>
      string(6) "News04"
      [27]=>
      string(6) "News05"
    }
    ["params"]=>
    array(14) {
      [0]=>
      string(8) "keywords"
      [1]=>
      string(5) "title"
      [2]=>
      string(6) "robots"
      [3]=>
      string(7) "heading"
      [4]=>
      string(12) "show_heading"
      [5]=>
      string(8) "template"
      [6]=>
      string(9) "published"
      [7]=>
      string(14) "show_last_edit"
      [8]=>
      string(14) "linked_to_menu"
      [9]=>
      string(15) "header_location"
      [10]=>
      string(19) "use_header_location"
      [11]=>
      string(16) "publication_date"
      [12]=>
      string(7) "expires"
      [13]=>
      string(11) "description"
    }
    ["data"]=>
    array(28) {
      [0]=>
      array(16) {
        ["url"]=>
        string(22) "Welcome-to-CMSimple_XH"
        ["last_edit"]=>
        string(10) "1475333693"
        ["description"]=>
        string(35) "ココハトップだけDescription"
        ["keywords"]=>
        string(32) "ココハトップだけKeywords"
        ["title"]=>
        string(18) "タイトル代替"
        ["robots"]=>
        string(0) ""
        ["heading"]=>
        string(48) "H1(トップの大文字)の代替する"
        ["show_heading"]=>
        string(1) "1"
        ["template"]=>
        string(1) "0"
        ["published"]=>
        string(1) "1"
        ["show_last_edit"]=>
        string(1) "0"
        ["linked_to_menu"]=>
        string(1) "1"
        ["header_location"]=>
        string(0) ""
        ["use_header_location"]=>
        string(1) "0"
        ["publication_date"]=>
        string(0) ""
        ["expires"]=>
        string(0) ""
      }
      [1]=>
      array(16) {
        ["url"]=>
        string(30) "Menu_Levels_%26amp%3B_Headings"
        ["last_edit"]=>
        string(10) "1386262232"
        ["description"]=>
        string(0) ""
        ["keywords"]=>
        string(0) ""
        ["title"]=>
        string(0) ""
        ["robots"]=>
        string(0) ""
        ["heading"]=>
        string(0) ""
        ["show_heading"]=>
        string(1) "0"
        ["template"]=>
        string(1) "0"
        ["published"]=>
        string(1) "1"
        ["show_last_edit"]=>
        string(1) "0"
        ["linked_to_menu"]=>
        string(1) "0"
        ["header_location"]=>
        string(0) ""
        ["use_header_location"]=>
        string(1) "0"
        ["publication_date"]=>
        string(0) ""
        ["expires"]=>
        string(0) ""
      }
******** 略 *************
      [27]=>
      array(16) {
        ["url"]=>
        string(6) "News05"
        ["last_edit"]=>
        string(10) "1377011870"
        ["description"]=>
        string(0) ""
        ["keywords"]=>
        string(0) ""
        ["title"]=>
        string(0) ""
        ["robots"]=>
        string(0) ""
        ["heading"]=>
        string(0) ""
        ["show_heading"]=>
        string(1) "0"
        ["template"]=>
        string(1) "0"
        ["published"]=>
        string(1) "1"
        ["show_last_edit"]=>
        string(1) "0"
        ["linked_to_menu"]=>
        string(1) "0"
        ["header_location"]=>
        string(0) ""
        ["use_header_location"]=>
        string(1) "0"
        ["publication_date"]=>
        string(0) ""
        ["expires"]=>
        string(0) ""
      }
    }
    ["temp_data"]=>
    array(14) {
      ["url"]=>
      string(6) "WebLog"
      ["last_edit"]=>
      string(10) "1322055182"
      ["description"]=>
      string(0) ""
      ["keywords"]=>
      string(0) ""
      ["title"]=>
      string(0) ""
      ["robots"]=>
      string(0) ""
      ["heading"]=>
      string(0) ""
      ["show_heading"]=>
      string(0) ""
      ["template"]=>
      string(0) ""
      ["published"]=>
      string(0) ""
      ["show_last_edit"]=>
      string(0) ""
      ["linked_to_menu"]=>
      string(1) "1"
      ["header_location"]=>
      string(0) ""
      ["use_header_location"]=>
      string(0) ""
    }
    ["tabs"]=>
    array(2) {
      ["Metaタグ"]=>
      string(37) "./plugins/meta_tags/Metatags_view.php"
      ["ページ設定"]=>
      string(41) "./plugins/page_params/Pageparams_view.php"
    }
  }
  ["current_page"]=>
  NULL
  ["currentInterests"]=>
  array(14) {
    [0]=>
    string(11) "description"
    [1]=>
    string(8) "keywords"
    [2]=>
    string(5) "title"
    [3]=>
    string(6) "robots"
    [4]=>
    string(7) "heading"
    [5]=>
    string(12) "show_heading"
    [6]=>
    string(8) "template"
    [7]=>
    string(9) "published"
    [8]=>
    string(16) "publication_date"
    [9]=>
    string(7) "expires"
    [10]=>
    string(14) "show_last_edit"
    [11]=>
    string(14) "linked_to_menu"
    [12]=>
    string(15) "header_location"
    [13]=>
    string(19) "use_header_location"
  }
}

 

Default value:  null
API Tags:
Access:   public
int   $pd_s [line 1089]

The index of the currently requested page.

Treat as read-only. Note that the index of the currently requested page is available in $s after the plugins have been loaded. During plugin loading you may use $pd_s, but this is not guaranteed to be correct, as it may be set to 0, even if $s might later be -1.

Default value:  ($s == -1 && !$f && $o == '' && $su == '') ? $_XH_firstPublishedPage : $s
API Tags:
See:   $s
Access:   public
string   $plugin [line 879]

The currently loaded plugin.

Should be treated as read-only.

Default value:  null
API Tags:
Access:   public
array   $plugin_cf [line 1113]

プラグインの設定内容. plugins/****/config/config.php のデータ
例えば plugins/pagemanager の設定データは $plugin_cf['pagemanager']の配列

Treat as read-only.

Default value:  array()
API Tags:
See:   $cf
Access:   public
array   $plugin_tx [line 1126]

The localization of the plugins.
プラグインの設定内容. plugins/****/languages/**.php のデータ
例えば plugins/pagemanager の設定データは $plugin_tx['pagemanager']の配列

Treat as read-only.

Default value:  array()
API Tags:
See:   $tx
Access:   public
string   $print [line 654]

Whether print mode is requested.

This read-only variable is initialized from a print GET/POST parameter.

Default value:  null
API Tags:
Access:   public
array   $pth [line 256]

A two dimensional array that holds the paths of important files and folders.
重要なファイルやフォルダパスを保持する2次元配列

array(2) {
  ["file"]=>
  array(20) {
    ["execute"]=>
    string(11) "./index.php"
    ["log"]=>
    string(18) "./cmsimple/log.txt"
    ["cms"]=>
    string(18) "./cmsimple/cms.php"
    ["config"]=>
    string(21) "./cmsimple/config.php"
    ["content"]=>
    string(21) "./content/content.htm"
    ["pagedata"]=>
    string(22) "./content/pagedata.php"
    ["language"]=>
    string(27) "./cmsimple/languages/ja.php"
    ["corestyle"]=>
    string(19) "./core/css/core.css"
    ["adminjs"]=>
    string(18) "./core/js/admin.js"
    ["template"]=>
    string(30) "./templates/mini1/template.htm"
    ["stylesheet"]=>
    string(32) "./templates/mini1/stylesheet.css"
    ["search"]=>
    string(21) "./cmsimple/search.php"
    ["mailform"]=>
    string(23) "./cmsimple/mailform.php"
    ["plugin_index"]=>
    string(27) "./plugins/tinymce/index.php"
    ["plugin_admin"]=>
    string(27) "./plugins/tinymce/admin.php"
    ["plugin_language"]=>
    string(34) "./plugins/tinymce/languages/ja.php"
    ["plugin_classes"]=>
    string(46) "./plugins/tinymce/classes/required_classes.php"
    ["plugin_config"]=>
    string(35) "./plugins/tinymce/config/config.php"
    ["plugin_stylesheet"]=>
    string(36) "./plugins/tinymce/css/stylesheet.css"
    ["plugin_help"]=>
    string(34) "./plugins/tinymce/help/help_en.htm"
  }
  ["folder"]=>
  array(24) {
    ["base"]=>
    string(2) "./"
    ["cmsimple"]=>
    string(11) "./cmsimple/"
    ["classes"]=>
    string(19) "./cmsimple/classes/"
    ["plugins"]=>
    string(10) "./plugins/"
    ["userfiles"]=>
    string(12) "./userfiles/"
    ["downloads"]=>
    string(22) "./userfiles/downloads/"
    ["images"]=>
    string(19) "./userfiles/images/"
    ["media"]=>
    string(18) "./userfiles/media/"
    ["flags"]=>
    string(25) "./userfiles/images/flags/"
    ["language"]=>
    string(21) "./cmsimple/languages/"
    ["content"]=>
    string(10) "./content/"
    ["corestyle"]=>
    string(11) "./core/css/"
    ["templates"]=>
    string(12) "./templates/"
    ["template"]=>
    string(18) "./templates/mini1/"
    ["menubuttons"]=>
    string(23) "./templates/mini1/menu/"
    ["templateimages"]=>
    string(25) "./templates/mini1/images/"
    ["plugin"]=>
    string(18) "./plugins/tinymce/"
    ["plugin_classes"]=>
    string(26) "./plugins/tinymce/classes/"
    ["plugin_config"]=>
    string(25) "./plugins/tinymce/config/"
    ["plugin_content"]=>
    string(26) "./plugins/tinymce/content/"
    ["plugin_css"]=>
    string(22) "./plugins/tinymce/css/"
    ["plugin_help"]=>
    string(23) "./plugins/tinymce/help/"
    ["plugin_includes"]=>
    string(27) "./plugins/tinymce/includes/"
    ["plugin_languages"]=>
    string(28) "./plugins/tinymce/languages/"
  }
}



Should be treated as read-only.

Default value:  array()
API Tags:
Access:   public

Information Tags:
Link:   http://www.cmsimple-xh.org/wiki/doku.php/core_variables#pth
int   $s [line 981]

現在、要求されたページのインデックス・・何番目のデータか? ex. $c[$s] でそのページのデータを取り出す
The index of the currently requested page.

Treat as read-only.
Note すべてのプラグインがロードされるまで$ sは正しくスタートページに設定されていないことに注意してください。あなたがロードをプラグイン時に、現在要求されているページのインデックスを知っている必要がある場合は、$ pd_sを使用することを検討してください。that $s is not properly set for the start page until all plugins are loaded. If you need the know the index of the currently requested page during plugin loading, consider to use $pd_s.

Default value:  -1
API Tags:
Access:   public
string   $search [line 677]

The current search string.

This read-only variable is initialized from a search GET/POST parameter.

Default value:  null
API Tags:
Access:   public
string   $selected [line 689]

The URL of the requested page.

This variable is initialized from a selected GET/POST parameter. If present $su is set accordingly.

Default value:  null
API Tags:
Access:   private
string   $settings [line 700]

設定ページが要求されているかどうか.

This variable is initialized from a settings GET/POST parameter.

Default value:  null
API Tags:
Access:   private
int   $si [line 1217]

現在、表示してる $hcのインデックス(メニュー用配列) ・・正確には インデックスでは無い
http://cmsimple-jp.org/  の場合 -1
    http://cmsimple-jp.org/?toppage 1  
$hc[$si]
The index of the current page in $hc.

Default value:  -1
API Tags:
Access:   private
string   $sitemap [line 712]

Whether the sitemap is requested.

This variable is initialized from a sitemap GET/POST parameter. If the sitemap is requested $f == 'sitemap'.

Default value:  null
API Tags:
Access:   private
string   $sl [line 357]

現在の言語.

This read-only variable contains an ISO 639-1 language code.

Default value:  $temp
API Tags:
Access:   public
string   $sn [line 456]

The relative path of the root folder, i.e. the script name.
例えば、
CMSimple のトップが http://cmsimple-jp.org/ なら /
CMSimple のトップが http://cmsimple-jp.org/test/ なら /test/ 

Should be treated as read-only.

Default value:  preg_replace(
    '/([^\?]*)\?.*/', '$1',
    sv(($iis ? 'SCRIPT_NAME' : 'REQUEST_URI'))
)

API Tags:
See:   CMSIMPLE_URL
Access:   public
string   $su [line 796]

表示してるページのURL部分(selected URL).
http://cmsimple-jp.org/?Templates-and-Plugins なら Templates-and-Plugins
http://cmsimple-jp.org/?Templates-and-Plugins/aaa なら Templates-and-Plugins/aaa
http://cmsimple-jp.org/ (トップページ) なら 無シ(空欄)

Should be treated as read-only.

Default value:  ''
API Tags:
See:   $u
See:   $selected
Access:   public
mixed   $temp [line 183]

テンポラリーな変数.

This read-write variable can be used to avoid polluting the global scope.

Default value:  null
API Tags:
Access:   public
string   $text [line 723]

The text of the editor on save.

This variable is initialized from a text GET/POST parameter.

Default value:  null
API Tags:
Access:   private
string   $title [line 101]

表示されてるページのタイトル.

This read-write variable can be used to set the page title in the plugin administration and for special extension pages.

Default value:  ''
API Tags:
Access:   public
array   $tx [line 385]

設定 → 言語編集の内容 
 ex.
  $tx["title"]
  $tx["meta"]["keywords"]
  $tx["meta"]["description"]
  $tx["template"]["text1"] "テキスト1 for templates requiring this text"
  $tx["template"]["text2"] "テキスト 2 for templates requiring this text"
  $tx["template"]["text3"]=>"テキスト3 for templates requiring this text"

 ※表示する際、各ページのMetaタブ(Metaプラグイン)で上書きされる。
 ex. plugins/meta_tags/index.php Line50
 

/*
 * Set the meta tags contents.
 */
if ($pd_current['title']) {
    $cf['site']['title'] = $pd_current['title'];
    $cf['title']['format'] = "{SITE}";
}
if ($pd_current['description']) {
    $tx['meta']['description'] = $pd_current['description'];
}
if ($pd_current['keywords']) {
    $tx['meta']['keywords'] = $pd_current['keywords'];
}
if ($pd_current['robots']) {
    $cf['meta']['robots'] = $pd_current['robots'];
}



 例えば、言語編集のMetaデータ  $tx["meta"]["description"] に ようこそ と設定
 トップページの Metaプラグイン:description に こんにちわ を設定した場合、
 そのページの$tx["meta"]["description"] には こんにちわ が入る

※ $tx['subsite']['template'] :内部データにあり。用途が不明 2lang用? 
    $cf['site']['template'] より優先される(function initTemplatePaths)

Should be treated as read-only.

Default value:  XH_readConfiguration(false, true)
API Tags:
See:   $plugin_tx
Access:   public
array   $txc [line 410]

言語ファイルの設定内容

Default value:  array('template' => $tx['template'])
API Tags:
Deprecated:   since 1.6 (use $cf resp. $tx instead).
Access:   public
array   $u [line 1018]

 ページのURL. 配列

  [0]=>
  string(22) "Welcome-to-CMSimple_XH"
  [1]=>
  string(24) "Menu-Levels-and-Headings"
  [2]=>
  string(54) "Menu-Levels-and-Headings/Menu-Level-2-%E2%80%93-Page-1"
  [3]=>
  string(84) "Menu-Levels-and-Headings/Menu-Level-2-%E2%80%93-Page-1/Menu-Level-3-%E2%80%93-Page-1"



Treat as read-only.

Default value:  null
API Tags:
See:   $su
Access:   public
string   $userfiles [line 612]

Whether the file browser is requested to show the userfiles folder.

This variable is initialized from a userfiles GET/POST parameter, and should only be used by file browsers and similar extensions, which may treat it as read-write.

Default value:  null
API Tags:
Access:   public
string   $validate [line 734]

リンクチェックがリクエストされたかどうか(管理画面).

This variable is initialized from a validate GET/POST parameter.

Default value:  null
API Tags:
Access:   private
string   $xhpages [line 749]

Whether the page manager is requested.

This variable is initialized from a xhpages GET/POST parameter, and should only be used by page managers, which may treat it as read-write.

Default value:  null
API Tags:
Access:   public

Information Tags:
Link:   http://www.cmsimple-xh.org/wiki/doku.php/plugin_interfaces#page_managers
object   $xh_hasher [line 859]

ハッシュされたパスワード.

Default value:  new PasswordHash(8, true)
API Tags:
Access:   private
XH_CSRFProtection   $_XH_csrfProtection [line 902]

The CRSF protection object.

Should be treated as read-only.

Default value:  null
API Tags:
Access:   public

Information Tags:
Tutorial:   CSRF Protection
int   $_XH_firstPublishedPage [line 968]

The index of the first published page.

Treat as read-only.

Default value:  -1
API Tags:
Access:   public

Information Tags:
Since:   1.6.3
XH_ClassicPluginMenu   $_XH_pluginMenu [line 868]

The plugin menu builder.

Default value:  new <a href=".. xh="" xh_classicpluginmenu.html"="">XH_ClassicPluginMenu()
API Tags:
Access:   private

 


Documentation generated on Tue, 30 Jun 2015 19:07:28 +0200 by phpDocumentor 1.4.4