Initial commit

This commit is contained in:
Brandon Scott 2015-07-04 04:58:36 -05:00
commit 1667e9ac30
81 changed files with 1246 additions and 0 deletions

14
bottom.php Normal file
View File

@ -0,0 +1,14 @@
</font>
</td>
<td width="160" height="979" valign="top">
<div align="center"><br>
</div>
</td>
</tr>
</table>
</TD>
</TR>
</TABLE>
</DIV>
</BODY>
</HTML>

11
checkpw.php Normal file
View File

@ -0,0 +1,11 @@
<?php include("dbconn.php");
if (isset($username)) {
$result = mysql_query("select password from users where userid='$username'");
if (mysql_num_rows($result)) {
$realpw = mysql_result($result, 0);
}
if ($realpw != $password) {
exit("Wrong password, please try again.");
}
}
?>

8
dbconn.php Normal file
View File

@ -0,0 +1,8 @@
<?php
$usernam="tdreams";
$pass="omega";
$db="news";
$conn = mysql_connect("localhost", "$usernam", "$pass") or die("Invalid server or user."); mysql_select_db("$db", $conn);
?>

325
editentry.php Normal file
View File

@ -0,0 +1,325 @@
<?php include("dbconn.php"); include("checkpw.php"); include("top.php");
$date = strftime("%A, %B %d, %Y");
if ($username) {
$userinfo = mysql_query("select * from users where userid='$username'");
while ($row=mysql_fetch_assoc($userinfo)) {
$name = $row["userid"];
$aim = $row["aim"];
$email = $row["email"];
}
$entryinfo = mysql_query("select * from news where eid='$eid'");
while ($row=mysql_fetch_assoc($entryinfo)) {
$subject = $row["subject"];
$postdate = $row["date"];
$emoticon= $row["emoticon"];
$txtnews= $row["txtnews"];
}
echo "
<form method=\"post\" action=\"postsettings.php\">
<input type=\"hidden\" name=\"action\" value=\"1\">
<input type=\"hidden\" name=\"eid\" value=\"$eid\">
<table width=\"468\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Subject:</font></td>
<td width=\"379\"> <b><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"text\" name=\"subject\" size=\"50\" maxlength=\"255\" value=\"$subject\">
</font></b></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Date:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$postdate</font></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Name:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$name</font></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">AIM:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$aim</font></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Email:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$email</font></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Emoticon:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<table width=\"379\" border=\"0\" cellspacing=\"3\" cellpadding=\"0\">
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"1\" checked>
</font></td>
<td width=\"17%\"><img src=\"emoticons/1.gif\" width=\"33\" height=\"37\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"2\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/2.gif\" width=\"40\" height=\"24\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"3\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/3.gif\" width=\"32\" height=\"34\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"4\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/4.gif\" width=\"27\" height=\"47\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"5\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/5.gif\" width=\"49\" height=\"51\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"6\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/6.gif\" width=\"30\" height=\"39\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"7\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/7.gif\" width=\"33\" height=\"32\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"8\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/8.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"9\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/9.gif\" width=\"38\" height=\"39\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"10\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/10.gif\" width=\"33\" height=\"39\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"11\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/11.gif\" width=\"33\" height=\"44\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"12\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/12.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"13\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/13.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"14\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/14.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"15\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/15.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"16\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/16.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"17\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/17.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"18\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/18.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"19\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/19.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"20\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/20.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"21\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/21.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"22\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/22.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"23\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/23.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"24\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/24.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"25\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/25.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"26\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/26.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"27\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/27.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"28\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/28.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"29\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/29.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"30\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/30.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"31\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/31.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"32\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/32.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"33\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/33.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"34\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/34.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"35\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/35.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"36\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/36.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"37\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/37.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"38\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/38.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"39\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/39.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"40\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/40.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"41\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/41.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"42\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/42.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"43\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/43.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"44\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/44.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"45\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/45.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"46\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/46.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"47\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/47.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"49\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/49.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"48\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/48.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"50\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/50.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"51\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/51.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"52\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/52.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"53\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/53.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"54\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/54.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"55\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/55.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"56\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/56.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"57\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/57.gif\"></td>
<td colspan=\"6\">
<div align=\"center\"><font face=\"Tahoma\" size=\"2\">Emoticons from PsyGuy<br>
<a href=\"http://www.psyguy.com\">http://www.psyguy.com</a></font></div>
</td>
</tr>
</table>
</font></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">News:</font></td>
<td width=\"379\"> <font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<textarea name=\"txtnews\" cols=\"50\" rows=\"5\">$txtnews</textarea>
</font></td>
</tr>
<tr>
<td colspan=\"2\" height=\"28\">
<div align=\"center\"> <b><font size=\"2\"><font face=\"Arial, Helvetica, sans-serif\">
<input type=\"submit\" name=\"Submit\" value=\"Submit\">
</font></font></b></div>
</td>
</tr>
</table>
</form>
";
} else {
echo "You are not logged in.";
} include("bottom.php");?>

