config_filepath);
if (is_numeric($_POST['backup-file-time'])) {
if (file_exists($config_dirname . '/comicpress-config.php.' . $_POST['backup-file-time'])) {
if ($cpm_config->can_write_config) {
if (@copy($config_dirname . '/comicpress-config.php.' . $_POST['backup-file-time'],
$config_dirname . '/comicpress-config.php') !== false) {
cpm_read_information_and_check_config();
$cpm_config->messages[] = sprintf(__("Restored %s. Check to make sure your site is functioning correctly.", 'comicpress-manager'), 'comicpress-config.php.' . $_POST['backup-file-time']);
} else {
$cpm_config->warnings[] = sprintf(__("Could not restore %s. Check the permissions of your theme folder and try again.", 'comicpress-manager'), 'comicpress-config.php.' . $_POST['backup-file-time']);
}
}
}
}
}
?>