<?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!     ##
##                                                                                ##
####################################################################################
      session_start();

       if($_SESSION['logged_in']!=true)
	     {
			header("location:index.php?flag=2");
			exit;
	     }
if ( isset( $_GET[ 'download_backup' ] ) ){
    require_once './upgrade/config.php';
	require_once './upgrade/upgrade.php';
	$upgrader = new Upgrader( $config );
	$upgrader->getBackupInfo();

	$file_name = dirname( __FILE__  ) . '/upgrade/backup/website-backup.zip';
	header( 'Content-type: application/zip' ); 
	header( 'Content-Disposition: attachment; filename=website-backup.zip' );
	header( 'Content-length: ' . filesize( $file_name ) );
	header( 'Pragma: no-cache' ); 
	header( 'Expires: 0' ); 
	readfile( $file_name );
	exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Language" content="en-gb">
<meta name="copyright" content="Multi Profit Websites">
<title>Admin Control Panel</title>
<link href="css/admin_style.css" rel="stylesheet" type="text/css">
</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">
          <tr>
            <td height="50" align="center" valign="middle" class="title1"><div align="center">Welcome To Your Free Monthly Websites Admin Setup</div></td>
          </tr>




          <tr>
            <td height="50" align="center" valign="middle" class="main2">
<?php require "./upgrader.php"; ?>	
                <p><img src="images/logo.jpg" width="450" height="161"></p>
                <p>If you ever need to backup your entire website, you can do that any time from <a href="welcome.php?download_backup=1">here</a>.</p>
                <p>On the left hand side of the Admin Panel you will find your  website setup contents.<br>
                  You now need to click on each section and enter your details.<br>
                  <br>
                  If you are unsure about any  part of your website setup click the question mark icon <img src="images/help.gif" width="21" height="21"> next to the<br>
                  relevant area, which will show/hide
                  additional  helpful information.<br>
                </p>
                <p>You will find  videos and other helpful advice that will help you get the most out of your websites, in the<br>
                  Free Monthly Websites Members area <a href="https://freemonthlywebsites2.com/members/" target="_blank"><u>here</u></a>.</p>
                <p><br>
  &nbsp;If you have any  further questions please contact the <a href="https://divinityhelpcenter.com" target="_blank"><u>Free Monthly Websites Dedicated Support Desk</u></a>.<br>
                <br>
                </p>
                <p>Don't be afraid of experimenting with your website settings, to familiarise yourself with the admin panel.<br>
                  Most instances can be reversed back to their original state by simply re-uploading.</p>
                <p><span class="member_content">                  Keep up to date with new additions, free updates and improvements<br />
                  by registering to receive
                  important updates.</span><br/>
                </p>
                <table align="center" width="500" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="230" class="optin_updates"><table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="153"></td>
                        </tr>
                        <form name="myform" method="post" action="https://www.aweber.com/scripts/addlead.pl" target="_new">
                          <input type="hidden" name="meta_web_form_id" value="" />
                          <input type="hidden" name="meta_split_id" value="" />
                          <input type="hidden" name="unit" value="freemonthly2" />
                          <input type="hidden" name="redirect" value="https://dave-nicholson.com/confirm" />
                          <input type="hidden" name="meta_redirect_onlist" value="https://dave-nicholson.com/confirm/thanks.html">
                          <input type="hidden" name="meta_adtracking" value="" />
                          <input type="hidden" name="meta_message" value="1" />
                          <input type="hidden" name="meta_required" value="name,email" />
                          <input type="hidden" name="meta_forward_vars" value="0" />
                          <tr>
                            <td height="26"><div align="center">
                                <input name="name" type="text" class="submit_form" value="" size="30" style="width:200px" />
                            </div></td>
                          </tr>
                          <tr>
                            <td height="26"><div align="center">
                                <input name="email" type="text" class="submit_form" value="" size="30" style="width:200px" />
                            </div></td>
                          </tr>
                          <tr>
                            <td height="75" align="center" valign="bottom"><input name="submit" type="image" value="Keep Me In The Loop!" src="images/submit.jpg" alt="Keep Me In The Loop!" align="absmiddle"></td>
                            </tr>
                        </form>
                    </table></td>
                  </tr>
                </table>
                <p align="center" class="testimonial">Your privacy is safe. We will never pass your email address to a 3rd party<br>
                  and you may opt-out at any time.</p>                <p>&nbsp;</p>                
<!-- You are not permitted to edit this code -->
<center>
  <strong>Before you proceed, please take a look at our recommended product of the month here:</strong> <br>
  <br>
<!-- You are not permitted to edit any code in this website -->
<div id="target"></div>
 <?php
function get_data($url) {
	$ch = curl_init();
	$timeout = 5;
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
	$data = curl_exec($ch);
	curl_close($ch);
	return $data;
}
 $returned_content = get_data('https://freemonthlywebsites2.com/feeds/550x400ad.php');
 echo $returned_content;
?><br />
<!-- You are not permitted to edit any code in this website -->
</center><br><br>
<!-- You are not permitted to edit this code -->
                </td>
          </tr>
        </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>