BIN
emoticons/1.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B

BIN
emoticons/10.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

BIN
emoticons/11.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 876 B

BIN
emoticons/12.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 735 B

BIN
emoticons/13.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B

BIN
emoticons/14.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

BIN
emoticons/15.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

BIN
emoticons/16.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

BIN
emoticons/17.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

BIN
emoticons/18.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

BIN
emoticons/19.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

BIN
emoticons/2.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

BIN
emoticons/20.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 B

BIN
emoticons/21.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 659 B

BIN
emoticons/22.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 B

BIN
emoticons/23.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

BIN
emoticons/24.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

BIN
emoticons/25.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

BIN
emoticons/26.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

BIN
emoticons/27.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

BIN
emoticons/28.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 B

BIN
emoticons/29.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

BIN
emoticons/3.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 B

BIN
emoticons/30.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 528 B

BIN
emoticons/31.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

BIN
emoticons/32.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

BIN
emoticons/33.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
emoticons/34.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

BIN
emoticons/35.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

BIN
emoticons/36.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 B

BIN
emoticons/37.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

BIN
emoticons/38.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

BIN
emoticons/39.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

BIN
emoticons/4.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

BIN
emoticons/40.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 B

BIN
emoticons/41.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

BIN
emoticons/42.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
emoticons/43.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 682 B

BIN
emoticons/44.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

BIN
emoticons/45.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 B

BIN
emoticons/46.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

BIN
emoticons/47.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

BIN
emoticons/48.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

BIN
emoticons/49.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 B

BIN
emoticons/5.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 767 B

BIN
emoticons/50.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
emoticons/51.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 B

BIN
emoticons/52.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

BIN
emoticons/53.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
emoticons/54.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
emoticons/55.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

BIN
emoticons/56.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

BIN
emoticons/57.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

BIN
emoticons/6.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

BIN
emoticons/7.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

BIN
emoticons/8.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 B

BIN
emoticons/9.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

BIN
emoticons/Thumbs.db Normal file

Binary file not shown.

25
index.php Normal file
View File

@ -0,0 +1,25 @@
<?php include("checkpw.php"); include("top.php");
if ($username) {
echo "<div align=\"center\"><br>Welcome <b>$username</b> to Twisted News!<br><a href=../main.php>Back to Twisted Dreams</a><br><br><img src=\"../images/news_system.gif\" width=\"468\" height=\"34\"><br>
<br>
<img src=\"../images/ad_top.gif\" width=\"468\" height=\"20\"><br>
<table width=\"468\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" style=\"filter:alpha(opacity=70)\" bgcolor=\"#000000\">
<tr bgcolor=\"#3399FF\">
<td width=\"10%\" height=\"19\">
<div align=\"center\"><font color=\"#FFFFFF\"><b><font face=\"Arial, Helvetica, sans-serif\" size=\"2\"><a href=\"postnews.php\">Post
News </a></font></b></font></div>
</td>
<td width=\"10%\" height=\"19\">
<div align=\"center\"><font color=\"#FFFFFF\"><b><font face=\"Arial, Helvetica, sans-serif\" size=\"2\"><a href=\"modifynews.php\">Moderate
News </a></font></b></font></div>
</td>
<td width=\"10%\" height=\"19\">
<div align=\"center\"><font color=\"#FFFFFF\"><b><font face=\"Arial, Helvetica, sans-serif\" size=\"2\"><a href=\"logout.php\">Logout
/ Login</a></font></b></font></div>
</td>
</tr>
</table>
<img src=\"../images/ad_bottem.gif\" width=\"468\" height=\"20\"></div>";
} else {
echo "<br>You are not logged into Twisted News, <b><a href=\"loginpage.php\">Click here to login!</a></b>";
} include("bottom.php"); ?>

