CMSimple_XH
Functions
compat.php File Reference

Functions

 autogallery ($u)
 Returns the code to display a photogallery. More...
 
 rp ($p)
 Returns the canonicalized absolute pathname on success. More...
 
 amp ()
 Returns & or & according to the setting of ‘$cf['xhtml’]['amp']`. More...
 
 guestbooklink ()
 Returns the link to the guestbook. More...
 
 chkdl ($fl)
 Returns whether the file exists in the download folder and is available for download. More...
 
 rf ($fl)
 Returns the content of file $filename, if it does exist, null otherwise. More...
 
 chkfile ($fl, $writable)
 Checks wether the file exists, is readable, and if $writeable is true, is writeable. More...
 
 preCallPlugins ($pageIndex=-1)
 Function preCallPlugins() => Pre-Call of Plugins. More...
 
 writelog ($m)
 Appends a message to the logfile. More...
 

Detailed Description

Backward compatible functionality.

Author
Peter Harteg peter.nosp@m.@har.nosp@m.teg.d.nosp@m.k
The CMSimple_XH developers devs@.nosp@m.cmsi.nosp@m.mple-.nosp@m.xh.o.nosp@m.rg

Function Documentation

◆ amp()

amp ( )

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

Returns
string HTML
Deprecated:
since 1.5.4. Use & instead.

◆ autogallery()

autogallery (   $u)

Returns the code to display a photogallery.

Parameters
string$uAutogallery's installation folder.
Returns
string HTML
Deprecated:
since 1.5.4. Use a gallery plugin instead.

◆ chkdl()

chkdl (   $fl)

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

Parameters
string$flThe 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$flA key of $pth['file'].
bool$writableWhether the file has to writable.
Returns
void
Deprecated:
since 1.6.

◆ guestbooklink()

guestbooklink ( )

Returns the link to the guestbook.

Returns
string HTML
Deprecated:
since 1.5.4

◆ 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$pageIndexThe page index.
Returns
void
Author
mvwd
Since
1.0
Deprecated:
since 1.6

◆ rf()

rf (   $fl)

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

Parameters
string$flThe file name.
Returns
?string
Deprecated:
since 1.6

◆ rp()

rp (   $p)

Returns the canonicalized absolute pathname on success.

Otherwise returns its input.

Parameters
string$pThe file name.
Returns
string
Deprecated:
since 1.5.4. Use realpath() instead.

◆ writelog()

writelog (   $m)

Appends a message to the logfile.

On failure an according message is appended to $e.

Parameters
string$mThe log message.
Returns
void
Deprecated:
since 1.6