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

[ソースコード]

名前空間

 XH
 

関数

 autogallery ($u)
 
 rp ($p)
 
 amp ()
 
 guestbooklink ()
 
 chkdl ($fl)
 
 rf ($fl)
 
 chkfile ($fl, $writable)
 
 preCallPlugins ($pageIndex=-1)
 
 writelog ($m)
 

詳解

Backward compatible functionality.

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

関数詳解

◆ amp()

amp ( )

Returns & or & according to the setting of `$cf['xhtml']['amp']`.

戻り値
string HTML

array The configuration of the core.

非推奨:
since 1.5.4. Use & instead.

compat.php80 行目に定義があります。

◆ autogallery()

autogallery (   $u)

Returns the code to display a photogallery.

引数
string$uAutogallery's installation folder.

string The URL of the active page.

戻り値
string HTML
非推奨:
since 1.5.4. Use a gallery plugin instead.

compat.php29 行目に定義があります。

◆ chkdl()

chkdl (   $fl)

Returns whether the file exists in the download folder and is available for download.

引数
string$flThe download URL, e.g. ?download=file.ext
戻り値
bool

array The paths of system files and folders. string The script name.

非推奨:
since 1.6.

compat.php121 行目に定義があります。

◆ chkfile()

chkfile (   $fl,
  $writable 
)

Checks wether the file exists, is readable, and if $writeable is true, is writeable.

Appends an according message to $e otherwise.

引数
string$flA key of $pth['file'].
bool$writableWhether the file has to writable.

array The paths of system files and folders.

戻り値
bool
非推奨:
since 1.6.

compat.php176 行目に定義があります。

◆ guestbooklink()

guestbooklink ( )

Returns the link to the guestbook.

戻り値
string HTML
非推奨:
since 1.5.4

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

◆ preCallPlugins()

preCallPlugins (   $pageIndex = -1)

Function preCallPlugins() => Pre-Call of Plugins.

All Plugins which are called through a function-call can use this. At the moment it is'nt possible to do this with class-based plugins. They need to be called through standard-CMSimple-Scripting.

Call a plugin: place this in your code (example): {{{PLUGIN:pluginfunction('parameters');}}}

Call a built-in function (at the moment only one for demonstration): {{{HOME}}} or: {{{HOME:name_of_Link}}} This creates a link to the first page of your CMSimple- Installation.

引数
int$pageIndexThe page index.

bool Whether edit-mode is active. array The contents of all pages. int The Index of the active page. array The URLs of all pages.

戻り値
void
著者
mvwd
から
1.0
非推奨:
since 1.6

compat.php226 行目に定義があります。

◆ rf()

rf (   $fl)

Returns the content of file $filename, if it does exist, null otherwise.

引数
string$flThe file name.
戻り値
string
非推奨:
since 1.6

compat.php151 行目に定義があります。

◆ rp()

rp (   $p)

Returns the canonicalized absolute pathname on success. Otherwise returns its input.

引数
string$pThe file name.
戻り値
string
非推奨:
since 1.5.4. Use realpath() instead.

compat.php60 行目に定義があります。

◆ writelog()

writelog (   $m)

Appends a message to the logfile.

On failure an according message is appended to $e.

引数
string$mThe log message.
戻り値
void

array The paths of system files and folders.

非推奨:
since 1.6

compat.php255 行目に定義があります。