2000-06-16 03:13:49 +00:00
|
|
|
<? // Preamble
|
|
|
|
$pageName = "Developers - Update Plan";
|
|
|
|
$focused = "home"; // Dock icon name to gets a border
|
|
|
|
$need = 'auth';
|
|
|
|
require("../parts/preamble.php"); // Load most of document
|
|
|
|
?>
|
|
|
|
<?
|
|
|
|
if ($planItem) {
|
|
|
|
need('sql');
|
|
|
|
|
|
|
|
$user = ucfirst($userInfo[u_username]) ;
|
|
|
|
$newsItem = AddSlashes($newsItem);
|
|
|
|
|
|
|
|
$conn = mysql_connect (sqlHost, sqlUser, sqlPass);
|
|
|
|
if ($conn) {
|
2000-06-16 03:25:09 +00:00
|
|
|
$query = 'UPDATE devel_plans SET p_date = NOW() AND p_plan = ' .
|
|
|
|
"'$planItem' WHERE p_user = '$user')";
|
2000-06-16 03:13:49 +00:00
|
|
|
$result = mysql_db_query (sqlDB, $query, $conn);
|
|
|
|
if ($result) {
|
|
|
|
$numRows = mysql_affected_rows ($conn);
|
|
|
|
if ($numRows) {
|
|
|
|
echo '<P>All is well... your plan has been updated';
|
|
|
|
} else {
|
|
|
|
echo '<P>Hmm... that\'s not right. An error occoured';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mysql_close ($conn);
|
|
|
|
} else {
|
|
|
|
echo 'You suck, butthead.';
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
tableBoxHeader(featureBgColor, tableHeadColor);
|
|
|
|
tableTitle("Edit Plan", 1, tableHeadColor);
|
|
|
|
|
|
|
|
$date = strftime('%d %b %Y', time());
|
|
|
|
$user = ucfirst($userInfo[u_username]);
|
|
|
|
echo '<TR><TD><DL><DT><FONT SIZE=-1>Posted on ' . $date . ' by ' . $user . '</FONT></DT>' .
|
|
|
|
' <DD> ';
|
|
|
|
?>
|
|
|
|
<FORM action="plan.php" method="post">
|
2000-06-16 03:25:09 +00:00
|
|
|
<TEXTAREA name="planItem" rows="25" cols="64"></TEXTAREA><BR>
|
2000-06-16 03:13:49 +00:00
|
|
|
<INPUT align="center" type="submit" value="Post"></INPUT>
|
|
|
|
</FORM>
|
|
|
|
<? ' . </DD>' .
|
|
|
|
'</DL></TD></TR>';
|
|
|
|
tableBoxFooter();
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<?
|
|
|
|
?>
|
|
|
|
<?
|
|
|
|
require (siteHome ."/parts/postamble.php"); // Finish this sucker up
|
|
|
|
?>
|