◆ amp()
Returns &
or &
according to the setting of ‘$cf['xhtml’]['amp']`.
- Returns
- string HTML
- Deprecated:
- since 1.5.4. Use
&
instead.
◆ autogallery()
Returns the code to display a photogallery.
- Parameters
-
string | $u | Autogallery's installation folder. |
- Returns
- string HTML
- Deprecated:
- since 1.5.4. Use a gallery plugin instead.
◆ chkdl()
Returns whether the file exists in the download folder and is available for download.
- Parameters
-
string | $fl | The download URL, e.g. ?download=file.ext |
- Returns
- bool
- Deprecated:
- since 1.6.
◆ 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.
- Parameters
-
string | $fl | A key of $pth['file']. |
bool | $writable | Whether the file has to writable. |
- Returns
- void
- Deprecated:
- since 1.6.
◆ guestbooklink()
Returns the link to the guestbook.
- Returns
- string HTML
- Deprecated:
- since 1.5.4
◆ h()
Returns a page heading.
- Parameters
-
int | $n | The index of the page. |
- Returns
- string
- See also
- $h
- Deprecated:
- since 1.7. Use $h instead.
◆ initvar()
Initializes a global variable according to a GET or POST parameter.
- Parameters
-
string | $name | The name of the global variable. |
- Returns
- void
- Deprecated:
- since 1.7.0
◆ l()
Returns a page's menu level.
- Parameters
-
int | $n | The index of the page. |
- Returns
- int
- See also
- $l
- Deprecated:
- since 1.7. Use $l instead.
◆ 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.
- Parameters
-
int | $pageIndex | The page index. |
- Returns
- void
- Author
- mvwd
- Since
- 1.0
- Deprecated:
- since 1.6
◆ rf()
Returns the content of file $filename, if it does exist, null otherwise.
- Parameters
-
- Returns
- ?string
- Deprecated:
- since 1.6
◆ rp()
Returns the canonicalized absolute pathname on success.
Otherwise returns its input.
- Parameters
-
- Returns
- string
- Deprecated:
- since 1.5.4. Use realpath() instead.
◆ stsl()
Returns the un-quoted $t, i.e.
reverses the effect of magic_quotes_gpc/magic_quotes_sybase.
Since magic_quotes are gone, it is a NOP now.
- Parameters
-
- Returns
- string
- Deprecated:
- since 1.8
◆ tag()
Returns an HTML stand alone tag.
Used to returns an (X)HTML compliant stand alone tag according to the settings of $cf['xhtml']['endtags'].
- Parameters
-
string | $s | The contents of the tag. |
- Returns
- string HTML
- Deprecated:
- since 1.7
- Todo:
- Add deprecation warning (XH 1.8?)
◆ writelog()
Appends a message to the logfile.
On failure an according message is appended to $e.
- Parameters
-
- Returns
- void
- Deprecated:
- since 1.6
◆ XH_decodeJson()
Returns the JSON string decoded as PHP value.
- Parameters
-
string | $string | A JSON string. |
- Returns
- mixed
- Since
- 1.6
- Deprecated:
- since 1.8.
◆ XH_encodeJson()
Returns the JSON representation of a value.
- Parameters
-
- Returns
- string or bool false on JSON error
- Since
- 1.6
- Deprecated:
- since 1.8.
◆ XH_lastJsonError()
◆ XH_renameFile()
XH_renameFile |
( |
|
$oldname, |
|
|
|
$newname |
|
) |
| |
Attempts to rename oldname to newname, and returns whether that succeeded.
The file is moved between directories if necessary. If newname exists, it will be overwritten.
This is a wrapper around rename(), which offers a fallback for the limitation of PHP < 5.3 on Windows that the rename operation fails, if $newfile already exists. Note, that the fallback solution is not atomic.
- Parameters
-
string | $oldname | A filename. |
string | $newname | A filename. |
- Returns
- bool
- Since
- 1.6
- Deprecated:
- since 1.8.