Cheetah
Functions
functions.inc.php File Reference

Go to the source code of this file.

Functions

 secureCheckWidgetName ($sWidget)
 
 getError ($sError)
 
 checkPermissions ($sFileName)
 
 createDataBase ($sWidget)
 
 recompileIntegrator ($sWidget)
 
 refreshExtraFile ($sWidget, $sCase, $bReset=false, $sDefaultFile="", $aEnabledFiles=array())
 
 createMainFile ($sWidget)
 
 getFileContents ($sWidget, $sFile, $bArray=false)
 
 getFileExtension ($sWidget, $sFolder)
 
 smartReadFile ($sPath, $sFilename='', $sMimeType='application/octet-stream', $iCacheAge=0, $sCachePrivacy='public')
 

Function Documentation

◆ checkPermissions()

checkPermissions (   $sFileName)

------------— Installation Functions ------------— Checks permissions of files and directories.

Parameters
sFileName- file's name.

Definition at line 34 of file functions.inc.php.

◆ createDataBase()

createDataBase (   $sWidget)

Execute MySQL queries for specified widget.

Parameters
sWidget- the name of the widget.

Definition at line 65 of file functions.inc.php.

◆ createMainFile()

createMainFile (   $sWidget)

creates widget's main config file

Parameters
sWidget- the name of the widget.

Definition at line 224 of file functions.inc.php.

◆ getError()

getError (   $sError)

get error

Parameters
sError- error template
...- variable amount of incoming parameters with information to be used in the process of parsing.

Definition at line 18 of file functions.inc.php.

◆ getFileContents()

getFileContents (   $sWidget,
  $sFile,
  $bArray = false 
)

gets file contents

Parameters
sWidget- the name of the widget.
sCase- skins/langs

Definition at line 264 of file functions.inc.php.

◆ getFileExtension()

getFileExtension (   $sWidget,
  $sFolder 
)

gets file extension by given widget name and folder

Parameters
sWidget- the name of the widget.
sFolder

Definition at line 286 of file functions.inc.php.

◆ recompileIntegrator()

recompileIntegrator (   $sWidget)

Recompile global/js/integration.js file - (re)define given widget

Parameters
sWidget- the name of the widget.

Definition at line 98 of file functions.inc.php.

◆ refreshExtraFile()

refreshExtraFile (   $sWidget,
  $sCase,
  $bReset = false,
  $sDefaultFile = "",
  $aEnabledFiles = array() 
)

refresh extra file (skins.xml/langs.xml)

Parameters
sWidget- the name of the widget.
sCase- skins/langs

Definition at line 172 of file functions.inc.php.

◆ secureCheckWidgetName()

secureCheckWidgetName (   $sWidget)

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/

Definition at line 8 of file functions.inc.php.

◆ smartReadFile()

smartReadFile (   $sPath,
  $sFilename = '',
  $sMimeType = 'application/octet-stream',
  $iCacheAge = 0,
  $sCachePrivacy = 'public' 
)

Definition at line 301 of file functions.inc.php.