/home/suroeste/public_html/wp-content/plugins/akeebabackupwp/app/Solo/Controller
NameSizeModeActions
Backup.php57280644editdlrm
Browser.php6490644editdlrm
Configuration.php88530644editdlrm
ControllerDefault.php34990644editdlrm
DataControllerDefault.php28810644editdlrm
Dbfilters.php14310644editdlrm
Errortest.php5340644editdlrm
Fsfilters.php14310644editdlrm
Ftpbrowser.php17070644editdlrm
Log.php34670644editdlrm
Main.php93930644editdlrm
Manage.php124140644editdlrm
Oauth2.php40860644editdlrm
Phpinfo.php4000644editdlrm
Profiles.php27610644editdlrm
Sftpbrowser.php17890644editdlrm
Sysconfig.php34040644editdlrm
Update.php18910644editdlrm
Wizard.php23860644editdlrm
Edit: /home/suroeste/public_html/wp-content/plugins/akeebabackupwp/app/Solo/Controller/Backup.php (5728B)
noFlush = $this->container->appConfig->get('no_flush', 0); } /** * Default task; shows the initial page where the user selects a profile * and enters description and comment * * @return void */ public function main() { // Push models to view $model = $this->getModel(); $model->setState('returnform', $this->input->get('returnform', '', 'raw')); $newProfile = (int)$this->input->get('profile', -10, 'int'); // Apply the CSRF protection if we're switching profile or passing variables for POST redirection if ($newProfile > 0 || $model->getState('returnform', '')) { $this->csrfProtection(true); $this->applyProfile(); } $srpinfo = array( 'tag' => $this->input->get('tag', 'backend', 'cmd'), 'type' => $this->input->get('type', '', 'cmd'), 'name' => $this->input->get('name', '', 'cmd'), 'group' => $this->input->get('group', '', 'cmd'), 'customdirs' => $this->input->get('customdirs', array(), 'array'), 'extraprefixes' => $this->input->get('extraprefixes', array(), 'array'), 'customtables' => $this->input->get('customtables', array(), 'array'), 'skiptables' => $this->input->get('skiptables', array(), 'array'), 'xmlname' => $this->input->get('xmlname', '', 'string') ); // Sanitize the return URL $returnUrl = $this->input->get('returnurl', '', 'raw'); $returnUrl = Utils::safeDecodeReturnUrl($returnUrl); $model->setState('srpinfo', $srpinfo); $model->setState('description', $this->input->get('description', null, 'raw')); $model->setState('comment', $this->input->get('comment', null, 'raw')); $model->setState('jpskey', $this->input->get('jpskey', '', 'raw')); $model->setState('angiekey', $this->input->get('angiekey', '', 'raw')); $model->setState('returnurl', $returnUrl); $model->setState('backupid', $this->input->get('backupid', null, 'cmd')); $model->setState('autostart', $this->input->getBool('autostart', false)); $this->display(); } /** * Handle an AJAX request * * @return void */ public function ajax() { $model = $this->getModel(); $model->setState('profile', $this->input->get('profile', Platform::getInstance()->get_active_profile(), 'int')); $model->setState('ajax', $this->input->get('ajax', '', 'cmd')); $model->setState('description', $this->input->get('description', '', 'raw')); $model->setState('comment', $this->input->get('comment', '','raw')); $model->setState('jpskey', $this->input->get('jpskey', '', 'raw')); $model->setState('angiekey', $this->input->get('angiekey', '', 'raw')); $model->setState('backupid', $this->input->get('backupid', null, 'cmd')); $model->setState('errorMessage', $this->input->get('errorMessage', '', 'string')); $model->setState('tag', $this->input->get('tag', 'backend', 'cmd')); $model->setState('type', strtolower($this->input->get('type', '', 'cmd'))); $model->setState('name', strtolower($this->input->get('name', '', 'cmd'))); $model->setState('group', strtolower($this->input->get('group', '', 'cmd'))); $model->setState('customdirs', $this->input->get('customdirs', array(),'array')); $model->setState('customfiles', $this->input->get('customfiles', array(),'array')); $model->setState('extraprefixes', $this->input->get('extraprefixes', array(),'array')); $model->setState('customtables', $this->input->get('customtables', array(),'array')); $model->setState('skiptables', $this->input->get('skiptables', array(),'array')); $model->setState('langfiles', $this->input->get('langfiles', array(),'array')); $model->setState('xmlname', $this->input->getString('xmlname', '')); define('AKEEBA_BACKUP_ORIGIN', $this->input->get('tag', 'backend', 'cmd')); $ret_array = $model->runBackup(); @ob_end_clean(); header('Content-type: text/plain'); header('Connection: close'); echo '#"\#\"#' . json_encode($ret_array) . '#"\#\"#'; if (!$this->noFlush) { flush(); } $this->container->application->close(); } /** * Applies a profile change based on the request's "profile" parameter */ private function applyProfile() { // Get the currently active profile $current_profile = Platform::getInstance()->get_active_profile(); // Get the profile from the request $profile = (int)$this->input->get('profile', $current_profile, 'int'); // Sanity check if (!is_numeric($profile) || ($profile <= 0)) { $profile = $current_profile; } // Change and reload the profile if necessary if ($profile != $current_profile) { $session = $this->getContainer()->segment; $session->profile = $profile; /** * DO NOT REMOVE! * * The Model will only try to load the configuration after nuking the factory. This causes Profile 1 to be * loaded first. Then it figures out it needs to load a different profile and it does – but the protected keys * are NOT replaced, meaning that certain configuration parameters are not replaced. Most notably, the chain. * This causes backups to behave weirdly. So, DON'T REMOVE THIS UNLESS WE REFACTOR THE MODEL. */ Platform::getInstance()->load_configuration($profile); } } }