class CKunenaPath extends JPath


Located at : UKNOWVA_ROOT/components/com_kunena/lib/kunena.file.class.1.6.php

Methods

static boolean
canChmod(string $path)

Checks if a path's permissions can be changed

from JPath
static boolean
setPermissions(string $path, string $filemode = '0644', string $foldermode = '0755')

Chmods files and directories recursivly to given permissions

from JPath
static string
getPermissions(string $path)

Get the permissions of the file/folder at a give path

from JPath
static string
check(string $path, string $ds = DIRECTORY_SEPARATOR)

Checks for snooping outside of the file system root

from JPath
static string
clean(string $path, string $ds = DIRECTORY_SEPARATOR)

Function to strip additional / or \ in a path name

from JPath
static boolean
isOwner(string $path)

Method to determine if script owns the path

from JPath
static mixed
find(mixed $paths, string $file)

Searches the directory paths for a given file.

from JPath
tmpdir()

No description

isWritable($path)

No description

Details

in JPath at line 46
static boolean canChmod(string $path)

Checks if a path's permissions can be changed

Parameters

string $path Path to check

Return Value

boolean True if path can have mode changed

in JPath at line 69
static boolean setPermissions(string $path, string $filemode = '0644', string $foldermode = '0755')

Chmods files and directories recursivly to given permissions

Parameters

string $path Root path to begin changing mode [without trailing slash]
string $filemode Octal representation of the value to change file mode to [null = no change]
string $foldermode Octal representation of the value to change folder mode to [null = no change]

Return Value

boolean True if successful [one fail means the whole operation failed]

in JPath at line 116
static string getPermissions(string $path)

Get the permissions of the file/folder at a give path

Parameters

string $path The path of a file/folder

Return Value

string Filesystem permissions

in JPath at line 147
static string check(string $path, string $ds = DIRECTORY_SEPARATOR)

Checks for snooping outside of the file system root

Parameters

string $path A file system path to check
string $ds Directory separator (optional)

Return Value

string A cleaned version of the path or exit on error

in JPath at line 174
static string clean(string $path, string $ds = DIRECTORY_SEPARATOR)

Function to strip additional / or \ in a path name

Parameters

string $path The path to clean
string $ds Directory separator (optional)

Return Value

string The cleaned path

in JPath at line 196
static boolean isOwner(string $path)

Method to determine if script owns the path

Parameters

string $path Path to check ownership

Return Value

boolean True if the php script owns the path passed

in JPath at line 238
static mixed find(mixed $paths, string $file)

Searches the directory paths for a given file.

Parameters

mixed $paths An path string or array of path strings to search in
string $file The file name to look for.

Return Value

mixed The full path and file name for the target file, or boolean false if the file is not found in any of the paths.

at line 20
tmpdir()

at line 47
isWritable($path)

Parameters

$path