<?php

session_start();
include "../config.php";
include "../header.php";
include "../style.php";

if( session_is_registered("alogin") ) {
?>
<table>
<tr>
<td width="15%" valign=top><br>
<? include("adminnavigation.php"); ?>
</td>
<td valign="top" align="center"><br><br> <?
echo "<font size=2 face='$fonttype' color='$fontcolour'><p><center>";
?>
<?

$query1 = "SELECT * FROM adminnotes WHERE name='Admin Notes'";
$result1 = mysql_query ($query1);
$line1 = mysql_fetch_array($result1);
$htmlcode = $line1["htmlcode"];

?>



<center>  <b>Admin Notes</b>

<form method="POST" action="editadminnotes.php">

<input type="hidden" name="index" value="1">

<textarea rows=10 cols=75 name="htmlcode"><? echo $htmlcode; ?></textarea><br>

<input type="submit" value="Update Admin Notes">

</form>

</center>

<br>
<p><H2>Welcome To <? echo $sitename; ?> Admin Area!</H2></p>

<p>First you MUST go to 'Settings' and 'Site Profile' to set up your Ad-Exchange.</p>

<p>To edit the HTML on your main and members page, go to 'edit pages'.</p>          

<p>Use 'Contact All' to send to all contact emails addresses (not solo ads).</p>

<p>Solo ads can be sent from 'Approve Ads' - once it has been added by the member.</p>

<p>To add banners for your users to use in their advertising efforts, click 'Add Site Banners'.</p>

<p>To add more buttons (or disable existing buttons) in the members area, click 'Edit Navigation'.</p>

<p><font color='red' size='3'>You MUST have a Stripe account to use that processor and your PK and SK keys must be set in your Stripe/syek.php file in order for you to collect payments for advertising purchases.</font><BR><BR>   

<p><b>Optimize Your Database At Least Once A Week.<BR></p></b>

<?
if($_POST['optimize']) {
mysql_query("OPTIMIZE TABLE `advertise` , `autoresponder` , `banners` , `banner_clicks` , `builder` , `builder_cat` , `builder_fav` , `builder_sites` , `clicks` , `drawing` , `emails` , `email_promotion` , `links` , `members` , `navigation` , `navlink` , `offerpage` , `oto` , `pages` , `post` , `promo_codes` , `promo_used` , `refmail` , `saved_post` , `saved_solos` , `settings` , `solos` , `support` , `tlinks` , `tlviews` , `transactions` , `urls` , `viewed`");
echo "The tables have been optimized";
}
?>

<form method="post">
<input type="submit" name="optimize" value="Optimize Database">
</form>
<br>
<br>
<br>
<p align="center"><font size="3" color="red"><b>WARNING!<br>PayPal does not really like ad exchanges or safelists.<br>It is highly reccomended that you use Stripe or another processor!<br><br>It is also NOT adviseable to enable Pay To Click (PTC) ads.<br>They are against Stripe and PayPal's Terms Of Service!!<br>Leave the $ Price or cash settings for those empty so members<br>can only buy them with points.</b></font><br><br></p>

</td>
</tr>
</table>
<?
}
else {
?>
<center>
<form method="POST" action="loginnow.php"><br>
Admin Id:<br><input type="text" name="Adminid" value=""><br>
Password:<br><input type="password" name="Password" value=""><br>
<input type="submit" value="Login">
</form>
</center>
<?
}
echo "<font size=2 face='$fonttype' color='$fontcolour'><p><b><center>";
include "../footer.php";

?>