Re: Free Updated Newspaper
Ok, Im gonna post it :)
newspaper.php
<?php
//Please Keep This Notice
//Made By:Iseeyou94056
//Type:Free
//Please Do Not Sell This It Is Free
//Please Dont Take Credit For This You Did Not Make It
include "globals.php";
if($ir['newspaper']==0) { echo "You havent brought a newspaper today go to the <a href=nagent.php>newsagents</a> and buy one."; $h->endpage(); exit; }
print "<h3>Welcome to The ArmyWars Times</h3>
";
$q=$db->query("SELECT * FROM newscontent LIMIT 1",$c);
$ncontent=mysql_result($q,0,0);
$q=$db->query("SELECT * FROM papercontent LIMIT 1",$c);
$content=mysql_result($q,0,0);
print "<table width=90% border=0 cellspacing=0 cellpadding=0 bgcolor='#ffffff'>
<tr align='center'>
<td>[url='halloffame.php']Hall Of Fame[/url]<hr/></td>
<td>[url='hallofshame.php']Hall OF Shame[/url]<hr/></td>
<td>[url='games.php']Arcade[/url]<hr/></td>
</tr><tr>
<td height='1' align='center' valign='top'>
[b]<u>[b]<u>Sponsors</u>[/b]</u></font>[/b]</td>
<td width='60%' height='1%' align='center' valign='top'>[b]<u>
[b]<u>ArmyWars Game News</u>[/b]</u>[/b]</td><td width='20%' height='1%' align='center' valign='top'>[b]<u>
[b]<u>ArmyWars Game Updates</u>[/b]</u>[/b]</td>
</tr><tr>
<td align='left' valign='top'><center>Coming Soon
</center></td>
<td rowspan='20' align='left' valign='top'>$ncontent</td>
<td rowspan='20' align='left' valign='top'>$content</td>
</tr>
<tr><td height='1' align='center' valign='top'>[b]<u>[b]<u>Player Ads</u>[/b]</u>[/b]</td>
</tr><tr>
</tr><tr>
<td height='10000' align='center' valign='top'>";
$q=$db->query("SELECT * FROM npaper LIMIT 10");
while($na=mysql_fetch_array($q))
{
print "[b]Ad By - [url='profiles.php?u={$na[']User Id {$us}[{$na['npADDER']}][/url][/b]
[b]Topic[/b] -{$na['npTITLE']}
[b]Message[/b] - {$na['npBODY']}[/i]
<hr />";
}
print "
> [url='postad.php?action=add']Add An Ad[/url] <
</td></tr></table>";
?>
postad.php
<?php
//Please Keep This Notice
//Made By:Iseeyou94056
//Type:Free
//Please Do Not Sell This It Is Free
//Please Dont Take Credit For This You Did Not Make It
include "globals.php";
if($_GET['action'] == "add")
{ print "<h3>Add Advertisement ($5,000)</h3>
<form action='postad.php?action=added' method='post'>
Ad Title:
<input type='text' name='npTITLE' class='textbox'>
Ad Body:
<textarea rows=5 cols=18 name='npBODY' class='textbox'></textarea>
<input class='textbox' type='submit' value='Place Ad ($5,000)' />
</form>
<font color=red>[b]WARNING:[/b] Only plain text will work
Do not advertise other games
Follow the rules.
"; }
if($_GET['action'] == "added")
{
if($ir['money']>5000)
{ print "Congratulations, you bought a an ad for \$5,000!
";
$db->query("UPDATE users SET money=money-5000 WHERE userid=$userid");
$title=str_replace(array("\n"),array("
"),strip_tags($_POST['npTITLE']));
$body=str_replace(array("\n"),array("
"),strip_tags($_POST['npBODY']));
$q=$db->query("INSERT INTO `npaper` VALUES (NULL, '$userid', '$title', '$body', unix_timestamp())");
print "Ad Added!
[url='newspaper.php']>Back[/url]";
} else {
print "You do not have enough money to add an ad.
[url='explore.php']Back to town...[/url]"; } }
?>
Then obviously everything else is easy
Just change admin.php to staff_special.php