Cheetah
Functions
util.inc.php File Reference

Go to the source code of this file.

Functions

 transCheck ($xml, $xsl, $trans, $browser_transform=0)
 
 array2xml ($arr, $tag=false)
 
 checkMagicQuotes ()
 
 addSlashesArray (&$a)
 
 prepare_to_db (&$s, $iAllowHTML=1)
 
 filter_to_db ($s, $iAllowHTML=0)
 
 cleanPost (&$s)
 
 encode_post_text (&$s, $bEncodeSpecialChars=false, $bAutohyperlink=false)
 
 unicode_urldecode ($url)
 
 validate_unicode (&$s)
 
 getConfigParam ($sName)
 
 setConfigParam ($sName, $sValue)
 
 getConfig ()
 
 echo_utf8 ($s)
 
 orca_mkdir_r ($dirName, $rights=0755)
 
 orca_format_bytes ($i)
 
 orca_format_date ($iTimestamp)
 
 orca_build_path ($s)
 
 orca_mb_replace ($sPattern, $sReplace, $s)
 
 orca_mb_len ($s)
 
 orca_mb_substr ($s, $iStart, $iLen)
 

Function Documentation

◆ addSlashesArray()

addSlashesArray ( $a)

add slashes to every value of array

Definition at line 100 of file util.inc.php.

◆ array2xml()

array2xml (   $arr,
  $tag = false 
)

Convert array to XML format

Parameters
$arrarray with data
$tagmain tag <main tag>XML data</main>
Returns
XML presentation of data

Definition at line 60 of file util.inc.php.

◆ checkMagicQuotes()

checkMagicQuotes ( )

check if magick quotes is disables

Definition at line 88 of file util.inc.php.

◆ cleanPost()

cleanPost ( $s)

check html message, remove unknown tags, chech for xhtml errors

Definition at line 138 of file util.inc.php.

◆ echo_utf8()

echo_utf8 (   $s)

Definition at line 252 of file util.inc.php.

◆ encode_post_text()

encode_post_text ( $s,
  $bEncodeSpecialChars = false,
  $bAutohyperlink = false 
)

Definition at line 146 of file util.inc.php.

◆ filter_to_db()

filter_to_db (   $s,
  $iAllowHTML = 0 
)

Definition at line 123 of file util.inc.php.

◆ getConfig()

getConfig ( )

Definition at line 236 of file util.inc.php.

◆ getConfigParam()

getConfigParam (   $sName)

Definition at line 201 of file util.inc.php.

◆ orca_build_path()

orca_build_path (   $s)

Definition at line 278 of file util.inc.php.

◆ orca_format_bytes()

orca_format_bytes (   $i)

Definition at line 263 of file util.inc.php.

◆ orca_format_date()

orca_format_date (   $iTimestamp)

Definition at line 273 of file util.inc.php.

◆ orca_mb_len()

orca_mb_len (   $s)

Definition at line 288 of file util.inc.php.

◆ orca_mb_replace()

orca_mb_replace (   $sPattern,
  $sReplace,
  $s 
)

Definition at line 283 of file util.inc.php.

◆ orca_mb_substr()

orca_mb_substr (   $s,
  $iStart,
  $iLen 
)

Definition at line 296 of file util.inc.php.

◆ orca_mkdir_r()

orca_mkdir_r (   $dirName,
  $rights = 0755 
)

Definition at line 258 of file util.inc.php.

◆ prepare_to_db()

prepare_to_db ( $s,
  $iAllowHTML = 1 
)

Definition at line 110 of file util.inc.php.

◆ setConfigParam()

setConfigParam (   $sName,
  $sValue 
)

Definition at line 214 of file util.inc.php.

◆ transCheck()

transCheck (   $xml,
  $xsl,
  $trans,
  $browser_transform = 0 
)

This work, "Cheetah - https://www.cheetahwsb.com", is a derivative of "Dolphin Pro V7.4.2" by BoonEx Pty Limited - https://www.boonex.com/, used under CC-BY. "Cheetah" is licensed under CC-BY by Dean J. Bassett Jr. CC-BY License - http://creativecommons.org/licenses/by/3.0/ Output XML or make XSL transformation and output ready HTML

Parameters
$codeXML code
$xslfile name
$transmake xsl transformation or not

Definition at line 16 of file util.inc.php.

◆ unicode_urldecode()

unicode_urldecode (   $url)

Definition at line 170 of file util.inc.php.

◆ validate_unicode()

validate_unicode ( $s)

Definition at line 195 of file util.inc.php.