CMSimple_XH 開発者ドキュメント
cms.php ファイル

[ソースコード]

名前空間

 XH
 

変数

const XH_URICHAR_SEPARATOR (preg_match('/cms.php/i', $_SERVER['PHP_SELF'])) '|'
 
 $title = ''
 
 $o = ''
 
 $e = ''
 
 $hjs = ''
 
 $bjs = ''
 
 $onload = ''
 
 $temp = null
 
 $i = null
 
 $j = null
 
const CMSIMPLE_XH_VERSION 'CMSimple_XH 1.7.0'
 
const CMSIMPLE_XH_BUILD '2017070201'
 
const CMSIMPLE_XH_DATE '2017-07-02'
 
 $pth = array()
 
 $pth ['file']['execute'] = './index.php'
 
 $pth ['folder']['base'] = is_dir('./cmsimple') ? './' : '../'
 
 $pth ['folder']['cmsimple'] = $pth['folder']['base'] . 'cmsimple/'
 
 $pth ['folder']['classes'] = $pth['folder']['cmsimple'] . 'classes/'
 
 $pth ['folder']['plugins'] = $pth['folder']['base'] . 'plugins/'
 
 $pth ['file']['log'] = $pth['folder']['cmsimple'] . 'log.txt'
 
 $pth ['file']['cms'] = $pth['folder']['cmsimple'] . 'cms.php'
 
 $pth ['file']['config'] = $pth['folder']['cmsimple'] . 'config.php'
 
 $_XH_controller = new XH\Controller()
 
 $cf = XH_readConfiguration()
 
if(! $cf) $cf ['security']['type'] = 'page'
 
 $cf ['scripting']['regexp'] = '#CMSimple (.*?)#'
 
 $cf ['xhtml']['endtags'] = ''
 
 $cf ['xhtml']['amp'] = 'true'
 
foreach(array('userfiles', 'downloads', 'images', 'media') as $temp) $pth ['folder']['flags'] = $pth['folder']['images'] . 'flags/'
 
if($cf['site']['compat']) $errors = array()
 
 $pth ['folder']['language'] = $pth['folder']['cmsimple'] . 'languages/'
 
if(!isset($cf['folders']['content'])) if($cf['site']['timezone'] !=='' &&function_exists('date_default_timezone_set')) $sl = null
 
if(preg_match('/\/([A-z]{2})\/index.php$/', sv('SCRIPT_NAME'), $temp) &&XH_isLanguageFolder($temp=strtolower($temp[1]))) else
 
 $pth ['folder']['content'] = $pth['folder']['base'] . $cf['folders']['content']
 
 $pth ['file']['content'] = $pth['folder']['content'] . 'content.htm'
 
 $pth ['file']['pagedata'] = $pth['folder']['content'] . 'pagedata.php'
 
 $pth ['file']['language'] = $pth['folder']['language'] . basename($sl) . '.php'
 
 $pth ['folder']['corestyle'] = $pth['folder']['base'] . 'assets/css/'
 
 $pth ['file']['corestyle'] = $pth['folder']['corestyle'] . 'core.css'
 
 $pth ['file']['adminjs'] = $pth['folder']['base'] . 'assets/js/admin.min.js'
 
 $tx = XH_readConfiguration(false, true)
 
 $tx ['meta']['codepage'] ='UTF-8'
 
 $txc = array('template' => $tx['template'])
 
 $iis = strpos(sv('SERVER_SOFTWARE'), "IIS")
 
 $cgi = (php_sapi_name() == 'cgi' || php_sapi_name() == 'cgi-fcgi')
 
 $sn = preg_replace('/([^\?]*)\?.*/', '$1', sv(($iis ? 'SCRIPT_NAME' : 'REQUEST_URI')))
 
 $admin = null
 
 $action = null
 
 $function = null
 
 $login = null
 
 $keycut = null
 
 $logout = null
 
 $mailform = null
 
 $download = null
 
 $downloads = null
 
 $images = null
 
 $media = null
 
 $userfiles = null
 
 $edit = null
 
 $normal = null
 
 $print = null
 
 $file = null
 
 $search = null
 
 $selected = null
 
 $settings = null
 
 $sitemap = null
 
 $text = null
 
 $validate = null
 
 $xhpages = null
 
