XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
updates.php File Reference

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'
 

Function Documentation

ajax_load_updates ( )

Load available updates via AJAX

Definition at line 64 of file updates.php.

References $rmTpl, $updfile, $xoopsLogger, and RMUtilities\get().

Here is the call graph for this function:

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().

Here is the call graph for this function:

chmodFile (   $file,
  $mode,
  $ftp 
)

Definition at line 310 of file updates.php.

References $file.

Referenced by processFile().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

deleteFTPDir (   $dir,
  $ftp 
)

Definition at line 324 of file updates.php.

References $dir, and $ftpConfig.

Referenced by processFile().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

download_for_later ( )

Definition at line 343 of file updates.php.

References $dir, $type, $url, $xoopsLogger, __(), jsonReturn(), and rmc_server_var().

Here is the call graph for this function:

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.

Here is the call graph for this function:

jsonReturn (   $message,
  $error = 1,
  $data = array() 
)

Definition at line 18 of file updates.php.

References $data, and $ret.

Referenced by ajax_update_details(), download_file(), and download_for_later().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

putContents (   $file,
  $source,
  $ftp 
)

Definition at line 316 of file updates.php.

References $file.

Referenced by processFile().

Here is the caller graph for this function:

show_available_updates ( )

Definition at line 30 of file updates.php.

References $rmEvents, $rmFunc, $rmTpl, $updfile, $xoopsSecurity, __(), RMFunctions\get(), and RMUtilities\get().

Here is the call graph for this function:

Variable Documentation

$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.