Server IP : 195.201.23.43 / Your IP : 18.224.21.144 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/cwd/administrator/components/com_akeeba/View/Restore/tmpl/ |
Upload File : |
<?php /** * @package akeebabackup * @copyright Copyright (c)2006-2019 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ // Protect from unauthorized access defined('_JEXEC') or die(); /** @var \Akeeba\Backup\Admin\View\Restore\Html $this */ $urlBrowser = addslashes('index.php?view=Browser&tmpl=component&processfolder=1&folder='); $urlFtpBrowser = addslashes('index.php?option=com_akeeba&view=FTPBrowser'); $urlTestFtp = addslashes('index.php?option=com_akeeba&view=Restore&task=ajax&ajax=testftp'); $js = <<< JS ;// This comment is intentionally put here to prevent badly written plugins from causing a Javascript error // due to missing trailing semicolon and/or newline in their code. akeeba.System.documentReady(function() { // Push some custom URLs akeeba.Configuration.URLs['browser'] = '$urlBrowser'; akeeba.Configuration.URLs['ftpBrowser'] = '$urlFtpBrowser'; akeeba.Configuration.URLs['testFtp'] = '$urlTestFtp'; akeeba.System.addEventListener(document.getElementById('backup-start'), 'click', function(event){ document.adminForm.submit(); }); // Button hooks function onProcEngineChange(e) { var elProcEngine = document.getElementById('procengine'); if (elProcEngine.options[elProcEngine.selectedIndex].value == 'direct') { document.getElementById('ftpOptions').style.display = 'none'; document.getElementById('testftp').style.display = 'none'; } else { document.getElementById('ftpOptions').style.display = 'block'; document.getElementById('testftp').style.display = 'inline-block'; } } akeeba.System.addEventListener(document.getElementById('ftp-browse'), 'click', function(){ akeeba.Configuration.FtpBrowser.initialise('ftp.initial_directory', 'ftp') }); akeeba.System.addEventListener(document.getElementById('testftp'), 'click', function(){ akeeba.Configuration.FtpTest.testConnection('testftp', 'ftp'); }); akeeba.System.addEventListener(document.getElementById('procengine'), 'change', onProcEngineChange); onProcEngineChange(); // Work around Safari which ignores autocomplete=off setTimeout(akeeba.Restore.restoreDefaultOptions, 500); }); JS; $this->getContainer()->template->addJSInline($js); ?> <?php echo $this->loadAnyTemplate('admin:com_akeeba/CommonTemplates/FTPBrowser'); ?> <?php echo $this->loadAnyTemplate('admin:com_akeeba/CommonTemplates/FTPConnectionTest'); ?> <?php echo $this->loadAnyTemplate('admin:com_akeeba/CommonTemplates/ErrorModal'); ?> <form name="adminForm" id="adminForm" action="index.php" method="post" class="akeeba-form--horizontal"> <input type="hidden" name="option" value="com_akeeba" /> <input type="hidden" name="view" value="Restore" /> <input type="hidden" name="task" value="start" /> <input type="hidden" name="id" value="<?php echo (int)$this->id; ?>" /> <input type="hidden" name="<?php echo $this->container->platform->getToken(true)?>" value="1"/> <h4><?php echo \JText::_('COM_AKEEBA_RESTORE_LABEL_EXTRACTIONMETHOD'); ?></h4> <div class="akeeba-form-group"> <label for="procengine"> <?php echo \JText::_('COM_AKEEBA_RESTORE_LABEL_EXTRACTIONMETHOD'); ?> </label> <?php echo \JHtml::_('select.genericlist', $this->extractionmodes, 'procengine', '', 'value', 'text', $this->ftpparams['procengine']); ?> <p class="akeeba-help-text"> <?php echo \JText::_('COM_AKEEBA_RESTORE_LABEL_REMOTETIP'); ?> </p> </div> <?php if($this->container->params->get('showDeleteOnRestore', 0) == 1): ?> <div class="akeeba-form-group"> <label for="zapbefore"> <?php echo \JText::_('COM_AKEEBA_RESTORE_LABEL_ZAPBEFORE'); ?> </label> <?php echo \JHtml::_('FEFHelper.select.booleanswitch', 'zapbefore', 0); ?> <p class="akeeba-help-text"><?php echo JText::_('COM_AKEEBA_RESTORE_LABEL_ZAPBEFORE_HELP'); ?></p> </div> <?php endif; ?> <?php if ($this->extension == 'jps'): ?> <h4><?php echo \JText::_('COM_AKEEBA_RESTORE_LABEL_JPSOPTIONS'); ?></h4> <div class="akeeba-form-group"> <label for="jps_key"> <?php echo \JText::_('COM_AKEEBA_CONFIG_JPS_KEY_TITLE'); ?> </label> <input id="jps_key" name="jps_key" value="" type="password" /> </div> <?php endif; ?> <div id="ftpOptions"> <h4><?php echo \JText::_('COM_AKEEBA_RESTORE_LABEL_FTPOPTIONS'); ?></h4> <div class="akeeba-form-group"> <label for="ftp_host"> <?php echo \JText::_('COM_AKEEBA_CONFIG_DIRECTFTP_HOST_TITLE'); ?> </label> <input id="ftp_host" name="" value="<?php echo $this->escape($this->ftpparams['ftp_host']); ?>" type="text" /> </div> <div class="akeeba-form-group"> <label for="ftp_port"> <?php echo \JText::_('COM_AKEEBA_CONFIG_DIRECTFTP_PORT_TITLE'); ?> </label> <input id="ftp_port" name="ftp_port" value="<?php echo $this->escape($this->ftpparams['ftp_port']); ?>" type="text" /> </div> <div class="akeeba-form-group"> <label for="ftp_user"> <?php echo \JText::_('COM_AKEEBA_CONFIG_DIRECTFTP_USER_TITLE'); ?> </label> <input id="ftp_user" name="ftp_user" value="<?php echo $this->escape($this->ftpparams['ftp_user']); ?>" type="text" /> </div> <div class="akeeba-form-group"> <label for="ftp_pass"> <?php echo \JText::_('COM_AKEEBA_CONFIG_DIRECTFTP_PASSWORD_TITLE'); ?> </label> <input id="ftp_pass" name="ftp_pass" value="<?php echo $this->escape($this->ftpparams['ftp_pass']); ?>" type="password" /> </div> <div class="akeeba-form-group"> <label for="ftp_root"> <?php echo \JText::_('COM_AKEEBA_CONFIG_DIRECTFTP_INITDIR_TITLE'); ?> </label> <input id="ftp_root" name="ftp_root" value="<?php echo $this->escape($this->ftpparams['ftp_root']); ?>" type="text" /> <div class="akeXXeba-input-group"> <div class="akeXXeba-input-group-btn" style="display: none;"> <button class="akeeba-btn--dark" id="ftp-browse" onclick="return false;"> <span class="akion-folder"></span> <?php echo \JText::_('COM_AKEEBA_CONFIG_UI_BROWSE'); ?> </button> </div> </div> </div> </div> <div class="akeeba-form-group--pull-right"> <div class="akeeba-form-group--actions"> <button class="akeeba-btn--primary" id="backup-start" onclick="return false;"> <span class="akion-refresh"></span> <?php echo \JText::_('COM_AKEEBA_RESTORE_LABEL_START'); ?> </button> <button class="akeeba-btn--grey" id="testftp" onclick="return false;"> <span class="akion-ios-pulse-strong"></span> <?php echo \JText::_('COM_AKEEBA_CONFIG_DIRECTFTP_TEST_TITLE'); ?> </button> </div> </div> </form>Private