const CMSIMPLE_ROOT ($temp as $i) XH_getRootFolder()
 
const CMSIMPLE_BASE $pth['folder']['base']
 
const CMSIMPLE_URL 'http' . (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 's' : '') . '://' . $_SERVER['HTTP_HOST'] . $sn
 
 $su = ''
 
if($download !='') $pth ['file']['search'] = $pth['folder']['cmsimple'] . 'search.php'
 
 $pth ['file']['mailform'] = $pth['folder']['cmsimple'] . 'mailform.php'
 
 $adm = 0
 
 $f = ''
 
 $_XH_pluginMenu = new XH\ClassicPluginMenu()
 
 $plugin = null
 
foreach(XH_plugins() as $plugin) $_XH_csrfProtection = null
 
const XH_ADM $adm
 
 $cl = 0
 
 $pd_router = null
 
 $xh_publisher = null
 
 $s = -1
 
 $c = null
 
 $h = null
 
 $u = null
 
 $l = null
 
if(is_readable($pth['folder']['cmsimple'] . 'userfuncs.php')) $cf ['site']['title'] = $tx['site']['title']
 
const PLUGINLOADER ($function=='save') true
 
const PLUGINLOADER_VERSION 2.111
 
const XH_FORM_NAMESPACE 'PL3bbeec384_'
 
