XOOPS RMCommon Utilities
2.1.8.91RC
|
Go to the source code of this file.
Functions | |
ajax_load_updates () | |
ajax_update_details () | |
chmodFile ($file, $mode, $ftp) | |
createDirs ($dirs, RMFtpClient $ftp) | |
deleteFTPDir ($dir, $ftp) | |
download_file () | |
download_for_later () | |
get_file_now () | |
jsonReturn ($message, $error=1, $data=array()) | |
processFile ($file, $ftp) | |
putContents ($file, $source, $ftp) | |
show_available_updates () | |
Variables | |
$action = rmc_server_var($_REQUEST, 'action', '') | |
$ftpConfig = new stdClass() | |
$runFiles = array() | |
$updfile = XOOPS_CACHE_PATH.'/updates.chk' | |
const | RMCLOCATION 'updates' |
ajax_load_updates | ( | ) |
Load available updates via AJAX
Definition at line 64 of file updates.php.
References $rmTpl, $updfile, $xoopsLogger, and RMUtilities\get().
ajax_update_details | ( | ) |
Load update details
Definition at line 82 of file updates.php.
References $data, $files, $ret, $rmTpl, $url, $xoopsLogger, __(), RMUtilities\get(), jsonReturn(), and rmc_server_var().
chmodFile | ( | $file, | |
$mode, | |||
$ftp | |||
) |
Definition at line 310 of file updates.php.
References $file.
Referenced by processFile().
createDirs | ( | $dirs, | |
RMFtpClient | $ftp | ||
) |
Definition at line 296 of file updates.php.
References $dir, $dirs, $ftpConfig, $path, RMFtpClient\chdir(), RMFtpClient\isDir(), and RMFtpClient\mkdir().
Referenced by processFile().
deleteFTPDir | ( | $dir, | |
$ftp | |||
) |
Definition at line 324 of file updates.php.
References $dir, and $ftpConfig.
Referenced by processFile().
download_file | ( | ) |
Definition at line 113 of file updates.php.
References $dir, $files, $ftpConfig, $rmTpl, $runFiles, $target, $type, $url, $xoopsLogger, __(), RMUtilities\get(), jsonReturn(), processFile(), and rmc_server_var().
download_for_later | ( | ) |
Definition at line 343 of file updates.php.
References $dir, $type, $url, $xoopsLogger, __(), jsonReturn(), and rmc_server_var().
get_file_now | ( | ) |
Send downloaded file to user
Definition at line 376 of file updates.php.
References $file, $tfile, $xoopsSecurity, __(), redirectMsg(), rmc_server_var(), and RMMSG_ERROR.
jsonReturn | ( | $message, | |
$error = 1 , |
|||
$data = array() |
|||
) |
Definition at line 18 of file updates.php.
Referenced by ajax_update_details(), download_file(), and download_for_later().
processFile | ( | $file, | |
$ftp | |||
) |
Definition at line 256 of file updates.php.
References $dirs, $file, $ftpConfig, $runFiles, chmodFile(), createDirs(), deleteFTPDir(), and putContents().
Referenced by download_file().
putContents | ( | $file, | |
$source, | |||
$ftp | |||
) |
Definition at line 316 of file updates.php.
References $file.
Referenced by processFile().
show_available_updates | ( | ) |
Definition at line 30 of file updates.php.
References $rmEvents, $rmFunc, $rmTpl, $updfile, $xoopsSecurity, __(), RMFunctions\get(), and RMUtilities\get().
$action = rmc_server_var($_REQUEST, 'action', '') |
Definition at line 406 of file updates.php.
$ftpConfig = new stdClass() |
Definition at line 15 of file updates.php.
Referenced by createDirs(), deleteFTPDir(), download_file(), and processFile().
$runFiles = array() |
Definition at line 16 of file updates.php.
Referenced by download_file(), and processFile().
$updfile = XOOPS_CACHE_PATH.'/updates.chk' |
Definition at line 14 of file updates.php.
Referenced by ajax_load_updates(), and show_available_updates().
const RMCLOCATION 'updates' |
Definition at line 11 of file updates.php.