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: auth.php
<?php if ( ! defined( 'WPINC' ) ) die;
[0] Fix | Delete
/**
[1] Fix | Delete
* FlowFlow.
[2] Fix | Delete
*
[3] Fix | Delete
* @package FlowFlow
[4] Fix | Delete
* @author Looks Awesome <email@looks-awesome.com>
[5] Fix | Delete
*
[6] Fix | Delete
* @link http://looks-awesome.com
[7] Fix | Delete
* @copyright Looks Awesome
[8] Fix | Delete
* @var array $context
[9] Fix | Delete
*/
[10] Fix | Delete
$options = $context['options'];
[11] Fix | Delete
$auth = $context['auth_options'];
[12] Fix | Delete
$auth['facebook_access_token'] = isset($auth['facebook_access_token']) ? $auth['facebook_access_token'] : '';
[13] Fix | Delete
[14] Fix | Delete
$fb_own_app = la\core\settings\LASettingsUtils::YepNope2ClassicStyleSafe($auth, 'facebook_use_own_app', false);
[15] Fix | Delete
//$facebook_long_life_token = $context['facebook_long_life_token'];
[16] Fix | Delete
?>
[17] Fix | Delete
<div class="section-content" data-tab="auth-tab">
[18] Fix | Delete
<div class="section" id="auth-settings">
[19] Fix | Delete
<h1 class="desc-following" style="min-height: 38px"><span style="vertical-align: middle;line-height: 38px;">Facebook and Instagram integration</span> <span id="facebook-auth" class='admin-button auth-button blue-button'>Connect</span></h1>
[20] Fix | Delete
<p class="desc">Single login to access Facebook and Instagram. <a target="_blank" href="http://docs.social-streams.com/article/46-authenticate-with-facebook">More info</a></p>
[21] Fix | Delete
<dl class="section-settings">
[22] Fix | Delete
<dt class="ff-toggler ff-fb-own-app" <?php echo $fb_own_app ? '' : 'style="display:none"' ?>>Use own app <p class="desc">Deprecated, please get token via our app</p></dt>
[23] Fix | Delete
<dd class="ff-toggler ff-fb-own-app" <?php echo $fb_own_app ? '' : 'style="display:none"' ?>>
[24] Fix | Delete
<label><input class="clearcache switcher" <?php echo $fb_own_app ? 'checked' : ''?> type="checkbox" id="facebook_use_own_app" name="flow_flow_fb_auth_options[facebook_use_own_app]" value="yep"/><div><div></div></div></label>
[25] Fix | Delete
</dd>
[26] Fix | Delete
<dt class="vert-aligned">Access Token</dt>
[27] Fix | Delete
<dd>
[28] Fix | Delete
<input class="clearcache" type="text" id="facebook_access_token" name="flow_flow_fb_auth_options[facebook_access_token]" placeholder="Acquired from Facebook" value="<?php echo $auth['facebook_access_token']?>"/><a <?php echo $fb_own_app ? 'style="display:none"' : '' ?> class="ff-pseudo-link" href="#" id="fb-refresh-token">Refresh token</a>
[29] Fix | Delete
<?php
[30] Fix | Delete
$extended = $context['extended_facebook_access_token'];
[31] Fix | Delete
if(!empty($auth['facebook_access_token']) && !empty($extended) ) {
[32] Fix | Delete
//if ($auth['facebook_access_token'] != $extended)
[33] Fix | Delete
echo '<p class="desc" style="margin: 30px 0 5px">Generated long-life token</p><textarea disabled rows=3>' . $extended . '</textarea>';
[34] Fix | Delete
} else {
[35] Fix | Delete
if (empty($extended)) {
[36] Fix | Delete
echo '<p class="desc fb-token-notice" style="margin: 10px 0 5px; color: red !important">! Extended token is not generated, Facebook feeds might not work</p>';
[37] Fix | Delete
}
[38] Fix | Delete
}
[39] Fix | Delete
?>
[40] Fix | Delete
</dd>
[41] Fix | Delete
<dt class="vert-aligned own-app-input">APP ID</dt>
[42] Fix | Delete
<dd class="own-app-input">
[43] Fix | Delete
<input class="clearcache" type="text" name="flow_flow_fb_auth_options[facebook_app_id]" placeholder="Copy and paste from Facebook" value="<?php echo isset($auth['facebook_app_id']) ? $auth['facebook_app_id'] : ''?>"/>
[44] Fix | Delete
</dd>
[45] Fix | Delete
<dt class="vert-aligned own-app-input">APP Secret</dt>
[46] Fix | Delete
<dd class="own-app-input">
[47] Fix | Delete
<input class="clearcache" type="text" name="flow_flow_fb_auth_options[facebook_app_secret]" placeholder="Copy and paste from Facebook" value="<?php echo isset($auth['facebook_app_secret']) ? $auth['facebook_app_secret'] : ''?>"/>
[48] Fix | Delete
</dd>
[49] Fix | Delete
</dl>
[50] Fix | Delete
<p class="button-wrapper"><span id="fb-auth-settings-sbmt" class='admin-button green-button submit-button'>Save Changes</span></p>
[51] Fix | Delete
[52] Fix | Delete
<h1 class="desc-following">Twitter integration</h1>
[53] Fix | Delete
<p class="desc"><a target="_blank" href="http://docs.social-streams.com/article/48-authenticate-with-twitter">Setup guide</a></p>
[54] Fix | Delete
<dl class="section-settings">
[55] Fix | Delete
<dt class="vert-aligned">Consumer Key (API Key)</dt>
[56] Fix | Delete
<dd>
[57] Fix | Delete
<input class="clearcache" type="text" name="flow_flow_options[consumer_key]" placeholder="Copy and paste from Twitter" value="<?php echo isset($options['consumer_key']) ? $options['consumer_key'] : ''?>"/>
[58] Fix | Delete
</dd>
[59] Fix | Delete
<dt class="vert-aligned">Consumer Secret (API Secret)</dt>
[60] Fix | Delete
<dd>
[61] Fix | Delete
<input class="clearcache" type="text" name="flow_flow_options[consumer_secret]" placeholder="Copy and paste from Twitter" value="<?php echo isset($options['consumer_secret']) ? $options['consumer_secret'] : ''?>"/>
[62] Fix | Delete
</dd>
[63] Fix | Delete
<dt class="vert-aligned">Access Token</dt>
[64] Fix | Delete
<dd>
[65] Fix | Delete
<input class="clearcache" id="oauth_access_token" type="text" name="flow_flow_options[oauth_access_token]" placeholder="Copy and paste from Twitter" value="<?php echo isset($options['oauth_access_token']) ? $options['oauth_access_token'] : ''?>"/>
[66] Fix | Delete
</dd>
[67] Fix | Delete
<dt class="vert-aligned">Access Token Secret</dt>
[68] Fix | Delete
<dd>
[69] Fix | Delete
<input class="clearcache" type="text" name="flow_flow_options[oauth_access_token_secret]" placeholder="Copy and paste from Twitter" value="<?php echo isset($options['oauth_access_token_secret']) ? $options['oauth_access_token_secret'] : ''?>"/> </dd>
[70] Fix | Delete
[71] Fix | Delete
</dl>
[72] Fix | Delete
<p class="button-wrapper"><span id="tw-auth-settings-sbmt" class='admin-button green-button submit-button'>Save Changes</span></p>
[73] Fix | Delete
[74] Fix | Delete
<h1 class="desc-following">Google & YouTube integration</h1>
[75] Fix | Delete
<p class="desc"><a target="_blank" href="http://docs.social-streams.com/article/49-authenticate-with-google-and-youtube">Setup guide</a></p>
[76] Fix | Delete
<dl class="section-settings">
[77] Fix | Delete
<dt class="vert-aligned">API key</dt>
[78] Fix | Delete
<dd>
[79] Fix | Delete
<input class="clearcache" type="text" id="google_api_key" name="flow_flow_options[google_api_key]" placeholder="Copy and paste from Google+" value="<?php echo isset($options['google_api_key']) ? $options['google_api_key'] : ''?>"/>
[80] Fix | Delete
</dd>
[81] Fix | Delete
</dl>
[82] Fix | Delete
<p class="button-wrapper"><span id="gp-auth-settings-sbmt" class='admin-button green-button submit-button'>Save Changes</span></p>
[83] Fix | Delete
[84] Fix | Delete
[85] Fix | Delete
<h1 class="desc-following">Foursquare integration <span id="foursquare-auth" class='admin-button auth-button blue-button'>Authorize</span></h1>
[86] Fix | Delete
<p class="desc"><a target="_blank" href="http://docs.social-streams.com/article/54-authenticate-with-foursquare">Setup guide</a></p>
[87] Fix | Delete
<dl class="section-settings">
[88] Fix | Delete
<dt class="vert-aligned">Access Token</dt>
[89] Fix | Delete
<dd>
[90] Fix | Delete
<input class="clearcache" type="text" id="foursquare_access_token" name="flow_flow_options[foursquare_access_token]" placeholder="Copy and paste from Foursquare" value="<?php echo isset($options['foursquare_access_token']) ? $options['foursquare_access_token'] : '';?>"/>
[91] Fix | Delete
</dd>
[92] Fix | Delete
<dt class="vert-aligned">Client ID</dt>
[93] Fix | Delete
<dd>
[94] Fix | Delete
<input class="clearcache" id="foursquare_client_id" type="text" name="flow_flow_options[foursquare_client_id]" placeholder="Copy and paste from Foursquare" value="<?php echo isset($options['foursquare_client_id']) ? $options['foursquare_client_id'] : ''?>"/>
[95] Fix | Delete
</dd>
[96] Fix | Delete
<dt class="vert-aligned">Client Secret</dt>
[97] Fix | Delete
<dd>
[98] Fix | Delete
<input class="clearcache" id="foursquare_client_secret" type="text" name="flow_flow_options[foursquare_client_secret]" placeholder="Copy and paste from Foursquare" value="<?php echo isset($options['foursquare_client_secret']) ? $options['foursquare_client_secret'] : ''?>"/>
[99] Fix | Delete
</dd>
[100] Fix | Delete
</dl>
[101] Fix | Delete
<p class="button-wrapper"><span id="fq-auth-settings-sbmt" class='admin-button green-button submit-button'>Save Changes</span></p>
[102] Fix | Delete
[103] Fix | Delete
<h1 class="desc-following">LinkedIn integration</h1>
[104] Fix | Delete
<p class="desc"><a target="_blank" href="http://docs.social-streams.com/article/53-authenticate-with-linkedin">Setup guide</a></p>
[105] Fix | Delete
[106] Fix | Delete
<dl class="section-settings">
[107] Fix | Delete
<dt class="vert-aligned">Client ID</dt>
[108] Fix | Delete
<dd>
[109] Fix | Delete
<input class="clearcache" type="text" id="linkedin_api_key" name="flow_flow_options[linkedin_api_key]" placeholder="Copy and paste from LinkedIn" value="<?php echo isset($options['linkedin_api_key']) ? $options['linkedin_api_key'] : ''?>"/>
[110] Fix | Delete
</dd>
[111] Fix | Delete
<dt class="vert-aligned">Client Secret</dt>
[112] Fix | Delete
<dd>
[113] Fix | Delete
<input class="clearcache" type="text" id="linkedin_secret_key" name="flow_flow_options[linkedin_secret_key]" placeholder="Copy and paste from LinkedIn" value="<?php echo isset($options['linkedin_secret_key']) ? $options['linkedin_secret_key'] : ''?>"/>
[114] Fix | Delete
</dd>
[115] Fix | Delete
<dt class="vert-aligned">Access token</dt>
[116] Fix | Delete
<dd>
[117] Fix | Delete
<input class="clearcache" type="text" name="flow_flow_options[linkedin_access_token]" placeholder="Copy and paste from LinkedIn" value="<?php echo isset($options['linkedin_access_token']) ? $options['linkedin_access_token'] : '' ?>"/>
[118] Fix | Delete
</dd>
[119] Fix | Delete
</dl>
[120] Fix | Delete
<p class="button-wrapper"><span id="linkedin-auth-settings-sbmt" class='admin-button green-button submit-button'>Save Changes</span></p>
[121] Fix | Delete
[122] Fix | Delete
<h1 class="desc-following">SoundCloud integration</h1>
[123] Fix | Delete
<p class="desc"><a target="_blank" href="http://soundcloud.com/you/apps/new">Create SoundCloud app</a> and paste its ID below.</p>
[124] Fix | Delete
[125] Fix | Delete
[126] Fix | Delete
<dl class="section-settings">
[127] Fix | Delete
<dt class="vert-aligned">Your app Client ID</dt>
[128] Fix | Delete
<dd>
[129] Fix | Delete
<input class="clearcache" type="text" name="flow_flow_options[soundcloud_api_key]" placeholder="Copy and paste from SoundCloud" value="<?php echo isset($options['soundcloud_api_key']) ? $options['soundcloud_api_key'] : ''?>"/>
[130] Fix | Delete
</dd>
[131] Fix | Delete
</dl>
[132] Fix | Delete
[133] Fix | Delete
<p class="button-wrapper"><span id="sc-auth-settings-sbmt" class='admin-button green-button submit-button'>Save Changes</span></p>
[134] Fix | Delete
[135] Fix | Delete
<h1 class="desc-following">Dribbble integration</h1>
[136] Fix | Delete
<p class="desc"><a target="_blank" href="http://developer.dribbble.com">Create Dribbble app</a> and paste its access token below.</p>
[137] Fix | Delete
<dl class="section-settings">
[138] Fix | Delete
<dt class="vert-aligned">Client Access Token</dt>
[139] Fix | Delete
<dd>
[140] Fix | Delete
<input class="clearcache" type="text" name="flow_flow_options[dribbble_access_token]" placeholder="Copy and paste from Dribbble" value="<?php echo isset($options['dribbble_access_token']) ? $options['dribbble_access_token'] : ''?>"/>
[141] Fix | Delete
</dd>
[142] Fix | Delete
</dl>
[143] Fix | Delete
<p class="button-wrapper"><span id="dribbble-auth-settings-sbmt" class='admin-button green-button submit-button'>Save Changes</span></p>
[144] Fix | Delete
</div>
[145] Fix | Delete
<?php
[146] Fix | Delete
/** @noinspection PhpIncludeInspection */
[147] Fix | Delete
include(\la\core\LAUtils::root($context) . 'views/footer.php');
[148] Fix | Delete
?>
[149] Fix | Delete
</div>
[150] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function