14
login.php Normal file
View File

@ -0,0 +1,14 @@
<?php
$usernam="tdreams";
$pass="omega";
$db="news";
$conn = mysql_connect("localhost", "$usernam", "$pass") or die("Invalid server or user."); mysql_select_db("$db", $conn);
$result = mysql_query("select password from users where userid='$userid'");
$realpw = @mysql_result($result, 0);
if ($realpw != $password) {
exit("Wrong password, please try again."); }
setcookie("username", $userid, time()+86400, "/", ".tdreams.ppnhost.ws", 0);
setcookie("password", $password, time()+86400, "/", ".tdreams.ppnhost.ws", 0);
echo "<a href=index.php>Continue</a>";
?>

19
loginpage.php Normal file
View File

@ -0,0 +1,19 @@
<?php
include("checkpw.php");
include("dbconn.php");
include("top.php");
if ($username) { echo "<p>
You are already logged in as <b>$username</b><br><a href=index.php>To Control Panel</a>";
} else {
echo "
<p>
<font face=\"Tahoma\" size=\"1\" color=\"#FFFFFF\">
News Script Login:
<form action=\"login.php\">
Username: <input type=\"text\" name=\"userid\"><br>
Password: <input type=\"password\" name=\"password\"><br>
<input type=submit value=\"Login\"><br>
<br><br>
</font>
</form>";
}include("bottom.php");?>

5
logout.php Normal file
View File

@ -0,0 +1,5 @@
<?php
setcookie("username", "", time()-86400, "/", ".tdreams.ppnhost.ws", 0);
setcookie("password", "", time()-86400, "/", ".tdreams.ppnhost.ws", 0);
echo "You are logged out now. <br> <a href=loginpage.php>Login as a new User!</a>";
?>

53
modifynews.php Normal file
View File

@ -0,0 +1,53 @@
<?php include("checkpw.php"); include("dbconn.php"); include("top.php");
if ($username) {
echo "<br><img src=\"../images/modify_news.gif\"><br><br>";
if ($action == 1) {
$result = mysql_query("delete from news where eid='$eid'");
echo "<b>The news entry has been deleted.</b><br><br><br>";
}
echo "
<b>Modify News:</b>
<br><br>";
$result = mysql_query("select uid from users where userid='$username'");
$aid=mysql_result($result, 0);
if ($username == "Brandon") {
$resultafff = mysql_query("select * from news order by eid DESC");
} else {
$resultafff = mysql_query("select * from news where pid='$aid' order by eid DESC");
}
if (mysql_num_rows($resultafff)) {
while ($row=mysql_fetch_assoc($resultafff)) {
$eid = $row["eid"];
$pid = $row["pid"];
$subject = $row["subject"];
$date = $row["date"];
$emoticon = $row["emoticon"];
$txtnews = $row["txtnews"];
$userinfo = mysql_query("select * from users where uid='$pid'");
while ($row=mysql_fetch_assoc($userinfo)) {
$name = $row["userid"];
$aim = $row["aim"];
$email = $row["email"];
$txtnews = str_replace ("\n", "<br>", $txtnews);
$txtnews = str_replace ("8-)", "<img src=\"smileys/cool.gif\">", $txtnews);
$txtnews = str_replace (":-)", "<img src=\"smileys/happy.gif\">", $txtnews);
$txtnews = str_replace (">:-(", "<img src=\"smileys/mad.gif\">", $txtnews);
$txtnews = str_replace (">:o", "<img src=\"smileys/yelling.gif\">", $txtnews);
$txtnews = str_replace (";-)", "<img src=\"smileys/winking.gif\">", $txtnews);
$txtnews = str_replace (":-(", "<img src=\"smileys/sad.gif\">", $txtnews);
$txtnews = str_replace (":-D", "<img src=\"smileys/reallyhappy.gif\">", $txtnews);
echo "<b>Subject:</b> $subject<br><b>User:</b> $name<br>$txtnews<br><b><a href=\"modifynews.php?action=1&eid=$eid\">Delete</a>&nbsp;-&nbsp;<a href=\"editentry.php?eid=$eid\">Edit Entry</a></b><br><br>";
}
}
} else {
echo "No News post yet.";
}
echo "<br><br>
<a href=\"index.php\"><b><u>Return to Control Panel</u></b></a>";
} else {
echo "You are not logged in.";
}
include("bottom.php"); ?>

