Procedural File: tNG_functions.inc.php
Source Location: /tNG3/tNG_functions.inc.php
Page Details:
NXT_getResource [line 356]
string NXT_getResource(
string $resourceName)
Return the resource for NeXTensio
Tags:
Parameters
string
$resourceName
the resource name
tNG_activationLogin [line 289]
string tNG_activationLogin(
object &$connection)
Try to activate an user and login in if the random key and user id exists;
Tags:
Parameters
object
$connection
object
tNG_clearSessionVars [line 337]
void tNG_clearSessionVars(
)
tNG_cookieLogin [line 316]
nothing tNG_cookieLogin(
object &$connection)
try to log in an user using the cookies;
Parameters
object
$connection
object;
tNG_downloadDynamicFile [line 13]
string tNG_downloadDynamicFile(
string $siteRootPath, string $dynamicFolder, string $dynamicFileName)
Set the necessary information in SESSION for a download;
Tags:
Parameters
string
$siteRootPath
string
$dynamicFolder
the name of the folder
string
$dynamicFileName
the name of the file
tNG_encryptString [line 278]
string tNG_encryptString(
string $plain_string)
Return the encripted string useing MD5();
Tags:
Parameters
tNG_fieldHasChanged [line 157]
boolean tNG_fieldHasChanged(
string $fieldName, any $fieldValue)
Checks if the value for a given expression changed
Tags:
Parameters
string
$fieldName
unique identifier of the expression to be checked for change
any
$fieldValue
the value of the expression to be checked
tNG_fileExists [line 64]
boolean tNG_fileExists(
string $dynamicFolder, string $dynamicFileName)
Checks if a file specified by the dynamic folder and dynamic file expressions exists
Tags:
Parameters
string
$dynamicFolder
the folder name (may be a tNG dynamic expression)
string
$dynamicFileName
the file name (may be a tNG dynamic expression)
tNG_generateRandomString [line 259]
string tNG_generateRandomString(
string $len)
Return a random string
Tags:
Parameters
string
$len
length of the random string
tNG_getEscapedStringFromMessage [line 167]
void tNG_getEscapedStringFromMessage(
mixed &$string)
tNG_getRememberMePath [line 222]
string tNG_getRememberMePath(
)
Session functions
try to match $tNGinc_path into $absPath_running_script and get the remainings ( remainings = the relative path of the current file to the root of the site)
Tags:
tNG_showDynamicImage [line 86]
string tNG_showDynamicImage(
mixed $siteRootPath, string $dynamicFolder, string $dynamicFileName)
Creates and returns the image relative path using the dynamic folder and dynamic file expressions
Tags:
Parameters
string
$dynamicFolder
the folder name (may be a tNG dynamic expression)
string
$dynamicFileName
the file name (may be a tNG dynamic expression)
tNG_showDynamicThumbnail [line 112]
string tNG_showDynamicThumbnail(
mixed $siteRootPath, string $dynamicFolder, string $dynamicFileName, integer $width, integer $height, boolean $proportional)
Creates and returns the relative path of an image thumbnail using the dynamic folder and dynamic file expressions
Tags:
Parameters
string
$dynamicFolder
the folder name (may be a tNG dynamic expression)
string
$dynamicFileName
the file name (may be a tNG dynamic expression)
integer
$width
the width of the thumbnail to be created
integer
$height
the width of the thumbnail to be created
boolean
$proportional
specify if the thumbnail preserve the proportions of the original image