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/clone/wp-conte.../plugins/flow-flo.../views
File: admin.php
<?php
[0] Fix | Delete
[1] Fix | Delete
use la\core\LAUtils;
[2] Fix | Delete
[3] Fix | Delete
if ( ! defined( 'WPINC' ) ) die;
[4] Fix | Delete
/**
[5] Fix | Delete
* Represents the view for the administration dashboard.
[6] Fix | Delete
*
[7] Fix | Delete
* This includes the header, options, and other information that should provide
[8] Fix | Delete
* The User Interface to the end user.
[9] Fix | Delete
*
[10] Fix | Delete
* @package FlowFlow
[11] Fix | Delete
* @author Looks Awesome <email@looks-awesome.com>
[12] Fix | Delete
* @link http://looks-awesome.com
[13] Fix | Delete
* @copyright Looks Awesome
[14] Fix | Delete
*/
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* @var array $context
[18] Fix | Delete
*/
[19] Fix | Delete
$dbm = LAUtils::dbm($context);
[20] Fix | Delete
$plugin_directory = $this->context['plugin_url'] . $this->context['plugin_dir_name'];
[21] Fix | Delete
if (!$dbm->canCreateCssFolder()){
[22] Fix | Delete
echo '<p class="ff-error" xmlns="http://www.w3.org/1999/html">Error: Plugin cannot create folder <strong>wp-content/resources/flow-flow/css</strong>, please add permissions or create this folder manually.</p>';
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
// testing error logging
[26] Fix | Delete
// error_log( 'SOME ERROR' . PHP_EOL , 3, FF_LOG_FILE_DEST );
[27] Fix | Delete
[28] Fix | Delete
?>
[29] Fix | Delete
<div id="fb-root"></div>
[30] Fix | Delete
<script>(function(d, s, id) {
[31] Fix | Delete
var js, fjs = d.getElementsByTagName(s)[0];
[32] Fix | Delete
if (d.getElementById(id)) return;
[33] Fix | Delete
js = d.createElement(s); js.id = id;
[34] Fix | Delete
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=345260089015373";
[35] Fix | Delete
fjs.parentNode.insertBefore(js, fjs);
[36] Fix | Delete
}(document, 'script', 'facebook-jssdk'));</script>
[37] Fix | Delete
<div id="fade-overlay" class="loading">
[38] Fix | Delete
<div id="waiting-posts">
[39] Fix | Delete
<h1>Pulling the posts for your feed</h1>
[40] Fix | Delete
<p>Please wait until the fetching process is complete. Usually it's quick but it can take up to 2 min. If it takes longer or fails we recommend to ask for <a href="https://social-streams.com/contact/" target="_blank">our support</a> </p>
[41] Fix | Delete
</div>
[42] Fix | Delete
<div class="anim-loader-wrapper"><div class="anim-loader"></div></div>
[43] Fix | Delete
[44] Fix | Delete
</div>
[45] Fix | Delete
[46] Fix | Delete
<div id="ff-popup-banner" class=""><div>Getting data for feed 'eagle' in background...<i class="flaticon-pinterest"></i></div><span class="banner-close">Close</span></div>
[47] Fix | Delete
<!-- @TODO: Provide markup for your options page here. -->
[48] Fix | Delete
<form id="flow_flow_form" method="post" action="<?php echo $context['form-action']; ?>" enctype="multipart/form-data">
[49] Fix | Delete
<script id="flow_flow_script">
[50] Fix | Delete
var _ajaxurl = '<?php echo $context['admin_url']; ?>';
[51] Fix | Delete
var plugin_url = '<?php echo $plugin_directory; ?>';
[52] Fix | Delete
var server_time = '<?php echo time() ; ?>';
[53] Fix | Delete
var plugin_ver = '<?php echo LAUtils::version($context) ; ?>';
[54] Fix | Delete
var boostsActivated = '<?php echo (isset($context['boosts'])) ? $context['boosts'] : false ; ?>';
[55] Fix | Delete
<?php if (isset($context['js-vars'])) echo $context['js-vars'];?>
[56] Fix | Delete
</script>
[57] Fix | Delete
<?php
[58] Fix | Delete
settings_fields('ff_opts');
[59] Fix | Delete
if (isset($context['hidden-inputs'])) echo $context['hidden-inputs'];
[60] Fix | Delete
?>
[61] Fix | Delete
<div class="wrapper">
[62] Fix | Delete
<?php
[63] Fix | Delete
if (FF_USE_WP) {
[64] Fix | Delete
echo '<h2>' . $context['admin_page_title'] . ( LAUtils::slug($context) == 'flow-flow' ? ' v. ' : ' Feed Gallery v. ' ) . LAUtils::version($context) . ' <a href="' . $context['faq_url'] . '" target="_blank">Docs & FAQ</a></h2>';
[65] Fix | Delete
[66] Fix | Delete
echo '<div id="ff-cats">';
[67] Fix | Delete
if (FF_USE_WP) {
[68] Fix | Delete
wp_dropdown_categories();
[69] Fix | Delete
}
[70] Fix | Delete
echo '</div>';
[71] Fix | Delete
}
[72] Fix | Delete
?>
[73] Fix | Delete
<ul class="section-tabs">
[74] Fix | Delete
<?php
[75] Fix | Delete
/** @var la\core\tabs\LATab $tab */
[76] Fix | Delete
foreach ( $context['tabs'] as $tab ) {
[77] Fix | Delete
echo '<li id="'.$tab->id().'"><span class="ff-border-anim"></span><i class="'.$tab->flaticon().'"></i> <span>'.$tab->title().'</span></li>';
[78] Fix | Delete
}
[79] Fix | Delete
if (isset($context['buttons-after-tabs'])) echo $context['buttons-after-tabs'];
[80] Fix | Delete
?>
[81] Fix | Delete
</ul>
[82] Fix | Delete
<div class="section-contents">
[83] Fix | Delete
<?php
[84] Fix | Delete
/** @var la\core\tabs\LATab $tab*/
[85] Fix | Delete
foreach ( $context['tabs'] as $tab ) {
[86] Fix | Delete
$tab->includeOnce($context);
[87] Fix | Delete
}
[88] Fix | Delete
?>
[89] Fix | Delete
</div>
[90] Fix | Delete
</div>
[91] Fix | Delete
[92] Fix | Delete
<?php if (!FF_USE_WP):?>
[93] Fix | Delete
<div id="ff-footer">
[94] Fix | Delete
<div class="width-wrapper">
[95] Fix | Delete
<div class="ff-table">
[96] Fix | Delete
<div class="ff-cell">
[97] Fix | Delete
Flow-Flow Social Hub plugin<br>
[98] Fix | Delete
<?php if (defined( 'FF_PLUGIN_VER' )) echo 'Version: ' . FF_PLUGIN_VER; ?><br>
[99] Fix | Delete
Made by <a href="http://looks-awesome.com/">Looks Awesome</a>
[100] Fix | Delete
</div>
[101] Fix | Delete
<div class="ff-cell">
[102] Fix | Delete
<h1>HOT TOPICS</h1>
[103] Fix | Delete
<a href="http://flow-php.looks-awesome.com/docs/Getting_Started/First_Steps_After_Installation">How to add stream on page</a><br>
[104] Fix | Delete
<a href="http://flow-php.looks-awesome.com/docs/Getting_Started/First_Steps_After_Installation#refresh">How to refresh my streams</a><br>
[105] Fix | Delete
<a href="http://flow-php.looks-awesome.com/docs/Social_Networks_Auth/Authenticate_with_Facebook">How to authorize Facebook</a><br>
[106] Fix | Delete
<a href="">Frequently asked questions</a>
[107] Fix | Delete
</div>
[108] Fix | Delete
<div class="ff-cell">
[109] Fix | Delete
<h1>CONTACT US</h1>
[110] Fix | Delete
<a href="https://social-streams.com/contact/">Support request</a><br>
[111] Fix | Delete
<a href="http://looks-awesome.com/">Looks Awesome site</a><br>
[112] Fix | Delete
<a href="https://twitter.com/looks_awesooome">Twitter</a><br>
[113] Fix | Delete
<a href="https://www.facebook.com/looksawesooome">Facebook</a>
[114] Fix | Delete
</div>
[115] Fix | Delete
</div>
[116] Fix | Delete
</div>
[117] Fix | Delete
</div>
[118] Fix | Delete
<?php endif?>
[119] Fix | Delete
</form>
[120] Fix | Delete
<div class="cd-popup" role="alert">
[121] Fix | Delete
<div class="cd-popup-container">
[122] Fix | Delete
<p>Are you sure you want to delete this element?</p>
[123] Fix | Delete
<ul class="cd-buttons">
[124] Fix | Delete
<li><a href="#0" id="cd-button-no">No</a></li>
[125] Fix | Delete
<li><a href="#0" id="cd-button-yes">Yes</a></li>
[126] Fix | Delete
</ul>
[127] Fix | Delete
<a href="#0" class="cd-popup-close img-replace">Close</a>
[128] Fix | Delete
</div> <!-- cd-popup-container -->
[129] Fix | Delete
</div> <!-- cd-popup -->
[130] Fix | Delete
[131] Fix | Delete
<script>jQuery(document).trigger('html_ready')</script>
[132] Fix | Delete
[133] Fix | Delete
<div id="debug-info">
[134] Fix | Delete
<?php
[135] Fix | Delete
[136] Fix | Delete
if ( defined( 'DB_CHARSET' ) ) echo 'Database charset = ' . DB_CHARSET . '<br>';
[137] Fix | Delete
echo 'Date, time, timezone = '. date_default_timezone_get() . ' ' . date('d.m.Y H:i:s', time()) . '<br>';
[138] Fix | Delete
if ( defined( 'PHP_VERSION' ) ) echo 'PHP version = ' . PHP_VERSION . '<br>';
[139] Fix | Delete
echo 'upload_max_filesize = '.ini_get('upload_max_filesize') . '<br>';
[140] Fix | Delete
echo 'arg_separator.output = '.ini_get('arg_separator.output') . '<br>';
[141] Fix | Delete
if ( defined( 'OPENSSL_VERSION_TEXT' ) ) echo 'OpenSSL version = '.OPENSSL_VERSION_TEXT . '<br>';
[142] Fix | Delete
if(extension_loaded('curl')){
[143] Fix | Delete
$curlv = curl_version();
[144] Fix | Delete
echo 'CURL version = ' . $curlv["version"] . '<br>';
[145] Fix | Delete
}
[146] Fix | Delete
else {
[147] Fix | Delete
echo 'CURL is not loaded<br>';
[148] Fix | Delete
}
[149] Fix | Delete
if(extension_loaded('gd')){
[150] Fix | Delete
echo 'GD is loaded<br>';
[151] Fix | Delete
}
[152] Fix | Delete
else {
[153] Fix | Delete
echo 'GD is not loaded<br>';
[154] Fix | Delete
}
[155] Fix | Delete
if (extension_loaded('mbstring')){
[156] Fix | Delete
echo 'mbstring is loaded<br>';
[157] Fix | Delete
} else {
[158] Fix | Delete
echo 'mbstring is not loaded<br>';
[159] Fix | Delete
}
[160] Fix | Delete
echo 'safe_mode = ' . ini_get('safe_mode') . '<br>';
[161] Fix | Delete
echo 'allow_url_fopen = ' . ini_get('allow_url_fopen') . '<br>';
[162] Fix | Delete
echo 'curl.cainfo = ' . ini_get('curl.cainfo') . '<br>';
[163] Fix | Delete
echo 'open_basedir = ' . ini_get('open_basedir');
[164] Fix | Delete
?>
[165] Fix | Delete
</div>
[166] Fix | Delete
[167] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function