if(XH_ADM$pd_s = ($s == -1 && !$f && $o == '' && $su == '') ? $xh_publisher->getFirstPublishedPage() : $s
 
 $pd_current = $pd_router->find_page($pd_s)
 
 $plugin_cf = new XH\PluginConfig()
 
 $plugin_tx = new XH\PluginConfig(true)
 
switch($f) $hc = array()
 
 $hl = -1
 
 $si = -1
 
if($su==uenc('site/cms info')) if(XH_ADM) if($s==-1 &&! $f && $o=='' && $su=='') if(XH_ADM$output = null
 
if($temp) if(! $i) if (isset( $_XH_csrfProtection))
 

詳解

The main file of CMSimple_XH.

cms.php に定義があります。

変数詳解

◆ $_XH_csrfProtection

foreach (XH_plugins() as $plugin) $_XH_csrfProtection = null

The CRSF protection object.

Should be treated as read-only.

XH $_XH_csrfProtection

public

CSRFProtection.cls

cms.php879 行目に定義があります。

◆ $_XH_pluginMenu

$_XH_pluginMenu = new XH\ClassicPluginMenu()

The plugin menu builder.

XH $_XH_pluginMenu

private

cms.php845 行目に定義があります。

◆ $action

$action = null

The requested action.

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

string $action

public

cms.php460 行目に定義があります。

◆ $adm

$adm = 0

管理者モードであるか(否かCMSimple_XH 1.5.4以降はXH_ADM を推奨)
Whether admin mode is active.

This variable is strictly read-only.

bool $adm

public

参照
XH_ADM

cms.php823 行目に定義があります。

◆ $admin

$admin = null

管理者モードで要求されたプラグイン The requested plugin administration part.

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.

string $admin

public

cms.php447 行目に定義があります。

◆ $bjs

$bjs = ''

<body>要素の末尾にあるJavaScript領域

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.

string $bjs

public

参照
$hjs

1.5.4

cms.php159 行目に定義があります。

◆ $c

$c = null

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

Treat as read-only when in edit mode.

array $c

public

cms.php964 行目に定義があります。

◆ $cf

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

※ そのページに設定されてる Meta-tagプラグイン、Page_paramsプラグイン の内容で上書きされる。

下記はMeta-tagプラグイン

/*
 * 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'];
}

Should be treated as read-only.

array $cf

public

参照
$plugin_cf

cms.php272 行目に定義があります。

◆ $cgi

$cgi = (php_sapi_name() == 'cgi' || php_sapi_name() == 'cgi-fcgi')

Whether PHP is executed as (F)CGI.

Should be treated as read-only.

public

bool $cgi

cms.php421 行目に定義があります。

◆ $cl

$cl = 0

The number of pages.

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

Treat as read-only.

int $cl

public

cms.php918 行目に定義があります。

◆ $download

$download = null

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

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

string $download

private

cms.php535 行目に定義があります。

◆ $downloads

$downloads = null

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.

string $downloads

public

cms.php548 行目に定義があります。

◆ $e

$e = ''

The HTML for the 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.

string $e

public

参照
e()

cms.php127 行目に定義があります。

◆ $edit

$edit = null

編集モードかどうか?.
Whether edit mode is requested.

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.

string $edit

public

参照
$normal

cms.php602 行目に定義があります。

◆ $errors

if ( $cf[ 'site'][ 'compat']) $errors = array()

エラーの内容:デバッグモード時に使用
Debug output generated by PHP according to debug mode.

array $errors

private

cms.php309 行目に定義があります。

◆ $f

$f = ''

要求された関数名.
例えば 'search'、 'mailform'、 'sitemap'
The requested function.

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.

string $f

public

cms.php836 行目に定義があります。

◆ $file

$file = null

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

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

string $file

private

cms.php640 行目に定義があります。

◆ $function

$function = null

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.

string $function

public

cms.php473 行目に定義があります。

◆ $h

$h = null

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

Treat as read-only.

array $h

public

参照
h()

cms.php977 行目に定義があります。

◆ $hc

switch ( $f) $hc = array()

メニューに掲載するページが、全ページに対して何番目のデータなのかを持つ配列
※メニューには隠しページ、非公開ページは含まない為

例えば メニューの4番目 $hc[3] には、全データ(隠しページ、非公開ページを含む)で何番目のデータなのかを示すインデックス(=ページインデックス:$s)が入る
$hc[$si]

※メニューの作成時に使用される
XH_buildHc() で作られる

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

array $hc

public

cms.php1149 行目に定義があります。

◆ $hjs

$hjs = ''

HTML の <head> に記述される内容.
HTML that will be inserted to the <head> section.

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.

string $hjs

public

参照
$bjs

cms.php141 行目に定義があります。

◆ $hl

$hl = -1

$hc.の要素の個数.
メニューに掲載するページの個数 となります

XH_buildHc() で作られる

int $hl

private

cms.php1158 行目に定義があります。

◆ $i

$i = null

テンポラリーなループ変数
A temporary (loop) value.

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

mixed $i

public

cms.php193 行目に定義があります。

◆ $iis

$iis = strpos(sv('SERVER_SOFTWARE'), "IIS")

ISサーバー(Microsoft社のWebサーバソフト)がどうか.
Whether the webserver is IIS.

Should be treated as read-only.

public

bool $iis

cms.php410 行目に定義があります。

◆ $images

$images = null

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.

string $images

public

cms.php561 行目に定義があります。

◆ $j

$j = null

テンポラリーなループ変数.
A temporary (loop) value.

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

mixed $j

public

cms.php204 行目に定義があります。

◆ $keycut

$keycut = null

管理者のパスワード
The admin password.

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.

string $keycut

private

cms.php500 行目に定義があります。

◆ $l

$l = null

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

The menu levels of the pages.

Treat as read-only.

array $l

public

参照
l()

cms.php1003 行目に定義があります。

◆ $login

$login = null

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'.

string $login

private

cms.php486 行目に定義があります。

◆ $logout

$logout = null

Whether logout is requested.

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

string $logout

private

cms.php512 行目に定義があります。

◆ $mailform

$mailform = null

mailform のリクエスト
Whether the mailform is requested.

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

string $mailform

private

cms.php524 行目に定義があります。

◆ $media

$media = null

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.

string $media

public

cms.php574 行目に定義があります。

◆ $normal

$normal = null

「表示モード」かどうか(管理画面)
Whether normal mode is requested.

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.

string $normal

public

参照
$edit

cms.php617 行目に定義があります。

◆ $o

$o = ''

コンテンツ領域の出力
The 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.

string $o

public

cms.php113 行目に定義があります。

◆ $onload

$onload = ''

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.

string $onload

public

cms.php171 行目に定義があります。

◆ $output

if ( $su==uenc( 'site/cms info')) if (XH_ADM) if ( $s==-1 &&! $f &&$o=='' &&$su=='') if (XH_ADM) $output = null

The output to be manipulated by CMSimple scripting.

string $output

public

cms.php1292 行目に定義があります。

◆ $pd_current

$pd_current = $pd_router->find_page($pd_s)

現在のページに関する情報.
The infos about the current page.

各ページに設定された 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) ""
}

Treat as read-only.

array $pd_current

public

cms.php1069 行目に定義があります。

◆ $pd_router

$pd_router = null

The page data router.

下記は CMSimple_XH Ver1.6

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"
  }

Treat as read-only.

XH $pd_router

public

cms.php929 行目に定義があります。

◆ $pd_s

if (XH_ADM) $pd_s = ($s == -1 && !$f && $o == '' && $su == '') ? $xh_publisher->getFirstPublishedPage() : $s

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.

int $pd_s

public

参照
$s

cms.php1058 行目に定義があります。

◆ $plugin

$plugin = null

The currently loaded plugin.

Should be treated as read-only.

string $plugin

public

cms.php856 行目に定義があります。

◆ $plugin_cf

$plugin_cf = new XH\PluginConfig()

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

The configuration of the plugins.

Treat as read-only.

XH $plugin_cf

public

参照
$cf

cms.php1082 行目に定義があります。

◆ $plugin_tx

$plugin_tx = new XH\PluginConfig(true)

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

The localization of the plugins.

Treat as read-only.

XH $plugin_tx

public

参照
$tx

cms.php1095 行目に定義があります。

◆ $print

$print = null

Whether print mode is requested.

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

string $print

public

cms.php629 行目に定義があります。

◆ $pth

$pth = array()

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

下記は Ver1.6

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.

array $pth

public

http://www.cmsimple-xh.org/wiki/doku.php/core_variables#pth

cms.php230 行目に定義があります。

◆ $s

$s = -1

現在、要求されたページのインデックス・・何番目のデータか? 
$s は隠しページ、非公開ページを含むすべてのページの番号:ページインデックス、で $si は、メニューに掲載するページの番号:メニューインデックス
※メニューインデックスとページインデックの違いを理解をしないと混乱します

ex. $c[$s] でそのページのデータを取り出す
The index of the currently requested page.

Treat as read-only.

すべてのプラグインがロードされるまで $s は正しくスタートページに設定されていないことに注意してください。
あなたがロードをプラグイン時に、現在要求されているページのインデックスを知っている必要がある場合は、$ pd_s を使用することを検討してください

Note 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.

int $s

public

cms.php953 行目に定義があります。

◆ $search

$search = null

The current search string.

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

string $search

public

cms.php652 行目に定義があります。

◆ $selected

$selected = null

The URL of the requested page.

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

string $selected

private

cms.php664 行目に定義があります。

◆ $settings

$settings = null

設定ページが要求されているかどうか.
Whether the settings page is requested.

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

string $settings

private

cms.php675 行目に定義があります。

◆ $si

$si = -1

現在、表示してる $hc のインデックス(メニュー用配列) 
$s は隠しページ、非公開ページを含むすべてのページの番号:ページインデックス、で $si は、メニューに掲載するページの番号:メニューインデックス
※メニューインデックスとページインデックの違いを理解をしないと混乱します
※ http://cmsimple-jp.org/ の場合 -1
http://cmsimple-jp.org/?toppage 1
$hc[$si]

XH_buildHc() で作られる

int $si

private

cms.php1167 行目に定義があります。

◆ $sitemap

$sitemap = null

Whether the sitemap is requested.

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

string $sitemap

private

cms.php687 行目に定義があります。

◆ $sl

if (!isset( $cf[ 'folders'][ 'content'])) if ( $cf[ 'site'][ 'timezone'] !=='' &&function_exists( 'date_default_timezone_set')) $sl = null

現在の言語
The current language.

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

string $sl

public

cms.php331 行目に定義があります。

◆ $sn

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

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

The relative path of the root folder, i.e. the script name.

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

Should be treated as read-only.

string $sn

public

参照
CMSIMPLE_URL

cms.php434 行目に定義があります。

◆ $su

if (!isset( $cf[ 'uri'][ 'length'])) $su = ''

表示してるページの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/ (トップページ) なら 無シ(空欄)

The current page's URL (selected URL).

Should be treated as read-only.

string $su

public

参照
$selected
$u

cms.php778 行目に定義があります。

◆ $temp

$temp = null

テンポラリーな変数
A temporary value.

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

mixed $temp

public

cms.php182 行目に定義があります。

◆ $text

$text = null

The text of the editor on save.

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

string $text

private

cms.php698 行目に定義があります。

◆ $title

string $title = ''

表示されてるページのタイトル
The title of the current page.

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

public

cms.php100 行目に定義があります。

◆ $tx

$tx = XH_readConfiguration(false, true)

設定 → 言語編集の内容 
日本語環境の場合 cmsimple/languages/ja.php 

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プラグイン)で上書きされます。
※画面に表示される言葉の内容になります

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'];
}

The localization of the core.

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

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

Should be treated as read-only.

array $tx

public

参照
$plugin_tx

cms.php363 行目に定義があります。

◆ $txc

$txc = array('template' => $tx['template'])

言語ファイルの設定内容
The language configuration.

array $txc

public

非推奨:
since 1.6 (use $cf resp. $tx instead).

cms.php388 行目に定義があります。

◆ $u

$u = null

ページのURL. 配列
The URLs of the pages.

[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.

array $u

public

参照
$su

cms.php990 行目に定義があります。

◆ $userfiles

$userfiles = null

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.

string $userfiles

public

cms.php587 行目に定義があります。

◆ $validate

$validate = null

リンクチェックがリクエストされたかどうか(管理画面).
Whether the link check is requested.

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

string $validate

private

cms.php709 行目に定義があります。

◆ $xh_publisher

$xh_publisher = null

The publisher instance.

int $xh_publisher

public

から
1.7.0

cms.php940 行目に定義があります。

◆ $xhpages

$xhpages = null

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.

string $xhpages

public

http://www.cmsimple-xh.org/wiki/doku.php/plugin_interfaces#page_managers

cms.php724 行目に定義があります。

◆ CMSIMPLE_BASE

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

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

The relative path of the root folder.

cms.php752 行目に定義があります。

◆ CMSIMPLE_ROOT

const CMSIMPLE_ROOT( $temp as $i) XH_getRootFolder()

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

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

The absolute path of the root folder.

cms.php747 行目に定義があります。

◆ CMSIMPLE_URL

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

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

The fully qualified absolute URL of the installation (main or current language).

から
1.6
参照
$sn

cms.php761 行目に定義があります。

◆ CMSIMPLE_XH_BUILD

const CMSIMPLE_XH_BUILD '2017070201'

更新日時(新規作成?): YYYYMMDDBB
The build number as integer: YYYYMMDDBB

cms.php213 行目に定義があります。

◆ CMSIMPLE_XH_DATE

const CMSIMPLE_XH_DATE '2017-07-02'

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

cms.php217 行目に定義があります。

◆ CMSIMPLE_XH_VERSION

const CMSIMPLE_XH_VERSION 'CMSimple_XH 1.7.0'

CMSimple_XH のバージョン, e.g. CMSimple_XH 1.6
The version in textual representation, e.g. CMSimple_XH 1.6

cms.php209 行目に定義があります。

◆ else

if (sv( 'QUERY_STRING') !='') else
初期値:
{
$sl = $cf['language']['default']
$cf
Definition: cms.php:272
if(!isset($cf['folders']['content'])) if($cf['site']['timezone'] !=='' &&function_exists('date_default_timezone_set')) $sl
Definition: cms.php:331

cms.php338 行目に定義があります。

◆ if

if
初期値:
{
$su
Definition: cms.php:778
$selected
Definition: cms.php:664

cms.php1351 行目に定義があります。

◆ PLUGINLOADER

const PLUGINLOADER( $function=='save') true

過去のプラグインとの互換性のため.・・・
For compatibility with plugins.

cms.php1023 行目に定義があります。

◆ PLUGINLOADER_VERSION

const PLUGINLOADER_VERSION 2.111

PLUGINLOADERのバージョン
For compatibility with plugins.

cms.php1028 行目に定義があります。

◆ XH_ADM

const XH_ADM $adm

管理モードかどうか?
Whether admin mode is active.

から
1.5.4

$adm

cms.php897 行目に定義があります。

◆ XH_FORM_NAMESPACE

const XH_FORM_NAMESPACE 'PL3bbeec384_'

A unique prefix for autogenerated forms.

&t=4956#p25550

cms.php1035 行目に定義があります。

◆ XH_URICHAR_SEPARATOR

const XH_URICHAR_SEPARATOR(preg_match('/cms.php/i', $_SERVER[ 'PHP_SELF'])) '|'

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

から
1.6

cms.php88 行目に定義があります。