"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "themes/classic/views/settings/showsettings.ctp.php" between
seopanel.v.4.7.0.zip and seopanel.v.4.8.0.zip

About: Seo Panel is a seo control panel for managing search engine optimization of your websites.

showsettings.ctp.php  (seopanel.v.4.7.0):showsettings.ctp.php  (seopanel.v.4.8.0)
skipping to change at line 37 skipping to change at line 37
<a class="bold_link" href="https://support.google.com/googleapi/a nswer/6158862?hl=en" target="_blank"> <a class="bold_link" href="https://support.google.com/googleapi/a nswer/6158862?hl=en" target="_blank">
<?php echo $spTextSettings['click-to-get-google-api-key'] ; ?> &gt;&gt; <?php echo $spTextSettings['click-to-get-google-api-key'] ; ?> &gt;&gt;
</a> </a>
</div> </div>
<div id="topnewsbox" style="margin-bottom: 20px;"> <div id="topnewsbox" style="margin-bottom: 20px;">
<a class="bold_link" href="<?php echo SP_HELP_LINK?>user_guide/se ttings.html#google-oauth2-credentials" target="_blank"> <a class="bold_link" href="<?php echo SP_HELP_LINK?>user_guide/se ttings.html#google-oauth2-credentials" target="_blank">
<?php echo $spTextSettings['click-to-get-google-api-clien t-id']; ?> &gt;&gt; <?php echo $spTextSettings['click-to-get-google-api-clien t-id']; ?> &gt;&gt;
</a> </a>
</div> </div>
<?php <?php
} else if ($category == "dataforseo") {
?>
<div id="topnewsbox" style="margin-bottom: 20px;">
<a class="bold_link" href="https://www.seopanel.org/blog/2020/11/
how-to-integrate-dataforseo-with-seo-panel/" target="_blank">
<?php echo $spTextSettings['click-to-get-dataforseo-accou
nt']; ?> &gt;&gt;
</a>
</div>
<?php
} }
?> ?>
<form id="updateSettings"> <form id="updateSettings">
<input type="hidden" value="update" name="sec"> <input type="hidden" value="update" name="sec">
<input type="hidden" value="<?php echo $category?>" name="category"> <input type="hidden" value="<?php echo $category?>" name="category">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list"> <table class="list">
<tr class="listHead"> <tr class="listHead">
<td width='30%'><?php echo $headLabel?></td> <td width='30%'><?php echo $headLabel?></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<?php <?php
foreach( $list as $listInfo){ foreach( $list as $listInfo){
switch($listInfo['set_type']){ switch($listInfo['set_type']){
case "small": case "small":
$width = 100; $width = 100;
break; break;
skipping to change at line 77 skipping to change at line 85
case "large": case "large":
case "text": case "text":
$width = 'large'; $width = 'large';
break; break;
} }
// sp demo settings // sp demo settings
$demoCheckArr = array( $demoCheckArr = array(
'SP_API_KEY', 'API_SECRET', 'SP_SMTP_PASSWORD', 'SP_MOZ_A PI_ACCESS_ID', 'SP_MOZ_API_SECRET', 'SP_GOOGLE_API_KEY', 'SP_API_KEY', 'API_SECRET', 'SP_SMTP_PASSWORD', 'SP_MOZ_A PI_ACCESS_ID', 'SP_MOZ_API_SECRET', 'SP_GOOGLE_API_KEY',
'SP_GOOGLE_API_CLIENT_ID', 'SP_GOOGLE_API_CLIENT_SECRET', 'SP_GOOGLE_API_CLIENT_ID', 'SP_GOOGLE_API_CLIENT_SECRET',
'SP_GOOGLE_ANALYTICS_TRACK_CODE' 'SP_GOOGLE_ANALYTICS_TRACK_CODE', 'SP_RECAPTCHA_SITE_KEY',
'SP_RECAPTCHA_SECRET_KEY', 'SP_DFS_API_LOGIN', 'SP_DFS_AP
I_PASSWORD',
); );
if (SP_DEMO && in_array($listInfo['set_name'], $demoCheckArr)) { if (SP_DEMO && in_array($listInfo['set_name'], $demoCheckArr)) {
$listInfo['set_val'] = "********"; $listInfo['set_val'] = "********";
} }
?> ?>
<tr> <tr>
<td class="td_left_col"> <td class="td_left_col">
<?php <?php
if ($listInfo['set_name'] == 'SP_PAYMENT_CURRENCY ') { if ($listInfo['set_name'] == 'SP_PAYMENT_CURRENCY ') {
echo $spTextSubscription["Currency"] . ": echo $spTextSubscription["Currency"] . ":";
"; } elseif ($listInfo['set_name'] == 'SP_DEFAULT_CO
UNTRY') {
echo $spText['common']["Country"] . ":";
} else { } else {
echo $spTextSettings[$listInfo['set_name' ]] . ":"; echo $spTextSettings[$listInfo['set_name' ]] . ":";
} }
?> ?>
</td> </td>
<td class="td_right_col"> <td class="td_right_col">
<?php if($listInfo['set_type'] != 'text'){?> <?php if($listInfo['set_type'] != 'text'){?>
<?php if($listInfo['set_type'] == 'bool') {?> <?php if($listInfo['set_type'] == 'bool') {?>
<select name="<?php echo $listIn fo['set_name']?>"> <select name="<?php echo $listIn fo['set_name']?>">
<option value="1" <?php e cho $selectYes?>><?php echo $spText['common']['Yes']?></option> <option value="1" <?php e cho $selectYes?>><?php echo $spText['common']['Yes']?></option>
skipping to change at line 136 skipping to change at line 146
<select name="<?php echo $listInfo['set_name']?>"> <select name="<?php echo $listInfo['set_name']?>">
<?php <?php
foreach ($currenc yList as $currencyInfo) { foreach ($currenc yList as $currencyInfo) {
$selected Val = ($listInfo['set_val'] == $currencyInfo['iso_code']) ? "selected" : ""; $selected Val = ($listInfo['set_val'] == $currencyInfo['iso_code']) ? "selected" : "";
?> ?>
<option v alue="<?php echo $currencyInfo['iso_code']; ?>" <?php echo $selectedVal; ?>><?ph p echo $currencyInfo['name']; ?></option> <option v alue="<?php echo $currencyInfo['iso_code']; ?>" <?php echo $selectedVal; ?>><?ph p echo $currencyInfo['name']; ?></option>
<?php <?php
} }
?> ?>
</select> </select>
<?php } else if ($listInfo['set_n
ame'] == 'SP_DEFAULT_COUNTRY') {?>
<select name="<?php echo
$listInfo['set_name']?>">
<?php
foreach ($country
List as $countryCode => $countryName) {
$selected
Val = ($listInfo['set_val'] == $countryCode) ? "selected" : "";
?>
<option v
alue="<?php echo $countryCode; ?>" <?php echo $selectedVal; ?>><?php echo $count
ryName; ?></option>
<?php
}
?>
</select>
<?php } else if ($listInfo['set_n
ame'] == 'SP_DFS_BALANCE') {?>
<label id='sp_dfs_balance
'><?php echo stripslashes($listInfo['set_val'])?></label>
<?php } else { <?php } else {
$passTypeList = array('SP _SMTP_PASSWORD', 'API_SECRET'); $passTypeList = array('SP _SMTP_PASSWORD', 'API_SECRET');
$type = in_array($listInfo['s et_name'], $passTypeList) ? "password" : "text"; $type = in_array($listInfo['s et_name'], $passTypeList) ? "password" : "text";
$styleOpt = ($width == 'large ') ? "class='form-control'" : "style='width: $width"."px'" $styleOpt = ($width == 'large ') ? "class='form-control'" : "style='width: $width"."px'"
?> ?>
<input type="<?php echo $ type?>" name="<?php echo $listInfo['set_name']?>" value="<?php echo stripslashes ($listInfo['set_val'])?>" <?php echo $styleOpt?>> <input type="<?php echo $ type?>" name="<?php echo $listInfo['set_name']?>" value="<?php echo stripslashes ($listInfo['set_val'])?>" <?php echo $styleOpt?>>
<?php if ($listInfo['set_ name'] == 'SP_MOZ_API_SECRET') {?> <?php if ($listInfo['set_ name'] == 'SP_MOZ_API_SECRET') {?>
<div style="paddi ng: 10px 6px;"> <div style="paddi ng: 10px 6px;">
<a href=" javascript:void(0);" onclick="checkMozConnection('settings.php?sec=checkMozCon', 'show_conn_res')" style="text-decoration: none;"><?php echo $spTextSettings['Ve rify connection']; ?> &gt;&gt;</a> <a href=" javascript:void(0);" onclick="checkMozConnection('settings.php?sec=checkMozCon', 'show_conn_res')" style="text-decoration: none;"><?php echo $spTextSettings['Ve rify connection']; ?> &gt;&gt;</a>
</div> </div>
<div id="show_con n_res" style="padding: 10px 6px;"></div> <div id="show_con n_res" style="padding: 10px 6px;"></div>
<?php } else if ($listInf o['set_name'] == 'SP_GOOGLE_API_KEY') {?> <?php } else if ($listInf o['set_name'] == 'SP_GOOGLE_API_KEY') {?>
<div style="paddi ng: 10px 6px;"> <div style="paddi ng: 10px 6px;">
<a href=" javascript:void(0);" onclick="checkGoogleAPIConnection('settings.php?sec=checkGo ogleAPI', 'show_conn_res')" style="text-decoration: none;"><?php echo $spTextSet tings['Verify connection']; ?> &gt;&gt;</a> <a href=" javascript:void(0);" onclick="checkGoogleAPIConnection('settings.php?sec=checkGo ogleAPI', 'show_conn_res')" style="text-decoration: none;"><?php echo $spTextSet tings['Verify connection']; ?> &gt;&gt;</a>
</div> </div>
<div id="show_con n_res" style="padding: 10px 6px;"></div> <div id="show_con n_res" style="padding: 10px 6px;"></div>
<?php } else if ($listInf
o['set_name'] == 'SP_DFS_API_PASSWORD') {?>
<div style="paddi
ng: 10px 6px;">
<a href="
javascript:void(0);" onclick="checkDataForSEOAPIConnection('settings.php?sec=che
ckDataForSEOAPI', 'show_conn_res')" style="text-decoration: none;"><?php echo $s
pTextSettings['Verify connection']; ?> &gt;&gt;</a>
</div>
<div id="show_con
n_res" style="padding: 10px 6px;"></div>
<?php }?> <?php }?>
<?php }?> <?php }?>
<?php }?> <?php }?>
<?php }else{?> <?php }else{?>
<textarea name="<?php echo $listInfo['set _name']?>" class="form-control"><?php echo stripslashes($listInfo['set_val'])?>< /textarea> <textarea name="<?php echo $listInfo['set _name']?>" class="form-control"><?php echo stripslashes($listInfo['set_val'])?>< /textarea>
<?php }?> <?php }?>
</td> </td>
</tr> </tr>
<?php <?php
skipping to change at line 173 skipping to change at line 201
if ($category == "google") { if ($category == "google") {
?> ?>
<tr class="white_row"> <tr class="white_row">
<td class="td_left_col"><?php echo $spTextSettings["Autho rised redirect URI"]?></td> <td class="td_left_col"><?php echo $spTextSettings["Autho rised redirect URI"]?></td>
<td class="td_right_col"><?php echo SP_WEBPATH . "/admin- panel.php?sec=connections&action=connect_return&category=google"?></td> <td class="td_right_col"><?php echo SP_WEBPATH . "/admin- panel.php?sec=connections&action=connect_return&category=google"?></td>
</tr> </tr>
<?php <?php
} }
?> ?>
<tr class="blue_row">
<td class="tab_left_bot_noborder"></td>
<td class="tab_right_bot"></td>
</tr>
<tr class="listBot">
<td class="left" colspan="1"></td>
<td class="right"></td>
</tr>
</table> </table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec" > <table class="actionSec">
<tr> <tr>
<td style="padding-top: 6px;text-align:right;"> <td style="padding-top: 6px;text-align:right;">
<a onclick="scriptDoLoad('settings.php?category=<?php echo $categ ory?>', 'content', 'layout=ajax')" href="javascript:void(0);" class="actionbut"> <a onclick="scriptDoLoad('settings.php?category=<?php echo $categ ory?>', 'content', 'layout=ajax')" href="javascript:void(0);" class="actionbut">
<?php echo $spText['button']['Cancel']?> <?php echo $spText['button']['Cancel']?>
</a>&nbsp; </a>&nbsp;
<?php $actFun = SP_DEMO ? "alertDemoMsg()" : "confirmSubmit('sett ings.php', 'updateSettings', 'content')"; ?> <?php $actFun = SP_DEMO ? "alertDemoMsg()" : "confirmSubmit('sett ings.php', 'updateSettings', 'content')"; ?>
<a onclick="<?php echo $actFun?>" href="javascript:void(0);" clas s="actionbut"> <a onclick="<?php echo $actFun?>" href="javascript:void(0);" clas s="actionbut">
<?php echo $spText['button']['Proceed']?> <?php echo $spText['button']['Proceed']?>
</a> </a>
</td> </td>
 End of changes. 9 change blocks. 
15 lines changed or deleted 52 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)