303
post_before.htm Normal file
View File

@ -0,0 +1,303 @@
<form method=\"post\" action=\"postit.php\">
<table width=\"468\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Subject:</font></td>
<td width=\"379\"> <b><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"text\" name=\"subject\" size=\"50\" maxlength=\"255\">
</font></b></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Date:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$date</font></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Name:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$name</font></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">AIM:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$aim</font></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Email:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$email</font></td>
</tr>
<tr>
<td width=\"69\" valign=\"top\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Emoticon:</font></td>
<td width=\"379\">
<table width=\"379\" border=\"0\" cellspacing=\"3\" cellpadding=\"0\">
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"1\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/1.gif\" width=\"33\" height=\"37\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"2\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/2.gif\" width=\"40\" height=\"24\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"3\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/3.gif\" width=\"32\" height=\"34\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"4\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/4.gif\" width=\"27\" height=\"47\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"5\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/5.gif\" width=\"49\" height=\"51\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"6\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/6.gif\" width=\"30\" height=\"39\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"7\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/7.gif\" width=\"33\" height=\"32\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"8\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/8.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"9\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/9.gif\" width=\"38\" height=\"39\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"10\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/10.gif\" width=\"33\" height=\"39\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"11\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/11.gif\" width=\"33\" height=\"44\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"12\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/12.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"13\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/13.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"14\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/14.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"15\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/15.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"16\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/16.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"17\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/17.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"18\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/18.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"19\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/19.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"20\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/20.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"21\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/21.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"22\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/22.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"23\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/23.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"24\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/24.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"25\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/25.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"26\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/26.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"27\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/27.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"28\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/28.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"29\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/29.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"30\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/30.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"31\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/31.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"32\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/32.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"33\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/33.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"34\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/34.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"35\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/35.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"36\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/36.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"37\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/37.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"38\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/38.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"39\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/39.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"40\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/40.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"41\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/41.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"42\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/42.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"43\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/43.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"44\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/44.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"45\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/45.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"46\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/46.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"47\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/47.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"49\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/49.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"48\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/48.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"50\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/50.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"51\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/51.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"52\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/52.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"53\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/53.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"54\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/54.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"55\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/55.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"56\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/56.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"57\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/57.gif\"></td>
<td colspan=\"6\">
<div align=\"center\"><font face=\"Tahoma\" size=\"2\">Emoticons from PsyGuy<br>
<a href=\"http://www.psyguy.com\">http://www.psyguy.com</a></font></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=\"69\" valign=\"top\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">News:</font></td>
<td width=\"379\"> <font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<textarea name=\"txtnews\" cols=\"50\" rows=\"5\"></textarea>
</font></td>
</tr>
<tr>
<td colspan=\"2\" height=\"28\">
<div align=\"center\"> <b><font size=\"2\"><font face=\"Arial, Helvetica, sans-serif\">
<input type=\"submit\" name=\"Submit\" value=\"Submit\">
</font></font></b></div>
</td>
</tr>
</table>
</form>
<br>

