<?php
####################################################################################
##                                      WARNING!                                  ##
##                                                                                ##
##             This script is copyrighted to Free Monthly Websites.               ##
##               Duplication, selling, or transferring of this script             ##
##              is a violation of the copyright and purchase agreement.           ##
##                   Please read the Terms and Conditions here:                   ##
##   https://freemonthlywebsites2.com/legal/Copyright_Terms_and_Conditions.pdf    ##
##      Any violation of these terms will be dealt with serious legal action!     ##
##                                                                                ##
####################################################################################
error_reporting(0);
ini_set('display_errors','off');
session_start();

if($_SESSION['logged_in']!=true) {
	header("location:index.php?flag=2");
	exit;
}
$filename="settings/rrfw_settings.txt";

if($handle = @fopen($filename, 'r')) {
	$contents = fread($handle, filesize($filename));
	fclose($handle);
	$argument_arr=explode("#_1_#",$contents);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Admin Control Panel</title>
<link href="css/admin_style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function $(name) {
   var ns4 = (document.layers) ? true : false;
   var w3c = (document.getElementById) ? true : false;
   var ie4 = (document.all) ? true : false;

   if (ns4) return eval('document.' + name);
   if (w3c) return document.getElementById(name);
   if (ie4) return eval('document.all.' + name);
   return false;
}
function mm_showHide(id)
{
    a=$(id);
    if(a.style.display != 'none' && a.style.display != 'block') a.style.display='none';
    if(a.style.display == 'block') {
        a.style.display='none';
    }
    else {
        a.style.display='block';
    }
    return false;
}
</script>
<style type="text/css">
<!--
#help_name { display:none; }
#help_email { display:none; }
#help_display_form { display:none; }
#help_content { display:none; }
#help_display_captcha { display:none; }
-->
</style>
<script type="text/javascript">
function mm_showHide(id)
{
    a=document.getElementById(id);
    if(a.style.display != 'none' && a.style.display != 'block') a.style.display='none';
    if(a.style.display == 'block') {
        a.style.display='none';
    }
    else {
        a.style.display='block';
    }
    return false;
}
</script>
</head>
<body>
<table width="914" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td height="160" colspan="3" align="center" valign="middle" class="header">
	</td>
  </tr>
  <tr>
    <td colspan="3" align="center" valign="top" class="main_mid"><table width="888" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="3" height="5" class="table_topl">&nbsp;</td>
        <td width="220" height="5" class="table_top">&nbsp;</td>
        <td width="5" class="table_topr">&nbsp;</td>
        <td width="1" rowspan="3">&nbsp;</td>
        <td width="3" class="table_topl">&nbsp;</td>
        <td width="645" class="table_top">&nbsp;</td>
        <td width="5" height="5" class="table_topr">&nbsp;</td>
      </tr>
      <tr>
        <td width="3" class="table_left">&nbsp;</td>
        <td width="220" align="center" valign="top"><table width="215" border="0" align="left" cellpadding="0" cellspacing="0">
          <tr>
            <td width="215" height="80" colspan="2" align="center" valign="middle" class="admin_button"><a href="../" target="_blank"><strong>View Your Website</strong></a></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="welcome.php"><strong>Home</strong></a></td>
            </tr>
          <tr>
            <td height="60" colspan="2" align="center" valign="middle"><img src="images/bulletaro_dn.gif" width="13" height="9" hspace="10"><span class="style1">Standard Settings</span><img src="images/bulletaro_dn.gif" width="13" height="9" hspace="10"></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="admin_settings.php"><strong>Admin Settings</strong></a></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="personal_settings.php"><strong>Personal Settings</strong></a></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="website_settings.php"><strong>Basic Website Settings</strong></a></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="seo_settings.php"><strong>S.E.O Settings</strong></a></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="theme_settings.php"><strong>Theme Settings</strong></a></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="advert_settings.php"><strong>Advert Settings</strong></a></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="affiliate_settings.php"><strong>Affiliate Settings</strong></a></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="optin_settings.php"><strong>Optin Form Settings</strong></a></td>
          </tr>
          <tr>
            <td height="60" colspan="2" align="center" valign="middle"><img src="images/bulletaro_dn.gif" width="13" height="9" hspace="10"><span class="style1">Article Settings</span><img src="images/bulletaro_dn.gif" width="13" height="9" hspace="10"></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="add_content_pages.php"><strong>Add/Remove Article Pages</strong></a></td>
          </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="edit_content_pages.php"><strong>Edit Article Pages</strong></a></td>
          </tr>
          <tr>
            <td height="60" colspan="2" align="center" valign="middle"><img src="images/bulletaro_dn.gif" width="13" height="9" hspace="10"><span class="style1">Other</span><img src="images/bulletaro_dn.gif" width="13" height="9" hspace="10"></td>
          </tr>

          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="https://freemonthlywebsites2.com/legal/Copyright_Terms_and_Conditions.pdf" target="_blank"><strong>Terms and Conditions</strong></a></td>
          </tr>
          <tr>
            <td height="30" colspan="2" align="center" valign="middle">&nbsp;</td>
            </tr>
          <tr>
            <td height="45" colspan="2" align="center" valign="middle" class="admin_button"><a href="logout.php"><strong>Logout</strong></a></td>
          </tr>
          <tr>
            <td height="30" colspan="2" align="center" valign="middle">&nbsp;</td>
          </tr>
        </table>
        <td width="5" class="table_right">&nbsp;</td>
        <td width="3" class="table_left">&nbsp;</td>
        <td width="645" align="center" valign="top"><table width="645" border="0" align="center" cellpadding="0" cellspacing="0">
          <form name="frm" action="file_io.php" method="post">
            <input type="hidden" name="do_type" value="rrfw_settings_write">
            <input type="hidden" name="select_cbcat" value="<?php echo $argument_arr['13']; ?>">
            <input type="hidden" name="rrfw_keyword" value="<?php echo $argument_arr['4']; ?>">	
            <tr>
              <td height="50" colspan="2" align="center" valign="middle" class="title1">Affiliate Settings </td>
            </tr>
            <?php
		if($_REQUEST['flag']==1)
		  {
?>
            <tr>
              <td height="50" colspan="2" align="center" valign="middle" class="title1">&gt;&gt; <span class="style3">Data saved successfully</span> &lt;&lt;</td>
            </tr>
            <?php
		}
