ZenphotoCMS 1.6.2

setup
in package

setup support class

Table of Contents

Methods

acknowledge()  : mixed
charsetSelector()  : mixed
drop-down for character set selection
checkMark()  : int
Prints an icon for success of failure of an action (it also returns the check level!)
checkPermissions()  : mixed
checkPreviousVersion()  : array<string|int, mixed>
Checks if we are updating from an earlier version or reinstalling and returns an array with various info for the checkmark box
checkServerSoftware()  : bool
Checks if the server software is Apache or Nginx
checkUnique()  : mixed
closeSite()  : mixed
if site was closed, keep it that way.
configMod()  : mixed
defaultOptionsRequest()  : mixed
fnmatch()  : bool
pattern match function in case it is not included in PHP
folderCheck()  : mixed
checks presence and permissions of folders
folderPermissions()  : mixed
getFileList()  : mixed
Returns a <ul> list with list entry containing <code> enclosed text
getResidentZPFiles()  : mixed
enumerates the files in folder(s)
getServerSoftware()  : string
Returns either "apache" or "nginx" for supported server software or the full $_SERVER['SERVER_SOFTWARE'] info
getVersions()  : array<string|int, mixed>
Returns am array with all release versions since 1.2
getXSRFToken()  : string
Generates an XSRFtoken
glob()  : mixed
file lister for setup
isMac()  : mixed
Returns true if we are running on a Macintosh
isWin()  : bool
Returns true if we are running on a Windows server
languageSelector()  : mixed
prints the language selector
locale()  : mixed
log()  : mixed
mkdir_r()  : mixed
permissionsSelector()  : string
primeMark()  : mixed
printFooter()  : mixed
sanitize()  : type
sanitize_string()  : type
secureServer()  : bool
Checks to see if access was through a secure protocol
siteClosed()  : mixed
updateConfigfile()  : mixed
userAuthorized()  : mixed
versionCheck()  : mixed
compares versions for required, desired version levels
XSRFDefender()  : mixed
Validates an XSRFtoken

Methods

acknowledge()

public static acknowledge(mixed $value) : mixed
Parameters
$value : mixed

charsetSelector()

drop-down for character set selection

public static charsetSelector( $select) : mixed
Parameters
$select :

checkMark()

Prints an icon for success of failure of an action (it also returns the check level!)

public static checkMark(int $check, type $text, type $text2, type $msg[, bool $stopAutorun = true ][, mixed $display_success = false ]) : int
Parameters
$check : int

0 = fail, -1,-3 = warning, 1 or -2 = pass

$text : type

Success text

$text2 : type

Warning text

$msg : type

Detailed message

$stopAutorun : bool = true

True if a show (setup) stopping issue

$display_success : mixed = false
Tags
global

boolean $_zp_setup_warn

global

type $_zp_setup_moreid

global

type $_zp_setup_primeid

global

boolean $_zp_setup_autorun

Return values
int

checkPermissions()

public static checkPermissions(mixed $actual, mixed $expected) : mixed
Parameters
$actual : mixed
$expected : mixed

checkPreviousVersion()

Checks if we are updating from an earlier version or reinstalling and returns an array with various info for the checkmark box

public static checkPreviousVersion() : array<string|int, mixed>
Tags
since
1.6
Return values
array<string|int, mixed>

checkServerSoftware()

Checks if the server software is Apache or Nginx

public static checkServerSoftware() : bool
Tags
since
1.5.7
Return values
bool

checkUnique()

public static checkUnique(mixed $table, mixed $unique) : mixed
Parameters
$table : mixed
$unique : mixed

closeSite()

if site was closed, keep it that way.

public static closeSite(mixed $nht) : mixed

...

Parameters
$nht : mixed

defaultOptionsRequest()

public static defaultOptionsRequest(mixed $name[, mixed $type = 'plugin' ]) : mixed
Parameters
$name : mixed
$type : mixed = 'plugin'

