substr(md5(openssl_random_pseudo_bytes(20)), -12), 'targetPath' => '{core_path}backup/', ); $output = ''; $values = array(); switch ($options[xPDOTransport::PACKAGE_ACTION]) { case xPDOTransport::ACTION_INSTALL: $output .= '

Install BackupMODX

BackupMODX will be installed. Please review the install options carefully.


'; $output .= '


'; $output .= '


'; break; case xPDOTransport::ACTION_UPGRADE: $setting = $modx->getObject('modSystemSetting', array('key' => 'backupmodx.cronKey')); $values['cronKey'] = ($setting) ? $setting->get('value') : $defaults['cronKey']; unset($setting); $setting = $modx->getObject('modSystemSetting', array('key' => 'backupmodx.targetPath')); $values['targetPath'] = ($setting) ? $setting->get('value') : $defaults['targetPath']; unset($setting); $output .= '

Upgrade BackupMODX

BackupMODX will be upgraded. Please review the install options carefully.


'; $output .= '


'; $output .= '


'; break; case xPDOTransport::ACTION_UNINSTALL: break; } return $output;