Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/flow-flo.../views
File: backup.php
<?php if ( ! defined( 'WPINC' ) ) die;
[0] Fix | Delete
/**
[1] Fix | Delete
* Represents the view for the administration dashboard.
[2] Fix | Delete
*
[3] Fix | Delete
* This includes the header, options, and other information that should provide
[4] Fix | Delete
* The User Interface to the end user.
[5] Fix | Delete
*
[6] Fix | Delete
* @var array $context
[7] Fix | Delete
*
[8] Fix | Delete
* @package FlowFlow
[9] Fix | Delete
* @author Looks Awesome <email@looks-awesome.com>
[10] Fix | Delete
* @link http://looks-awesome.com
[11] Fix | Delete
* @copyright Looks Awesome
[12] Fix | Delete
*/
[13] Fix | Delete
$export = '';
[14] Fix | Delete
$backups = $context['backups'];
[15] Fix | Delete
if ($context['boosts']){
[16] Fix | Delete
$dbm = \la\core\LAUtils::dbm($context);
[17] Fix | Delete
$token = $dbm->getToken();
[18] Fix | Delete
$export = '. <a class="ff-pseudo-link" href="https://api.flowflowapp.com/api/v1/flow-flow/export?&token=' . $token . '" id="ff-download-posts-btn">Download stored posts as CSV</a>';
[19] Fix | Delete
}
[20] Fix | Delete
?>
[21] Fix | Delete
<div class="section-content" data-tab="backup-tab">
[22] Fix | Delete
<div class="section" id="backup-settings">
[23] Fix | Delete
<h1 class="desc-following">Snapshots management</h1>
[24] Fix | Delete
<p class="desc">Save and restore plugin data from specific point of time<?php print $export; ?></p>
[25] Fix | Delete
<table id="backups">
[26] Fix | Delete
<thead><tr><th>Snapshot Date</th><th>Version</th><th>Actions</th></tr></thead>
[27] Fix | Delete
<tbody>
[28] Fix | Delete
[29] Fix | Delete
<?php
[30] Fix | Delete
if (isset($backups)) {
[31] Fix | Delete
$count = count($backups);
[32] Fix | Delete
foreach ($backups as $backup) {
[33] Fix | Delete
$description = trim($backup->creation_time . ' ' . $backup->description);
[34] Fix | Delete
$version = $backup->version;
[35] Fix | Delete
if ($backup->outdated){
[36] Fix | Delete
$action = '<span class="admin-button grey-button delete_backup">Delete snapshot</span>';
[37] Fix | Delete
}
[38] Fix | Delete
else $action = '<span class="admin-button grey-button delete_backup">Delete snapshot</span><span class="space"></span><span class="admin-button grey-button restore_backup">Restore from this point</span>';
[39] Fix | Delete
echo '<tr backup-id="' . $backup->id . '"><td>' . $description . '</td><td>' . $version . '</td><td>' . $action . '</td></tr>';
[40] Fix | Delete
}
[41] Fix | Delete
if ($count == 0) {
[42] Fix | Delete
echo '<tr><td colspan="3">Please make at least one snapshot</td></tr>';
[43] Fix | Delete
}
[44] Fix | Delete
} else {
[45] Fix | Delete
echo '<tr><td colspan="3">Please deactivate/activate plugin to initialize snapshot database. Required only once.</td></tr>';
[46] Fix | Delete
}
[47] Fix | Delete
?>
[48] Fix | Delete
</tbody>
[49] Fix | Delete
</table>
[50] Fix | Delete
[51] Fix | Delete
<span class="ff-icon-lock"></span> <span class='admin-button green-button create_backup'>Create new database snapshot</span> <div class="desc hint-block hint-block-pro"><span class="hint-link">Available in PRO</span><div class="hint hint-pro"><h1>PREMIUM FEATURE</h1>To access this and many other premium features please activate <a href="#addons-tab">BOOST subscription</a> or make one‑time purchase of <a href="http://goo.gl/g7XQzu" target="_blank">PRO version</a>.</div></div>
[52] Fix | Delete
</div>
[53] Fix | Delete
<?php
[54] Fix | Delete
/** @noinspection PhpIncludeInspection */
[55] Fix | Delete
include(\la\core\LAUtils::root($context) . 'views/footer.php');
[56] Fix | Delete
?>
[57] Fix | Delete
[58] Fix | Delete
</div>
[59] Fix | Delete
[60] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function