Functions
Function | Description |
---|---|
checkZip |
Checks the update zip file for integrity. |
cleanup |
Removes update related files and directories. |
extract |
Extracts an update file into a temporary directory to prepare for update. |
ftpLogin |
Makes an FTP connection to localhost. |
getFTPRoot |
Attempts to determing the FTP directory in which BigTree can be found |
installFTP |
Installs an update via FTP/SFTP. |
installLocal |
Installs an update via local file replacement. |
zipRoot |
Returns the root of a zip file (if the root is simply a folder) |
checkZip
Checks the update zip file for integrity.
Return Value: true if the file isn't corrupt
checkZip()
cleanup
Removes update related files and directories.
cleanup()
extract
Extracts an update file into a temporary directory to prepare for update.
Return Value: true if successful
extract()
ftpLogin
Makes an FTP connection to localhost.
Return Value: true if successful.
ftpLogin($user, $password)
Parameter | Description |
---|---|
$user |
Username |
$password |
Password |
getFTPRoot
Attempts to determing the FTP directory in which BigTree can be found
Return Value: false if not successful.
getFTPRoot()
installFTP
Installs an update via FTP/SFTP.
installFTP($ftp_root)
Parameter | Description |
---|---|
$ftp_root |
The FTP path to the root install directory for BigTree |
installLocal
Installs an update via local file replacement.
installLocal()
zipRoot
Returns the root of a zip file (if the root is simply a folder)
Return Value: A folder name or false if the root contains more than just a folder.
static zipRoot($zip)
Parameter | Description |
---|---|
$zip |
PclZip instance |