?>
            <tr>
              <td height="80" colspan="2" align="center" valign="middle" class="main2">Your Affiliate settings allow you to affiliate the links, adverts and products that are displayed on the site.</td>
            </tr>
            <tr>
              <td colspan="2" align="center" valign="middle" class="main2"><div class="userhelp_cell" id="help_rrfw_option" style="display:none;">
                  <p><br>
                    "Easy" is the DEFAULT option for all users.<br>
                    <br>
                    Advanced users who require further customization and options can use the <strong>Advanced</strong> option<br>
                    to enter a SPECIAL link generated by Resell Rights Fortune.<br>
                    <br>
                    To get a custom link, <a href="https://resellrightsfortune.com/go/mpwlink/mpws" target="rrf" style="text-decoration:underline;">CLICK HERE</a> <br>
                  </p>
              </div></td>
            </tr>
            <tr id="tr_help_rrfw_link">
              <td colspan="2" align="center" valign="middle" class="main2"><div class="userhelp_cell" id="help_rrfw_link" style="display:none;">
                  <p><br>
                    Advanced users who require further customization and options can use the <strong>Advanced</strong> option<br>
                    to enter a SPECIAL link generated by Resell Rights Fortune.<br>
                    <br>
                    To get a custom link, <a href="https://resellrightsfortune.com/go/mpwlink/mpws" target="rrf" style="text-decoration:underline;">CLICK HERE</a>, then copy and paste the link given to you in this box. <br>
                  </p>
              </div></td>
            </tr>
            
            <tr>
              <td height="50" align="center" valign="middle" class="main2">ClickBank Nickname/ID:</td>
              <td height="50" align="left" valign="middle" class="main2"><input name="cb_aff" type="text" id="cb_aff"  value="<?php echo $argument_arr['11']; ?>" style="width:280px"><a href="#" onClick="mm_showHide('help_cb_aff');return false;"><img src="images/help.gif" width="21" height="21" hspace="8" border="0" align="top"></a></td>
            </tr>
            <tr>
              <td colspan="2" align="center" valign="middle" class="main2"><div class="userhelp_cell" id="help_cb_aff" style="display:none;">
                  <p><br>
                    This is needed in order to affiliate the ClickBank ads/banners that are displayed within the site to you.<br />
                  This includes your Free Monthly Websites 2.0 affiliated logo.</p>
                  <p>You will need to join ClickBank in order to get your ClickBank Nickname/ID.</p>
                  <p>You can join ClickBank from <a href="https://hop.clickbank.net/?affiliate=fmwebs&vendor=reseller" target="_blank"><u>here</u>.</a> <strong></strong></p>
                  <p>You will choose your desired Nickname/ID upon creating an account, simply place it above.                    </p>
                  <p><strong><u>Important</u></strong><br>
                    This option is courtesy of <a href="https://affiliateadrotator.com" target="_blank"><u>Affiliate Ad Rotator</u></a>, and is free to use for your personal use only within this website.</p>
                  <p>If you wish to use <a href="https://affiliateadrotator.com" target="_blank"><u>Affiliate Ad Rotator</u></a> on another website then you must purchase it from <a href="https://affiliateadrotator.com" target="_blank">here</a>.<br>
                    <br>
                    When you purchase <a href="https://affiliateadrotator.com" target="_blank"><u>Affiliate Ad Rotator</u></a>, you are allowed to use it on as many websites as you wish and you<br>
                    also get access to many, many more customizing options for your ads, such as randomly showing multiple ads of<br>
                    your choice from our vast, hand picked database of ClickBank products, category selection, to target your ads,<br>
                    advert alignment, border colors and styles, advert spacing, ability to always show the TOP ClickBank product<br> 
                    for a certain category etc...<br>
                    <br>
                  </p>
                  </div></td>
            </tr>
            <tr>
              <td height="50" align="center" valign="middle" class="main2">Display Free Monthly Websites 2.0 Affiliated Logo:</td>
              <td height="50" align="left" valign="middle" class="main2"><input name="display_fmw" type="checkbox" value="1"<?php if($argument_arr['10']==1) echo "checked";?> />
                <a href="#" onClick="mm_showHide('help_display_fmw');return false;"><img src="images/help.gif" width="21" height="21" hspace="8" border="0" align="top" /></a></td>
            </tr>
            <tr>
              <td colspan="2" align="center" valign="middle" class="main2"><div class="userhelp_cell" id="help_display_fmw" style="display:none;">
                  <p><br />
                    Check this box to display your Free Monthly Websites 2.0 affiliated logo within your website<br />
                    (very highly recommended for additional affiliate commissions)<br />
                    <br />
                  </p>
              </div></td>
            </tr>
            <tr>
              <td height="50" align="center" valign="middle" class="main2">Display ClickBank Affiliated Ads/Banners:</td>
              <td height="50" align="left" valign="middle" class="main2"><input name="display_cb" type="checkbox" value="1"<?php if($argument_arr['12']==1) echo "checked";?>><a href="#" onClick="mm_showHide('help_display_cb');return false;"><img src="images/help.gif" width="21" height="21" hspace="8" border="0" align="top"></a></td>
            </tr>
            <tr>
              <td colspan="2" align="center" valign="middle" class="main2"><div class="userhelp_cell" id="help_display_cb" style="display:none;">
                  <p><br>
                    Check this box to display ClickBank affiliated ads/banners within your website.<br>
                    (very highly recommended for additional affiliate commissions from ClickBank)</p>
                  <p><strong><u>Important</u></strong><br>
