news-script/postsettings.php

13 lines
521 B
PHP
Raw Normal View History

2015-07-04 04:58:36 -05:00
<?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"); ?>