fnmatch()

pattern match function in case it is not included in PHP

public static fnmatch(string $pattern, string $string) : bool
Parameters
$pattern : string

pattern

$string : string

haystack

Return values
bool

folderCheck()

checks presence and permissions of folders

public static folderCheck( $which,  $path,  $class,  $subfolders, mixed $recurse, mixed $chmod, mixed $updatechmod) : mixed
Parameters
$which :
$path :
$class :
$subfolders :
$recurse : mixed
$chmod : mixed
$updatechmod : mixed

folderPermissions()

public static folderPermissions(mixed $folder) : mixed
Parameters
$folder : mixed

getFileList()

Returns a <ul> list with list entry containing <code> enclosed text

public static getFileList(array<string|int, mixed> $array) : mixed
Parameters
$array : array<string|int, mixed>

One dimensional array

getResidentZPFiles()

enumerates the files in folder(s)

public static getResidentZPFiles( $folder[, mixed $lcFilesystem = false ]) : mixed
Parameters
$folder :
$lcFilesystem : mixed = false

getServerSoftware()

Returns either "apache" or "nginx" for supported server software or the full $_SERVER['SERVER_SOFTWARE'] info

public static getServerSoftware() : string
Tags
since
1.5.7
Return values
string

getVersions()

Returns am array with all release versions since 1.2

public static getVersions() : array<string|int, mixed>

Note: THis needs to be kept current and updated with the previous version with every release

Tags
since
1.6
Return values
array<string|int, mixed>

getXSRFToken()

Generates an XSRFtoken

public static getXSRFToken() : string
Tags
since
1.6
Return values
string

glob()

file lister for setup

public static glob( $pattern[,  $flags = 0 ]) : mixed
Parameters
$pattern :
$flags : = 0

isMac()

Returns true if we are running on a Macintosh

public static isMac() : mixed

isWin()

Returns true if we are running on a Windows server

public static isWin() : bool
Return values
bool

languageSelector()

prints the language selector

public static languageSelector() : mixed

locale()

public static locale(mixed $locale) : mixed
Parameters
$locale : mixed

log()

public static log(type $message[, type $anyway = false ][, type $reset = false ]) : mixed
Parameters
$message : type
$anyway : type = false
$reset : type = false
Tags
global

type $_zp_setup_debug

global

type $_zp_mutex

global

type $_zp_setup_chmod

mkdir_r()

public static mkdir_r(mixed $pathname, mixed $mode) : mixed
Parameters
$pathname : mixed
$mode : mixed

permissionsSelector()

public static permissionsSelector(type $permission_names, type $select) : string
Parameters
$permission_names : type
$select : type
Tags
global

type $_zp_utf8

Return values
string

primeMark()

public static primeMark(type $text) : mixed
Parameters
$text : type
Tags
global

type $_zp_setup_primeid

sanitize()

public static sanitize(type $input_string[, type $sanitize_level = 3 ]) : type
Parameters
$input_string : type
$sanitize_level : type = 3
Return values
type

sanitize_string()

public static sanitize_string(type $input_string, type $sanitize_level) : type
Parameters
$input_string : type
$sanitize_level : type
Return values
type

secureServer()

Checks to see if access was through a secure protocol

public static secureServer() : bool
Tags
since
1.5.8

Doubles the function of the same name in functions-basic.php as not available on fresh installs

Return values
bool

siteClosed()

public static siteClosed(mixed $ht) : mixed
Parameters
$ht : mixed

updateConfigfile()

public static updateConfigfile(mixed $zp_cfg) : mixed
Parameters
$zp_cfg : mixed

userAuthorized()

public static userAuthorized() : mixed

versionCheck()

compares versions for required, desired version levels

public static versionCheck( $required,  $desired,  $found) : mixed
Parameters
$required :
$desired :
$found :

XSRFDefender()

Validates an XSRFtoken

public static XSRFDefender() : mixed

        
On this page

Search results