This option is courtesy of <a href="https://affiliateadrotator.com" target="_blank"><u>Affiliate Ad Rotator</u></a>, and is free to use for your personal use only within this website.</p>
                  <p>If you wish to use <a href="https://affiliateadrotator.com" target="_blank"><u>Affiliate Ad Rotator</u></a> on another website then you must purchase it from <a href="https://affiliateadrotator.com" target="_blank">here</a>.<br>
                      <br>
                    When you purchase <a href="https://affiliateadrotator.com" target="_blank"><u>Affiliate Ad Rotator</u></a>, you are allowed to use it on as many websites as you wish and you<br>
                    also get access to many, many more customizing options for your ads, such as randomly showing multiple ads of<br>
                    your choice from our vast, hand picked database of ClickBank products, category selection, to target your ads,<br>
                    advert alignment, border colors and styles, advert spacing, ability to always show the TOP ClickBank product<br>
                    for a certain category etc...<br>
                    <br>
                  </p>
                  </div></td>
            </tr>
            <tr>
              <td height="50" colspan="2" align="center" valign="middle" class="main2"></td>
            </tr>
            <tr>
              <td height="50" colspan="2" align="center" valign="middle" class="main2"><p>
                  <input type="submit" name="Submit" value="Save Affiliate Settings">
              </p></td>
            </tr>
          </form>
        </table></td>
        <td width="5" class="table_right">&nbsp;</td>
      </tr>
      <tr>
        <td width="3" height="6" class="table_botl">&nbsp;</td>
        <td width="220" height="6" class="table_bot">&nbsp;</td>
        <td width="5" class="table_botr">&nbsp;</td>
        <td width="3" class="table_botl">&nbsp;</td>
        <td width="645" class="table_bot">&nbsp;</td>
        <td width="5" height="6" class="table_botr">&nbsp;</td>
      </tr>
    </table></td>
  </tr> 
  <tr>
    <td height="60" colspan="3" align="center" valign="middle" class="footer">    </td>
  </tr>
  <tr class="footer_bg">
    <td width="8" height="30">&nbsp;</td>
    <td width="898" height="30"><table width="898" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center" valign="middle" class="copyright">Copyright &copy; <a href="https://freemonthlywebsites2.com" target="_blank">Free Monthly Websites 2.0</a>. All Rights Reserved.</td>
      </tr>
      <tr>
        <td align="center" valign="middle" class="powered">Powered By: <a href="https://freemonthlywebsites2.com" target="_blank">Free Monthly Websites 2.0</a></td>
      </tr>
    </table></td>
    <td width="8" height="30">&nbsp;</td>
  </tr>
</table>
</body>
</html>