18
postit.php Normal file
View File

@ -0,0 +1,18 @@
<?php include("dbconn.php"); include("checkpw.php");
if (!($subject)) {
echo "Subject Required";
exit;
}
if (!($txtnews)) {
echo "News Required";
exit;
}
$date = strftime("%A, %B %d, %Y");
if ($username) {
$result = mysql_query("select uid from users where userid='$username'");
$pid = @mysql_result($result, 0);
$result = mysql_query("insert into news (subject, date, emoticon, txtnews, pid) values ('$subject', '$date', '$emoticon', '$txtnews', '$pid')");
echo "News Entry Recorded on $date<br><b><a href=index.php>Back to Control Panel</a></b>";
} else {
echo "You are not logged in, Therfore you cannot post news on Twisted Dreams. <a href=loginpage.php>Login In Now!</a>";
} ?>

317
postnews.php Normal file
View File

@ -0,0 +1,317 @@
<?php include("dbconn.php"); include("checkpw.php"); include("top.php");
$date = strftime("%A, %B %d, %Y");
if ($username) {
$userinfo = mysql_query("select * from users where userid='$username'");
while ($row=mysql_fetch_assoc($userinfo)) {
$name = $row["userid"];
$aim = $row["aim"];
$email = $row["email"];
}
echo "
<form method=\"post\" action=\"postit.php\">
<table width=\"468\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Subject:</font></td>
<td width=\"379\"> <b><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"text\" name=\"subject\" size=\"50\" maxlength=\"255\">
</font></b></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Date:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$date</font></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Name:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$name</font></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">AIM:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$aim</font></td>
</tr>
<tr>
<td width=\"69\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Email:</font></td>
<td width=\"379\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$email</font></td>
</tr>
<tr>
<td width=\"69\" valign=\"top\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Emoticon:</font></td>
<td width=\"379\">
<table width=\"379\" border=\"0\" cellspacing=\"3\" cellpadding=\"0\">
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"1\" checked>
</font></td>
<td width=\"17%\"><img src=\"emoticons/1.gif\" width=\"33\" height=\"37\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"2\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/2.gif\" width=\"40\" height=\"24\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"3\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/3.gif\" width=\"32\" height=\"34\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"4\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/4.gif\" width=\"27\" height=\"47\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"5\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/5.gif\" width=\"49\" height=\"51\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"6\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/6.gif\" width=\"30\" height=\"39\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"7\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/7.gif\" width=\"33\" height=\"32\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"8\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/8.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"9\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/9.gif\" width=\"38\" height=\"39\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"10\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/10.gif\" width=\"33\" height=\"39\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"11\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/11.gif\" width=\"33\" height=\"44\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"12\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/12.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"13\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/13.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"14\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/14.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"15\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/15.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"16\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/16.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"17\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/17.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"18\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/18.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"19\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/19.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"20\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/20.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"21\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/21.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"22\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/22.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"23\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/23.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"24\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/24.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"25\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/25.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"26\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/26.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"27\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/27.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"28\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/28.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"29\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/29.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"30\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/30.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"31\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/31.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"32\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/32.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"33\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/33.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"34\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/34.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"35\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/35.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"36\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/36.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"37\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/37.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"38\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/38.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"39\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/39.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"40\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/40.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"41\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/41.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"42\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/42.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"43\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/43.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"44\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/44.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"45\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/45.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"46\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/46.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"47\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/47.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"49\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/49.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"48\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/48.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"50\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/50.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"51\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/51.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"52\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/52.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"53\">
</font></td>
<td width=\"9%\"><img src=\"emoticons/53.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"54\">
</font></td>
<td width=\"8%\"><img src=\"emoticons/54.gif\"></td>
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"55\">
</font></td>
<td width=\"15%\"><img src=\"emoticons/55.gif\"></td>
</tr>
<tr valign=\"middle\">
<td width=\"7%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"56\">
</font></td>
<td width=\"17%\"><img src=\"emoticons/56.gif\"></td>
<td width=\"4%\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<input type=\"radio\" name=\"emoticon\" value=\"57\">
</font></td>
<td width=\"19%\"><img src=\"emoticons/57.gif\"></td>
<td colspan=\"6\">
<div align=\"center\"><font face=\"Tahoma\" size=\"2\">Emoticons from PsyGuy<br>
<a href=\"http://www.psyguy.com\">http://www.psyguy.com</a></font></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=\"69\" valign=\"top\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">News:</font></td>
<td width=\"379\"> <font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
<textarea name=\"txtnews\" cols=\"50\" rows=\"5\"></textarea>
</font></td>
</tr>
<tr>
<td colspan=\"2\" height=\"28\">
<div align=\"center\"> <b><font size=\"2\"><font face=\"Arial, Helvetica, sans-serif\">
<input type=\"submit\" name=\"Submit\" value=\"Submit\">
</font></font></b></div>
</td>
</tr>
</table>
</form>
<br>
";
} else {
echo "You are not logged in.";
} include("bottom.php");?>

13
postsettings.php Normal file
View File

@ -0,0 +1,13 @@
<?php include("checkpw.php"); include("dbconn.php"); include("top.php");
if ($username) {
echo "<br><img src=\"../images/modify_news.gif\"><br><br>";
if ($action == 1) {
$result = mysql_query("update news set subject='$subject', emoticon='$emoticon', txtnews='$txtnews' where eid='$eid'");
echo "<b>The news entry has been updated.</b><br><br><a href=index.php>Back to Control Panel</a>";
} else {
echo "<b>Unknown Action</b><br><br><br>";
}
} else {
echo "<b>Not Logged In</b><br><br><br>";
}
include("bottom.php"); ?>

BIN
smileys/Thumbs.db Normal file

Binary file not shown.

BIN
smileys/cool.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

BIN
smileys/happy.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

BIN
smileys/mad.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 B

BIN
smileys/reallyhappy.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

BIN
smileys/sad.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

BIN
smileys/winking.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

BIN
smileys/yelling.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

49
top.php Normal file
View File

@ -0,0 +1,49 @@
<HTML>
<HEAD>
<TITLE>Twisted Dreams - Version 3.0</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<STYLE TYPE='text/css'>
a:link { color:#FFFFFF; text-decoration:none; cursor:hand}
a:visited { color:#FFFFFF; text-decoration:none; cursor:hand}
a:hover { color:#FFFFFF; text-decoration:underline; cursor:hand}
a:active { color:#FFFFFF; text-decoration:underline; cursor:hand}
body {
scrollbar-face-color: #4e4e4e;
scrollbar-highlight-color: #9f9f9f;
scrollbar-shadow-color: #3d3d3d;
scrollbar-3dlight-color: #000000;
scrollbar-arrow-color: #ffffff;
scrollbar-track-color: #999999;
scrollbar-darkshadow-color: #222222
; font-family: Tahoma; font-size: 6px; color: #FFFFFF; text-decoration: none}
</STYLE>
</HEAD>
<BODY BGCOLOR="#3399FF" TEXT="#000000">
<DIV ALIGN="CENTER">
<TABLE WIDTH="796" BORDER="0" CELLSPACING="0" CELLPADDING="0" HEIGHT="63">
<TR>
<TD HEIGHT="50"><img src="../images/main.gif" width="796" height="50"></TD>
</TR>
<TR>
<TD HEIGHT="13">
<table width="796" border="0" cellspacing="0" cellpadding="0" background="../images/pg_bgk.gif">
<tr>
<td width="160" height="979" valign="TOP">
<div align="left"><br>
</div>
</td>
<td class="sides" valign="TOP" align="left" width="476"> <br>
<table width="468" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="../images/ad_top.gif" height="20">
<div align="center"><font face="Tahoma" size="1" color="#FFFFFF"><i><b>Please
Support us, Click the AD!</b></i></font></div>
</td>
</tr>
<tr>
<td><div align="center"><script language="javascript" src="http://www.qksz.net/1e-3j5e"></script></div></td>
</tr>
<tr>
<td height="20" background="../images/ad_bottem.gif"><div align="center"><font face="Tahoma" size="1" color="#FFFFFF"><i><b><?php $domain = GetHostByName($REMOTE_ADDR); echo"$domain @ Twisted Dreams";?></b></i></font></div></td>
</tr>
</table>

72
viewnews.php Normal file
View File

@ -0,0 +1,72 @@
<? include("news_script/dbconn.php");
$resultafff = mysql_query("select * from news order by eid DESC");
if (mysql_num_rows($resultafff)) {
while ($row=mysql_fetch_assoc($resultafff)) {
$pid = $row["pid"];
$subject = $row["subject"];
$date = $row["date"];
$emoticon = $row["emoticon"];
$txtnews = $row["txtnews"];
$userinfo = mysql_query("select * from users where uid='$pid'");
while ($row=mysql_fetch_assoc($userinfo)) {
$name = $row["userid"];
$aim = $row["aim"];
$email = $row["email"];
$txtnews = str_replace ("\n", "<br>", $txtnews);
$txtnews = str_replace ("8-)", "<img src=\"news_script/smileys/cool.gif\">", $txtnews);
$txtnews = str_replace (":-)", "<img src=\"news_script/smileys/happy.gif\">", $txtnews);
$txtnews = str_replace (">:-(", "<img src=\"news_script/smileys/mad.gif\">", $txtnews);
$txtnews = str_replace (">:o", "<img src=\"news_script/smileys/yelling.gif\">", $txtnews);
$txtnews = str_replace (";-)", "<img src=\"news_script/smileys/winking.gif\">", $txtnews);
$txtnews = str_replace (":-(", "<img src=\"news_script/smileys/sad.gif\">", $txtnews);
$txtnews = str_replace (":-D", "<img src=\"news_script/smileys/reallyhappy.gif\">", $txtnews);
echo "<table width=\"421\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td height=\"20\" background=\"images/newshead.gif\">
<div align=\"center\"><font face=\"Arial, Helvetica, sans-serif\" size=\"1\" color=\"#FFFFFF\"><b>$subject</b></font></div>
</td>
</tr>
<tr>
<td background=\"images/newsmid.gif\">
<table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" width=\"100%\">
<tr>
<td width=\"75%\" height=\"9\"><font face=\"Arial, Helvetica, sans-serif\" size=\"1\" color=\"#FFFFFF\">User:
$name</font></td>
<td rowspan=\"4\" valign=\"top\">
<div align=\"center\">
<img src=\"news_script/emoticons/$emoticon.gif\"><br>
</div>
</td>
</tr>
<tr>
<td width=\"75%\" height=\"9\"><font face=\"Arial, Helvetica, sans-serif\" size=\"1\" color=\"#FFFFFF\">Date:
$date</font></td>
</tr>
<tr>
<td width=\"75%\" height=\"9\"><font face=\"Arial, Helvetica, sans-serif\" size=\"1\" color=\"#FFFFFF\">Email:
<a href=\"mailto:$email\"><b>Email Me</b></a></font></td>
</tr>
<tr>
<td width=\"75%\" height=\"2\">&nbsp;</td>
</tr>
<tr>
<td colspan=\"2\">
<div align=\"center\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\" color=\"#FFFFFF\"><b>$txtnews</b></font></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src=\"images/newsfoot.gif\" width=\"421\" height=\"4\"></td>
</tr>
</table>
<br>
<br>";
}
}
} else {
echo "No news Entries yet.<br>";
}
?>